imaxabs: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-08  Bruno Haible  <bruno@clisp.org>
2
3         imaxabs: Move AC_LIBOBJ invocations to module description.
4         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5         invocations from here...
6         * modules/imaxabs (configure.ac): ... to here.
7
8 2011-05-08  Bruno Haible  <bruno@clisp.org>
9
10         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
12         AC_LIBOBJ invocations from here...
13         * modules/getaddrinfo (configure.ac): ... to here.
14         (Depends-on): Add conditions.
15
16 2011-05-08  Bruno Haible  <bruno@clisp.org>
17
18         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
19         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
20         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
21         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
22         (gl_PREREQ_INET_PTON): ... from here.
23         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
24         gl_PREREQ_INET_PTON here.
25         (Depends-on): Update condition.
26
27 2011-05-08  Bruno Haible  <bruno@clisp.org>
28
29         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
30         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
31         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
32         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
33         (gl_PREREQ_INET_NTOP): ... from here.
34         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
35         gl_PREREQ_INET_NTOP here.
36         (Depends-on): Update condition.
37
38 2011-05-08  Bruno Haible  <bruno@clisp.org>
39
40         iconv_open: Move AC_LIBOBJ invocations to module description.
41         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
42         AC_LIBOBJ invocations from here...
43         * modules/iconv_open (configure.ac): ... to here.
44
45 2011-05-08  Bruno Haible  <bruno@clisp.org>
46
47         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
48         If module 'iconv_open' is among the main modules and module
49         'iconv_open-utf' is among the tests dependencies, then
50         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
51         return the special iconv_t values. Therefore iconv() and iconv_close()
52         must support these special iconv_t values, already in lib, not only in
53         tests.
54         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
55         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
56         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
57         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
58         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
59         (Depends-on): Add the dependencies of iconv_open-utf.
60         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
61         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
62         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
63
64 2011-05-08  Bruno Haible  <bruno@clisp.org>
65
66         group-member: Move AC_LIBOBJ invocations to module description.
67         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
68         gl_PREREQ_GROUP_MEMBER invocations from here...
69         * modules/group-member (configure.ac): ... to here.
70
71 2011-05-08  Bruno Haible  <bruno@clisp.org>
72
73         grantpt: Move AC_LIBOBJ invocations to module description.
74         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
75         invocations from here...
76         * modules/grantpt (configure.ac): ... to here.
77
78 2011-05-08  Bruno Haible  <bruno@clisp.org>
79
80         glob: Move AC_LIBOBJ invocations to module description.
81         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
82         from here...
83         * modules/glob (configure.ac): ... to here.
84
85 2011-05-08  Bruno Haible  <bruno@clisp.org>
86
87         getusershell: Move AC_LIBOBJ invocations to module description.
88         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
89         Move AC_LIBOBJ invocation from here...
90         * modules/getusershell (configure.ac): ... to here.
91         (Depends-on): Update condition.
92
93 2011-05-08  Bruno Haible  <bruno@clisp.org>
94
95         gettimeofday: Move AC_LIBOBJ invocations to module description.
96         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
97         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
98         gl_PREREQ_GETTIMEOFDAY invocations from here...
99         * modules/gettimeofday (configure.ac): ... to here.
100
101 2011-05-08  Bruno Haible  <bruno@clisp.org>
102
103         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
104         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
105         just gl_FUNC_TZSET.
106         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
107         (gl_FUNC_TZSET_CLOBBER): Remove actions.
108         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
109         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
110
111 2011-05-08  Bruno Haible  <bruno@clisp.org>
112
113         getsubopt: Move AC_LIBOBJ invocations to module description.
114         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
115         gl_PREREQ_GETSUBOPT invocations from here...
116         * modules/getsubopt (configure.ac): ... to here.
117
118 2011-05-08  Bruno Haible  <bruno@clisp.org>
119
120         getpass-gnu: Move AC_LIBOBJ invocations to module description.
121         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
122         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
123         * modules/getpass-gnu (configure.ac): ... to here.
124
125 2011-05-08  Bruno Haible  <bruno@clisp.org>
126
127         getpass: Move AC_LIBOBJ invocations to module description.
128         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
129         gl_PREREQ_GETPASS invocations from here...
130         * modules/getpass (configure.ac): ... to here.
131
132 2011-05-08  Bruno Haible  <bruno@clisp.org>
133
134         getpagesize: Move AC_LIBOBJ invocations to module description.
135         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
136         from here...
137         * modules/getpagesize (configure.ac): ... to here.
138
139 2011-05-08  Bruno Haible  <bruno@clisp.org>
140
141         getopt: Move AC_LIBOBJ invocations to module description.
142         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
143         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
144         invocations from here...
145         * modules/getopt-gnu (configure.ac): ... to here.
146         * modules/getopt-posix (configure.ac): ... and here.
147         (Depends-on): Update condition.
148
149 2011-05-08  Bruno Haible  <bruno@clisp.org>
150
151         getopt, argp: Respect rules for use of AC_LIBOBJ.
152         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
153         (gl_REPLACE_GETOPT_ALWAYS): New macro.
154         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
155         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
156
157 2011-05-08  Bruno Haible  <bruno@clisp.org>
158
159         getlogin_r: Move AC_LIBOBJ invocations to module description.
160         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
161         gl_PREREQ_GETLOGIN_R invocations from here...
162         * modules/getlogin_r (configure.ac): ... to here.
163
164 2011-05-08  Bruno Haible  <bruno@clisp.org>
165
166         getlogin: Move AC_LIBOBJ invocations to module description.
167         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
168         here...
169         * modules/getlogin (configure.ac): ... to here.
170
171 2011-05-08  Bruno Haible  <bruno@clisp.org>
172
173         getloadavg: Move AC_LIBOBJ invocations to module description.
174         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
175         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
176         * modules/getloadavg (configure.ac): ... to here.
177
178 2011-05-08  Bruno Haible  <bruno@clisp.org>
179
180         gethrxtime: Move AC_LIBOBJ invocations to module description.
181         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
182         LIB_GETHRXTIME from here...
183         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
184         invocations from here...
185         * modules/gethrxtime (configure.ac): ... to here.
186
187 2011-05-08  Bruno Haible  <bruno@clisp.org>
188
189         gethostname: Move AC_LIBOBJ invocations to module description.
190         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
191         gl_PREREQ_GETHOSTNAME invocations from here...
192         * modules/gethostname (configure.ac): ... to here.
193
194 2011-05-08  Bruno Haible  <bruno@clisp.org>
195
196         getgroups: Move AC_LIBOBJ invocations to module description.
197         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
198         here...
199         * modules/getgroups (configure.ac): ... to here.
200
201 2011-05-08  Bruno Haible  <bruno@clisp.org>
202
203         getdtablesize: Move AC_LIBOBJ invocations to module description.
204         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
205         invocation from here...
206         * modules/getdtablesize (configure.ac): ... to here.
207
208 2011-05-08  Bruno Haible  <bruno@clisp.org>
209
210         getdomainname: Move AC_LIBOBJ invocations to module description.
211         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
212         gl_PREREQ_GETDOMAINNAME invocations from here...
213         * modules/getdomainname (configure.ac): ... to here.
214
215 2011-05-08  Bruno Haible  <bruno@clisp.org>
216
217         getline: Move AC_LIBOBJ invocations to module description.
218         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
219         invocations from here...
220         * modules/getline (configure.ac): ... to here.
221
222 2011-05-08  Bruno Haible  <bruno@clisp.org>
223
224         getline: Simplify.
225         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
226         It's already handled through the module dependency.
227
228 2011-05-08  Bruno Haible  <bruno@clisp.org>
229
230         getdelim: Move AC_LIBOBJ invocations to module description.
231         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
232         and gl_PREREQ_GETDELIM invocations from here...
233         * modules/getdelim (configure.ac): ... to here.
234         (Depends-on): Fix condition.
235
236 2011-05-08  Bruno Haible  <bruno@clisp.org>
237
238         getcwd: Move AC_LIBOBJ invocations to module description.
239         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
240         invocations from here...
241         * modules/getcwd (configure.ac): ... to here.
242
243 2011-05-08  Bruno Haible  <bruno@clisp.org>
244
245         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
246         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
247         here...
248         * modules/getcwd-lgpl (configure.ac): ... to here.
249
250 2011-05-07  Bruno Haible  <bruno@clisp.org>
251
252         crypto/gc: Move AC_LIBOBJ invocations to module description.
253         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
254         * modules/crypto/gc (configure.ac): ... to here.
255
256 2011-05-07  Bruno Haible  <bruno@clisp.org>
257
258         fwriting: Move AC_LIBOBJ invocations to module description.
259         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
260         here...
261         * modules/fwriting (configure.ac): ... to here.
262
263 2011-05-07  Bruno Haible  <bruno@clisp.org>
264
265         fwritable: Move AC_LIBOBJ invocations to module description.
266         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
267         here...
268         * modules/fwritable (configure.ac): ... to here.
269
270 2011-05-07  Bruno Haible  <bruno@clisp.org>
271
272         futimens: Move AC_LIBOBJ invocations to module description.
273         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
274         here...
275         * modules/futimens (configure.ac): ... to here.
276
277 2011-05-07  Bruno Haible  <bruno@clisp.org>
278
279         ftruncate: Move AC_LIBOBJ invocations to module description.
280         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
281         gl_PREREQ_FTRUNCATE invocations from here...
282         * modules/ftruncate (configure.ac): ... to here.
283
284 2011-05-07  Bruno Haible  <bruno@clisp.org>
285
286         fsync: Move AC_LIBOBJ invocations to module description.
287         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
288         invocations from here...
289         * modules/fsync (configure.ac): ... to here.
290
291 2011-05-07  Bruno Haible  <bruno@clisp.org>
292
293         fsusage: Move AC_LIBOBJ invocations to module description.
294         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
295         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
296         * modules/fsusage (configure.ac): ... to here.
297
298 2011-05-07  Bruno Haible  <bruno@clisp.org>
299
300         freopen: Move AC_LIBOBJ invocations to module description.
301         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
302         invocations from here...
303         * modules/freopen (configure.ac): ... to here.
304
305 2011-05-07  Bruno Haible  <bruno@clisp.org>
306
307         free: Move AC_LIBOBJ invocations to module description.
308         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
309         invocations from here...
310         * modules/free (configure.ac): ... to here.
311
312 2011-05-07  Bruno Haible  <bruno@clisp.org>
313
314         freadable: Move AC_LIBOBJ invocations to module description.
315         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
316         here...
317         * modules/freadable (configure.ac): ... to here.
318
319 2011-05-07  Bruno Haible  <bruno@clisp.org>
320
321         fpurge: Move AC_LIBOBJ invocations to module description.
322         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
323         invocations from here...
324         * modules/fpurge (configure.ac): ... to here.
325
326 2011-05-07  Bruno Haible  <bruno@clisp.org>
327
328         fpending: Move AC_LIBOBJ invocations to module description.
329         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
330         gl_FUNC_FPENDING.
331         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
332         invocations from here...
333         * modules/fpending (configure.ac): ... to here.
334
335 2011-05-07  Bruno Haible  <bruno@clisp.org>
336
337         fopen: Move AC_LIBOBJ invocations to module description.
338         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
339         invocations from here...
340         * modules/fopen (configure.ac): ... to here.
341
342 2011-05-07  Bruno Haible  <bruno@clisp.org>
343
344         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
345         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
346         gl_FUNC_FNMATCH_POSIX.
347         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
348         invocations from here...
349         * modules/fnmatch (configure.ac): ... to here.
350         * modules/fnmatch-gnu (configure.ac): ... and here.
351
352 2011-05-07  Bruno Haible  <bruno@clisp.org>
353
354         flock: Move AC_LIBOBJ invocations to module description.
355         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
356         invocations from here...
357         * modules/flock (configure.ac): ... to here.
358
359 2011-05-07  Bruno Haible  <bruno@clisp.org>
360
361         fileblocks: Move AC_LIBOBJ invocations to module description.
362         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
363         gl_PREREQ_FILEBLOCKS invocations from here...
364         * modules/fileblocks (configure.ac): ... to here.
365
366 2011-05-06  Bruno Haible  <bruno@clisp.org>
367
368         fflush: Move AC_LIBOBJ invocations to module description.
369         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
370         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
371         invocations from here...
372         * modules/fflush (configure.ac): ... to here.
373
374 2011-05-06  Bruno Haible  <bruno@clisp.org>
375
376         fdopendir: Move AC_LIBOBJ invocations to module description.
377         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
378         here...
379         * modules/fdopendir (configure.ac): ... to here.
380         (Depends-on): Improve conditions.
381
382 2011-05-06  Bruno Haible  <bruno@clisp.org>
383
384         _Exit: Move AC_LIBOBJ invocations to module description.
385         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
386         invocations from here...
387         * modules/_Exit (configure.ac): ... to here.
388
389 2011-05-21  Bruno Haible  <bruno@clisp.org>
390
391         euidaccess: Respect rules for use of AC_LIBOBJ.
392         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
394         from here...
395         * modules/euidaccess (configure.ac): ... to here.
396
397 2011-05-06  Bruno Haible  <bruno@clisp.org>
398
399         error: Move AC_LIBOBJ invocations to module description.
400         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
401         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
402         invocations from here...
403         * modules/error (configure.ac): ... to here.
404
405 2011-05-06  Bruno Haible  <bruno@clisp.org>
406
407         duplocale: Move AC_LIBOBJ invocations to module description.
408         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
409         gl_PREREQ_DUPLOCALE invocations from here...
410         * modules/duplocale (configure.ac): ... to here.
411
412 2011-05-05  Bruno Haible  <bruno@clisp.org>
413
414         dirfd: Move AC_LIBOBJ invocations to module description.
415         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
416         gl_FUNC_DIRFD.
417         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
418         here...
419         * modules/dirfd (configure.ac): ... to here.
420         (Depends-on): Fix condition.
421
422 2011-05-05  Bruno Haible  <bruno@clisp.org>
423
424         chown: Respect rules for use of AC_LIBOBJ.
425         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
426         * modules/chown (configure.ac): ... to here.
427
428 2011-05-05  Bruno Haible  <bruno@clisp.org>
429
430         chdir-long: Move AC_LIBOBJ invocations to module description.
431         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
432         gl_PREREQ_CHDIR_LONG invocations from here...
433         * modules/chdir-long (configure.ac): ... to here.
434
435 2011-05-05  Bruno Haible  <bruno@clisp.org>
436
437         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
438         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
439         from here...
440         * modules/canonicalize-lgpl (configure.ac): ... to here.
441
442 2011-05-05  Bruno Haible  <bruno@clisp.org>
443
444         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
445         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
446         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
447         REPLACE_CALLOC.
448         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
449         * modules/calloc-gnu (configure.ac): Likewise.
450
451 2011-05-05  Bruno Haible  <bruno@clisp.org>
452
453         btowc: Move AC_LIBOBJ invocations to module description.
454         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
455         invocations from here...
456         * modules/btowc (configure.ac): ... to here.
457
458 2011-05-21  Bruno Haible  <bruno@clisp.org>
459
460         atexit: Move AC_LIBOBJ invocations to module description.
461         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
462         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
463         here...
464         * modules/atexit (configure.ac): ... to here.
465
466 2011-05-05  Bruno Haible  <bruno@clisp.org>
467
468         atoll: Move AC_LIBOBJ invocations to module description.
469         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
470         invocations from here...
471         * modules/atoll (configure.ac): ... to here.
472
473 2011-05-05  Bruno Haible  <bruno@clisp.org>
474
475         argz: Move AC_LIBOBJ invocations to module description.
476         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
477         * modules/argz (configure.ac): ... to here.
478
479 2011-05-05  Bruno Haible  <bruno@clisp.org>
480
481         alphasort: Move AC_LIBOBJ invocations to module description.
482         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
483         gl_PREREQ_ALPHASORT invocations from here...
484         * modules/alphasort (configure.ac): ... to here.
485
486 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
487
488         verify: new macro verify_expr; verify_true deprecated
489         * NEWS: Mention this.
490         * doc/verify.texi (Compile-time Assertions): Document this.
491         * lib/verify.h (verify_true): Deprecate.
492         (verify_expr): New macro.
493         * tests/test-verify.c (function): Test verify_expr.
494
495 2011-06-14  Jim Meyering  <meyering@redhat.com>
496
497         init.sh: give more portable redirection-related advice in a comment
498         * tests/init.sh (stderr_fileno_): Update the advice in comments.
499         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
500         for lots of discussion.  Stefano Lattarini suggested the solution
501         of putting "9>&2" after the command.  Reported by Bruno Haible.
502
503 2011-06-13  Bruno Haible  <bruno@clisp.org>
504
505         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
506         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
507         'none'.
508
509 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
510
511         ftoastr: use strtof only if HAVE_STRTOF
512         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
514         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
515         * modules/ftoastr (configure.ac): Check for strtof.
516
517 2011-06-13  Bruno Haible  <bruno@clisp.org>
518
519         gnulib-tool: Addendum to 2011-06-08 commit.
520         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
521         and --witness-c-macro have been given, augment AM_CPPFLAGS.
522
523 2011-06-13  Bruno Haible  <bruno@clisp.org>
524
525         fseeko: Provide a non-inline replacement of fseek().
526         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
527         * modules/fseeko (Depends-on): Add fseek.
528         * modules/fseek (License): Change to LGPLv2+.
529
530 2011-06-13  Bruno Haible  <bruno@clisp.org>
531
532         ftello: Provide a non-inline replacement of ftell().
533         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
534         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
535         not have ftello() (such as on mingw).
536         * modules/ftello (Depends-on): Add ftell.
537         * modules/ftell (License): Change to LGPLv2+.
538
539 2011-05-07  Bruno Haible  <bruno@clisp.org>
540
541         ftell: Move AC_LIBOBJ invocations to module description.
542         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
543         * modules/ftell (configure.ac): ... to here.
544
545 2011-05-07  Bruno Haible  <bruno@clisp.org>
546
547         ftello: Respect rules for use of AC_LIBOBJ.
548         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
549         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
550         here...
551         * modules/ftello (configure.ac): ... to here.
552
553 2011-05-07  Bruno Haible  <bruno@clisp.org>
554
555         fseeko: Simplify.
556         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
557         (gl_FUNC_FSEEKO): Inline it here.
558
559 2011-05-07  Bruno Haible  <bruno@clisp.org>
560
561         fseek: Move AC_LIBOBJ invocations to module description.
562         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
563         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
564         * modules/fseek (configure.ac): ... to here.
565
566 2011-05-07  Bruno Haible  <bruno@clisp.org>
567
568         fseek: Respect rules for use of AC_LIBOBJ.
569         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
570         here...
571         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
572
573 2011-05-07  Bruno Haible  <bruno@clisp.org>
574
575         fseeko: Respect rules for use of AC_LIBOBJ.
576         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
577         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
578         here...
579         * modules/fseeko (configure.ac): ... to here.
580
581 2011-06-13  Bruno Haible  <bruno@clisp.org>
582
583         gnulib-tool: Allow comments in the 'Depends-on' section.
584         * doc/gnulib.texi (Module description): Mention comment syntax in the
585         Depends-on section.
586         * gnulib-tool (func_get_dependencies): Filter out comment lines.
587
588 2011-06-13  Bruno Haible  <bruno@clisp.org>
589
590         file-set.h: guard __attibute__ use, now that it's not always defined
591         * lib/file-set.h (record_file): Use __attribute__ only with compiler
592         versions that support it.  This fixes a coreutils build failure with
593         the vendor cc on HP-UX 11.31.
594
595 2011-06-12  Bruno Haible  <bruno@clisp.org>
596
597         acl: Add support for HP-UX >= 11.11 JFS ACLs.
598         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
599         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
600         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
601         (acl, aclsort): New declarations.
602         (aclv_nontrivial): New declaration.
603         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
604         (file_has_acl): Read also the second kind of HP-UX ACLs.
605         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
606         kind of HP-UX ACLs if the first kind fails.
607         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
608         second kind of HP-UX ACLs.
609         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
610         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
611         agree.
612         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
613         hpuxjfs.
614         Handle hpuxjfs.
615         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
616         hpuxjfs.
617         Handle hpuxjfs.
618         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
619         (func_test_same_acls): Use both lsacl and getacl.
620         Handle hpuxjfs.
621         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
622         (func_test_same_acls): Use both lsacl and getacl.
623         Handle hpuxjfs.
624
625 2011-06-12  Bruno Haible  <bruno@clisp.org>
626
627         acl: Complete the 2010-08-10 fix.
628         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
629         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
630         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
631         explicitly.
632         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
633         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
634
635 2011-06-12  Bruno Haible  <bruno@clisp.org>
636
637         spawn-pipe tests: Comments.
638         * tests/test-spawn-pipe-child.c (main): Update comment.
639         Reported by James Youngman <jay@gnu.org>.
640
641 2011-06-11  James Youngman  <jay@gnu.org>
642
643         New module 'stat-size'.
644         * modules/stat-size: New module.  Provides macros for accessing
645         file size information in instances of struct stat.  Depends on the
646         fileblocks module because it calls st_blocks.
647         * lib/stat-size.h: New file, adapted from coreutils' system.h.
648         * doc/gnulib.texi: Include stat-size.texi.
649         * doc/stat-size.texi: Documentation for this module.
650         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
651         * m4/fileblocks.m4: Mention that stat-size depends on the call to
652         AC_STRUCT_ST_BLOCKS.
653
654 2011-06-09  Bruno Haible  <bruno@clisp.org>
655
656         thread: Support pthreads-win32.
657         * lib/glthread/thread.h (gl_thread_self): Define differently on
658         pthreads-win32.
659         (gl_null_thread): New declaration.
660         (gl_thread_self_pointer): New macro.
661         * lib/glthread/thread.c (gl_null_thread): New constant.
662         * tests/test-lock.c: Use gl_thread_self_pointer instead of
663         gl_thread_self.
664         * tests/test-tls.c: Likewise.
665         Suggested by Paul Eggert. Reported by Eric Blake.
666
667 2011-06-09  Bruno Haible  <bruno@clisp.org>
668
669         thread: Fix confusion between NULL and 0.
670         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
671         Reported by Paul Eggert.
672
673 2011-06-09  Bruno Haible  <bruno@clisp.org>
674
675         spawn-pipe tests: Avoid test failure on HP-UX 11.
676         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
677         is closed.
678
679 2011-06-09  Bruno Haible  <bruno@clisp.org>
680
681         acl tests: Fix compilation error on HP-UX 11.
682         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
683
684 2011-06-09  Bruno Haible  <bruno@clisp.org>
685
686         rmdir: Avoid test failure on HP-UX 10.20.
687         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
688         EEXIST.
689
690 2011-06-08  Eric Blake  <eblake@redhat.com>
691
692         perror: fix test on mingw
693         * modules/perror-tests (Depends-on): Add dup2.
694
695         strerror_r-posix: fix on MacOS
696         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
697         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
698         logic bug.
699         * lib/strerror_r.c (strerror_r): Fix the bug.
700         * lib/strerror.c (strerror): Likewise.
701         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
702         problem.
703         * doc/posix-functions/strerror.texi (strerror): Likewise.
704         * doc/posix-functions/perror.texi (perror): Likewise.
705         * tests/test-strerror.c (main): Enhance test.
706         * tests/test-strerror_r.c (main): Likewise.
707
708 2011-06-08  Bruno Haible  <bruno@clisp.org>
709
710         gnulib-tool: Better isolation between different gnulib-tool invocations.
711         * gnulib-tool: New option --witness-c-macro.
712         (witness_c_macro): New variable.
713         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
714         AM_CPPFLAGS define it as a C macro.
715         (func_emit_tests_Makefile_am): Likewise.
716         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
717         read it from there.
718         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
719         m4_define, not AC_DEFUN.
720         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
721         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
722         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
723         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
724         s|...|...|, to substitute the values of the GNULIB_* module indicator
725         variables.
726         * modules/dirent (Makefile.am): Likewise.
727         * modules/fcntl-h (Makefile.am): Likewise.
728         * modules/iconv-h (Makefile.am): Likewise.
729         * modules/langinfo (Makefile.am): Likewise.
730         * modules/locale (Makefile.am): Likewise.
731         * modules/math (Makefile.am): Likewise.
732         * modules/netdb (Makefile.am): Likewise.
733         * modules/poll-h (Makefile.am): Likewise.
734         * modules/pty (Makefile.am): Likewise.
735         * modules/search (Makefile.am): Likewise.
736         * modules/signal (Makefile.am): Likewise.
737         * modules/spawn (Makefile.am): Likewise.
738         * modules/stdio (Makefile.am): Likewise.
739         * modules/stdlib (Makefile.am): Likewise.
740         * modules/string (Makefile.am): Likewise.
741         * modules/sys_ioctl (Makefile.am): Likewise.
742         * modules/sys_select (Makefile.am): Likewise.
743         * modules/sys_socket (Makefile.am): Likewise.
744         * modules/sys_stat (Makefile.am): Likewise.
745         * modules/sys_times (Makefile.am): Likewise.
746         * modules/sys_utsname (Makefile.am): Likewise.
747         * modules/sys_wait (Makefile.am): Likewise.
748         * modules/termios (Makefile.am): Likewise.
749         * modules/time (Makefile.am): Likewise.
750         * modules/unistd (Makefile.am): Likewise.
751         * modules/wchar (Makefile.am): Likewise.
752
753 2011-06-08  Eric Blake  <eblake@redhat.com>
754
755         strerror: simplify replacement
756         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
757         * modules/strerror (configure.ac): No prereqs needed here...
758         * modules/strerror-override (configure.ac): ...but this needs it.
759         (Files): Add file for needed prereq macro.
760
761 2011-06-08  Bruno Haible  <bruno@clisp.org>
762
763         strerror_r-posix: Tweaks.
764         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
765         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
766         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
767         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
768         (gl_FUNC_STRERROR_R): ... to here.
769         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
770
771 2011-06-07  Eric Blake  <eblake@redhat.com>
772
773         perror: document fixed bugs
774         * doc/posix-functions/perror.texi (perror): Document recent
775         patches.
776
777 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
778
779         stat-time: get_stat_birthtime failure is better-defined
780         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
781         return a timestamp whose tv_sec and tv_nsec values are both -1.
782         Previously, the spec said only that the tv_nsec value was negative.
783         This upward-compatible change simplifies GNU tar a bit.
784
785 2011-06-07  Eric Blake  <eblake@redhat.com>
786
787         strerror_r-posix: work around cygwin 1.7.9
788         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
789         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
790         bug without replacing strerror_r.
791         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
792         strerror_r is buggy, but without requiring strerror_r compilation.
793         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
794
795         test-perror: relax test to ignore cygwin bug
796         * tests/test-perror2.c (main): Relax test on requiring detection
797         of stream errors, and use unbuffered stream.
798         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
799         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
800         * doc/posix-functions/fputc.texi (fputc): Likewise.
801         * doc/posix-functions/fputs.texi (fputs): Likewise.
802         * doc/posix-functions/fputws.texi (fputws): Likewise.
803         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
804         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
805         * doc/posix-functions/getopt.texi (getopt): Likewise.
806         * doc/posix-functions/perror.texi (perror): Likewise.
807         * doc/posix-functions/printf.texi (printf): Likewise.
808         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
809         * doc/posix-functions/psignal.texi (psignal): Likewise.
810         * doc/posix-functions/putc.texi (putc): Likewise.
811         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
812         Likewise.
813         * doc/posix-functions/putchar.texi (putchar): Likewise.
814         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
815         Likewise.
816         * doc/posix-functions/puts.texi (puts): Likewise.
817         * doc/posix-functions/putwc.texi (putwc): Likewise.
818         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
819         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
820         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
821         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
822         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
823         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
824         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
825         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
826
827 2011-05-22  Bruno Haible  <bruno@clisp.org>
828
829         strerror: Move AC_LIBOBJ invocations to module description.
830         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
831         gl_PREREQ_STRERROR invocations from here...
832         * modules/strerror (configure.ac): ... to here.
833
834 2011-05-21  Bruno Haible  <bruno@clisp.org>
835
836         perror: Use common idiom.
837         * modules/perror (configure.ac): Reorder statements.
838
839 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
840
841         tests: fix usage message in 'mktempd_'
842         * tests/init.sh (mktempd_): In the usage message, use literal
843         'mktempd_', not '$ME' (which is even undefined), as the name of
844         the subroutine.
845
846 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
847
848         tests init: new function 'fatal_', for hard errors
849         Before this patch, the only way offered by tests/init.sh to
850         properly signal a hard error was the `framework_failure_'
851         function.  But the error message issued by that function,
852         as its name would suggest, refers to a set-up failure in the
853         testsuite, while hard errors can obviously also be due to
854         other reasons.  The best way to fix this inconsistency is to
855         introduce a new function with a more general error message.
856         * tests/init.sh (fatal_): New function.
857
858 2011-06-06  Eric Blake  <eblake@redhat.com>
859
860         canonicalize-lgpl: use common idiom
861         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
862         over newer POSIX -Rf.
863         Reported by Bruno Haible.
864
865         canonicalize-lgpl: work around AIX realpath bug
866         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
867         * doc/posix-functions/realpath.texi (realpath): Document it.
868         Reported by Bruno Haible.
869
870         strerror: work around FreeBSD bug
871         * lib/strerror.c (strerror): Special case 0.
872         Reported by Bruno Haible.
873
874         strerror-override: avoid bloating errno module
875         * modules/errno (Files, configure.ac): Move replacement strings...
876         * modules/strerror-override: ...to new module.
877         * modules/strerror (Depends-on): Add strerror-override.
878         * modules/strerror_r-posix (Depends-on): Likewise.
879         * MODULES.html.sh: Document new module.
880         Reported by Bruno Haible.
881
882 2011-06-06  Bruno Haible  <bruno@clisp.org>
883
884         spawn-pipe tests: Rename program.
885         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
886         * tests/test-spawn-pipe-child.c: Update comment.
887         * tests/test-spawn-pipe.sh: Update.
888         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
889
890         spawn-pipe tests: Link the child program only against libc.
891         * tests/test-spawn-pipe-child.c: New file, extracted from
892         tests/test-spawn-pipe.c.
893         (main): Expect only one argument.
894         (is_open): New function, copied from tests/test-pipe.c.
895         * tests/test-spawn-pipe.c: Don't include <errno.h>.
896         (child_main): Remove function.
897         (test_pipe): Pass only one argument to the child program.
898         (main): Remove child process code. Expect the child program's name as
899         first argument.
900         * tests/test-spawn-pipe.sh: Pass the child program's name as first
901         argument.
902         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
903         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
904         test-spawn-pipe-child against no libraries.
905
906 2011-06-06  Bruno Haible  <bruno@clisp.org>
907
908         careadlinkat: Avoid mismatch between ssize_t and int.
909         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
910         * lib/careadlinkat.c (careadlinkatcwd): Define always.
911
912 2011-06-06  Jim Meyering  <meyering@redhat.com>
913
914         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
915         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
916         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
917
918 2011-06-05  Bruno Haible  <bruno@clisp.org>
919
920         ansi-c++-opt: Interoperability with libtool.
921         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
922         set the variable to "no", not to ":".
923         * NEWS: Mention the change.
924
925 2011-06-05  Bruno Haible  <bruno@clisp.org>
926
927         acl: Fix test failure on AIX 7.
928         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
929         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
930
931 2011-06-05  Bruno Haible  <bruno@clisp.org>
932
933         pipe-filter-ii: Fix test failure on AIX and IRIX.
934         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
935         with EAGAIN, retry with a smaller buffer size.
936
937 2011-06-05  Bruno Haible  <bruno@clisp.org>
938
939         localename: Fix link dependencies.
940         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
941         * modules/localename-tests (Makefile.am): Link test-localename with
942         $(LIBTHREAD).
943
944 2011-06-05  Bruno Haible  <bruno@clisp.org>
945
946         error: Avoid gcc warning.
947         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
948
949 2011-06-05  Bruno Haible  <bruno@clisp.org>
950
951         unsetenv: Avoid gcc warning.
952         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
953
954 2011-06-05  Bruno Haible  <bruno@clisp.org>
955
956         setenv: Avoid gcc warning.
957         * lib/setenv.c (setenv): Provide declaration if system lacks it.
958
959 2011-06-05  Bruno Haible  <bruno@clisp.org>
960
961         sys_select: Ensure memset is declared also on AIX 7.
962         * lib/sys_select.in.h: Include <string.h> also on AIX.
963         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
964         self-contained also on AIX 7.1.
965
966 2011-06-04  Jim Meyering  <meyering@redhat.com>
967
968         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
969         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
970         function name, "error".
971         (_gl_translatable_diag_func_re): New configurable variable.
972
973 2011-06-04  Bruno Haible  <bruno@clisp.org>
974
975         getopt: Avoid gcc warning.
976         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
977
978 2011-06-04  Bruno Haible  <bruno@clisp.org>
979
980         strerror_r: Fix comments.
981         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
982         commit.
983
984 2011-06-04  Bruno Haible  <bruno@clisp.org>
985
986         perror: Fix compilation error.
987         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
988         Undefine fprintf, not sprintf.
989         * modules/perror (Depends-on): Remove intprops, verify.
990
991 2011-06-04  Bruno Haible  <bruno@clisp.org>
992
993         setlocale: Enable replacement on Cygwin 1.5.
994         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
995         Cygwin 1.5.x.
996         * doc/posix-functions/setlocale.texi: Mention that the problem with the
997         LC_CTYPE category also exists on Cygwin 1.5.x.
998
999 2011-06-04  Bruno Haible  <bruno@clisp.org>
1000
1001         strerror-override: Don't disable symbol renamings.
1002         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
1003         * lib/strerror-override.c: Include config.h.
1004         (strerror_override): Don't undefine.
1005
1006 2011-06-03  Bruno Haible  <bruno@clisp.org>
1007
1008         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
1009         * lib/localename.h: Update copyright header.
1010         * lib/localename.c: Likewise.
1011         * lib/relocatable.h: Likewise.
1012         * lib/relocatable.c: Likewise.
1013
1014 2011-06-02  Bruno Haible  <bruno@clisp.org>
1015
1016         doc: Fix a module name.
1017         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
1018
1019 2011-06-02  Bruno Haible  <bruno@clisp.org>
1020
1021         pipe2: Remove dependency on 'nonblocking' module.
1022         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
1023         O_NONBLOCK is defined by gnulib.
1024         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
1025         is zero.
1026         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
1027         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
1028         defined by gnulib.
1029         (get_nonblocking_flag): New function.
1030         (main): Test O_NONBLOCK flag only if it is nonzero.
1031         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
1032
1033 2011-06-03  Jim Meyering  <meyering@redhat.com>
1034
1035         maint: three new prohibit-header-without-use rules
1036         Prohibit use of cloexec.h, posixver.h, same.h without use.
1037         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
1038         (sc_prohibit_posixver_without_use): Likewise.
1039         (sc_prohibit_same_without_use): Likewise.
1040
1041 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1042
1043         allocator: 'die' routine is now given requested size
1044         * lib/allocator.h (struct allocator.die): New size arg.
1045         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
1046         If the actual problem is an ssize_t limitation, not a size_t or
1047         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
1048
1049 2011-06-01  Eric Blake  <eblake@redhat.com>
1050
1051         strerror: drop strerror_r dependency
1052         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
1053         * lib/strerror-override.c (strerror_override): ...to new file.
1054         * lib/strerror-override.h: Add prototype.
1055         * lib/strerror-impl.h: Delete.
1056         * lib/strerror.c (strerror): New implementation.
1057         * modules/errno (Files): Add new files.
1058         (configure.ac): Compile new file as appropriate.
1059         * modules/strerror (Files): Drop unused file.
1060         (Depends-on): Drop strerror_r-posix.
1061         * MODULES.html.sh: Document strerror_r-posix.
1062         Requested by Sam Steingold.
1063
1064         perror: call strerror_r directly
1065         * modules/perror (Files): Drop strerror-impl.h.
1066         * lib/perror.c (perror): Use our own stack buffer, rather than
1067         calling a wrapper that uses static storage.
1068         * doc/posix-functions/perror.texi (perror): Document a limitation
1069         of our replacement.
1070
1071         strerror_r: fix includes for FreeBSD
1072         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
1073         since we use abort on some platforms.
1074         Reported by Matthias Bolte.
1075
1076 2011-05-31  Bruno Haible  <bruno@clisp.org>
1077
1078         Fix link errors in tests: openat-die uses gettext-h.
1079         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
1080         against $(LIBINTL).
1081         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
1082         against $(LIBINTL).
1083         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
1084         $(LIBINTL).
1085         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
1086         against $(LIBINTL).
1087         * modules/linkat-tests (Makefile.am): Link test-linkat against
1088         $(LIBINTL).
1089         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
1090         $(LIBINTL).
1091         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
1092         against $(LIBINTL).
1093         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
1094         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
1095         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
1096         $(LIBINTL).
1097         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
1098         $(LIBINTL).
1099         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
1100         $(LIBINTL).
1101         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1102
1103 2011-05-31  Bruno Haible  <bruno@clisp.org>
1104
1105         Fix link errors in tests: wait-process uses gettext-h.
1106         * modules/nonblocking-pipe-tests (Makefile.am): Set
1107         test_nonblocking_pipe_main_LDADD.
1108         * modules/nonblocking-socket-tests (Makefile.am): Link
1109         test-nonblocking-socket-main against $(LIBINTL).
1110         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1111
1112 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1113
1114         assert-h: work around 'verify' incompatibility
1115         * lib/verify.h: Use @...@ directives, not ifdef.
1116         * modules/assert-h (assert.h): Implement the directives.
1117         (assert.h): Substitute the symbol-prefix more consistently.
1118
1119 2011-05-29  Jim Meyering  <meyering@redhat.com>
1120
1121         trim: remove three superfluous assignments
1122         * lib/trim.c (trim2): Remove three superfluous assignments
1123         and correct brace positioning.
1124
1125 2011-05-29  Bruno Haible  <bruno@clisp.org>
1126
1127         wctype-h: Avoid namespace pollution on Solaris 2.6.
1128         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
1129         identifiers.
1130         * doc/posix-headers/wctype.texi: Mention the problem.
1131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1132
1133 2011-05-28  Jim Meyering  <meyering@redhat.com>
1134
1135         parse-datetime.y: accommodate -Wstrict-overflow
1136         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
1137         placate -Wstrict-overflow.
1138
1139         trim: avoid a warning from -O2 -Wstrict-overflow
1140         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
1141
1142 2011-05-29  Bruno Haible  <bruno@clisp.org>
1143
1144         gnulib-tool: Fix bug in yesterday's commit.
1145         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
1146         twice.
1147
1148 2011-05-29  Bruno Haible  <bruno@clisp.org>
1149
1150         Allow multiple gnulib generated include files to be combined.
1151         * gnulib-tool (func_compute_include_guard_prefix): New function.
1152         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
1153         ${gl_include_guard_prefix} references.
1154         (func_import, func_create_testdir): Invoke
1155         func_compute_include_guard_prefix.
1156         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
1157         * lib/ctype.in.h: Likewise.
1158         * lib/dirent.in.h: Likewise.
1159         * lib/errno.in.h: Likewise.
1160         * lib/fcntl.in.h: Likewise.
1161         * lib/float.in.h: Likewise.
1162         * lib/getopt.in.h: Likewise.
1163         * lib/iconv.in.h: Likewise.
1164         * lib/langinfo.in.h: Likewise.
1165         * lib/locale.in.h: Likewise.
1166         * lib/math.in.h: Likewise.
1167         * lib/netdb.in.h: Likewise.
1168         * lib/netinet_in.in.h: Likewise.
1169         * lib/poll.in.h: Likewise.
1170         * lib/pthread.in.h: Likewise.
1171         * lib/pty.in.h: Likewise.
1172         * lib/sched.in.h: Likewise.
1173         * lib/se-selinux.in.h: Likewise.
1174         * lib/search.in.h: Likewise.
1175         * lib/signal.in.h: Likewise.
1176         * lib/spawn.in.h: Likewise.
1177         * lib/stdarg.in.h: Likewise.
1178         * lib/stddef.in.h: Likewise.
1179         * lib/stdint.in.h: Likewise.
1180         * lib/stdio.in.h: Likewise.
1181         * lib/stdlib.in.h: Likewise.
1182         * lib/string.in.h: Likewise.
1183         * lib/strings.in.h: Likewise.
1184         * lib/sys_file.in.h: Likewise.
1185         * lib/sys_ioctl.in.h: Likewise.
1186         * lib/sys_select.in.h: Likewise.
1187         * lib/sys_socket.in.h: Likewise.
1188         * lib/sys_stat.in.h: Likewise.
1189         * lib/sys_time.in.h: Likewise.
1190         * lib/sys_times.in.h: Likewise.
1191         * lib/sys_uio.in.h: Likewise.
1192         * lib/sys_utsname.in.h: Likewise.
1193         * lib/sys_wait.in.h: Likewise.
1194         * lib/sysexits.in.h: Likewise.
1195         * lib/termios.in.h: Likewise.
1196         * lib/time.in.h: Likewise.
1197         * lib/unistd.in.h: Likewise.
1198         * lib/wchar.in.h: Likewise.
1199         * lib/wctype.in.h: Likewise.
1200         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
1201         * modules/ctype (Makefile.am): Likewise.
1202         * modules/dirent (Makefile.am): Likewise.
1203         * modules/errno (Makefile.am): Likewise.
1204         * modules/fcntl-h (Makefile.am): Likewise.
1205         * modules/float (Makefile.am): Likewise.
1206         * modules/getopt-posix (Makefile.am): Likewise.
1207         * modules/iconv-h (Makefile.am): Likewise.
1208         * modules/langinfo (Makefile.am): Likewise.
1209         * modules/locale (Makefile.am): Likewise.
1210         * modules/math (Makefile.am): Likewise.
1211         * modules/netdb (Makefile.am): Likewise.
1212         * modules/netinet_in (Makefile.am): Likewise.
1213         * modules/poll-h (Makefile.am): Likewise.
1214         * modules/pthread (Makefile.am): Likewise.
1215         * modules/pty (Makefile.am): Likewise.
1216         * modules/sched (Makefile.am): Likewise.
1217         * modules/search (Makefile.am): Likewise.
1218         * modules/selinux-h (Makefile.am): Likewise.
1219         * modules/signal (Makefile.am): Likewise.
1220         * modules/spawn (Makefile.am): Likewise.
1221         * modules/stdarg (Makefile.am): Likewise.
1222         * modules/stddef (Makefile.am): Likewise.
1223         * modules/stdint (Makefile.am): Likewise.
1224         * modules/stdio (Makefile.am): Likewise.
1225         * modules/stdlib (Makefile.am): Likewise.
1226         * modules/string (Makefile.am): Likewise.
1227         * modules/strings (Makefile.am): Likewise.
1228         * modules/sys_file (Makefile.am): Likewise.
1229         * modules/sys_ioctl (Makefile.am): Likewise.
1230         * modules/sys_select (Makefile.am): Likewise.
1231         * modules/sys_socket (Makefile.am): Likewise.
1232         * modules/sys_stat (Makefile.am): Likewise.
1233         * modules/sys_time (Makefile.am): Likewise.
1234         * modules/sys_times (Makefile.am): Likewise.
1235         * modules/sys_uio (Makefile.am): Likewise.
1236         * modules/sys_utsname (Makefile.am): Likewise.
1237         * modules/sys_wait (Makefile.am): Likewise.
1238         * modules/sysexits (Makefile.am): Likewise.
1239         * modules/termios (Makefile.am): Likewise.
1240         * modules/time (Makefile.am): Likewise.
1241         * modules/unistd (Makefile.am): Likewise.
1242         * modules/wchar (Makefile.am): Likewise.
1243         * modules/wctype-h (Makefile.am): Likewise.
1244         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1245
1246 2011-05-29  Bruno Haible  <bruno@clisp.org>
1247
1248         assert-h: Allow multiple gnulib generated replacements to coexist.
1249         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1250
1251 2011-05-29  Bruno Haible  <bruno@clisp.org>
1252
1253         argp: Allow coexistence with strerror_r-posix module.
1254         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1255         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1256         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1257         not the glibc signature.
1258
1259 2011-05-28  Bruno Haible  <bruno@clisp.org>
1260
1261         gnulib-tool: Alternative structure of testdirs, similar to --import.
1262         * gnulib-tool: New option --single-configure.
1263         (func_usage): Document it.
1264         (single_configure): New variable.
1265         (func_modules_transitive_closure_separately,
1266         func_modules_transitive_closure_separately,
1267         func_determine_use_libtests, func_modules_add_dummy_separately,
1268         func_modules_to_filelist_separately): New functions, extracted from
1269         func_import.
1270         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1271         (func_import): Use the new functions.
1272         (func_create_testdir): Set final_modules. Handle $single_configure =
1273         true case.
1274
1275 2011-05-28  Bruno Haible  <bruno@clisp.org>
1276
1277         getloadavg: Remove an unreliable safety check.
1278         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1279         getloadavg.c is in place.
1280         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1281         Reported by Sam Steingold <sds@gnu.org>.
1282
1283 2011-05-28  Bruno Haible  <bruno@clisp.org>
1284
1285         doc: Cleanup yet another file produced by texinfo.tex.
1286         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1287
1288 2011-05-28  Bruno Haible  <bruno@clisp.org>
1289
1290         Finish the conditional dependencies mechanism.
1291         * gnulib-tool: New option --no-conditional-dependencies.
1292         (func_usage): Document it. Don't mark --conditional-dependencies as
1293         experimental.
1294         (cond_dependencies): The possible values can now be true, false, empty.
1295         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1296         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1297         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1298
1299 2011-05-28  Bruno Haible  <bruno@clisp.org>
1300
1301         doc: Use a recent texinfo.tex.
1302         * doc/Makefile (tex_opts): New variable.
1303         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1304
1305 2011-05-28  Jim Meyering  <meyering@redhat.com>
1306
1307         intprops.h: adjust comment to match code change
1308         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1309         only once, it *may* have side effects.  Also fix an unrelated typo.
1310         (_GL_INT_SIGNED): Likewise.
1311
1312 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1313
1314         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1315
1316 2011-05-26  Bruno Haible  <bruno@clisp.org>
1317
1318         mbsrchr: Avoid collision with system function on Interix.
1319         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1320         Reported by Markus Duft <mduft@gentoo.org>.
1321
1322 2011-05-15  James Youngman  <jay@gnu.org>
1323
1324         getopt: for ambiguous options, enumerate the possibilities.
1325         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1326         the ambiguous options when an ambiguous prefix is given. This was
1327         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1328         glibc change was
1329         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1330
1331 2011-05-25  Eric Blake  <eblake@redhat.com>
1332
1333         getcwd: work around mingw bug
1334         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1335         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1336         Reported by Matthias Bolte.
1337
1338 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1339
1340         test-intprops: disable -Wtype-limits diagnostics
1341         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1342         diagnostics.  Otherwise, the integer overflow macros generate many
1343         diagnostics.  Reported by Jim Meyering in
1344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1345
1346         intprops: shorten, to pacify gcc -Woverlength-strings
1347         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1348         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1349         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1350         likely to run afoul of C compiler limits for string constant lengths.
1351         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1352
1353 2011-05-24  Eric Blake  <eblake@redhat.com>
1354
1355         docs: document recently fixed glibc printf bug
1356         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1357         * doc/posix-functions/printf.texi (printf): Likewise.
1358         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1359         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1360
1361         closein-tests: convert to init.sh
1362         * modules/closein-tests (Files): Add init.sh
1363         * tests/test-closein.sh Use it.
1364
1365         yesno-tests: convert to init.sh
1366         * modules/yesno-tests (Files): Add init.sh.
1367         * tests/test-yesno.sh: Use it.
1368
1369         atexit-tests: ensure reliable exit status
1370         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1371         Reported by Bruno Haible.
1372
1373 2011-05-24  Bruno Haible  <bruno@clisp.org>
1374
1375         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1376         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1377         gl_PREREQ_STRERROR_R invocations from here...
1378         * modules/strerror_r-posix (configure.ac): ... to here.
1379
1380 2011-05-24  Eric Blake  <eblake@redhat.com>
1381
1382         strerror_r: fix missing header
1383         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1384
1385         strerror_r: fix AIX test failures
1386         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1387         ERANGE failure.
1388
1389         strerror_r: fix Solaris test failures
1390         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1391         failures.
1392         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1393
1394         strerror_r: enforce POSIX recommendations
1395         * lib/strerror_r.c (safe_copy): New helper method.
1396         (strerror_r): Guarantee a non-empty string.
1397         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1398         recent POSIX rulings and to match our strerror guarantees.
1399         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1400
1401 2011-05-24  Jim Meyering  <meyering@redhat.com>
1402
1403         test-perror2.c: avoid warning about unused variable
1404         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1405
1406 2011-05-24  Eric Blake  <eblake@redhat.com>
1407
1408         perror: avoid spurious test failure on HP-UX
1409         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1410
1411         tests: fix logic bug in init.sh
1412         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1413         shell.
1414
1415 2011-05-24  Jim Meyering  <meyering@redhat.com>
1416
1417         utimensat: do not reference an out-of-scope buffer
1418         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1419         declared in an inner scope, yet "times" would be dereferenced outside
1420         the scope in which "ts" was valid.
1421         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1422         of ts[2] "out/up", so that the use of aliased "times" (via
1423         "times = ts;") does not end up referencing an out-of-scope "ts"
1424
1425         opendir-safer.c: don't clobber errno; don't close negative FD
1426         * lib/opendir-safer.c (opendir_safer):
1427         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1428         file descriptor, and more importantly, don't clobber the
1429         offending errno value with EINVAL.  Before, upon failure
1430         of dup_safer, we would pass the negative file descriptor to
1431         fdopendir, which would clobber errno.
1432
1433 2011-05-23  Bruno Haible  <bruno@clisp.org>
1434
1435         idcache: Fix module description.
1436         * modules/idcache (Include): Set to "idcache.h".
1437
1438 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1439
1440         gnulib-tool: fix portability problem with MacOS sed
1441         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1442         before the "}".  Problem reported by Leo in
1443         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1444         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1445         sed_extract_condition1, sed_extract_condition2.
1446
1447 2011-05-23  Bruno Haible  <bruno@clisp.org>
1448
1449         hash: Simplify autoconf macro.
1450         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1451
1452 2011-05-23  Bruno Haible  <bruno@clisp.org>
1453
1454         getugroups: Fix module description.
1455         * modules/getugroups (Include): Set to "getugroups.h".
1456
1457 2011-05-23  Bruno Haible  <bruno@clisp.org>
1458
1459         linkat: Simplify autoconf macro.
1460         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1461
1462 2011-05-23  Bruno Haible  <bruno@clisp.org>
1463             Eric Blake  <eblake@redhat.com>
1464
1465         linkat, renameat: Update dependencies.
1466         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1467         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1468         symlinkat.
1469
1470 2011-05-23  Jim Meyering  <meyering@redhat.com>
1471
1472         maint.mk: more tight_scope improvements
1473         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1474         (_gl_TS_headers): Define only in if-0'd block.
1475         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1476         sometimes we must *not* use it.  Adjust uses accordingly.
1477         (sc_tight_scope): Use much simpler grep-based test to determine
1478         whether we skip this rule.
1479
1480         maint.mk: generalize/improve the tight-scope rule
1481         * top/maint.mk: Emit a warning when the test is skipped.
1482         (_gl_TS_dir): Add $(srcdir)/ prefix.
1483         (_gl_TS_function_match): Simplify, rather than trying
1484         to enumerate common types.  Otherwise, it would fail to match an
1485         "extern unsigned char const *" declaration in idutils.
1486         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1487         a way to support use of that type of macro.
1488         (_gl_TS_var_match): Simplify regexp.
1489         (_gl_TS_obj_files): New configurable variable.
1490         (_gl_TS_headers): Likewise.
1491
1492 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1493
1494         verify: fix bug when gnulib <assert.h> is also included
1495         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1496         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1497         Perhaps there's a better way, but this fixes the immediate problem.
1498         Problem reported by Bruno Haible in
1499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1500
1501 2011-05-22  Bruno Haible  <bruno@clisp.org>
1502
1503         xgetcwd: Simplify autoconf macro.
1504         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1505
1506 2011-05-22  Bruno Haible  <bruno@clisp.org>
1507
1508         New module 'mktime-internal'.
1509         * modules/mktime-internal: New file.
1510         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1511         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1512         mktime_internal as a C macro if libc has __mktime_internal.
1513         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1514         conditions.
1515         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1516
1517 2011-05-22  Bruno Haible  <bruno@clisp.org>
1518
1519         timegm: Correct mktime replacement statements.
1520         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1521         defining mktime as a C macro. This completes a 2009-07-28 commit.
1522
1523 2011-05-22  Bruno Haible  <bruno@clisp.org>
1524
1525         timegm: Simplify autoconf macro.
1526         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1527
1528 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1529
1530         clock-time: change to LGPLv2+.
1531         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1532         BSD-like but we have no mark for that; this is good enough for now.
1533
1534 2011-05-21  Bruno Haible  <bruno@clisp.org>
1535
1536         strerror_r: Fix comments.
1537         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1538
1539 2011-05-21  Bruno Haible  <bruno@clisp.org>
1540
1541         relocatable-prog-wrapper: Fix possible link error.
1542         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1543         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1544         (gl_FUNC_SETENV): ... to here.
1545         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1546         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1547
1548 2011-05-21  Bruno Haible  <bruno@clisp.org>
1549
1550         relocatable-prog-wrapper: Assume strerror() exists.
1551         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1552         m4/strerror.m4.
1553         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1554         * lib/relocwrapper.c: Remove mention of strerror module.
1555         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1556         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1557         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1558         C macro.
1559
1560 2011-05-21  Bruno Haible  <bruno@clisp.org>
1561
1562         select: Simplify replacement idiom.
1563         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1564         Win32 platforms.
1565         * lib/sys_select.in.h (select): Simplify accordingly.
1566         * modules/select (Depends-on): Likewise.
1567
1568 2011-05-21  Bruno Haible  <bruno@clisp.org>
1569
1570         mkdir-p: Simplify autoconf macro.
1571         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1572         gl_FUNC_LCHOWN.
1573
1574 2011-05-21  Eric Blake  <eblake@redhat.com>
1575
1576         strerror_r: avoid clobbering strerror on cygwin
1577         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1578         fall back instead to sys_errlist.
1579         * modules/strerror (configure.ac): Add witness.
1580         * tests/test-strerror_r.c (main): Enhance test.
1581         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1582         * tests/test-perror2.c (main): Free memory before exit.
1583
1584 2011-05-21  Bruno Haible  <bruno@clisp.org>
1585
1586         mkdtemp: Use gnulib naming conventions.
1587         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1588         * modules/mkdtemp (configure.ac): Update.
1589
1590 2011-05-20  Eric Blake  <eblake@redhat.com>
1591
1592         strerror_r: avoid corrupting errno on Solaris
1593         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1594         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1595
1596         strerror_r: avoid compiler warning
1597         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1598
1599         strerror_r: simplify AIX code
1600         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1601
1602         test-perror: avoid spurious failure on FreeBSD
1603         * modules/perror-tests (Depends-on): Add strerror, now that
1604         strerror_r no longer pulls it in.
1605
1606 2011-05-20  Bruno Haible  <bruno@clisp.org>
1607
1608         strerror_r-posix: Remove unused dependencies.
1609         * modules/strerror_r-posix (Depends-on): Remove strerror.
1610         Reported by Eric Blake.
1611
1612 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1613
1614         intprops: remove assumption about A|B representation
1615         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1616         is a valid integer if both A and B are.  Although this is true for
1617         all known practical hosts, the C standard doesn't guarantee it,
1618         and the code need not assume it.  Also, this change may work around
1619         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1621
1622 2011-05-20  Eric Blake  <eblake@redhat.com>
1623
1624         perror: work around FreeBSD bug
1625         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1626         is broken.  Move AC_LIBOBJ...
1627         * modules/perror (configure.ac): Here.
1628         * doc/posix-functions/perror.texi (perror): Document this.
1629         * tests/test-perror2.c (main): Enhance test.
1630
1631         test-perror: check for strerror interactions
1632         * tests/macros.h (STREQ): Add macro.
1633         * modules/perror-tests (Files): Add second test.
1634         * tests/test-perror2.c (main): New file.
1635         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1636
1637         test-perror: rewrite to use init script
1638         * modules/perror-tests (Files): Add init.sh.
1639         * tests/test-perror.sh: Use temporary directory.
1640
1641 2011-05-20  Jim Meyering  <meyering@redhat.com>
1642
1643         maint: replace misused "a" with "an"
1644         * doc/intprops.texi: "a integer"
1645         * doc/regex.texi: "a explanation"
1646         * lib/alignof.h: "a object"
1647         * lib/argmatch.h: "a explanation"
1648         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1649         * lib/stdint.in.h: "a integer"
1650         * lib/userspec.c: "a owner"
1651         * doc/gnulib.texi: Fix "a idea", and reword.
1652
1653 2011-05-19  Jim Meyering  <meyering@redhat.com>
1654
1655         maint: correct misuse of "a" and "an"
1656         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1657         * lib/argp-help.c: "an docum...": s/an/a/
1658         * lib/argp-parse.c: "An vector": s/An/A/
1659         * lib/execute.c: "an native": s/an/a/
1660         * lib/spawn-pipe.c: Likewise.
1661         * lib/gc.h: "an Gc_rc": s/an/a/
1662         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1663         * lib/fts.c: "an stat.st_dev": s/an/a/
1664
1665 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1666
1667         intprops-tests: work around HP-UX 11.23 cc bug with constants
1668         * tests/test-intprops.c (VERIFY): New macro.
1669         (main): Use it, instead of verify, to work around the compiler bug; see
1670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1671
1672         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1673         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1674         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1675         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1676         (_GL_REMAINDER_OVERFLOW): Use it.
1677
1678         intprops-tests: revert unsigned part of previous change
1679         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1680         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1681         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1682         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1683
1684 2011-05-19  Bruno Haible  <bruno@clisp.org>
1685
1686         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1687         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1688         strerror_r() returned without filling the buffer.
1689         Reported by Eric Blake.
1690
1691 2011-05-19  Eric Blake  <eblake@redhat.com>
1692
1693         strerror_r: guarantee unchanged errno
1694         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1695         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1696         failure.
1697         * tests/test-strerror_r.c (main): Enhance test.
1698
1699 2011-05-19  Bruno Haible  <bruno@clisp.org>
1700
1701         strerror_r: Reorder #if blocks.
1702         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1703         for consistency with the previous commit.
1704
1705 2011-05-19  Bruno Haible  <bruno@clisp.org>
1706
1707         perror: Avoid clobbering the strerror buffer when possible.
1708         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1709         * lib/strerror.c: Include it.
1710         * modules/strerror (Files): Add lib/strerror-impl.h.
1711         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1712         (my_strerror): New function, defined through lib/strerror-impl.h.
1713         (perror): Use it instead of strerror.
1714         * modules/perror (Files): Add lib/strerror-impl.h.
1715         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1716
1717 2011-05-19  Eric Blake  <eblake@redhat.com>
1718
1719         strerror_r: fix on newer cygwin
1720         * lib/strerror_r.c (strerror_r): Cygwin now has
1721         __xpg_strerror_r, use it.
1722
1723 2011-05-19  Bruno Haible  <bruno@clisp.org>
1724
1725         strerror_r: Avoid clobbering the strerror buffer when possible.
1726         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1727         (sys_nerr, sys_errlist): New declarations.
1728         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1729         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1730         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1731
1732 2011-05-19  Bruno Haible  <bruno@clisp.org>
1733
1734         strerror_r: Fix test failure on mingw.
1735         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1736         EXTEND_STRERROR_R.
1737         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1738         macros from errno.in.h instead.
1739
1740 2011-05-19  Eric Blake  <eblake@redhat.com>
1741
1742         strerror: relax test for Solaris
1743         * tests/test-strerror.c (main): Permit Solaris behavior.
1744         * tests/test-strerror_r.c (main): Likewise.
1745
1746         strerror: enforce POSIX ruling on strerror(0)
1747         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1748         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1749         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1750         * doc/posix-functions/strerror.texi (strerror): Document it.
1751         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1752         * tests/test-strerror.c (main): Strengthen test.
1753         * tests/test-strerror_r.c (main): Likewise.
1754
1755 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1756
1757         intprop-tests: port to older and more-pedantic compilers
1758         * modules/intprops-tests (Files): Add tests/macros.h.
1759         * tests/test-intprops.c: Include macros.h.
1760         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1761         it's no longer documented to expand to an integer constant expression.
1762         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1763         argument is floating point, as it's no longer documented to expand
1764         to an integer constant expression in that case.
1765         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1766         compiler bugs reported by Bruno Haible.  See
1767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1768         (U0, U1): New constants, to work around the same bugs.  Also,
1769         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1770
1771         intprops: work around C compiler bugs
1772         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1773         bug in Sun C 5.11 2010/08/13 and other compilers; see
1774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1775
1776         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1777         * doc/intprops.texi (Integer Type Determination): Fix
1778         documentation for TYPE_IS_INTEGER: it returns an constant
1779         expression, not an integer constant expression.  Fix doc for
1780         TYPE_SIGNED: it returns an integer constant expression only if its
1781         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1782         hardly worth documented that way....)
1783
1784 2011-05-18  Bruno Haible  <bruno@clisp.org>
1785
1786         strerror_r: Avoid clobbering the strerror buffer when possible.
1787         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1788         Handle gnulib defined errno values here. When strerror() returns NULL
1789         or an empty string, return EINVAL.
1790         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1791         gnulib defined errno values here.
1792         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1793
1794 2011-05-18  Eric Blake  <eblake@redhat.com>
1795
1796         fnmatch: avoid compiler warning
1797         * lib/fnmatch_loop.c (FCT): Use correct type.
1798         Reported by Matthias Bolte.
1799
1800 2011-05-13  Jim Meyering  <meyering@redhat.com>
1801
1802         maint.mk: three new prohibit_<HDR>_without_use rules
1803         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1804         (sc_prohibit_stdio-safer_without_use): Likewise.
1805         (sc_prohibit_xfreopen_without_use): Likewise.
1806
1807 2011-05-17  Jim Meyering  <meyering@redhat.com>
1808
1809         announce-gen: fail if the NEWS delta is empty
1810         If there's nothing noteworthy in NEWS, then either you forgot
1811         or you shouldn't be releasing.
1812         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1813
1814 2011-05-17  Pádraig Brady <P@draigBrady.com>
1815
1816         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1817         reserved symbols starting with double underscore from the check.
1818
1819 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1820
1821         intprops: add doc
1822         * doc/intprops.texi: New file, documenting intprops.
1823         * doc/gnulib.texi (Particular Modules): Include it.
1824
1825         verify: add doc to gnulib manual and fix example
1826         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1827         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1828         (Compile-time Assertions): Fix example so it can't overflow.
1829
1830 2011-05-17  Jim Meyering  <meyering@redhat.com>
1831
1832         warnings.m4: don't usurp save_CPPFLAGS variable name
1833         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1834
1835         doc: fix typo
1836         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1837
1838 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1839             Bruno Haible  <bruno@clisp.org>
1840
1841         doc: Tweak recent change.
1842         * README (Portability guidelines): Tweak new text.
1843         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1844         Interix 6.1.
1845
1846 2011-05-16  Eric Blake  <eblake@redhat.com>
1847
1848         inttypes: avoid autoconf warning
1849         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1850         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1851
1852 2011-05-16  Sam Steingold <sds@gnu.org>
1853         and Eric Blake  <eblake@redhat.com>
1854
1855         vc-list-files: accept multiple directory operands
1856         * build-aux/vc-list-files: Iterate over all remaining operands.
1857
1858 2011-05-16  Bruno Haible  <bruno@clisp.org>
1859
1860         Fix confusion regarding deprecated modules.
1861         * modules/calloc (Status, Notice): Mark module as deprecated, not
1862         obsolete.
1863         * modules/fnmatch-posix (Status, Notice): Likewise.
1864         * modules/getdate (Status, Notice): Likewise.
1865         * modules/getopt (Status, Notice): Likewise.
1866         * modules/malloc (Status, Notice): Likewise.
1867         * modules/pipe (Status, Notice): Likewise.
1868         * modules/realloc (Status, Notice): Likewise.
1869         * modules/rename-dest-slash (Status, Notice): Likewise.
1870         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1871         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1872         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1873         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1874         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1875
1876 2011-05-16  Bruno Haible  <bruno@clisp.org>
1877
1878         doc: List the target platforms.
1879         * doc/gnulib-intro.texi (Target Platforms): New section.
1880         * doc/gnulib.texi (Introduction): Update menu.
1881         * README (Portability guidelines): Refer to the new section. Update
1882         statement about oldest supported environment. Remove rationale why
1883         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1884         unportable C89 function.
1885         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1886         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1887
1888 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1889
1890         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1891
1892 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1893
1894         intprops-tests: new module
1895         * modules/intprops-tests, tests/test-intprops.c: New files.
1896
1897         intprops: add safe, portable integer overflow checking
1898         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1899         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1900         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1901         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1902         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1903         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1904         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1905         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1906         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1907         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1908         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1909
1910 2011-05-12  James Youngman  <jay@gnu.org>
1911
1912         Add a test for glibc's Bugzilla bug #12378.
1913         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1914         doesn't allow the literal matching of a lone "[" (which is
1915         required by POSIX).
1916         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1917
1918 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1919
1920         Sync glibc change fixing Bugzilla bug #12378.
1921         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1922         beginning and fall back to matching as normal character if the
1923         string ends before the matching ']' is found.  This is what POSIX
1924         requires.
1925
1926 2011-05-13  Eric Blake  <eblake@redhat.com>
1927
1928         getcwd-lgpl: relax test for FreeBSD
1929         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1930         issue.
1931         * tests/test-getcwd-lgpl.c (main): Relax test.
1932         Reported by Matthias Bolte.
1933
1934 2011-05-11  Eric Blake  <eblake@redhat.com>
1935
1936         test-fflush: silence compiler warning
1937         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1938
1939 2011-05-11  Bruno Haible  <bruno@clisp.org>
1940
1941         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1942         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1943         * modules/canonicalize (Depends-on): Add 'nocrash'.
1944         * modules/canonicalize-lgpl (Depends-on): Likewise.
1945         * doc/posix-functions/realpath.texi: Update platforms list.
1946         Reported by Ryan Schmidt <ryandesign@macports.org>.
1947
1948 2011-05-11  Bruno Haible  <bruno@clisp.org>
1949
1950         group-member: Declare function in <unistd.h>.
1951         * lib/unistd.in.h (group_member): New declaration.
1952         * lib/group-member.h: Remove file.
1953         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1954         * tests/test-unistd-c++.cc: Check signature of group_member.
1955         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1956         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1957         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1958         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1959         HAVE_GROUP_MEMBER.
1960         * modules/group-member (Files): Remove lib/group-member.h.
1961         (Depends-on): Add unistd. Specify conditions.
1962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1963         (Include): Change to <unistd.h>.
1964         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1965         HAVE_GROUP_MEMBER.
1966         * NEWS: Mention the change.
1967         * lib/euidaccess.c: Don't include group-member.h.
1968
1969 2011-05-11  Bruno Haible  <bruno@clisp.org>
1970
1971         group-member: Document module.
1972         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1973         module.
1974
1975 2011-05-11  Bruno Haible  <bruno@clisp.org>
1976
1977         fclose: Fix mistake earlier today.
1978         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1979
1980 2011-05-11  Eric Blake  <eblake@redhat.com>
1981
1982         fclose: preserve fflush errors
1983         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1984         Reported by Jim Meyering.
1985
1986         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1987         * build-aux/bootstrap (check_versions): When no specific version
1988         is required, merely check that the app produces an exit status
1989         that indicates its existence.
1990
1991         maint.mk: drop redundant check
1992         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1993         the same but better.
1994
1995 2011-05-11  Bruno Haible  <bruno@clisp.org>
1996
1997         fclose: Fix possible link error.
1998         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1999         unregister_shadow_fd. Improve comments.
2000         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
2001         Eric Blake.
2002
2003 2011-05-11  Jim Meyering  <meyering@redhat.com>
2004
2005         maint.mk: improve "can not" detection and generalize rule name
2006         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
2007         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
2008         Use the same technique as in sc_prohibit_doubled_word, so that
2009         we recognize "can not" also when the words are separated by a newline.
2010         Suggested by Eric Blake.
2011         (perl_filename_lineno_text_): Define.  Factored out of...
2012         (prohibit_doubled_word_): ...here.  Use the new definition.
2013         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
2014         (prohibit_undesirable_word_seq_RE_): New overridable variable.
2015         (ignore_undesirable_word_sequence_RE_): New overridable variable.
2016
2017 2011-05-10  Eric Blake  <eblake@redhat.com>
2018
2019         fclose: avoid double close race when possible
2020         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
2021         all but WINDOWS_SOCKETS.
2022
2023 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
2024
2025         openat: correct new comment
2026         * lib/openat-proc.c (openat_proc_name): Correct the comment.
2027
2028 2011-05-10  Jim Meyering  <meyering@redhat.com>
2029
2030         openat: add comments
2031         * lib/openat-proc.c (openat_proc_name): Add comments,
2032         mostly from Eric Blake.
2033
2034 2011-05-09  Eric Blake  <eblake@redhat.com>
2035
2036         openat: reduce syscalls in first probe of /proc
2037         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
2038         be a directory.  Simplify the probe for .. bugs.
2039         * modules/openat (Depends-on): Drop same-inode.
2040         Reported by Bastien ROUCARIES.
2041
2042 2011-05-09  Jim Meyering  <meyering@redhat.com>
2043
2044         maint.mk: change semantics/name of tight_scope variables
2045         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
2046         Rename variables to align with semantics that make them more useful.
2047
2048         maint.mk: tweak new rule's name not to impinge
2049         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
2050         (sc_tight_scope): Use new rule name rather than $@-0.
2051
2052         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
2053         * top/maint.mk (sc_tight_scope): New rule.
2054         (sc_tight_scope-0): New rule, ifdef'd out.
2055         (_gl_TS_dir): Default.
2056         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
2057         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
2058
2059 2011-05-09  Simon Josefsson  <simon@josefsson.org>
2060
2061         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
2062         Haible <bruno@clisp.org>.
2063
2064 2011-05-08  Bruno Haible  <bruno@clisp.org>
2065
2066         Comments.
2067         * m4/isnanf.m4: Add comment.
2068         * m4/isnanl.m4: Likewise.
2069
2070 2011-05-08  Bruno Haible  <bruno@clisp.org>
2071
2072         glob: Remove obsolete macro.
2073         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
2074
2075 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         intprops: Sun C 5.11 supports __typeof__
2078         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
2079         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
2080         which is new.
2081         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
2082
2083         intprops: switch to usual gnulib indenting and naming
2084         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
2085         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
2086
2087         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
2088
2089 2011-05-08  Jim Meyering  <meyering@redhat.com>
2090
2091         maint.mk: suppress "Entering/Leaving directory" diag in announcement
2092         * top/maint.mk (release-prep): Use make's --no-print-directory
2093         option when generating the announcement.  This eliminates the
2094         pesky "make[2]: Entering/Leaving directory" diagnostics in the
2095         generated announcement template.
2096
2097 2011-05-08  Bruno Haible  <bruno@clisp.org>
2098
2099         tzset: Fix gettimeofday wrapper on Solaris 2.6.
2100         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
2101         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
2102
2103 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2104
2105         ignore-value, verify: Omit include files from lib_SOURCES.
2106         * modules/ignore-value, modules/verify (Makefile.am):
2107         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
2108         that leads Automake to duplicate use of am__objects_... variables
2109         in Makefile.in.  See
2110         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
2111
2112 2011-05-07  Bruno Haible  <bruno@clisp.org>
2113
2114         fclose: Simplify autoconf macro.
2115         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
2116         defined.
2117
2118 2011-05-07  Bruno Haible  <bruno@clisp.org>
2119
2120         canonicalize-lgpl: Fix autoconf macro ordering bug.
2121         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
2122         gl_STDLIB_H_DEFAULTS.
2123
2124 2011-05-06  Eric Blake  <eblake@redhat.com>
2125
2126         maintainer-makefile: make sc_po_check easier to tune
2127         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
2128         to probe for strings, such as an alternate location for gnulib.
2129
2130         fclose: guarantee behavior on seekable stdin
2131         * modules/fclose (Depends-on): Add fflush.
2132         * doc/posix-functions/fclose.texi (fclose): Document this.
2133         * tests/test-fclose.c (main): Make test for this unconditional.
2134
2135 2011-05-06  Bruno Haible  <bruno@clisp.org>
2136
2137         fflush, fpurge: Relicense under LGPLv2+.
2138         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
2139         * modules/fpurge (License): Likewise.
2140         With permission from Eric Blake and Jim Meyering.
2141         Suggested by Eric Blake.
2142
2143 2011-05-06  Karl Berry  <karl@gnu.org>
2144
2145         * MODULES.html.sh (func_all_modules): remove exit.
2146
2147 2011-05-06  Jim Meyering  <meyering@redhat.com>
2148
2149         maint.mk: use info-gnu@ as the default only for a stable release
2150         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
2151         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
2152         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
2153         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
2154
2155 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2156
2157         assert-h: new module, which supports C1X-style static_assert
2158         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
2159         * lib/verify.h: Revamp so that this can be copied into assert.h,
2160         while retaining the ability to use it standalone as before.
2161         Rename private identifiers so as not to encroach on the
2162         standard C namespace, since this is now used by assert.h.
2163         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
2164         the old verify_true.
2165         (_GL_VERIFY_TRUE): New macro, with much of the contents of
2166         the old verify_true.  Use _GL_VERIFY_TYPE.
2167         (_GL_VERIFY): New macro, with much of the contents of the old verify.
2168         (static_assert): New macro, if _GL_STATIC_ASSERT_H
2169         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
2170         defined when this file is copied into the replacement assert.h.
2171         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
2172         and _Static_assert is not built in.
2173         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
2174         defined, and use the new macros mentioned above.
2175         * doc/posix-headers/assert.texi: Document this.
2176
2177 2011-05-05  Bruno Haible  <bruno@clisp.org>
2178
2179         fclose, fflush: Respect rules for use of AC_LIBOBJ.
2180         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
2181         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
2182         gl_REPLACE_FCLOSE here.
2183         * modules/fflush (Depends-on): Remove fclose.
2184         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
2185         combination with module 'fclose'.
2186
2187 2011-05-05  Bruno Haible  <bruno@clisp.org>
2188
2189         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
2190         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
2191         gl_FUNC_FFLUSH.
2192         (gl_FUNC_FFLUSH): Use it.
2193         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
2194         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
2195         gl_REPLACE_FSEEKO here.
2196
2197 2011-05-05  Bruno Haible  <bruno@clisp.org>
2198
2199         tzset: Relicense under LGPL.
2200         * modules/tzset (License): Change to LGPL.
2201         No agreement needed; it's a no-op.
2202
2203         strtoimax, strtoumax: Relicense under LGPL.
2204         * modules/strtoimax (License): Change to LGPL.
2205         * modules/strtoumax (License): Likewise.
2206         With permission from Jim Meyering, Paul Eggert:
2207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
2208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
2209
2210         getgroups: Relicense under LGPL.
2211         * modules/getgroups (License): Change to LGPL.
2212         With permission from Jim Meyering, Paul Eggert, Eric Blake:
2213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2214         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2216
2217         nanosleep: Relicense under LGPL.
2218         * modules/nanosleep (License): Change to LGPL.
2219         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2220         Haible:
2221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2225
2226         futimens: Relicense under LGPL.
2227         * modules/futimens (License): Change to LGPL.
2228         With permission from Eric Blake:
2229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2230
2231         fflush: Relicense under LGPL.
2232         * modules/fflush (License): Change to LGPL.
2233         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2237
2238         tmpfile: Relicense under LGPL.
2239         * modules/tmpfile (License): Change to LGPL.
2240         With permission from Ben Pfaff:
2241         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2242
2243         isfinite: Relicense under LGPL.
2244         * modules/isfinite (License): Change to LGPL.
2245         With permission from Ben Pfaff, Bruno Haible:
2246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2248
2249         acosl..tanl: Relicense under LGPL.
2250         * modules/acosl (License): Change to LGPL.
2251         * modules/asinl (License): Likewise.
2252         * modules/atanl (License): Likewise.
2253         * modules/cosl (License): Likewise.
2254         * modules/expl (License): Likewise.
2255         * modules/logl (License): Likewise.
2256         * modules/sinl (License): Likewise.
2257         * modules/sqrtl (License): Likewise.
2258         * modules/tanl (License): Likewise.
2259         Source code originally from glibc and Paolo Bonzini. Agreements:
2260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2262
2263 2011-05-05  Bruno Haible  <bruno@clisp.org>
2264
2265         signal: Define sighandler_t.
2266         * lib/signal.in.h (sighandler_t): New type.
2267         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2268         whether sighandler_t is defined.
2269         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2270         * modules/signal (Depends-on): Add extensions.
2271         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2272         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2273         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2274
2275 2011-05-05  Eric Blake  <eblake@redhat.com>
2276
2277         maint: remove useless REPLACE_*_H macros
2278         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2279         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2280         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2281         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2282         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2283         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2284         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2285         * m4/btowc.m4: Update callers.
2286         * m4/dirfd.m4: Likewise.
2287         * m4/duplocale.m4: Likewise.
2288         * m4/fchdir.m4: Likewise.
2289         * m4/fdopendir.m4: Likewise.
2290         * m4/inet_ntop.m4: Likewise.
2291         * m4/inet_pton.m4: Likewise.
2292         * m4/ioctl.m4: Likewise.
2293         * m4/mbrlen.m4: Likewise.
2294         * m4/mbrtowc.m4: Likewise.
2295         * m4/mbsinit.m4: Likewise.
2296         * m4/mbsnrtowcs.m4: Likewise.
2297         * m4/mbsrtowcs.m4: Likewise.
2298         * m4/poll.m4: Likewise.
2299         * m4/setlocale.m4: Likewise.
2300         * m4/wcrtomb.m4: Likewise.
2301         * m4/wcsnrtombs.m4: Likewise.
2302         * m4/wcsrtombs.m4: Likewise.
2303         * m4/wctob.m4: Likewise.
2304         * m4/wcwidth.m4: Likewise.
2305         * modules/posix_spawn: Likewise.
2306         * modules/posix_spawn_file_actions_addclose: Likewise.
2307         * modules/posix_spawn_file_actions_adddup2: Likewise.
2308         * modules/posix_spawn_file_actions_addopen: Likewise.
2309         * modules/posix_spawn_file_actions_destroy: Likewise.
2310         * modules/posix_spawn_file_actions_init: Likewise.
2311         * modules/posix_spawnattr_destroy: Likewise.
2312         * modules/posix_spawnattr_getflags: Likewise.
2313         * modules/posix_spawnattr_getpgroup: Likewise.
2314         * modules/posix_spawnattr_getschedparam: Likewise.
2315         * modules/posix_spawnattr_getschedpolicy: Likewise.
2316         * modules/posix_spawnattr_getsigdefault: Likewise.
2317         * modules/posix_spawnattr_getsigmask: Likewise.
2318         * modules/posix_spawnattr_init: Likewise.
2319         * modules/posix_spawnattr_setflags: Likewise.
2320         * modules/posix_spawnattr_setpgroup: Likewise.
2321         * modules/posix_spawnattr_setschedparam: Likewise.
2322         * modules/posix_spawnattr_setschedpolicy: Likewise.
2323         * modules/posix_spawnattr_setsigdefault: Likewise.
2324         * modules/posix_spawnattr_setsigmask: Likewise.
2325         * modules/posix_spawnp: Likewise.
2326
2327 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2328
2329         Add option to do-release-commit-and-tag to specify branch.
2330         * build-aux/do-release-commit-and-tag: Add --branch.
2331
2332 2011-05-03  Bruno Haible  <bruno@clisp.org>
2333
2334         Avoid unnecessary compilation units, through conditional dependencies.
2335         * modules/accept (Depends-on): Add conditions to the dependencies.
2336         * modules/acosl (Depends-on): Likewise.
2337         * modules/argz (Depends-on): Likewise.
2338         * modules/asinl (Depends-on): Likewise.
2339         * modules/atanl (Depends-on): Likewise.
2340         * modules/atoll (Depends-on): Likewise.
2341         * modules/bind (Depends-on): Likewise.
2342         * modules/btowc (Depends-on): Likewise.
2343         * modules/canonicalize-lgpl (Depends-on): Likewise.
2344         * modules/ceil (Depends-on): Likewise.
2345         * modules/ceilf (Depends-on): Likewise.
2346         * modules/ceill (Depends-on): Likewise.
2347         * modules/chdir-long (Depends-on): Likewise.
2348         * modules/chown (Depends-on): Likewise.
2349         * modules/close (Depends-on): Likewise.
2350         * modules/connect (Depends-on): Likewise.
2351         * modules/cosl (Depends-on): Likewise.
2352         * modules/dirfd (Depends-on): Likewise.
2353         * modules/dprintf (Depends-on): Likewise.
2354         * modules/dprintf-posix (Depends-on): Likewise.
2355         * modules/error (Depends-on): Likewise.
2356         * modules/euidaccess (Depends-on): Likewise.
2357         * modules/expl (Depends-on): Likewise.
2358         * modules/faccessat (Depends-on): Likewise.
2359         * modules/fchdir (Depends-on): Likewise.
2360         * modules/fclose (Depends-on): Likewise.
2361         * modules/fcntl (Depends-on): Likewise.
2362         * modules/fdopendir (Depends-on): Likewise.
2363         * modules/fflush (Depends-on): Likewise.
2364         * modules/floor (Depends-on): Likewise.
2365         * modules/floorf (Depends-on): Likewise.
2366         * modules/floorl (Depends-on): Likewise.
2367         * modules/fnmatch (Depends-on): Likewise.
2368         * modules/fopen (Depends-on): Likewise.
2369         * modules/fprintf-posix (Depends-on): Likewise.
2370         * modules/frexp (Depends-on): Likewise.
2371         * modules/frexp-nolibm (Depends-on): Likewise.
2372         * modules/frexpl (Depends-on): Likewise.
2373         * modules/frexpl-nolibm (Depends-on): Likewise.
2374         * modules/fseek (Depends-on): Likewise.
2375         * modules/fsusage (Depends-on): Likewise.
2376         * modules/ftell (Depends-on): Likewise.
2377         * modules/ftello (Depends-on): Likewise.
2378         * modules/futimens (Depends-on): Likewise.
2379         * modules/getcwd (Depends-on): Likewise.
2380         * modules/getcwd-lgpl (Depends-on): Likewise.
2381         * modules/getdelim (Depends-on): Likewise.
2382         * modules/getdomainname (Depends-on): Likewise.
2383         * modules/getgroups (Depends-on): Likewise.
2384         * modules/gethostname (Depends-on): Likewise.
2385         * modules/getline (Depends-on): Likewise.
2386         * modules/getlogin_r (Depends-on): Likewise.
2387         * modules/getopt-posix (Depends-on): Likewise.
2388         * modules/getpeername (Depends-on): Likewise.
2389         * modules/getsockname (Depends-on): Likewise.
2390         * modules/getsockopt (Depends-on): Likewise.
2391         * modules/getsubopt (Depends-on): Likewise.
2392         * modules/getusershell (Depends-on): Likewise.
2393         * modules/glob (Depends-on): Likewise.
2394         * modules/grantpt (Depends-on): Likewise.
2395         * modules/iconv_open (Depends-on): Likewise.
2396         * modules/iconv_open-utf (Depends-on): Likewise.
2397         * modules/inet_ntop (Depends-on): Likewise.
2398         * modules/inet_pton (Depends-on): Likewise.
2399         * modules/ioctl (Depends-on): Likewise.
2400         * modules/isapipe (Depends-on): Likewise.
2401         * modules/isfinite (Depends-on): Likewise.
2402         * modules/isinf (Depends-on): Likewise.
2403         * modules/lchown (Depends-on): Likewise.
2404         * modules/ldexpl (Depends-on): Likewise.
2405         * modules/link (Depends-on): Likewise.
2406         * modules/linkat (Depends-on): Likewise.
2407         * modules/listen (Depends-on): Likewise.
2408         * modules/logl (Depends-on): Likewise.
2409         * modules/lstat (Depends-on): Likewise.
2410         * modules/mbrlen (Depends-on): Likewise.
2411         * modules/mbrtowc (Depends-on): Likewise.
2412         * modules/mbsinit (Depends-on): Likewise.
2413         * modules/mbsnrtowcs (Depends-on): Likewise.
2414         * modules/mbsrtowcs (Depends-on): Likewise.
2415         * modules/mbtowc (Depends-on): Likewise.
2416         * modules/memcmp (Depends-on): Likewise.
2417         * modules/mkdir (Depends-on): Likewise.
2418         * modules/mkdtemp (Depends-on): Likewise.
2419         * modules/mkfifo (Depends-on): Likewise.
2420         * modules/mkfifoat (Depends-on): Likewise.
2421         * modules/mknod (Depends-on): Likewise.
2422         * modules/mkostemp (Depends-on): Likewise.
2423         * modules/mkostemps (Depends-on): Likewise.
2424         * modules/mkstemp (Depends-on): Likewise.
2425         * modules/mkstemps (Depends-on): Likewise.
2426         * modules/mktime (Depends-on): Likewise.
2427         * modules/nanosleep (Depends-on): Likewise.
2428         * modules/open (Depends-on): Likewise.
2429         * modules/openat (Depends-on): Likewise.
2430         * modules/perror (Depends-on): Likewise.
2431         * modules/poll (Depends-on): Likewise.
2432         * modules/popen (Depends-on): Likewise.
2433         * modules/posix_spawn (Depends-on): Likewise.
2434         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2435         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2436         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2437         * modules/posix_spawnp (Depends-on): Likewise.
2438         * modules/pread (Depends-on): Likewise.
2439         * modules/printf-posix (Depends-on): Likewise.
2440         * modules/ptsname (Depends-on): Likewise.
2441         * modules/putenv (Depends-on): Likewise.
2442         * modules/pwrite (Depends-on): Likewise.
2443         * modules/readline (Depends-on): Likewise.
2444         * modules/readlink (Depends-on): Likewise.
2445         * modules/readlinkat (Depends-on): Likewise.
2446         * modules/recv (Depends-on): Likewise.
2447         * modules/recvfrom (Depends-on): Likewise.
2448         * modules/regex (Depends-on): Likewise.
2449         * modules/remove (Depends-on): Likewise.
2450         * modules/rename (Depends-on): Likewise.
2451         * modules/renameat (Depends-on): Likewise.
2452         * modules/rmdir (Depends-on): Likewise.
2453         * modules/round (Depends-on): Likewise.
2454         * modules/roundf (Depends-on): Likewise.
2455         * modules/roundl (Depends-on): Likewise.
2456         * modules/rpmatch (Depends-on): Likewise.
2457         * modules/select (Depends-on): Likewise.
2458         * modules/send (Depends-on): Likewise.
2459         * modules/sendto (Depends-on): Likewise.
2460         * modules/setenv (Depends-on): Likewise.
2461         * modules/setlocale (Depends-on): Likewise.
2462         * modules/setsockopt (Depends-on): Likewise.
2463         * modules/shutdown (Depends-on): Likewise.
2464         * modules/sigaction (Depends-on): Likewise.
2465         * modules/signbit (Depends-on): Likewise.
2466         * modules/sigprocmask (Depends-on): Likewise.
2467         * modules/sinl (Depends-on): Likewise.
2468         * modules/sleep (Depends-on): Likewise.
2469         * modules/snprintf (Depends-on): Likewise.
2470         * modules/snprintf-posix (Depends-on): Likewise.
2471         * modules/socket (Depends-on): Likewise.
2472         * modules/sprintf-posix (Depends-on): Likewise.
2473         * modules/sqrtl (Depends-on): Likewise.
2474         * modules/stat (Depends-on): Likewise.
2475         * modules/strchrnul (Depends-on): Likewise.
2476         * modules/strdup-posix (Depends-on): Likewise.
2477         * modules/strerror (Depends-on): Likewise.
2478         * modules/strerror_r-posix (Depends-on): Likewise.
2479         * modules/strndup (Depends-on): Likewise.
2480         * modules/strnlen (Depends-on): Likewise.
2481         * modules/strptime (Depends-on): Likewise.
2482         * modules/strsep (Depends-on): Likewise.
2483         * modules/strsignal (Depends-on): Likewise.
2484         * modules/strstr-simple (Depends-on): Likewise.
2485         * modules/strtod (Depends-on): Likewise.
2486         * modules/strtoimax (Depends-on): Likewise.
2487         * modules/strtok_r (Depends-on): Likewise.
2488         * modules/strtoumax (Depends-on): Likewise.
2489         * modules/symlink (Depends-on): Likewise.
2490         * modules/symlinkat (Depends-on): Likewise.
2491         * modules/tanl (Depends-on): Likewise.
2492         * modules/tcgetsid (Depends-on): Likewise.
2493         * modules/tmpfile (Depends-on): Likewise.
2494         * modules/trunc (Depends-on): Likewise.
2495         * modules/truncf (Depends-on): Likewise.
2496         * modules/truncl (Depends-on): Likewise.
2497         * modules/uname (Depends-on): Likewise.
2498         * modules/unlink (Depends-on): Likewise.
2499         * modules/unlockpt (Depends-on): Likewise.
2500         * modules/unsetenv (Depends-on): Likewise.
2501         * modules/usleep (Depends-on): Likewise.
2502         * modules/utimensat (Depends-on): Likewise.
2503         * modules/vasprintf (Depends-on): Likewise.
2504         * modules/vdprintf (Depends-on): Likewise.
2505         * modules/vdprintf-posix (Depends-on): Likewise.
2506         * modules/vfprintf-posix (Depends-on): Likewise.
2507         * modules/vprintf-posix (Depends-on): Likewise.
2508         * modules/vsnprintf (Depends-on): Likewise.
2509         * modules/vsnprintf-posix (Depends-on): Likewise.
2510         * modules/vsprintf-posix (Depends-on): Likewise.
2511         * modules/wcrtomb (Depends-on): Likewise.
2512         * modules/wcscasecmp (Depends-on): Likewise.
2513         * modules/wcscspn (Depends-on): Likewise.
2514         * modules/wcsdup (Depends-on): Likewise.
2515         * modules/wcsncasecmp (Depends-on): Likewise.
2516         * modules/wcsnrtombs (Depends-on): Likewise.
2517         * modules/wcspbrk (Depends-on): Likewise.
2518         * modules/wcsrtombs (Depends-on): Likewise.
2519         * modules/wcsspn (Depends-on): Likewise.
2520         * modules/wcsstr (Depends-on): Likewise.
2521         * modules/wcstok (Depends-on): Likewise.
2522         * modules/wcswidth (Depends-on): Likewise.
2523         * modules/wctob (Depends-on): Likewise.
2524         * modules/wctomb (Depends-on): Likewise.
2525         * modules/wctype (Depends-on): Likewise.
2526         * modules/wcwidth (Depends-on): Likewise.
2527         * modules/write (Depends-on): Likewise.
2528
2529 2011-05-03  Bruno Haible  <bruno@clisp.org>
2530
2531         Support for conditional dependencies.
2532         * doc/gnulib.texi (Module description): Document the syntax of
2533         conditional dependencies.
2534         * gnulib-tool: New option --conditional-dependencies.
2535         (func_usage): Document it.
2536         (cond_dependencies): New variable.
2537         (func_get_automake_snippet_conditional,
2538         func_get_automake_snippet_unconditional): New functions, extracted from
2539         func_get_automake_snippet.
2540         (func_get_automake_snippet): Use them.
2541         (sed_first_32_chars): New variable.
2542         (func_module_shellfunc_name): New function.
2543         (func_module_shellvar_name): New function.
2544         (func_module_conditional_name): New function.
2545         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2546         func_cond_module_condition): New functions.
2547         (func_modules_transitive_closure): Add support for conditional
2548         dependencies.
2549         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2550         conditional automake snippet in an automake conditional.
2551         (func_emit_autoconf_snippets): Emit shell functions that contain the
2552         code for conditional modules.
2553         (func_import, func_create_testdir): Update specification.
2554
2555 2011-05-03  Eric Blake  <eblake@redhat.com>
2556
2557         test-getaddrinfo: report error information
2558         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2559
2560 2011-05-03  Jim Meyering  <meyering@redhat.com>
2561
2562         bootstrap: avoid build failure when $GZIP is set
2563         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2564         program name.  If defined at all, it is supposed to list gzip options.
2565         Reported by Alan Curry in http://debbugs.gnu.org/8609
2566
2567 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2568
2569         readme-release: new module with release instructions
2570         * modules/readme-release: New module.
2571         * top/README-release: New file, from coreutils, grep, diffutils.
2572         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2573
2574 2011-05-02  Eric Blake  <eblake@redhat.com>
2575
2576         fflush: also replace fclose when fixing fflush
2577         * modules/fflush (Depends-on): Add fclose.
2578         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2579         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2580         memstreams with no backing fd.
2581         * doc/posix-functions/fclose.texi (fclose): Document the use of
2582         fflush module to fix the bug.
2583         * tests/test-fclose.c (main): Relax test when fclose is used in
2584         isolation.
2585
2586         fclose: add some tests
2587         * modules/fclose-tests: New test module.
2588         * tests/test-fclose.c: New file.
2589         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2590
2591         fclose: reduced dependencies
2592         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2593         simpler lseek.
2594         * lib/fclose.c (rpl_fclose): Likewise.
2595         Reported by Simon Josefsson.
2596
2597         exit: drop remaining clients
2598         * modules/argmatch (Depends-on): Replace exit with stdlib.
2599         * modules/copy-file (Depends-on): Likewise.
2600         * modules/execute (Depends-on): Likewise.
2601         * modules/exitfail (Depends-on): Likewise.
2602         * modules/obstack (Depends-on): Likewise.
2603         * modules/pagealign_alloc (Depends-on): Likewise.
2604         * modules/pipe-filter-gi (Depends-on): Likewise.
2605         * modules/pipe-filter-ii (Depends-on): Likewise.
2606         * modules/savewd (Depends-on): Likewise.
2607         * modules/spawn-pipe (Depends-on): Likewise.
2608         * modules/wait-process (Depends-on): Likewise.
2609         * modules/xsetenv (Depends-on): Likewise.
2610         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2611         * modules/git-merge-changelog (Depends-on): Likewise.
2612         * modules/long-options (Depends-on): Likewise.
2613         * modules/pt_chown (Depends-on): Likewise.
2614         * modules/sysexits (Depends-on): Likewise.
2615
2616         freading: relax license from LGPLv3+ to LGPLv2+
2617         * modules/freading (License): Relax LGPL version.
2618
2619 2011-05-02  Bruno Haible  <bruno@clisp.org>
2620
2621         fchdir: Remove unused dependencies.
2622         * modules/fchdir (Depends-on): Remove include_next.
2623
2624 2011-05-02  Bruno Haible  <bruno@clisp.org>
2625
2626         gnulib-tool: Refactor.
2627         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2628         from func_emit_autoconf_snippets.
2629         (func_emit_autoconf_snippets): Use it.
2630
2631 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2632
2633         * NEWS: Document removal of 'exit'.
2634         * modules/exit: Remove file.
2635
2636 2011-05-01  Bruno Haible  <bruno@clisp.org>
2637
2638         Update DEPENDENCIES.
2639         * DEPENDENCIES (gettext): Recommend the newest release.
2640         Reported by Simon Josefsson.
2641
2642 2011-05-01  Bruno Haible  <bruno@clisp.org>
2643
2644         gnulib-tool: Reduce code duplication.
2645         * gnulib-tool (func_emit_autoconf_snippets): New function.
2646         (func_import, func_create_testdir): Use it.
2647
2648 2011-04-30  Eric Blake  <eblake@redhat.com>
2649
2650         fclose: don't fail on non-seekable input stream
2651         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2652         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2653         since fflush is allowed to fail in that case.
2654
2655 2011-04-30  Bruno Haible  <bruno@clisp.org>
2656
2657         dup3: cleanup
2658         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2659
2660 2011-04-30  Bruno Haible  <bruno@clisp.org>
2661
2662         netdb: Make it work in C++ mode.
2663         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2664         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2665         module.
2666         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2667         gl_MODULE_INDICATOR_FOR_TESTS.
2668         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2669         * modules/netdb-c++-tests: New file.
2670         * tests/test-netdb-c++.cc: New file.
2671
2672 2011-04-30  Bruno Haible  <bruno@clisp.org>
2673
2674         New modules 'vfscanf', 'vscanf'.
2675         * modules/vfscanf: New file.
2676         * modules/vscanf: New file.
2677         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2678         here.
2679         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2680         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2681
2682 2011-04-30  Bruno Haible  <bruno@clisp.org>
2683
2684         passfd: Add comments.
2685         * lib/passfd.c: Add comments about platforms.
2686
2687 2011-04-30  Bruno Haible  <bruno@clisp.org>
2688
2689         sys_uio: Make <sys/uio.h> self-contained.
2690         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2691         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2692
2693 2011-04-30  Bruno Haible  <bruno@clisp.org>
2694
2695         sys_socket: Ensure 'struct iovec' definition.
2696         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2697         <sys/socket.h>.
2698         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2699
2700 2011-04-30  Bruno Haible  <bruno@clisp.org>
2701
2702         sys_uio: Protect definition of 'struct iovec'.
2703         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2704         it as a C struct.
2705
2706 2011-04-30  Bruno Haible  <bruno@clisp.org>
2707
2708         manywarnings: fix indentation
2709         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2710
2711 2011-04-30  Pádraig Brady <P@draigBrady.com>
2712
2713         manywarnings: add -Wno-missing-field-initializers if needed.
2714         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2715         option if it's needed to allow initialization with { 0, }
2716
2717 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2718
2719         announce-gen: cosmetic improvement
2720         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2721
2722 2011-04-29  Jim Meyering  <meyering@redhat.com>
2723
2724         vc-list-files: indent with spaces, not TABs
2725         * build-aux/vc-list-files: Convert leading TABs to spaces,
2726         to match the style of most other files in gnulib.
2727
2728         announce-gen: indent with spaces, not TABs
2729         * build-aux/announce-gen: Convert all TABs to spaces, to match
2730         the style of most other files in gnulib.
2731
2732 2011-04-29  Eric Blake  <eblake@redhat.com>
2733
2734         quotearg: avoid uninitialized variable use
2735         * lib/quotearg.c (quoting_options_from_style): Initialize
2736         remaining fields, and ensure that custom styles are only used via
2737         quoting_options rather than quoting_style.
2738
2739 2011-04-29  Jim Meyering  <meyering@redhat.com>
2740
2741         maint.mk: remove unused VC-tag variable
2742         * top/maint.mk (VC-tag): Remove unused variable.
2743
2744 2011-04-29  Bruno Haible  <bruno@clisp.org>
2745
2746         netdb: fix gai_strerror replacements
2747         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2748         * modules/netdb: Substitute it.
2749
2750 2011-04-29  Jim Meyering  <meyering@redhat.com>
2751
2752         test-getcwd.c: avoid new set-but-not-used warning
2753         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2754         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2755         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2756         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2757
2758         test-hash.c: avoid a new shadowing warning
2759         * tests/test-hash.c (main): Don't shadow "dup".
2760
2761 2011-04-28  Eric Blake  <eblake@redhat.com>
2762
2763         getaddrinfo: fix gai_strerror signature
2764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2765         and work around mingw with UNICODE defined.
2766         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2767         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2768         * modules/netdb (Makefile.am): Substitute it.
2769         * lib/netdb.in.h (gai_strerror): Declare replacement.
2770         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2771         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2772         the fix.
2773
2774         getsockopt: avoid compiler warning
2775         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2776         Reported by Matthias Bolte.
2777
2778         tests: drop unused link dependency
2779         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2780         * modules/dirent-safer-tests (Makefile.am): Likewise.
2781         * modules/fdopendir-tests (Makefile.am): Likewise.
2782         * modules/mkfifoat-tests (Makefile.am): Likewise.
2783         * modules/openat-safer-tests (Makefile.am): Likewise.
2784         * modules/openat-tests (Makefile.am): Likewise.
2785         * modules/readlinkat-tests (Makefile.am): Likewise.
2786         * modules/symlinkat-tests (Makefile.am): Likewise.
2787         * modules/linkat-tests (Makefile.am): Likewise.
2788         (Depends-on): Switch to filenamecat-lgpl.
2789         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2790         LIBINTL.
2791         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2792         * tests/test-linkat.c (main): Don't require xalloc.
2793
2794         hash, mgetgroups: drop xalloc dependency
2795         * lib/hash.c (includes): Adjust includes.
2796         * lib/mgetgroups.c (includes): Likewise.
2797         (xgetgroups): Move...
2798         * lib/xgetgroups.c: ...to new file.
2799         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2800         * modules/xgetgroups: New file, split from...
2801         * modules/mgetgroups: ...here.
2802         (Depends-on): Add xalloc-oversized.
2803         * modules/hash (Depends-on): Likewise.
2804         * modules/hash-tests (Depends-on): Drop xalloc.
2805         (test_hash_LDADD): Drop unused library.
2806         * tests/test-hash.c (main): Break xalloc dependency.
2807         (includes): Drop unused include.
2808
2809         xalloc-oversized: new module
2810         * modules/xalloc-oversized: New module.
2811         * modules/xalloc (Depends-on): Add it.
2812         * lib/xalloc.h (xalloc_oversized): Move...
2813         * lib/xalloc-oversized.h: ...into new file.
2814
2815         utimecmp: drop dependency on xmalloc
2816         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2817         due to memory pressure.
2818         * modules/utimecmp (Depends-on): Drop xalloc.
2819
2820 2011-04-27  Eric Blake  <eblake@redhat.com>
2821
2822         getcwd: fix mingw bugs
2823         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2824         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2825         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2826
2827 2011-04-27  Bruno Haible  <bruno@clisp.org>
2828
2829         mkstemps: Ensure declaration on MacOS X 10.5.
2830         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2831         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2832         MacOS X.
2833
2834 2011-04-27  Bruno Haible  <bruno@clisp.org>
2835
2836         mkstemp: More documentation.
2837         * doc/posix-functions/mkstemp.texi: Document header file problem on
2838         MacOS X.
2839
2840 2011-04-27  Bruno Haible  <bruno@clisp.org>
2841
2842         mkstemp: Tweak configure message when cross-compiling.
2843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2844         result as a guess.
2845
2846 2011-04-27  Bruno Haible  <bruno@clisp.org>
2847
2848         clean-temp: Clarify what it does.
2849         * lib/clean-temp.h: Add more comments.
2850         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2851         module.
2852         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2853         * doc/glibc-functions/mkstemps.texi: Likewise.
2854         * doc/glibc-functions/mkostemps.texi: Likewise.
2855
2856 2011-04-27  Eric Blake  <eblake@redhat.com>
2857
2858         fchdir: avoid extra chdir and fix test
2859         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2860         getcwd-lgpl.
2861         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2862         have to be canonical.
2863         (canonicalize_file_name): Drop unused macro.
2864         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2865
2866         filenamecat-lgpl: fix licence
2867         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2868         when it was first created.
2869
2870         linkat, renameat: add missing dependency
2871         * modules/linkat (Depends-on): Require getcwd-lgpl.
2872         * modules/renameat (Depends-on): Likewise.
2873
2874         tests: reduce dependencies
2875         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2876         * tests/test-renameat.c (main): Likewise.
2877         * modules/linkat-tests (Depends-on): Relax dependency.
2878         * modules/renameat-tests (Depends-on): Likewise.
2879         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2880         dependency explicit.
2881
2882         save-cwd: reduce default dependency
2883         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2884         * lib/save-cwd.c: Update comments.
2885         * NEWS: Document the semantic change.
2886
2887         getcwd: enhance tests
2888         * tests/test-getcwd-lgpl.c: New file, taken from...
2889         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2890         repeat long path stress tests from m4 probe.
2891         * modules/getcwd-lgpl-tests: New module.
2892         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2893         * m4/getcwd-abort-bug.m4: Update comment.
2894         * m4/getcwd-path-max.m4: Likewise.
2895
2896         getcwd-lgpl: new module
2897         * modules/getcwd-lgpl: New module.
2898         * lib/getcwd-lgpl.c: New file.
2899         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2900         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2901         * modules/getcwd (configure.ac): Set C witness.
2902         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2903
2904         getcwd: tweak comments
2905         * m4/getcwd-abort-bug.m4: Fix comments.
2906         * m4/getcwd-path-max.m4: Likewise.
2907         * m4/getcwd.m4: Likewise.
2908
2909 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2910         and Eric Blake  <eblake@redhat.com>
2911
2912         mkstemp: replace if system version uses wrong permissions
2913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2914         read/write mode bits set in file created by mkstemp.
2915         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2916
2917 2011-04-27  Eric Blake  <eblake@redhat.com>
2918
2919         passfd: avoid compiler warning
2920         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2921         Reported by Laine Stump.
2922
2923 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2924
2925         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2926         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2927
2928 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2929         and Eric Blake  <eblake@redhat.com>
2930
2931         mkstemp: mention clean-temp module
2932         * lib/mkstemp.c: Add comment.
2933         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2934
2935 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2936
2937         inttypes: also provide default values for 32-bit tests
2938         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2939         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2940
2941 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2942
2943         strtoumax: remove dependency on strtoimax
2944         This is like the strtoull change of yesterday.
2945         * modules/strtoumax (Files): Add lib/strtoimax.c.
2946         (Depends-on): Remove strtoimax and add verify.
2947
2948         inttypes-incomplete: new module
2949         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2950         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2951         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2952         of gl_INTTYPES_H.
2953         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2954         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2955         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2956         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2957         * modules/strtoumax, modules/xstrtol (Depends-on):
2958         Depend on inttypes-incomplete, not inttypes.
2959         * modules/inttypes-incomplete: New module, containing the contents
2960         of the old modules/inttypes module, except that the Files: section
2961         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2962         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2963         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2964         (Depends-on): Depend only on inttypes-incomplete.
2965         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2966
2967         inttypes: omit now-redundant strtoimax and strtoumax work
2968         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2969         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2970
2971         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2972         This supports apps that need pointers to strtoimax and strtoumax,
2973         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2974         nonexistent functions.  See
2975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2976         et seq.
2977         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2978         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2979         a macro.
2980         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2981
2982 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2983
2984         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2985
2986 2011-04-25  Bruno Haible  <bruno@clisp.org>
2987
2988         strtol, strtoul: Mark modules as obsolete.
2989         * modules/strtol (Status, Notice): New sections.
2990         * modules/strtoul (Status, Notice): New sections.
2991
2992 2011-04-25  Bruno Haible  <bruno@clisp.org>
2993
2994         strtod: Remove check for strtod, unless supporting old platforms.
2995         * modules/strtod-obsolete: New file.
2996         * m4/strtod-obsolete.m4: New file.
2997         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2998         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2999         * modules/strtod (Depends-on): Add strtod-obsolete.
3000         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
3001
3002 2011-04-25  Bruno Haible  <bruno@clisp.org>
3003
3004         strcase: Make module obsolete.
3005         * modules/strcase (Status, Notice): New sections.
3006
3007 2011-04-25  Bruno Haible  <bruno@clisp.org>
3008
3009         dup2: Remove check for dup2, unless supporting old obsolete platforms.
3010         * modules/dup2-obsolete: New file.
3011         * m4/dup2-obsolete.m4: New file.
3012         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
3013         gl_FUNC_DUP2_OBSOLETE is not also defined.
3014         * modules/dup2 (Depends-on): Add dup2-obsolete.
3015         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
3016
3017 2011-04-25  Bruno Haible  <bruno@clisp.org>
3018
3019         strnlen: Avoid memchr related link error on old obsolete platforms.
3020         * modules/memchr-obsolete: New file.
3021         * m4/memchr-obsolete.m4: New file.
3022         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
3023         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
3024         * modules/memchr (Depends-on): Add memchr-obsolete.
3025         * modules/strnlen (Depends-on): Likewise.
3026         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
3027
3028 2011-04-25  Jim Meyering  <meyering@redhat.com>
3029
3030         maint.mk: makefile_at_at_check extend and clean up
3031         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
3032         in addition to */Makefile.am.
3033         Exempt legitimate uses of @VAR@ notation, e.g.,
3034         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
3035         Remove obsolete coreutils-specific comment.
3036         Prompted by discussion here:
3037         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
3038
3039 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
3040
3041         strtoul: remove dependency on strtol
3042         This is so that 'configure' need not check for strtol merely because
3043         the application needs strtoul.
3044         * modules/strtoul (Files): Add lib/strtol.c.
3045         (Depends-on): Remove strtol.
3046
3047         strtoull: remove dependency on strtoul
3048         This is like the strtoll change.
3049         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
3050         (Depends-on): Remove strtoul.
3051
3052         strtoll: remove dependency on strtol
3053         This is so that 'configure' need not check for strtol merely because
3054         the application needs strtoll.
3055         * modules/strtoll (Files): Add lib/strtol.c.
3056         (Depends-on): Remove strtol.
3057
3058 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3059
3060         inttypes: Move some configure check to module 'imaxdiv'.
3061         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
3062         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
3063         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
3064
3065 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3066
3067         inttypes: Move some configure check to module 'imaxabs'.
3068         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
3069         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
3070         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
3071
3072 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3073
3074         inttypes: Remove configure tests that are not needed since 2009-12-31.
3075         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
3076         gl_cv_header_working_inttypes_h.
3077
3078 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3079
3080         * modules/strnlen (Depends-on): Remove memchr.
3081         The strnlen implementation doesn't need the memchr module's fixes; see
3082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
3083
3084         strtol: remove dependency on wchar
3085         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
3086         * modules/strtol (Depends-on): Remove wchar.
3087
3088 2011-04-21  Eric Blake  <eblake@redhat.com>
3089
3090         passfd: fix test regression on Linux
3091         * modules/passfd-tests (configure.ac): Correct socketpair check.
3092
3093         passfd: speed up configure and drop unused code
3094         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
3095         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
3096         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
3097         Instead of probing at configure for unix_scm_rights_bsd44_way,
3098         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
3099         check to a struct member probe.
3100         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
3101         (sendfd, recvfd): Update preprocessor checks.
3102         * modules/passfd (Files): Reflect rename, and drop unused file.
3103         (Depends-on): Drop unused dependency.
3104
3105         passfd: allow compilation on mingw
3106         * modules/sys_socket (Depends-on): Add sys_uio.
3107         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
3108         iovec and a minimal struct msghdr.
3109         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
3110         * tests/test-sys_socket.c (main): Enhance test.
3111         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
3112         guaranteed to provide what we need.
3113         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
3114         * modules/passfd-tests (Depends-on): Add sys_wait.
3115         * tests/test-passfd.c (main): Skip test on mingw, for now.
3116         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
3117         partial 'struct msghdr' implementation.
3118
3119         sys_uio: new module
3120         * modules/sys_uio: New module.
3121         * modules/sys_uio-tests: Likewise.
3122         * lib/sys_uio.in.h: New file.
3123         * m4/sys_uio_h.m4: Likewise.
3124         * tests/test-sys_uio.c: Likewise.
3125         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
3126         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
3127
3128 2011-04-20  Jim Meyering  <meyering@redhat.com>
3129
3130         useless-if-before-free: avoid false-positive
3131         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
3132         disjunct so that it too requires a terminating ";".  Without that,
3133         this script would identify as useless one statement from gcc that
3134         was not:
3135           if (aligned_ptr)
3136             free (((void **) aligned_ptr) [-1]);
3137
3138 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
3139
3140         doc: update users.txt.
3141         * users.txt: Add barcode.
3142
3143 2011-04-19  Bruno Haible  <bruno@clisp.org>
3144
3145         ioctl: Remove link dependency on native Windows.
3146         * lib/fd-hook.h: Renamed from lib/close-hook.h.
3147         (gl_close_fn, gl_ioctl_fn): New types.
3148         (struct fd_hook): Renamed from struct close_hook. Change type of
3149         private_close_fn field. Add private_ioctl_fn field.
3150         (close_hook_fn): Add parameter for primary close method.
3151         (execute_close_hooks, execute_all_close_hooks): Likewise.
3152         (ioctl_hook_fn): New type.
3153         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
3154         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3155         argument.
3156         (unregister_fd_hook): Renamed from unregister_close_hook.
3157         * lib/fd-hook.c: Renamed from lib/close-hook.c.
3158         Don't include <unistd.h>.
3159         (close): Remove undef.
3160         (anchor): Update.
3161         (execute_close_hooks): Add argument for primary close method.
3162         (execute_all_close_hooks): Likewise.
3163         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
3164         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
3165         argument. Allow each argument to be NULL.
3166         (unregister_fd_hook): Renamed from unregister_close_hook.
3167         * lib/close.c (rpl_close): Pass 'close' function pointer to
3168         execute_all_close_hooks.
3169         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
3170         (primary_ioctl): New function.
3171         (ioctl): Don't call ioctlsocket here. Instead, call
3172         execute_all_ioctl_hooks.
3173         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
3174         close method.
3175         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
3176         (fd_sockets_hook): Renamed from close_sockets_hook.
3177         (gl_sockets_startup, gl_sockets_cleanup): Update.
3178         * modules/fd-hook: Renamed from modules/close-hook. Update.
3179         * modules/close (Depends-on): Add fd-hook, remove close-hook.
3180         * modules/sockets (Depends-on): Likewise.
3181         * modules/ioctl (Depends-on): Add fd-hook.
3182         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
3183         GNULIB_SOCKET.
3184
3185 2011-04-19  Bruno Haible  <bruno@clisp.org>
3186
3187         Move the support of O_NONBLOCK in open() to the 'open' module.
3188         * modules/nonblocking (Depends-on): Remove 'open'.
3189         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
3190         gl_cv_have_open_O_NONBLOCK.
3191         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
3192         O_NONBLOCK support.
3193         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
3194
3195 2011-04-17  Bruno Haible  <bruno@clisp.org>
3196
3197         pipe2: Simplify code.
3198         * lib/pipe2.c (pipe2): Reduce code duplication.
3199
3200 2011-04-17  Bruno Haible  <bruno@clisp.org>
3201
3202         nonblocking: Add comment.
3203         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
3204
3205 2011-04-17  Bruno Haible  <bruno@clisp.org>
3206
3207         nonblocking: Add tests for sockets.
3208         * tests/test-nonblocking-socket.sh: New file.
3209         * tests/test-nonblocking-socket-main.c: New file.
3210         * tests/test-nonblocking-socket-child.c: New file.
3211         * tests/test-nonblocking-socket.h: New file.
3212         * tests/socket-server.h: New file.
3213         * tests/socket-client.h: New file.
3214         * modules/nonblocking-socket-tests: New file.
3215         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3216
3217 2011-04-17  Bruno Haible  <bruno@clisp.org>
3218
3219         nonblocking: Add tests for pipes.
3220         * tests/test-nonblocking-pipe.sh: New file.
3221         * tests/test-nonblocking-pipe-main.c: New file.
3222         * tests/test-nonblocking-pipe-child.c: New file.
3223         * tests/test-nonblocking-pipe.h: New file.
3224         * tests/test-nonblocking-writer.h: New file.
3225         * tests/test-nonblocking-reader.h: New file.
3226         * tests/test-nonblocking-misc.h: New file.
3227         * modules/nonblocking-pipe-tests: New file.
3228         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3229
3230 2011-04-16  Bruno Haible  <bruno@clisp.org>
3231
3232         gettext: Clarify the needed programmer actions.
3233         * modules/gettext (Notice): New field.
3234         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3235
3236 2011-04-16  Bruno Haible  <bruno@clisp.org>
3237
3238         strchrnul: Tweak last commit.
3239         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3240         bug.
3241         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3242         as in _GL_FUNCDECL_SYS.
3243         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3244         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3245
3246 2011-04-15  Eric Blake  <eblake@redhat.com>
3247
3248         strchrnul: work around cygwin bug
3249         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3250         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3252         * modules/string (Makefile.am): Substitute it.
3253         * lib/string.in.h (strchrnul): Use it.
3254
3255 2011-04-15  Bruno Haible  <bruno@clisp.org>
3256
3257         Don't require lib/stdio-write.c when only module 'stdio' is used.
3258         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3259         invocation.
3260         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3261
3262 2011-04-14  Bruno Haible  <bruno@clisp.org>
3263
3264         Support non-blocking pipe I/O in read() on native Windows.
3265         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3266         (read): New declaration.
3267         * lib/read.c: New file.
3268         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3269         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3270         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3271         vscanf): New declarations.
3272         * lib/stdio-read.c: New file.
3273         * m4/read.m4: New file.
3274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3275         REPLACE_READ.
3276         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3277         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3278         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3279         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3280         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3281         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3282         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3283         * modules/read: New file.
3284         * modules/nonblocking (Files): Add lib/stdio-read.c.
3285         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3286         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3287         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3288         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3289         * modules/pread (Depends-on): Add read.
3290         * modules/safe-read (Depends-on): Likewise.
3291         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3292         gets, scanf, vfscanf, vscanf): Verify signatures.
3293         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3294         problem with non-blocking pipes.
3295         * doc/posix-functions/fgetc.texi: Likewise.
3296         * doc/posix-functions/fgets.texi: Likewise.
3297         * doc/posix-functions/fread.texi: Likewise.
3298         * doc/posix-functions/fscanf.texi: Likewise.
3299         * doc/posix-functions/getc.texi: Likewise.
3300         * doc/posix-functions/getchar.texi: Likewise.
3301         * doc/posix-functions/gets.texi: Likewise.
3302         * doc/posix-functions/scanf.texi: Likewise.
3303         * doc/posix-functions/vfscanf.texi: Likewise.
3304         * doc/posix-functions/vscanf.texi: Likewise.
3305
3306 2011-04-14  Bruno Haible  <bruno@clisp.org>
3307
3308         Support non-blocking pipe I/O in write() on native Windows.
3309         * lib/write.c (rpl_write): Split a write request that failed merely
3310         because the byte count was larger than the pipe buffer's size.
3311         * doc/posix-functions/write.texi: Mention the problem with large byte
3312         counts.
3313
3314 2011-04-14  Bruno Haible  <bruno@clisp.org>
3315
3316         wchar: Ensure that wchar_t gets defined on uClibc.
3317         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3318         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3319
3320 2011-04-13  Bruno Haible  <bruno@clisp.org>
3321
3322         safe-write, full-read: Avoid unnecessary compilation units.
3323         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3324         (Depends-on): Remove safe-read. Add ssize_t.
3325         * modules/full-read (Files): Add lib/full-write.c.
3326         (Depends-on): Add full-write.
3327
3328 2011-04-13  Bruno Haible  <bruno@clisp.org>
3329
3330         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3331         * modules/pwrite (Depends-on): Add 'write'.
3332
3333 2011-04-13  Bruno Haible  <bruno@clisp.org>
3334
3335         Support non-blocking pipe I/O in write() on native Windows.
3336         * lib/unistd.in.h (write): Enable replacement also if
3337         GNULIB_UNISTD_H_NONBLOCKING is 1.
3338         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3339         (rpl_write): When failing to write on a non-blocking pipe, change
3340         errno from ENOSPC to EAGAIN.
3341         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3342         putchar, puts, vfprintf, vprintf): Enable replacement also if
3343         GNULIB_STDIO_H_NONBLOCKING is 1.
3344         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3345         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3346         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3347         CALL_WITH_SIGPIPE_EMULATION.
3348         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3349         * m4/nonblocking.m4: New file.
3350         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3351         for non-blocking I/O support.
3352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3353         GNULIB_UNISTD_H_NONBLOCKING.
3354         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3355         required for non-blocking I/O support.
3356         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3357         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3358         lib/stdio-write.c, m4/asm-underscore.m4.
3359         (Depends-on): Add stdio, unistd.
3360         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3361         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3362         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3363         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3364         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3365         problem with non-blocking pipes.
3366         * doc/posix-functions/fputc.texi: Likewise.
3367         * doc/posix-functions/fputs.texi: Likewise.
3368         * doc/posix-functions/fwrite.texi: Likewise.
3369         * doc/posix-functions/printf.texi: Likewise.
3370         * doc/posix-functions/putc.texi: Likewise.
3371         * doc/posix-functions/putchar.texi: Likewise.
3372         * doc/posix-functions/puts.texi: Likewise.
3373         * doc/posix-functions/vfprintf.texi: Likewise.
3374         * doc/posix-functions/vprintf.texi: Likewise.
3375         * doc/posix-functions/write.texi: Likewise.
3376
3377 2011-04-10  Jim Meyering  <meyering@redhat.com>
3378
3379         maint.mk: prohibit doubled words
3380         Detect them also when they're separated by a newline.
3381         There are 3 ways to customize it:
3382           - disable the test on a per file basis, as usual with rules using
3383             $(VC_LIST_EXCEPT)
3384           - replace the default doubled-word-selecting regexp (affects all files)
3385           - ignore a particular file-vs-doubled-word match
3386         I nearly used that last one to ignore the "is is" match in
3387         coreutils' NEWS file, since the text was "ls -is is ..."
3388         To do that, I would have added this line to cfg.mk:
3389           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3390         but it would have ignored any "is is" match in NEWS.
3391         Low probability, but still...
3392         Instead, I changed the text, slightly:
3393           -  ls -is is now consistent with ls -lis in ignoring values returned
3394           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3395         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3396         (prohibit_doubled_word_): Define.
3397         (sc_prohibit_doubled_word): New rule.
3398         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3399
3400 2011-04-10  Jim Meyering  <meyering@redhat.com>
3401
3402         maint: fix doubled-word typo in comment
3403         * m4/gethostname.m4: s/is is/it is/
3404         * m4/getdomainname.m4: Likewise.
3405
3406 2011-04-10  Jim Meyering  <meyering@redhat.com>
3407
3408         maint: remove doubled word: s/it it/it/
3409         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3410
3411 2011-04-10  Jim Meyering  <meyering@redhat.com>
3412
3413         maint.mk: remove useless semicolon and backslash
3414         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3415         semicolon and backslash.
3416
3417 2011-04-10  Bruno Haible  <bruno@clisp.org>
3418
3419         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3420         * modules/stdint-tests (Depends-on): Add wchar.
3421
3422 2011-04-10  Jim Meyering  <meyering@redhat.com>
3423
3424         maint: remove doubled words in comments, e.g., s/a a/a/
3425         * lib/strptime.c (day_of_the_week): s/the the/the/
3426         * tests/test-chown.h (test_chown): s/a a/a/
3427
3428         test-chown.h: correct a cast
3429         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3430         when the destination is a stat.st_gid.
3431
3432 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3433
3434         getaddrinfo: Fix test for sa_len member.
3435         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3436         include <sys/types.h> before <sys/socket.h>.
3437
3438 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3439
3440         maint: change "can not" to "cannot"
3441         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3442         boundaries.
3443
3444 2011-04-09  Jim Meyering  <meyering@redhat.com>
3445
3446         maint: change "a a" to "a"
3447         * tests/test-lchown.h (test_lchown): s/a a/a/
3448
3449         maint.mk: prohibit \<the the\>
3450         * top/maint.mk (sc_prohibit_the_the): New rule.
3451
3452         maint: fix "the the" in comment
3453         * lib/count-one-bits.h: s/the the/the/
3454
3455         maint: change "can not" to "cannot"
3456         But do not change the occurrences in maintain.texi or in
3457         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3458         * doc/gnulib-tool.texi: s/can not/cannot/
3459         * doc/posix-functions/accept.texi (accept): Likewise.
3460         * doc/posix-functions/socket.texi (socket): Likewise.
3461         * lib/mbrtowc.c: Likewise.
3462
3463         maint.mk: prohibit use of "can not"
3464         * top/maint.mk (sc_prohibit_can_not): New rule.
3465         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3466
3467 2011-04-09  Bruno Haible  <bruno@clisp.org>
3468
3469         careadlinkat: Guard against misuse of careadlinkatcwd.
3470         * lib/careadlinkat.c: Include <stdlib.h>.
3471         (careadlinkatcwd): Check that the fd argument is as expected.
3472
3473 2011-04-09  Bruno Haible  <bruno@clisp.org>
3474
3475         careadlinkat: Use common coding style.
3476         * lib/careadlinkat.c: Move gnulib includes after system includes.
3477
3478 2011-04-09  Bruno Haible  <bruno@clisp.org>
3479
3480         careadlinkat: Clarify specification.
3481         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3482         (careadlinkatcwd): Add comment.
3483         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3484
3485 2011-04-09  Bruno Haible  <bruno@clisp.org>
3486
3487         areadlinkat: Avoid link error on many platforms.
3488         * modules/areadlinkat (Depends-on): Add areadlink.
3489
3490 2011-04-09  Bruno Haible  <bruno@clisp.org>
3491
3492         allocator, careadlinkat: Fix double-inclusion guard.
3493         * lib/allocator.h: Fix double-inclusion guard.
3494         * lib/careadlinkat.h: Likewise.
3495
3496 2011-04-09  Bruno Haible  <bruno@clisp.org>
3497
3498         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3499         * lib/relocwrapper.c: Update dependencies hierarchy.
3500         * build-aux/install-reloc: Update list of files to be compiled.
3501         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3502         lib/allocator.[hc].
3503
3504 2011-04-08  Eric Blake  <eblake@redhat.com>
3505
3506         strftime: silence gnulib-tool warning
3507         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3508
3509 2011-04-08  Bruno Haible  <bruno@clisp.org>
3510
3511         verify: Fix syntax error with GCC 4.6 in C++ mode.
3512         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3513         (HAVE_STATIC_ASSERT): New macro.
3514         (verify_true, verify): Use 'static_assert' if it is supported and
3515         '_Static_assert' is not supported.
3516
3517 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3518
3519         allocator: New module.
3520         * modules/allocator, lib/allocator.c: New files.
3521         * lib/allocator.h (stdlib_allocator): New decl.
3522         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3523         Remove.  Do not include <stdlib.h>.
3524         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3525         * modules/careadlinkat (Files): Remove lib/allocator.h.
3526         (Depends-on): Add allocator.
3527
3528         stdlib: let modules use system malloc, realloc
3529         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3530         if !_GL_USE_STDLIB_ALLOC.
3531         (malloc, realloc): Limit this change to a smaller scope.
3532
3533         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3534         (malloc, realloc): Don't #undef; no longer needed.
3535         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3536         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3537         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3538         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3539         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3540         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3541         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3542         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3543
3544         careadlinkat: rename members to avoid problem
3545         * lib/allocator.h (struct allocator): Rename members from
3546         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3547         and realloc are #define'd.  Reported by Eric Blake in
3548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3549         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3550
3551 2011-04-08  Eric Blake  <eblake@redhat.com>
3552
3553         nonblocking: reduce dependency
3554         * tests/test-nonblocking.c: Only test sockets when in use.
3555         * modules/nonblocking-tests (Depends-on): Drop socket.
3556         (Makefile.am): Link even if sockets are not present.
3557         * modules/pipe2-tests (Makefile.am): Likewise.
3558         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3559
3560         pipe2: fix O_NONBLOCK support on mingw
3561         * modules/pipe2 (Depends-on): Add nonblocking.
3562         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3563         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3564         * tests/test-nonblocking.c (main): Likewise.
3565         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3566
3567         fcntl-h: fix O_ACCMODE on cygwin
3568         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3569         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3570
3571         pipe-filter: drop O_NONBLOCK workarounds
3572         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3573         * modules/pipe-filter-ii (Depends-on): Likewise.
3574         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3575
3576         nonblocking: provide O_NONBLOCK for mingw
3577         * modules/nonblocking (Depends-on): Add open.
3578         (configure.ac): Set new witness macro.
3579         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3580         * modules/fcntl-h (Makefile.am): Substitute it.
3581         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3582         nonblocking module is in use.
3583         * lib/nonblocking.c: Adjust portability test.
3584         * lib/open.c (open): Don't let native open see gnulib flag.
3585         * tests/test-fcntl-h.c (main): Enhance test.
3586         * tests/test-open.h (test_open): Likewise.
3587         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3588
3589         careadlinkat: fix compilation error on mingw
3590         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3591         within struct allocator.
3592
3593 2011-04-06  Eric Blake  <eblake@redhat.com>
3594
3595         binary-io: relicense under LGPLv2+
3596         * modules/binary-io (License): Relax to LGPLv2+.
3597         Requested for libvirt, and required by pipe2.
3598
3599 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3600
3601         verify: use _Static_assert if available
3602         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3603         (verify_true, verify): Use it if available.  This generates better
3604         diagnostics with GCC 4.6.0 and later.
3605
3606 2011-04-05  Bruno Haible  <bruno@clisp.org>
3607
3608         Remove leftover generated .h files after config.status changed.
3609
3610         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3611         GL_GENERATE_ALLOCA_H.
3612         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3613         GL_GENERATE_ALLOCA_H evaluates to false.
3614
3615         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3616         GL_GENERATE_ARGZ_H.
3617         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3618         evaluates to false.
3619
3620         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3621         GL_GENERATE_BYTESWAP_H.
3622         * modules/byteswap (Makefile.am): Remove byteswap.h if
3623         GL_GENERATE_BYTESWAP_H evaluates to false.
3624
3625         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3626         GL_GENERATE_ERRNO_H.
3627         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3628         evaluates to false.
3629
3630         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3631         GL_GENERATE_FLOAT_H.
3632         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3633         evaluates to false.
3634
3635         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3636         GL_GENERATE_FNMATCH_H.
3637         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3638         GL_GENERATE_FNMATCH_H evaluates to false.
3639
3640         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3641         GL_GENERATE_GLOB_H.
3642         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3643         evaluates to false.
3644
3645         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3646         automake conditional GL_GENERATE_ICONV_H.
3647         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3648         evaluates to false.
3649
3650         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3651         GL_GENERATE_NETINET_IN_H.
3652         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3653         GL_GENERATE_NETINET_IN_H evaluates to false.
3654
3655         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3656         conditional GL_GENERATE_PTHREAD_H.
3657         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3658         * modules/pthread (Makefile.am): Remove pthread.h if
3659         GL_GENERATE_PTHREAD_H evaluates to false.
3660
3661         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3662         GL_GENERATE_SCHED_H.
3663         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3664         evaluates to false.
3665
3666         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3667         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3668         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3669         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3670
3671         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3672         GL_GENERATE_STDARG_H.
3673         * modules/stdarg (Makefile.am): Remove stdarg.h if
3674         GL_GENERATE_STDARG_H evaluates to false.
3675
3676         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3677         GL_GENERATE_STDBOOL_H.
3678         * modules/stdbool (Makefile.am): Remove stdbool.h if
3679         GL_GENERATE_STDBOOL_H evaluates to false.
3680
3681         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3682         conditional GL_GENERATE_STDDEF_H.
3683         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3684         * modules/stddef (Makefile.am): Remove stddef.h if
3685         GL_GENERATE_STDDEF_H evaluates to false.
3686
3687         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3688         GL_GENERATE_STDINT_H.
3689         * modules/stdint (Makefile.am): Remove stdint.h if
3690         GL_GENERATE_STDINT_H evaluates to false.
3691
3692         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3693         GL_GENERATE_SYSEXITS_H.
3694         * modules/sysexits (Makefile.am): Remove sysexits.h if
3695         GL_GENERATE_SYSEXITS_H evaluates to false.
3696
3697         Reported by Karl Berry and Ralf Wildenhues.
3698
3699 2011-04-05  Bruno Haible  <bruno@clisp.org>
3700
3701         Ensure to rebuild generated .h files when config.status has changed.
3702         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3703         config.status.
3704         * modules/ctype (Makefile.am): Likewise.
3705         * modules/dirent (Makefile.am): Likewise.
3706         * modules/errno (Makefile.am): Likewise.
3707         * modules/fcntl-h (Makefile.am): Likewise.
3708         * modules/float (Makefile.am): Likewise.
3709         * modules/getopt-posix (Makefile.am): Likewise.
3710         * modules/glob (Makefile.am): Likewise.
3711         * modules/iconv-h (Makefile.am): Likewise.
3712         * modules/inttypes (Makefile.am): Likewise.
3713         * modules/langinfo (Makefile.am): Likewise.
3714         * modules/locale (Makefile.am): Likewise.
3715         * modules/math (Makefile.am): Likewise.
3716         * modules/netdb (Makefile.am): Likewise.
3717         * modules/netinet_in (Makefile.am): Likewise.
3718         * modules/poll-h (Makefile.am): Likewise.
3719         * modules/pthread (Makefile.am): Likewise.
3720         * modules/pty (Makefile.am): Likewise.
3721         * modules/sched (Makefile.am): Likewise.
3722         * modules/search (Makefile.am): Likewise.
3723         * modules/selinux-h (Makefile.am): Likewise.
3724         * modules/signal (Makefile.am): Likewise.
3725         * modules/spawn (Makefile.am): Likewise.
3726         * modules/stdarg (Makefile.am): Likewise.
3727         * modules/stdbool (Makefile.am): Likewise.
3728         * modules/stddef (Makefile.am): Likewise.
3729         * modules/stdint (Makefile.am): Likewise.
3730         * modules/stdio (Makefile.am): Likewise.
3731         * modules/stdlib (Makefile.am): Likewise.
3732         * modules/string (Makefile.am): Likewise.
3733         * modules/strings (Makefile.am): Likewise.
3734         * modules/sys_file (Makefile.am): Likewise.
3735         * modules/sys_ioctl (Makefile.am): Likewise.
3736         * modules/sys_select (Makefile.am): Likewise.
3737         * modules/sys_socket (Makefile.am): Likewise.
3738         * modules/sys_stat (Makefile.am): Likewise.
3739         * modules/sys_time (Makefile.am): Likewise.
3740         * modules/sys_times (Makefile.am): Likewise.
3741         * modules/sys_utsname (Makefile.am): Likewise.
3742         * modules/sys_wait (Makefile.am): Likewise.
3743         * modules/sysexits (Makefile.am): Likewise.
3744         * modules/termios (Makefile.am): Likewise.
3745         * modules/time (Makefile.am): Likewise.
3746         * modules/unistd (Makefile.am): Likewise.
3747         * modules/wchar (Makefile.am): Likewise.
3748         * modules/wctype-h (Makefile.am): Likewise.
3749         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3750
3751 2011-04-05  Bruno Haible  <bruno@clisp.org>
3752
3753         pipe2: Relicense under LGPLv2+.
3754         * modules/pipe2 (License): Change to LGPLv2+.
3755         Requested by Eric Blake, for libvirt.
3756
3757 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3758
3759         bootstrap: compute gnulib_extra_files after updating build_aux
3760         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3761         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3762
3763 2011-04-05  Eric Blake  <eblake@redhat.com>
3764
3765         bootstrap: preserve git whitelist item sorting
3766         * build-aux/bootstrap (sort_patterns): New function.
3767         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3768
3769 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3770
3771         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3772         sc_space_tab check.
3773
3774 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3775
3776         areadlink, areadlinkat: rewrite in terms of careadlinkat
3777         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3778         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3779         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3780         (malloc, realloc): Remove #undefs.
3781         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3782         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3783         readlink, ssize_t, stdint, unistd.
3784         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3785         areadlink, stdint.
3786
3787         careadlinkat: new module
3788         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3789         * modules/careadlinkat: New files, written by me with
3790         a review and feedback from Ben Pfaff in
3791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3792
3793 2011-04-01  Bruno Haible  <bruno@clisp.org>
3794
3795         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3796         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3797         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3798         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3799         Reported by Bruce Korb <bruce.korb@gmail.com>.
3800
3801 2011-04-01  Bruno Haible  <bruno@clisp.org>
3802
3803         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3804         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3805         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3806         * modules/wcpcpy (Depends-on): Add extensions.
3807         * modules/wcpncpy (Depends-on): Likewise.
3808         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3809         systems.
3810         * doc/posix-functions/wcpncpy.texi: Likewise.
3811         * doc/posix-functions/wcwidth.texi: Likewise.
3812
3813 2011-03-31  Eric Blake  <eblake@redhat.com>
3814
3815         nonblocking: fix mingw test failures
3816         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3817         non-blocking flag on regular file.
3818         (get_nonblocking_flag): Set errno on invalid fd.
3819         * tests/test-nonblocking.c (main): Avoid test failure on
3820         directories if fchdir is not active.
3821         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3822
3823 2011-03-31  Bruno Haible  <bruno@clisp.org>
3824
3825         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3826         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3827         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3828         Reported by Simon Josefsson <simon@josefsson.org>.
3829
3830 2011-03-31  Bruno Haible  <bruno@clisp.org>
3831         and Eric Blake  <eblake@redhat.com>
3832
3833         nonblocking: new module
3834         * modules/nonblocking: New module.
3835         * modules/nonblocking-tests: Likewise.
3836         * lib/nonblocking.h: New file.
3837         * lib/nonblocking.c: Likewise.
3838         * tests/test-nonblocking.c: New test.
3839         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3840
3841 2011-03-30  Bruno Haible  <bruno@clisp.org>
3842
3843         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3844         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3845         instead of 'printf' format for GCC >= 4.4.
3846         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3847         (fprintf, printf, vfprintf, vprintf): Declare with
3848         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3849         the system's vfprintf() function.
3850         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3851
3852 2011-03-30  Eric Blake  <eblake@redhat.com>
3853
3854         passfd: fix scoping bug
3855         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3856         before sendmsg/recvmsg.
3857
3858         passfd: standardize coding conventions
3859         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3860         can be learned at compile time.
3861         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3862         ifdefs.
3863         (sendfd, recvfd): Follow gnulib code conventions.
3864
3865         passfd: fix incorrect sendmsg arguments
3866         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3867         incorrect msg_controllen value.
3868         * modules/passfd-tests (Depends-on): Check for alarm.
3869         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3870         Reported by Bastien ROUCARIES.
3871
3872 2011-03-30  Bruno Haible  <bruno@clisp.org>
3873
3874         c-strcasestr: Relicense under LGPLv2+.
3875         * modules/c-strcasestr (License): Change to LGPLv2+.
3876         Requested by Eric Blake, for libvirt.
3877
3878 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3879
3880         * users.txt: Add libidn2.  Fix libtasn1 link.
3881
3882 2011-03-30  Jim Meyering  <meyering@redhat.com>
3883
3884         tests: readlink* ("",... fails with EINVAL on newer kernels
3885         readlink and readlinkat have typically failed with ENOENT for
3886         the invalid, empty file name,  "".  However, with the advent
3887         of linux-2.6.39, they fail with EINVAL.
3888         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3889         when operating on the empty file name.
3890         * tests/test-readlink.h (test_readlink): Likewise.
3891
3892 2011-03-29  Bruno Haible  <bruno@clisp.org>
3893
3894         Relicense some modules under LGPLv2+, for libidn2.
3895         * modules/array-mergesort (License): Change to LGPLv2+.
3896         * modules/c-strcaseeq (License): Likewise.
3897         * modules/striconveh (License): Likewise.
3898         * modules/striconveha (License): Likewise.
3899         * modules/uniconv/base (License): Likewise.
3900         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3901         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3902         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3903         * modules/unictype/base (License): Likewise.
3904         * modules/unictype/bidiclass-of (License): Likewise.
3905         * modules/unictype/category-M (License): Likewise.
3906         * modules/unictype/category-none (License): Likewise.
3907         * modules/unictype/category-of (License): Likewise.
3908         * modules/unictype/category-test (License): Likewise.
3909         * modules/unictype/category-test-withtable (License): Likewise.
3910         * modules/unictype/combining-class (License): Likewise.
3911         * modules/unictype/joiningtype-of (License): Likewise.
3912         * modules/unictype/scripts (License): Likewise.
3913         * modules/uninorm/base (License): Likewise.
3914         * modules/uninorm/canonical-decomposition (License): Likewise.
3915         * modules/uninorm/composition (License): Likewise.
3916         * modules/uninorm/decompose-internal (License): Likewise.
3917         * modules/uninorm/decomposition-table (License): Likewise.
3918         * modules/uninorm/nfc (License): Likewise.
3919         * modules/uninorm/nfd (License): Likewise.
3920         * modules/uninorm/u32-normalize (License): Likewise.
3921         * modules/unistr/base (License): Likewise.
3922         * modules/unistr/u32-cpy (License): Likewise.
3923         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3924         * modules/unistr/u32-to-u8 (License): Likewise.
3925         * modules/unistr/u32-uctomb (License): Likewise.
3926         * modules/unistr/u8-check (License): Likewise.
3927         * modules/unistr/u8-mblen (License): Likewise.
3928         * modules/unistr/u8-mbtouc (License): Likewise.
3929         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3930         * modules/unistr/u8-mbtoucr (License): Likewise.
3931         * modules/unistr/u8-prev (License): Likewise.
3932         * modules/unistr/u8-strlen (License): Likewise.
3933         * modules/unistr/u8-to-u32 (License): Likewise.
3934         * modules/unistr/u8-uctomb (License): Likewise.
3935         * modules/unitypes (License): Likewise.
3936         Requested by Simon Josefsson.
3937
3938 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3939
3940         lib-symbol-visibility: Add a notice.
3941         * modules/lib-symbol-visibility (Notice): New field.
3942
3943 2011-03-29  Bruno Haible  <bruno@clisp.org>
3944
3945         getaddrinfo: Doc fix.
3946         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3947         section "fixed in Gnulib".
3948
3949 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3950
3951         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3952         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3953
3954 2011-03-26  Bruno Haible  <bruno@clisp.org>
3955
3956         unictype/property-byname: Reduce the number of load-time relocations.
3957         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3958         (UC_PROPERTY_INDEX_*): New enumeration values.
3959         (uc_property_byname): Convert an index from the lookup table to an
3960         uc_property_t.
3961         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3962         values.
3963
3964 2011-03-26  Bruno Haible  <bruno@clisp.org>
3965
3966         unictype/property-byname: Allow omitted word separators and aliases.
3967         * lib/unictype/pr_byname.gperf: Add property names without word
3968         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3969         for 'space'.
3970
3971 2011-03-26  Bruno Haible  <bruno@clisp.org>
3972
3973         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3974         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3975         also hyphens to space.
3976         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3977         without spaces.
3978         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3979
3980 2011-03-26  Bruno Haible  <bruno@clisp.org>
3981
3982         unictype/joiningtype-byname: Recognize long names as well.
3983         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3984         a long name.
3985         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3986         unictype/joiningtype_byname.h.
3987         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3988         * lib/unictype/joiningtype_byname.gperf: New file.
3989         * modules/unictype/joiningtype-byname (Files): Add
3990         lib/unictype/joiningtype_byname.gperf.
3991         (Depends-on): Add gperf.
3992         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3993         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3994         long names.
3995
3996         Tests for module 'unictype/joiningtype-longname'.
3997         * modules/unictype/joiningtype-longname-tests: New file.
3998         * tests/unictype/test-joiningtype_longname.c: New file.
3999
4000         New module 'unictype/joiningtype-longname'.
4001         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
4002         * lib/unictype/joiningtype_longname.c: New file.
4003         * modules/unictype/joiningtype-longname: New file.
4004         * modules/unictype/joiningtype-all (Depends-on): Add
4005         unictype/joiningtype-longname.
4006
4007 2011-03-26  Bruno Haible  <bruno@clisp.org>
4008
4009         unictype/bidiclass-byname: Recognize long names as well.
4010         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
4011         name.
4012         * lib/unictype/bidi_byname.c: Include <string.h>,
4013         unictype/bidi_byname.h.
4014         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
4015         * lib/unictype/bidi_byname.gperf: New file.
4016         * modules/unictype/bidiclass-byname (Files): Add
4017         lib/unictype/bidi_byname.gperf.
4018         (Depends-on): Add gperf.
4019         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
4020         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
4021         long names.
4022
4023         Tests for module 'unictype/bidiclass-longname'.
4024         * modules/unictype/bidiclass-longname-tests: New file.
4025         * tests/unictype/test-bidi_longname.c: New file.
4026
4027         New module 'unictype/bidiclass-longname'.
4028         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
4029         * lib/unictype/bidi_longname.c: New file.
4030         * modules/unictype/bidiclass-longname: New file.
4031         * modules/unictype/bidiclass-all (Depends-on): Add
4032         unictype/bidiclass-longname.
4033
4034 2011-03-26  Bruno Haible  <bruno@clisp.org>
4035
4036         unictype/bidi*: Rename modules.
4037         * modules/unictype/bidiclass-all: Renamed from
4038         modules/unictype/bidicategory-all.
4039         * modules/unictype/bidiclass-name: Renamed from
4040         modules/unictype/bidiclass-name.
4041         (Description): Update.
4042         * modules/unictype/bidiclass-name-tests: Renamed from
4043         modules/unictype/bidicategory-name-tests.
4044         * modules/unictype/bidiclass-byname: Renamed from
4045         modules/unictype/bidicategory-byname.
4046         (Description): Update.
4047         * modules/unictype/bidiclass-byname-tests: Renamed from
4048         modules/unictype/bidicategory-byname-tests.
4049         * modules/unictype/bidiclass-of: Renamed from
4050         modules/unictype/bidicategory-of.
4051         (Description): Update.
4052         * modules/unictype/bidiclass-of-tests: Renamed from
4053         modules/unictype/bidicategory-of-tests.
4054         * modules/unictype/bidiclass-test: Renamed from
4055         modules/unictype/bidicategory-test.
4056         (Description): Update.
4057         * modules/unictype/bidiclass-test-tests: Renamed from
4058         modules/unictype/bidicategory-test-tests.
4059         * modules/unictype/bidicategory-all: New file, a simple redirection.
4060         * modules/unictype/bidicategory-name: Likewise.
4061         * modules/unictype/bidicategory-byname: Likewise.
4062         * modules/unictype/bidicategory-of: Likewise.
4063         * modules/unictype/bidicategory-test: Likewise.
4064         * modules/unictype/property-bidi-* (Dependencies): Update.
4065         * lib/unictype/bidi_*.c: Update comment.
4066
4067 2011-03-26  Bruno Haible  <bruno@clisp.org>
4068
4069         unictype/bidi*: Rename functions, part 2.
4070         * modules/unictype/bidicategory-name (configure.ac): Update required
4071         libunistring version.
4072         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
4073
4074 2011-03-25  Bruno Haible  <bruno@clisp.org>
4075
4076         New module 'unictype/combining-class-all'.
4077         * modules/unictype/combining-class-all: New file.
4078
4079         Tests for module 'unictype/combining-class-byname'.
4080         * modules/unictype/combining-class-byname-tests: New file.
4081         * tests/unictype/test-combiningclass_byname.c: New file.
4082
4083         New module 'unictype/combining-class-byname'.
4084         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
4085         * lib/unictype/combiningclass_byname.c: New file.
4086         * lib/unictype/combiningclass_byname.gperf: New file.
4087         * modules/unictype/combining-class-byname: New file.
4088
4089         Tests for module 'unictype/combining-class-longname'.
4090         * modules/unictype/combining-class-longname-tests: New file.
4091         * tests/unictype/test-combiningclass_longname.c: New file.
4092
4093         New module 'unictype/combining-class-longname'.
4094         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
4095         * lib/unictype/combiningclass_longname.c: New file.
4096         * modules/unictype/combining-class-longname: New file.
4097
4098         Tests for module 'unictype/combining-class-name'.
4099         * modules/unictype/combining-class-name-tests: New file.
4100         * tests/unictype/test-combiningclass_name.c: New file.
4101
4102         New module 'unictype/combining-class-name'.
4103         * lib/unictype.in.h (uc_combining_class_name): New declaration.
4104         * lib/unictype/combiningclass_name.c: New file.
4105         * modules/unictype/combining-class-name: New file.
4106
4107 2011-03-25  Bruno Haible  <bruno@clisp.org>
4108
4109         unictype/combining-class: Rename source files.
4110         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
4111         of unictype/combining.h.
4112         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
4113         Update.
4114         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
4115         * modules/unictype/combining-class (Description): Fix.
4116         (Files, Makefile.am): Update.
4117         * tests/unictype/test-combiningclass.c: Renamed from
4118         tests/unictype/test-combining.c.
4119         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
4120
4121 2011-03-25  Bruno Haible  <bruno@clisp.org>
4122
4123         unictype: Update list of canonical combining classes.
4124         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
4125
4126 2011-03-25  Bruno Haible  <bruno@clisp.org>
4127
4128         unictype/category-byname: Recognize long names as well.
4129         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
4130         a long name.
4131         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
4132         unictype/categ_byname.h.
4133         (UC_CATEGORY_INDEX_*): New enumeration values.
4134         (uc_general_category_byname): Use uc_general_category_lookup and
4135         convert from index to value.
4136         * lib/unictype/categ_byname.gperf: New file.
4137         * modules/unictype/category-byname (Files): Add
4138         lib/unictype/categ_byname.gperf.
4139         (Depends-on): Add gperf.
4140         (Makefile.am): Add rule for generating unictype/categ_byname.h.
4141         * tests/unictype/test-categ_byname.c (main): Test the recognition of
4142         long names.
4143
4144         Tests for module 'unictype/category-longname'.
4145         * modules/unictype/category-longname-tests: New file.
4146         * tests/unictype/test-categ_longname.c: New file.
4147
4148         New module 'unictype/category-longname'.
4149         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
4150         * lib/unictype/categ_longname.c: New file.
4151         * modules/unictype/category-longname: New file.
4152         * modules/unictype/category-all (Depends-on): Add it.
4153
4154 2011-03-25  Bruno Haible  <bruno@clisp.org>
4155
4156         Tests for module 'unictype/category-LC'.
4157         * modules/unictype/category-LC-tests: New file.
4158         * tests/unictype/test-categ_LC.c: New file, automatically generated.
4159
4160         New module 'unictype/category-LC'.
4161         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
4162         (UC_CATEGORY_LC): New declaration.
4163         (UC_CASED_LETTER): New macro.
4164         * lib/gen-uni-tables.c (is_category_LC): New function.
4165         (output_categories): Also handle category LC.
4166         (UC_CATEGORY_MASK_LC): New enumeration value.
4167         (general_category_byname): Also handle category LC.
4168         * lib/unictype/categ_LC.c: New file.
4169         * lib/unictype/categ_LC.h: New file, automatically generated.
4170         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
4171         category LC.
4172         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
4173         * modules/unictype/category-LC: New file.
4174         * modules/unictype/category-byname (Depends-on): Add
4175         unictype/category-LC.
4176         * modules/unictype/category-all (Depends-on): Likewise.
4177
4178 2011-03-25  Eric Blake  <eblake@redhat.com>
4179
4180         xmalloc: revert yesterday's regression
4181         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
4182         realloc's underlying behavior (allowing allocation of zero-size
4183         objects, especially if malloc-gnu is also in use).
4184
4185 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
4186
4187         maint.mk: add missing version to VC-tag
4188         * top/maint.mk: git tag was missing actual tag name; add it.
4189
4190         valgrind: do leak checking, and exit with code 1 on error (not 0)
4191         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
4192         to VALGRIND.
4193
4194 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
4195
4196         posix-modules: say what it does.
4197         * posix-modules: Add a line to the --help output saying what it does.
4198
4199 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
4200
4201         xmalloc: Do not leak if underlying realloc is C99 compatible.
4202         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
4203         This avoids a leak on C99-based systems.  See
4204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
4205
4206 2011-03-24  Eric Blake  <eblake@redhat.com>
4207
4208         realloc: document portability problem
4209         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
4210         passing 0 size to realloc.
4211
4212 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
4213
4214         doc: update users.txt
4215         * users.txt: Add cvsps, tmpwatch
4216
4217 2011-03-23  Matt Rice  <ratmice@gmail.com>
4218
4219         doc: update users.txt
4220         * users.txt: Add gdb.
4221
4222 2011-03-23  Jim Meyering  <meyering@redhat.com>
4223
4224         doc: update users.txt
4225         Looking through matches up to the following URL (there are still
4226         several more pages), I found several projects that use gnulib:
4227         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4228         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4229         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4230
4231 2011-03-22  Bruno Haible  <bruno@clisp.org>
4232
4233         unictype/bidi*: Rename functions.
4234         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4235         uc_bidi_class, uc_is_bidi_class): New declarations.
4236         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4237         uc_bidi_category_byname.
4238         (uc_bidi_category_byname): New function.
4239         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4240         u_bidi_category_name.
4241         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4242         (uc_bidi_category_name): New function.
4243         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4244         uc_bidi_category.
4245         (uc_bidi_category): New function.
4246         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4247         uc_is_bidi_category. Invoke uc_bidi_class.
4248         (uc_is_bidi_category): New function.
4249         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4250         instead of uc_bidi_category_byname.
4251         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4252         instead of uc_bidi_category_name.
4253         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4254         uc_bidi_category.
4255         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4256         instead of uc_is_bidi_category.
4257
4258 2011-03-21  Bruno Haible  <bruno@clisp.org>
4259
4260         New module 'unictype/joininggroup-all'.
4261         * modules/unictype/joininggroup-all: New file.
4262
4263         Tests for module 'unictype/joininggroup-of'.
4264         * modules/unictype/joininggroup-of-tests: New file.
4265         * tests/unictype/test-joininggroup_of.c: New file.
4266         * tests/unictype/test-joininggroup_of.h: New file, automatically
4267         generated by gen-uni-tables.
4268
4269         New module 'unictype/joininggroup-of'.
4270         * modules/unictype/joininggroup-of: New file.
4271         * lib/unictype/joininggroup_of.c: New file.
4272         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4273         gen-uni-tables.
4274
4275         Tests for module 'unictype/joininggroup-byname'.
4276         * modules/unictype/joininggroup-byname-tests: New file.
4277         * tests/unictype/test-joininggroup_byname.c: New file.
4278
4279         New module 'unictype/joininggroup-byname'.
4280         * modules/unictype/joininggroup-byname: New file.
4281         * lib/unictype/joininggroup_byname.c: New file.
4282         * lib/unictype/joininggroup_byname.gperf: New file.
4283
4284         Tests for module 'unictype/joininggroup-name'.
4285         * modules/unictype/joininggroup-name-tests: New file.
4286         * tests/unictype/test-joininggroup_name.c: New file.
4287
4288         New module 'unictype/joininggroup-name'.
4289         * modules/unictype/joininggroup-name: New file.
4290         * lib/unictype/joininggroup_name.c: New file.
4291         * lib/unictype/joininggroup_name.h: New file.
4292
4293         New module 'unictype/joiningtype-all'.
4294         * modules/unictype/joiningtype-all: New file.
4295
4296         Tests for module 'unictype/joiningtype-of'.
4297         * modules/unictype/joiningtype-of-tests: New file.
4298         * tests/unictype/test-joiningtype_of.c: New file.
4299         * tests/unictype/test-joiningtype_of.h: New file, automatically
4300         generated by gen-uni-tables.
4301
4302         New module 'unictype/joiningtype-of'.
4303         * modules/unictype/joiningtype-of: New file.
4304         * lib/unictype/joiningtype_of.c: New file.
4305         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4306         gen-uni-tables.
4307
4308         Tests for module 'unictype/joiningtype-byname'.
4309         * modules/unictype/joiningtype-byname-tests: New file.
4310         * tests/unictype/test-joiningtype_byname.c: New file.
4311
4312         New module 'unictype/joiningtype-byname'.
4313         * modules/unictype/joiningtype-byname: New file.
4314         * lib/unictype/joiningtype_byname.c: New file.
4315
4316         Tests for module 'unictype/joiningtype-name'.
4317         * modules/unictype/joiningtype-name-tests: New file.
4318         * tests/unictype/test-joiningtype_name.c: New file.
4319
4320         New module 'unictype/joiningtype-name'.
4321         * modules/unictype/joiningtype-name: New file.
4322         * lib/unictype/joiningtype_name.c: New file.
4323
4324         unictype: Add support for Arabic shaping properties.
4325         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4326         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4327         declarations.
4328         (UC_JOINING_GROUP_*): New enumeration values.
4329         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4330         declarations.
4331         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4332         (unicode_joining_type): New variable.
4333         (UC_JOINING_GROUP_*): New enumeration values.
4334         (unicode_joining_group): New variable.
4335         (fill_arabicshaping, joining_type_as_c_identifier,
4336         output_joining_type_test, output_joining_type,
4337         joining_group_as_c_identifier, output_joining_group_test,
4338         output_joining_group): New functions.
4339         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4340         fill_arabicshaping and output_joining_type_test, output_joining_type,
4341         output_joining_group_test, output_joining_group.
4342         Reported by Simon Josefsson.
4343
4344 2011-03-21  Jim Meyering  <meyering@redhat.com>
4345
4346         strftime: fix a bug in yesterday's change
4347         * lib/strftime.c (add): Accommodate width's initial value of -1.
4348         Otherwise, nstrftime would copy uninitialized data into
4349         the result buffer.
4350
4351 2011-03-21  Jim Meyering  <meyering@redhat.com>
4352
4353         tests: add strftime-tests module
4354         * tests/test-strftime.c: New file.
4355         * modules/strftime-tests: New module.
4356
4357 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4358
4359         strftime: don't assume a byte count fits in 'int'
4360         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4361         found this problem by static analysis, using gcc -Wstrict-overflow
4362         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4363         on an integer overflow having undefined behavior, but it turns out
4364         that the argument is a size, which might not fit in 'int' anyway,
4365
4366 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4367
4368         stdio: don't require ignore_value around fwrite
4369
4370         This patch works around libc bug 11959
4371         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4372         Without this patch, applications must often write
4373         ignore_value (fwrite (...)) even though the ignore_value is
4374         not helpful here.  It's common to write many objects, using
4375         fwrite/printf/etc., and then use ferror to detect output error.
4376
4377         I considered making this patch optional, but decided against it,
4378         because libc is obviously being inconsistent here: there is no
4379         reason libc should insist that user code must inspect fwrite
4380         return's value without also insisting that it inspect printf's,
4381         putchar's, etc.  If user code wants to have a strict style where
4382         all these functions' values are checked (so that ferror need not
4383         be checked), we could add support for that style in a new gnulib
4384         module, but in the meantime it's better to be consistent and to
4385         support common usage.
4386
4387         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4388         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4389         that we are compiling in checking mode, and if not C++, and
4390         if not already wrapping fwrite for some other reason.
4391         (fwrite): #define to rpl_fwrite if the latter is defined.
4392
4393 2011-03-20  Bruno Haible  <bruno@clisp.org>
4394
4395         verror: Fix compilation error introduced on 2011-02-13.
4396         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4397         instead of __attribute__.
4398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4399
4400 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4401             Bruno Haible  <bruno@clisp.org>
4402
4403         socklen: do not depend on sys_socket
4404         While trying to modify Emacs to use gnulib's socklen module,
4405         I discovered a circular dependency: socklen depends on sys_socket
4406         and vice versa.  Emacs can use socklen, but it does not need
4407         sys_socket because it has its own substitute for sys/socket.h.
4408         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4409         gl_TYPE_SOCKLEN_T.
4410         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4411         gl_PREREQ_SYS_H_SOCKET.
4412         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4413         gl_PREREQ_SYS_H_SOCKET.
4414         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4415         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4416         * modules/socklen (Depends-on): Do not depend on sys_socket.
4417         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4418
4419 2011-03-20  Jim Meyering  <meyering@redhat.com>
4420
4421         maint.mk: sort file names *after* new transformation
4422         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4423         prefix would have led to an unwarranted failure in GNU parted.
4424         Sort after that transformation.
4425
4426 2011-03-19  Jim Meyering  <meyering@redhat.com>
4427
4428         maint.mk: fix po-file syntax-check rule
4429         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4430         Patch by Bruno Haible.
4431
4432 2011-03-19  Bruno Haible  <bruno@clisp.org>
4433
4434         socklen: Update comment.
4435         * m4/socklen.m4: Update comment about platforms.
4436
4437 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4438             Bruno Haible  <bruno@clisp.org>
4439
4440         inet_ntop, inet_pton: Simplify.
4441         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4442         documented to provide socklen_t and we already depend on sys_socket.
4443         * modules/inet_pton (Depends-on): Likewise.
4444         * lib/arpa_inet.in.h: Adjust comment.
4445
4446 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4447             Bruno Haible  <bruno@clisp.org>
4448
4449         netdb: Simplify.
4450         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4451         documented to provide socklen_t and we already depend on sys_socket.
4452         * lib/netdb.in.h: Adjust comment.
4453
4454 2011-03-19  Bruno Haible  <bruno@clisp.org>
4455
4456         sys_socket, netdb: Document problem with socklen_t.
4457         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4458         platforms.
4459         * doc/posix-headers/netdb.texi: Likewise.
4460
4461 2011-03-18  Eric Blake  <eblake@redhat.com>
4462
4463         maint.mk: let po check work in VPATH build
4464         * top/maint.mk (po_file): Allow cfg.mk override.
4465         (sc_po_check): Allow VPATH use.
4466         Reported by Jiri Denemark.
4467
4468 2011-03-16  Jim Meyering  <meyering@redhat.com>
4469
4470         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4471         Before, you would have had to create one .x-sc_ file per rule in order
4472         to exempt offending files.  Now, you may instead use a Make variable --
4473         usually defined in cfg.mk -- whose name identifies the affected rule.
4474         * top/maint.mk (_sc_excl): Define.
4475         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4476         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4477
4478 2011-03-13  Bruno Haible  <bruno@clisp.org>
4479
4480         ignore-value tests: Avoid warnings.
4481         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4482         empty for gcc < 3.4.
4483
4484 2011-03-13  Bruno Haible  <bruno@clisp.org>
4485
4486         passfd: Fix link error on Solaris.
4487         * modules/passfd (Description): Correct.
4488         (Depends-on): Add socketlib.
4489         (Link): New section.
4490         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4491
4492 2011-03-13  Bruno Haible  <bruno@clisp.org>
4493
4494         passfd: Fix link error on AIX 5.2.
4495         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4496
4497 2011-03-13  Bruno Haible  <bruno@clisp.org>
4498
4499         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4500         * lib/sys_socket.in.h: Include <stddef.h>.
4501         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4502         CMSG_FIRSTHDR. Remove unused variable.
4503
4504 2011-03-13  Bruno Haible  <bruno@clisp.org>
4505
4506         passfd: Fix compilation error on OpenBSD.
4507         * lib/passfd.c: Include <sys/uio.h>.
4508
4509 2011-03-13  Bruno Haible  <bruno@clisp.org>
4510
4511         passfd test: Fix warnings.
4512         * tests/test-passfd.c: Include <sys/wait.h>.
4513         (main): Fix typo.
4514
4515 2011-03-13  Bruno Haible  <bruno@clisp.org>
4516
4517         passfd module, part 4, tweaks.
4518         * tests/test-passfd.c: Reorder includes.
4519         (main): Fix perror and printf calls.
4520
4521 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4522
4523         passfd module, part 4.
4524         * modules/passfd-tests: New file.
4525         * tests/test-passfd.c: New file.
4526
4527 2011-03-13  Jim Meyering  <meyering@redhat.com>
4528
4529         Makefile: rely on GNU make; derive syntax-check rule names
4530         Rather than requiring that each sc_ rule be listed as a dependent
4531         of "check", use features of GNU make to derive the list.
4532         * Makefile (syntax-check-rules): Define.
4533         (check): Depend on the new variable, not the hard-coded list.
4534
4535 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4536             Bruno Haible  <bruno@clisp.org>
4537
4538         passfd module, part 3.
4539         * lib/passfd.h (recvfd): Add a flags argument.
4540         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4541         (recvfd): Add a flags argument.
4542         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4543         exists.
4544         * modules/passfd (Depends-on): Add cloexec.
4545         Suggested by Eric Blake.
4546
4547 2011-03-13  Bruno Haible  <bruno@clisp.org>
4548
4549         passfd module, part 2, tweaks.
4550         * modules/passfd (Files): Reorder.
4551         (Depends-on): Remove errno.
4552         (Include): Remove <sys/socket.h>, <sys/un.h>.
4553         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4554         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4555         specification header. Include <sys/socket.h> always. Don't include
4556         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4557         (sendfd): Clarify that it sets errno when it fails.
4558         (recvfd): Fix specification.
4559
4560 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4561
4562         passfd module, part 2.
4563         * modules/passfd: New file.
4564         * lib/passfd.h: New file.
4565         * lib/passfd.c: New file.
4566
4567 2011-03-12  Bruno Haible  <bruno@clisp.org>
4568
4569         wcswidth, mbswidth: Avoid integer overflow.
4570         * lib/wcswidth.c: Include <limits.h>.
4571         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4572         * lib/mbswidth.c: Include <limits.h>.
4573         (mbsnwidth): Avoid 'int' overflow.
4574         Reported by Jim Meyering.
4575
4576 2011-03-12  Bruno Haible  <bruno@clisp.org>
4577
4578         futimens, utimensat: Avoid endless recursion on Solaris 10.
4579         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4580         Solaris.
4581         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4582         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4583
4584 2011-03-11  Jim Meyering  <meyering@redhat.com>
4585
4586         maint.mk: relax a regexp to accommodate other formatting styles
4587         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4588         between "ngettext" and the following "(".
4589
4590 2011-03-11  Pádraig Brady <P@draigBrady.com>
4591
4592         maint.mk: suppress a false positive warning
4593         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4594         diagnostics are marked with ngettext.
4595
4596 2011-03-10  Eric Blake  <eblake@redhat.com>
4597
4598         wchar: add explicit dependencies, for Tru64
4599         * modules/mbmemcasecoll (Depends-on): Add wchar.
4600         * modules/mbtowc (Depends-on): Likewise.
4601         * modules/vasnprintf (Depends-on): Likewise.
4602         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4603         * modules/wctomb (Depends-on): Likewise.
4604         Reported by Peter O'Gorman.
4605
4606 2011-03-08  Bruno Haible  <bruno@clisp.org>
4607
4608         passfd module, part 1, tweaks.
4609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4610         Improve indentation. Improve AC_MSG_CHECKING messages.
4611         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4612         gl_SOCKET_FAMILIES.
4613
4614 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4615
4616         passfd module, part 1.
4617         * m4/afunix.m4: New file.
4618         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4619         sockets.
4620
4621 2011-03-08  Bruno Haible  <bruno@clisp.org>
4622
4623         regex-quote: New API.
4624         * lib/regex-quote.h: Include <stdbool.h>.
4625         (struct regex_quote_spec): New type.
4626         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4627         New declarations.
4628         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4629         'const struct regex_quote_spec *' argument.
4630         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4631         (pcre_special): New constant.
4632         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4633         New functions.
4634         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4635         'const struct regex_quote_spec *' argument.
4636         * modules/regex-quote (Depends-on): Add stdbool.
4637         * tests/test-regex-quote.c (check): Update for new API. Add test for
4638         anchored results.
4639         * NEWS: Mention the API change.
4640         Reported by Reuben Thomas and Eric Blake.
4641
4642 2011-03-06  Bruno Haible  <bruno@clisp.org>
4643
4644         regex-quote: Fix creation of POSIX extended regular expressions.
4645         * lib/regex-quote.c (ere_special): Add grouping and alternation
4646         operators.
4647
4648 2011-03-05  Bruno Haible  <bruno@clisp.org>
4649
4650         doc: Improve doc regarding autopoint vs. gnulib.
4651         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4652         disable autopoint while running autoreconf.
4653         Suggested by Ralf Wildenhues.
4654
4655 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4656
4657         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4658         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4659
4660 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4661
4662         parse-duration: remove xalloc.h dependency
4663         * lib/parse-duration.c (parse_period): handle NULL return from
4664         strdup instead of calling xstrdup().
4665         * modules/parse-duration: remove "xalloc" dependency
4666
4667 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4668
4669         bootstrap: honor m4_base when running aclocal
4670         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4671
4672 2011-03-02  Jim Meyering  <meyering@redhat.com>
4673
4674         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4675         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4676         on request from Matt Booth.
4677
4678 2011-03-01  Eric Blake  <eblake@redhat.com>
4679
4680         test-link: work on Hurd
4681         * tests/test-link.h (test_link): Hurd rejects linking directories
4682         with EISDIR instead of the POSIX-mandated EPERM.
4683
4684 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4685
4686         stdio: simplify by moving files to printf-posix, sigpipe
4687         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4688         since this symbol is needed only if printf is replaced.
4689         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4690         Require gl_ASM_SYMBOL_PREFIX.
4691         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4692         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4693         (Depends-on): Add 'raise'.
4694         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4695         * modules/stdio (Files): Remove lib/stdio-write.c,
4696         m4/asm-underscore.m4.
4697         (Depends-on): Remove 'raise'.
4698
4699         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4700         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4701         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4702         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4703
4704 2011-02-28  Bruno Haible  <bruno@clisp.org>
4705
4706         localcharset: Assume ANSI C behaviour of free().
4707         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4708         calling free().
4709         Suggested by Simon Josefsson <simon@josefsson.org>.
4710
4711 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4712             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4713             Bruno Haible  <bruno@clisp.org>  (tiny change)
4714
4715         On Cygwin, use /proc file system instead of win32 API.
4716         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4717         Win32 file names.
4718         (DllMain): Simplify by removing Cygwin specific code.
4719         (find_shared_library_fullname): Use Linux specific implementation also
4720         for Cygwin.
4721         (get_shared_library_fullname): Update accordingly.
4722         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4723         Win32 file names.
4724         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4725         Cygwin specific code.
4726
4727 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4728             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4729
4730         Fix OpenMP flag detection for various Fortran compilers.
4731         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4732         OpenMP-conditional compilation construct, to force compile
4733         failure with missing OpenMP flag.
4734         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4735
4736 2011-02-25  Eric Blake  <eblake@redhat.com>
4737
4738         strstr: expand test coverage
4739         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4740         compilation.
4741         * tests/test-memmem.c (main): Duplicate tests.
4742         * tests/test-strcasestr.c (main): Likewise.
4743         * tests/test-c-strcasestr.c (main): Likewise.
4744
4745 2011-02-25  Jim Meyering  <meyering@redhat.com>
4746
4747         maint.mk: detect missing-NL-at-EOF, too
4748         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4749         it also detects when a file lacks a newline at EOF.
4750         (require_exactly_one_NL_at_EOF_): Renamed from
4751         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4752         since people may well have .x-sc_... file names tied to the
4753         existing name.  Suggested by Eric Blake.
4754
4755 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4756
4757         dirname: move m4/dos.m4 functionality into lib/dosname.h
4758
4759         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4760         extracts symbols from it, puts them into config.h; but it's much
4761         easier to use the symbols directly.  filename.h already does this,
4762         but it disagrees with dos.m4 in some respects.  This patch
4763         introduces a different include file dosname.h that packages up
4764         dos.m4, and then later we can work on merging filename.h and
4765         dosname.h.  Applications that need only the easy-to-configure
4766         symbols should consider including dosname.h rather than dirname.h.
4767         * NEWS: Mention incompatible changes.
4768         * m4/dos.m4: Remove.
4769         * lib/dosname.h, modules/dosname: New files.
4770         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4771         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4772         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4773         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4774         Include dosname.h, not dirname.h.
4775         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4776         Include dosname.h, for definitions of symbols like ISSLASH
4777         that used to be in config.h.
4778         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4779         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4780         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4781         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4782         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4783         * modules/rmdir (Files): Likewise.
4784         * modules/stat (Files): Likewise.
4785         * modules/unlink (Files): Likewise.
4786         * modules/dirname-lgpl (Depends-on): Add dosname.
4787         * modules/lstat (Depends-on): Likewise.
4788         * modules/openat (Depends-on): Likewise.
4789         * modules/rmdir (Depends-on): Likewise.
4790         * modules/savewd (Depends-on): Likewise.
4791         * modules/stat (Depends-on): Likewise.
4792         * modules/unlink (Depends-on): Likewise.
4793         * modules/openat (Depends-on): Remove dirname-lgpl.
4794         * modules/savewd (Depends-on): Likewise.
4795         * tests/test-dirname.c: Do not use removed symbols like
4796         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4797         the remaining symbols, e.g., ISSLASH ('\\').
4798
4799 2011-02-25  Eric Blake  <eblake@redhat.com>
4800
4801         strstr: revert patches that introduced bug and pessimization
4802         * lib/str-two-way.h: Add another reference.
4803         (two_way_short_needle, two_way_long_needle): Revert changes from
4804         2011-02-24; they pessimize search speed.
4805         (critical_factorization): Partially revert changes from
4806         2010-06-22; they violate the requirement that the left half of the
4807         needle be smaller than the period of the needle.
4808
4809 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4810
4811         filenamecat: remove unnecessary dependency on dirname-lgpl
4812         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4813         is no direct dependency, just an indirect one via filenamecat-lgpl.
4814
4815         remove: remove unnecessary use of m4/dos.m4
4816         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4817         * modules/remove (FILES): Remove m4/dos.m4.
4818
4819         * lib/openat-proc.c: Don't include dirname.h; not needed.
4820
4821         backupfile: remove unnecessary use of m4/dos.m4
4822         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4823         of its symbols are used by the backupfile code.  backupfile.c does
4824         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4825         for the rare case of programs that want all their backup file
4826         names to live within 8+3 limits, and dos.m4 doesn't address that.
4827         * modules/backupfile (Files): Remove m4/dos.m4.
4828
4829 2011-02-24  Jim Meyering  <meyering@redhat.com>
4830
4831         strstr: fix a bug whereby strstr would mistakenly return NULL
4832         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4833         in period calculation.
4834         (two_way_long_needle): Likewise.
4835         The original problem was reported by Mike Stump in
4836         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4837         Ralf Wildenhues provided the short needle and haystack.
4838         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4839         Add a more involved test to trigger the bug in two_way_long_needle.
4840
4841 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4842
4843         gnulib-tool: remove use of bold display in help screen
4844         * gnulib-tool (func_usage): Do not use bold display anymore in the
4845         help screen.  That was just meant to be a temporary emphasis for a
4846         backward-incompatible change.
4847
4848 2011-02-23  Bruno Haible  <bruno@clisp.org>
4849
4850         Fix misindentation of preprocessor directives.
4851         * lib/argp-namefrob.h: Reindent preprocessor directives.
4852         * lib/getopt_int.h (struct _getopt_data): Likewise.
4853         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4854         * lib/vasnprintf.c (decode_long_double): Likewise.
4855         * tests/test-argmatch.c: Insert blank lines, for clarity.
4856         * tests/test-exclude.c: Likewise.
4857
4858 2011-02-22  Bruno Haible  <bruno@clisp.org>
4859
4860         ioctl: Fix for MacOS X in 64-bit mode.
4861         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4862         value.
4863         Suggested by Eric Blake.
4864         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4865
4866 2011-02-22  Jim Meyering  <meyering@redhat.com>
4867
4868         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4869         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4870         in lib/.
4871
4872 2011-02-22  Eric Blake  <eblake@redhat.com>
4873
4874         maint: avoid any CDPATH issue
4875         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4876
4877         maint: adjust cpp indentation for my modules, as well
4878         * Makefile (sc_cpp_indent_check): Add my name.
4879         * lib/fbufmode.c: Filter through cppi.
4880         * lib/fpurge.c: Likewise.
4881         * lib/freadable.c: Likewise.
4882         * lib/freading.c: Likewise.
4883         * lib/fwritable.c: Likewise.
4884         * lib/fwriting.c: Likewise.
4885         * lib/sigaction.c: Likewise.
4886
4887 2011-02-22  Jim Meyering  <meyering@redhat.com>
4888
4889         maint: adjust cpp indentation to reflect nesting depth
4890         I.e., in a block of code that begins with an unnested "#if",
4891         put one space between the "#" in column 1 and following token.
4892         For example,
4893         -#include <sys/vfs.h>
4894         +# include <sys/vfs.h>
4895         Do this only in .c files that are part of a module I maintain.
4896         * lib/linkat.c: Filter through cppi.
4897         * lib/nanosleep.c: Likewise.
4898         * lib/openat.c: Likewise.
4899         * lib/openat-die.c: Likewise.
4900         * lib/dup3.c: Likewise.
4901         * lib/fchownat.c: Likewise.
4902         * lib/flock.c: Likewise.
4903         * lib/fsync.c: Likewise.
4904         * lib/fts.c: Likewise.
4905         * lib/getpass.c: Likewise.
4906         * lib/gettimeofday.c: Likewise.
4907         * lib/userspec.c: Likewise.
4908         * Makefile (sc_cpp_indent_check): New rule, to check this.
4909
4910 2011-02-22  Bruno Haible  <bruno@clisp.org>
4911
4912         New module 'wctomb'.
4913         * lib/stdlib.in.h (wctomb): New declaration.
4914         * lib/wctomb.c: New file.
4915         * lib/wctomb-impl.h: New file.
4916         * m4/wctomb.m4: New file.
4917         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4918         REPLACE_WCTOMB.
4919         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4920         REPLACE_WCTOMB.
4921         * modules/wctomb: New file.
4922         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4923         * doc/posix-functions/wctomb.texi: Mention the new module.
4924         * modules/wctob (Depends-on): Add wctomb.
4925
4926 2011-02-22  Bruno Haible  <bruno@clisp.org>
4927
4928         New module 'mbtowc'.
4929         * lib/stdlib.in.h (mbtowc): New declaration.
4930         * lib/mbtowc.c: New file.
4931         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4932         * m4/mbtowc.m4: New file.
4933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4934         REPLACE_MBTOWC.
4935         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4936         REPLACE_MBTOWC.
4937         * modules/mbtowc: New file.
4938         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4939         * doc/posix-functions/mbtowc.texi: Mention the new module.
4940         * modules/btowc (Depends-on): Add mbtowc.
4941
4942 2011-02-22  Bruno Haible  <bruno@clisp.org>
4943
4944         wcrtomb: Add more tests for native Windows platforms.
4945         * tests/test-wcrtomb-w32-1.sh: New file.
4946         * tests/test-wcrtomb-w32-2.sh: New file.
4947         * tests/test-wcrtomb-w32-3.sh: New file.
4948         * tests/test-wcrtomb-w32-4.sh: New file.
4949         * tests/test-wcrtomb-w32-5.sh: New file.
4950         * tests/test-wcrtomb-w32.c: New file.
4951         * modules/wcrtomb-tests (Files): Add them.
4952         (Makefile.am): Arrange to run these tests.
4953         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4954         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4955
4956 2011-02-20  Bruno Haible  <bruno@clisp.org>
4957
4958         wcrtomb: Enhance test.
4959         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4960
4961 2011-02-20  Bruno Haible  <bruno@clisp.org>
4962
4963         mbrtowc: Tiny optimization.
4964         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4965
4966 2011-02-20  Jim Meyering  <meyering@redhat.com>
4967
4968         test-exclude.c: remove unmatched #endif
4969         * tests/test-exclude.c: Remove stray #endif, left over from
4970         the change of a week ago.
4971
4972 2011-02-19  Jim Meyering  <meyering@redhat.com>
4973
4974         git-version-gen: skip "-dirty" check when appropriate
4975         * build-aux/git-version-gen: Don't run any git commands when the
4976         version string comes from .tarball-version.  Prior to this, we
4977         would run git update-index --refresh even from a just-unpacked
4978         tarball directory, and that could affect a .git/ directory in a
4979         parent of the build directory.  Reported by Mike Frysinger.
4980
4981 2011-02-19  Bruno Haible  <bruno@clisp.org>
4982
4983         unictype/property-byname: Reduce the size of the 'data' segment.
4984         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4985
4986 2011-02-19  Bruno Haible  <bruno@clisp.org>
4987
4988         unictype/scripts: Reduce the size of the 'data' segment.
4989         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4990         '%pic'.
4991         * lib/unictype/scripts_byname.gperf: Regenerated.
4992
4993 2011-02-19  Bruno Haible  <bruno@clisp.org>
4994
4995         stdint: Update documentation.
4996         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4997
4998 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4999
5000         stdint: omit redundant check for wchar.h
5001         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
5002         always tests whether wchar.h exists, so remove the now-redundant test.
5003
5004 2011-02-18  Bruno Haible  <bruno@clisp.org>
5005
5006         stdint: Cut dependency to module 'wchar'.
5007         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
5008         include the necessary prerequisites.
5009         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
5010         * modules/stdint (Depends-on): Remove wchar.
5011         (Makefile.am): Substitute HAVE_WCHAR_H.
5012         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
5013
5014 2011-02-18  Eric Blake  <eblake@redhat.com>
5015
5016         longlong: skip, rather than fail, on cross-compilation
5017         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
5018         when cross-compiling; regression from 2011-02-16.
5019
5020 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5021
5022         * NEWS: Mention 2011-02-08 change to stdlib.
5023
5024 2011-02-17  Bruno Haible  <bruno@clisp.org>
5025
5026         getloadavg: Add comments about platforms.
5027         * m4/getloadavg.m4: Add comment.
5028         * lib/getloadavg.c: Likewise.
5029
5030 2011-02-17  Bruno Haible  <bruno@clisp.org>
5031
5032         getloadavg: Fix link error on Solaris 2.6.
5033         * modules/getloadavg (Link): New section.
5034         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
5035         linking test-getloadavg.
5036         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
5037         getloadavg.
5038
5039 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
5040
5041         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
5042         It was 'int', but this doesn't match the IRIX 6.5 manual.
5043         Suggested by Bruno Haible in
5044         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
5045
5046 2011-02-17  Bruno Haible  <bruno@clisp.org>
5047
5048         havelib: Fix comments.
5049         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
5050         change.
5051
5052 2011-02-17  Bruno Haible  <bruno@clisp.org>
5053
5054         havelib: Update config.rpath.
5055         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
5056
5057 2011-02-17  Bruno Haible  <bruno@clisp.org>
5058
5059         getloadavg test: Add some plausibility checks.
5060         * tests/test-getloadavg.c (check_avg): Print a warning when the value
5061         is improbable.
5062
5063 2011-02-16  Eric Blake  <eblake@redhat.com>
5064
5065         maintainer-makefile: make syntax-check a no-op from tarballs
5066         * top/maint.mk (no-vc-detected): New rule.
5067         (local-checks-available): Use it to avoid hanging if someone tries
5068         'make syntax-check' from a tarball.  Also append to any non-syntax
5069         checks already defined in cfg.mk.
5070
5071 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5072
5073         longlong: tune, particularly for common case of c99
5074
5075         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
5076         or running anything if c99, or if unsigned long long int does not
5077         work.  In either case, we know the answer without further tests.
5078         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
5079         it at most once, and use its results for both long long int and
5080         unsigned long long int.  This is more likely to be efficient in
5081         the common case where the program wants to check for both long
5082         long int and unsigned long long int.
5083         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
5084         since the answer is already known.
5085
5086 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
5087
5088         getloadavg: set errno
5089         * lib/getloadavg.c: Set errno when returning -1.  If no other
5090         error number looks appropriate, set it to ENOSYS if the getloadavg
5091         looks like it can't possibly ever work, ENOTSUP otherwise.
5092         Suggested by Bruno Haible in
5093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
5094
5095         getloadavg: trim unused parts and speed up 'configure'
5096         * NEWS: Document this.
5097         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
5098         always compiled if getloadavg is absent.
5099         Move test code to ...
5100         * tests/test-getloadavg.c: New file, containing previous
5101         contents of test from lib/getloadavg.c.  It also contains
5102         suggestions by Bruno Haible in
5103         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
5104         * modules/getloadavg-tests: New file.
5105         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
5106         Do tests in the same order as they're needed for getloadavg.c.
5107         Omit setgid-related tests that generate symbols KMEM_GROUP,
5108         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
5109         Do only the tests that are needed to see whether the system has
5110         getloadavg, moving the other tests into ...
5111         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
5112         NLIST_NAME_UNION; nobody should be using it.  Do not define
5113         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
5114         relevant, as the user of this module shouldn't care how getloadavg
5115         is implemented.
5116
5117         getloadavg: omit unused var
5118         * lib/getloadavg.c (getloadavg): Omit unused local variable.
5119
5120 2011-02-15  Jim Meyering  <meyering@redhat.com>
5121
5122         doc: update users.txt
5123         * users.txt: Update iwhd's URL.
5124
5125 2011-02-13  Bruno Haible  <bruno@clisp.org>
5126
5127         Consistent macro naming for macros that use GCC __attribute__.
5128         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
5129         _ATTRIBUTE_NONNULL_.
5130         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
5131         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
5132         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
5133         ATTRIBUTE_DEPRECATED.
5134         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
5135         ATTRIBUTE_NORETURN.
5136         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5137         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5138         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5139         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
5140         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
5141         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
5142         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
5143         ATTRIBUTE_SENTINEL.
5144         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
5145         ATTRIBUTE_RETURN_CHECK.
5146         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
5147         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
5148         ATTRIBUTE_NORETURN.
5149         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
5150         Reported by Paul Eggert.
5151
5152 2011-02-13  Bruno Haible  <bruno@clisp.org>
5153
5154         Don't interfere with a program's definition of __attribute__.
5155         * lib/argp.h (__attribute__): Remove definition.
5156         (_GL_ATTRIBUTE_FORMAT): New macro.
5157         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
5158         * lib/argp-fmtstream.h (__attribute__): Remove definition.
5159         (_GL_ATTRIBUTE_FORMAT): New macro.
5160         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
5161         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
5162         GCC 3 or newer.
5163         * lib/error.h (__attribute__): Remove definition.
5164         (_GL_ATTRIBUTE_FORMAT): New macro.
5165         (error, error_at_line): Use it.
5166         * lib/hash.h (__attribute__): Remove definition.
5167         (ATTRIBUTE_WUR): Update definition. Define always.
5168         * lib/openat.h (__attribute__): Remove definition.
5169         (ATTRIBUTE_NORETURN): Update definition. Define always.
5170         * lib/sigpipe-die.h (__attribute__): Remove definition.
5171         (ATTRIBUTE_NORETURN): Update definition. Define always.
5172         * lib/vasnprintf.h (__attribute__): Remove definition.
5173         (_GL_ATTRIBUTE_FORMAT): New macro.
5174         (asnprintf, vasnprintf): Use it.
5175         * lib/xalloc.h (__attribute__): Remove definition.
5176         (ATTRIBUTE_NORETURN): Update definition. Define always.
5177         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
5178         * lib/xmemdup0.h (__attribute__): Remove definition.
5179         (ATTRIBUTE_NORETURN): Update definition. Define always.
5180         * lib/xprintf.h (__attribute__): Remove definition.
5181         (_GL_ATTRIBUTE_FORMAT): New macro.
5182         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
5183         * lib/xstrtol.h (__attribute__): Remove definition.
5184         (ATTRIBUTE_NORETURN): Update definition. Define always.
5185         * lib/xvasprintf.h (__attribute__): Remove definition.
5186         (_GL_ATTRIBUTE_FORMAT): New macro.
5187         (xasprintf, xvasprintf): Use it.
5188         * tests/test-argmatch.c (__attribute__): Remove definition.
5189         (ATTRIBUTE_NORETURN): Update definition. Define always.
5190         * tests/test-exclude.c (__attribute__): Remove definition.
5191         (ATTRIBUTE_NORETURN): Update definition. Define always.
5192         Reported by Paul Eggert.
5193
5194 2011-02-13  Bruno Haible  <bruno@clisp.org>
5195
5196         mbrtowc: Add more tests for native Windows platforms.
5197         * tests/test-mbrtowc-w32-1.sh: New file.
5198         * tests/test-mbrtowc-w32-2.sh: New file.
5199         * tests/test-mbrtowc-w32-3.sh: New file.
5200         * tests/test-mbrtowc-w32-4.sh: New file.
5201         * tests/test-mbrtowc-w32-5.sh: New file.
5202         * tests/test-mbrtowc-w32.c: New file.
5203         * modules/mbrtowc-tests (Files): Add them.
5204         (Makefile.am): Arrange to run these tests.
5205         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
5206         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
5207
5208 2011-02-13  Bruno Haible  <bruno@clisp.org>
5209
5210         mbrtowc: Work around native Windows bug.
5211         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
5212         guess when no suitable locale for testing was found.
5213         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5214
5215 2011-02-13  Bruno Haible  <bruno@clisp.org>
5216
5217         mbsinit: Work around mingw bug.
5218         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5219         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5220         Windows.
5221         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5222
5223 2011-02-13  Bruno Haible  <bruno@clisp.org>
5224
5225         mbsinit: Don't crash for a NULL argument.
5226         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5227         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5228
5229 2011-02-13  Bruno Haible  <bruno@clisp.org>
5230
5231         Don't interfere with a program's definition of __attribute__.
5232         * lib/stdio.in.h (__attribute__): Remove definition.
5233         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5234         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5235         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5236         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5237         * lib/string.in.h (__attribute__): Remove definition.
5238         Reported by Paul Eggert.
5239
5240 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5241
5242         stdlib: don't get in the way of non-GCC __attribute__
5243         See thread starting at
5244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5245         Revert previous stdlib change, installing the following instead:
5246         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5247         to get in the way of a non-GCC compiler that supports __attribute__.
5248         (_GL_ATTRIBUTE_RETURN): New macro.
5249         (_Exit): Use it instead of __attribute__.
5250
5251 2011-02-12  Bruno Haible  <bruno@clisp.org>
5252
5253         quotearg test: Avoid test failure on mingw.
5254         * tests/test-quotearg.sh: Convert the locale identifier from native
5255         Windows syntax to Unix syntax.
5256
5257 2011-02-12  Bruno Haible  <bruno@clisp.org>
5258
5259         setlocale: Prefer gnulib's override over libintl's override.
5260         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5261         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5262         GNULIB_defined_setlocale is set.
5263
5264 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5265
5266         stdlib: support non-GCC __attribute__
5267
5268         Fix a serious and tricky problem encountered when attempting to
5269         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5270         5.5, but it crashed due to memory corruption on Solaris 10 with
5271         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5272         bits that are otherwise zero.  This tagging is optional inside
5273         Emacs but is preferred and is used when __attribute__ ((__aligned
5274         (8))) works, as it does with both recent-enough GCC and with Sun C
5275         5.11.  However, Sun C 5.11 is not GCC and does not #define
5276         __GNUC__ and __GNUC_MINOR__.
5277
5278         When I added the getloadavg module to Emacs, it brought in
5279         stdlib.in.h, which contained this fragment:
5280
5281            #ifndef __attribute__
5282            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5283            #  define __attribute__(Spec)   /* empty */
5284            # endif
5285            #endif
5286
5287         When files that include <stdlib.h> were compiled with Sun C 5.11,
5288         the above code disabled __attribute__ ((__aligned (8))), which
5289         caused variables to not be properly aligned, which eventually led
5290         to the pointer corruption mentioned above.  (This was a bit hard
5291         to diagnose, unfortunately.)
5292
5293         Several "#define __attribute__(X) /* empty */" code snippets need
5294         to be eradicated from Gnulib to work with non-GCC compilers that
5295         support __attribute__.  The Autoconf way to do this is to test for
5296         each kind of attribute that we want support for, and selectively
5297         enable that in source code.
5298
5299         Fix this problem just for stdlib.h, by adding a test for the
5300         __noreturn__ attribute, and change stdlib.in.h to use that test
5301         when needed.  This technique can be easily generalized to the
5302         other *.in.h files and attributes, and a similar technique can be
5303         used for *.h and *.c files.  This patch is enough to solve the
5304         problem for Emacs + getloadavg, and I thought I'd publish it for
5305         feedback before undertaking further, similar fixes in other
5306         modules.
5307
5308         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5309         because it's not needed for stdlib.h.  It merely substitutes the
5310         value directly into stdlib.h.  We may well need to #define it, or
5311         similar symbols, for other modules, but it's nice to also have an
5312         option to not #define it for applications like Emacs that do not
5313         need it.
5314
5315         * lib/stdlib.in.h (__attribute__): Do not #define.
5316         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5317         be defined only if the _Exit module is also used.
5318         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5320         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5321         platforms.
5322         * modules/_Exit (Files): Add m4/attribute.m4.
5323         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5324         * m4/attribute.m4: New file.
5325
5326 2011-02-12  Bruno Haible  <bruno@clisp.org>
5327
5328         wcsrtombs: Work around bug on native Windows.
5329         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5330         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5331         instead of len.
5332         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5333
5334 2011-02-12  Bruno Haible  <bruno@clisp.org>
5335
5336         mbsrtowcs: Work around bug on native Windows.
5337         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5338         against mingw bug.
5339         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5340
5341 2011-02-12  Bruno Haible  <bruno@clisp.org>
5342
5343         Avoid setlocale bugs in tests.
5344         * modules/btowc (Dependencies): Add setlocale.
5345         * modules/c-strcase (Dependencies): Likewise.
5346         * modules/mbmemcasecmp (Dependencies): Likewise.
5347         * modules/mbmemcasecoll (Dependencies): Likewise.
5348         * modules/mbrtowc (Dependencies): Likewise.
5349         * modules/mbscasecmp (Dependencies): Likewise.
5350         * modules/mbscasestr (Dependencies): Likewise.
5351         * modules/mbschr (Dependencies): Likewise.
5352         * modules/mbscspn (Dependencies): Likewise.
5353         * modules/mbsinit (Dependencies): Likewise.
5354         * modules/mbsncasecmp (Dependencies): Likewise.
5355         * modules/mbsnrtowcs (Dependencies): Likewise.
5356         * modules/mbspbrk (Dependencies): Likewise.
5357         * modules/mbspcasecmp (Dependencies): Likewise.
5358         * modules/mbsrchr (Dependencies): Likewise.
5359         * modules/mbsrtowcs (Dependencies): Likewise.
5360         * modules/mbsspn (Dependencies): Likewise.
5361         * modules/mbsstr (Dependencies): Likewise.
5362         * modules/nl_langinfo (Dependencies): Likewise.
5363         * modules/quotearg (Dependencies): Likewise.
5364         * modules/unicase/locale-language (Dependencies): Likewise.
5365         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5366         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5367         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5368         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5369         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5370         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5371         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5372         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5373         * modules/vasnprintf-posix (Dependencies): Likewise.
5374         * modules/wcrtomb (Dependencies): Likewise.
5375         * modules/wcsnrtombs (Dependencies): Likewise.
5376         * modules/wcsrtombs (Dependencies): Likewise.
5377
5378 2011-02-12  Bruno Haible  <bruno@clisp.org>
5379
5380         setlocale: Workaround native Windows bug.
5381         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5382         succeeds but sets LC_CTYPE to "C", report a failure.
5383         * tests/test-setlocale2.sh: New file.
5384         * tests/test-setlocale2.c: New file.
5385         * modules/setlocale-tests (Files): Add the new files.
5386         (Makefile.am): Enable test-setlocale2.sh test.
5387         * doc/posix-functions/setlocale.texi: Mention workaround.
5388
5389 2011-02-11  Bruno Haible  <bruno@clisp.org>
5390
5391         Tests for module 'setlocale'.
5392         * modules/setlocale-tests: New file.
5393         * tests/test-setlocale1.sh: New file.
5394         * tests/test-setlocale1.c: New file.
5395
5396         New module 'setlocale'.
5397         * lib/locale.in.h (setlocale): New declaration.
5398         * lib/setlocale.c: New file, based on
5399         gettext/gettext-runtime/intl/setlocale.c.
5400         * m4/setlocale.m4: New file.
5401         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5402         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5403         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5404         REPLACE_SETLOCALE.
5405         * modules/setlocale: New file.
5406         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5407         * doc/posix-functions/setlocale.texi: Mention the new module.
5408
5409 2011-02-11  Bruno Haible  <bruno@clisp.org>
5410
5411         Prepare for locale dependent tests on mingw.
5412         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5413         because it has the wrong locale encoding.
5414         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5415         French_France.1252 instead of "fr".
5416         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5417         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5418         because it has the wrong locale encoding.
5419         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5420         native Windows, try Turkish_Turkey.65001.
5421         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5422         Chinese_China.54936.
5423
5424         Prepare for locale dependent tests on mingw.
5425         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5426         differently.
5427         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5428         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5429         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5430         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5431
5432 2011-02-11  Eric Blake  <eblake@redhat.com>
5433
5434         strptime: avoid compiler warnings
5435         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5436         compiler warnings about dead code.
5437         Reported by Daniel P. Berrange.
5438
5439 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5440
5441         doc: update users.txt
5442         * users.txt: Add rcs.
5443
5444 2011-02-10  John W. Eaton  <jwe@gnu.org>
5445
5446         doc: update users.txt
5447         * users.txt: Add octave.
5448
5449 2011-02-10  Jim Meyering  <meyering@redhat.com>
5450
5451         doc: update users.txt
5452         * users.txt: Add iwhd.
5453
5454 2011-02-09  Bruno Haible  <bruno@clisp.org>
5455
5456         gnulib-tool: Make copyright notice adjustment more robust.
5457         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5458         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5459         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5460         License".
5461         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5462
5463 2011-02-06  Bruno Haible  <bruno@clisp.org>
5464
5465         New module 'towctrans'.
5466         * modules/towctrans: New file.
5467         * lib/wctype.in.h (towctrans): New declaration.
5468         * lib/towctrans.c: New file.
5469         * lib/towctrans-impl.h: New file.
5470         * m4/towctrans.m4: New file.
5471         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5472         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5473         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5474         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5475         * doc/posix-functions/towctrans.texi: Mention the new module.
5476
5477 2011-02-06  Bruno Haible  <bruno@clisp.org>
5478
5479         New module 'wctrans'.
5480         * modules/wctrans: New file.
5481         * lib/wctype.in.h (wctrans): New declaration.
5482         * lib/wctrans.c: New file.
5483         * lib/wctrans-impl.h: New file.
5484         * m4/wctrans.m4: New file.
5485         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5486         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5487         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5488         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5489         * doc/posix-functions/wctrans.texi: Mention the new module.
5490
5491 2011-02-06  Bruno Haible  <bruno@clisp.org>
5492
5493         New module 'iswctype'.
5494         * modules/iswctype: New file.
5495         * lib/wctype.in.h (iswctype): New declaration.
5496         * lib/iswctype.c: New file.
5497         * lib/iswctype-impl.h: New file.
5498         * m4/iswctype.m4: New file.
5499         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5500         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5501         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5502         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5503         * doc/posix-functions/iswctype.texi: Mention the new module and the
5504         HP-UX 11.00 problem.
5505
5506 2011-02-06  Bruno Haible  <bruno@clisp.org>
5507
5508         New module 'wctype'.
5509         * modules/wctype: Change to represent the wctype() substitute.
5510         * lib/wctype.in.h (wctype): New declaration.
5511         * lib/wctype.c: New file.
5512         * lib/wctype-impl.h: New file.
5513         * m4/wctype.m4: New file.
5514         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5515         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5516         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5517         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5518         * doc/posix-functions/wctype.texi: Mention the new module and the
5519         HP-UX 11.00 problem.
5520
5521 2011-02-06  Bruno Haible  <bruno@clisp.org>
5522
5523         wctype-h: Ensure wctype_t and wctrans_t are defined.
5524         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5525         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5526         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5527         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5528         HAVE_WCTRANS_T.
5529         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5530
5531 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5532
5533         flock: fix license typo
5534
5535         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5536         omitted.
5537
5538 2011-02-08  Bruno Haible  <bruno@clisp.org>
5539
5540         Split large sed scripts, for HP-UX sed.
5541         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5542         to avoid HP-UX limit of 99 commands, in the near future.
5543         * modules/stdlib (Makefile.am): Likewise.
5544         * modules/unistd (Makefile.am): Likewise.
5545         * modules/wchar (Makefile.am): Likewise.
5546         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5547         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5549
5550 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5551             Bruno Haible  <bruno@clisp.org>
5552
5553         stdlib: improve random_r modularization
5554         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5555         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5556         you also need the random_r module to get this material right.
5557         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5558         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5559         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5560
5561 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5562
5563         stdlib: don't depend on stdint
5564         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5565         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5566         be independent of whether stdint.h is needed.
5567         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5568         here, instead of ...
5569         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5570         struct random_data should be using the random_r module, not just
5571         the stdlib module (which wouldn't make sense: what package needs
5572         just struct random_data without also needing random_r?).
5573         * modules/stdlib (Depends-on): Remove stdint.
5574
5575         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5576         See the thread rooted at
5577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5578         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5579         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5580         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5581         __VMS)); previously it was always included (via fcntl--.h).
5582         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5583         hand; this is good enough for load averages.  Also, do not use
5584         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5585         flags directly if available and don't bother otherwise.  (Packages
5586         that need the extra reliability should use the modules that define
5587         these flags on older platforms that lack them.)
5588         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5589         fcntl-safer.
5590
5591 2011-02-08  Jim Meyering  <meyering@redhat.com>
5592
5593         di-set.h, ino-map.h: add multiple-inclusion guard
5594         Technically, the guard is required only for ino-map.h, due to its
5595         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5596         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5597         * lib/ino-map.h: Likewise.
5598
5599 2011-02-06  Bruno Haible  <bruno@clisp.org>
5600
5601         iswblank: Ensure declaration on glibc systems.
5602         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5603         * modules/iswblank (Dependencies): Add 'extensions'.
5604         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5605
5606 2011-02-06  Bruno Haible  <bruno@clisp.org>
5607
5608         New module 'iswblank'.
5609         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5610         * modules/iswblank: New file.
5611         * modules/wctype-h (Files): Remove lib/iswblank.c.
5612         (Makefile.am): Substitute GNULIB_ISWBLANK.
5613         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5614         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5615         (gl_WCTYPE_H_DEFAULTS): New macro.
5616         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5617         * modules/iswblank-tests: New file.
5618         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5619         * tests/test-wctype-h.c (main): Remove iswblank tests.
5620         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5621         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5622         of 'wctype-h'.
5623         * NEWS: Mention the change.
5624         * modules/mbchar (Depends-on): Add iswblank.
5625
5626 2011-02-08  Bruno Haible  <bruno@clisp.org>
5627
5628         di-set tests: Refactor.
5629         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5630         unnecessary includes.
5631         (ASSERT): Remove macro.
5632         (main): Make C90 compliant by avoiding variable declaration after
5633         statement.
5634         * modules/di-set-tests (Files): Add tests/macros.h.
5635
5636 2011-02-08  Bruno Haible  <bruno@clisp.org>
5637
5638         ino-map tests: Refactor.
5639         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5640         unnecessary includes.
5641         (ASSERT): Remove macro.
5642         (main): Make C90 compliant by avoiding variable declaration after
5643         statement.
5644         * modules/ino-map-tests (Files): Add tests/macros.h.
5645
5646 2011-02-08  Jim Meyering  <meyering@redhat.com>
5647
5648         di-set: add "const" to a cast
5649         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5650         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5651
5652 2011-02-06  Bruno Haible  <bruno@clisp.org>
5653
5654         Rename module 'wctype' to 'wctype-h'.
5655         * modules/wctype-h: Renamed from modules/wctype.
5656         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5657         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5658         (Files, Depends-on, Makefile.am): Update.
5659         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5660         (Files, Makefile.am): Update.
5661         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5662         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5663         * doc/posix-headers/wctype.texi: Update.
5664         * doc/posix-functions/iswalnum.texi: Update.
5665         * doc/posix-functions/iswalpha.texi: Update.
5666         * doc/posix-functions/iswblank.texi: Update.
5667         * doc/posix-functions/iswcntrl.texi: Update.
5668         * doc/posix-functions/iswdigit.texi: Update.
5669         * doc/posix-functions/iswgraph.texi: Update.
5670         * doc/posix-functions/iswlower.texi: Update.
5671         * doc/posix-functions/iswprint.texi: Update.
5672         * doc/posix-functions/iswpunct.texi: Update.
5673         * doc/posix-functions/iswspace.texi: Update.
5674         * doc/posix-functions/iswupper.texi: Update.
5675         * doc/posix-functions/iswxdigit.texi: Update.
5676         * doc/posix-functions/towlower.texi: Update.
5677         * doc/posix-functions/towupper.texi: Update.
5678         * NEWS: Mention the change.
5679         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5680         * modules/mbchar (Dependencies): Likewise.
5681         * modules/mbswidth (Dependencies): Likewise.
5682         * modules/quotearg (Dependencies): Likewise.
5683         * modules/regex (Dependencies): Likewise.
5684         * modules/wcscasecmp (Dependencies): Likewise.
5685         * modules/wcsncasecmp (Dependencies): Likewise.
5686         * modules/wcwidth (Dependencies): Likewise.
5687
5688 2011-02-06  Bruno Haible  <bruno@clisp.org>
5689
5690         New module 'wcswidth'.
5691         * modules/wcswidth: New file.
5692         * lib/wchar.in.h (wcswidth): New declaration.
5693         * lib/wcswidth.c: New file.
5694         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5695         * m4/wcswidth.m4: New file.
5696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5698         REPLACE_WCSWIDTH.
5699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5700         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5701         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5702         * doc/posix-functions/wcswidth.texi: Mention the new module.
5703
5704 2011-02-06  Bruno Haible  <bruno@clisp.org>
5705
5706         New module 'wcstok'.
5707         * modules/wcstok: New file.
5708         * lib/wchar.in.h (wcstok): New declaration.
5709         * lib/wcstok.c: New file.
5710         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5711         * m4/wcstok.m4: New file.
5712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5715         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5716         * doc/posix-functions/wcstok.texi: Mention the new module.
5717
5718 2011-02-06  Bruno Haible  <bruno@clisp.org>
5719
5720         New module 'wcsstr'.
5721         * modules/wcsstr: New file.
5722         * lib/wchar.in.h (wcsstr): New declaration.
5723         * lib/wcsstr.c: New file.
5724         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5725         * m4/wcsstr.m4: New file.
5726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5729         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5730         * doc/posix-functions/wcsstr.texi: Mention the new module.
5731
5732 2011-02-06  Bruno Haible  <bruno@clisp.org>
5733
5734         New module 'wcspbrk'.
5735         * modules/wcspbrk: New file.
5736         * lib/wchar.in.h (wcspbrk): New declaration.
5737         * lib/wcspbrk.c: New file.
5738         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5739         * m4/wcspbrk.m4: New file.
5740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5743         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5744         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5745
5746 2011-02-06  Bruno Haible  <bruno@clisp.org>
5747
5748         New module 'wcsspn'.
5749         * modules/wcsspn: New file.
5750         * lib/wchar.in.h (wcsspn): New declaration.
5751         * lib/wcsspn.c: New file.
5752         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5753         * m4/wcsspn.m4: New file.
5754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5757         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5758         * doc/posix-functions/wcsspn.texi: Mention the new module.
5759
5760 2011-02-06  Bruno Haible  <bruno@clisp.org>
5761
5762         New module 'wcscspn'.
5763         * modules/wcscspn: New file.
5764         * lib/wchar.in.h (wcscspn): New declaration.
5765         * lib/wcscspn.c: New file.
5766         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5767         * m4/wcscspn.m4: New file.
5768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5771         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5772         * doc/posix-functions/wcscspn.texi: Mention the new module.
5773
5774 2011-02-06  Bruno Haible  <bruno@clisp.org>
5775
5776         New module 'wcsrchr'.
5777         * modules/wcsrchr: New file.
5778         * lib/wchar.in.h (wcsrchr): New declaration.
5779         * lib/wcsrchr.c: New file.
5780         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5781         * m4/wcsrchr.m4: New file.
5782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5785         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5786         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5787
5788 2011-02-06  Bruno Haible  <bruno@clisp.org>
5789
5790         New module 'wcschr'.
5791         * modules/wcschr: New file.
5792         * lib/wchar.in.h (wcschr): New declaration.
5793         * lib/wcschr.c: New file.
5794         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5795         * m4/wcschr.m4: New file.
5796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5799         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5800         * doc/posix-functions/wcschr.texi: Mention the new module.
5801
5802 2011-02-06  Bruno Haible  <bruno@clisp.org>
5803
5804         New module 'wcsdup'.
5805         * modules/wcsdup: New file.
5806         * lib/wchar.in.h (wcsdup): New declaration.
5807         * lib/wcsdup.c: New file.
5808         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5809         * m4/wcsdup.m4: New file.
5810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5813         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5814         * doc/posix-functions/wcsdup.texi: Mention the new module.
5815
5816 2011-02-06  Bruno Haible  <bruno@clisp.org>
5817
5818         New module 'wcsxfrm'.
5819         * modules/wcsxfrm: New file.
5820         * lib/wchar.in.h (wcsxfrm): New declaration.
5821         * lib/wcsxfrm.c: New file.
5822         * lib/wcsxfrm-impl.h: New file.
5823         * m4/wcsxfrm.m4: New file.
5824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5827         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5828         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5829
5830 2011-02-06  Bruno Haible  <bruno@clisp.org>
5831
5832         New module 'wcscoll'.
5833         * modules/wcscoll: New file.
5834         * lib/wchar.in.h (wcscoll): New declaration.
5835         * lib/wcscoll.c: New file.
5836         * lib/wcscoll-impl.h: New file.
5837         * m4/wcscoll.m4: New file.
5838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5841         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5842         * doc/posix-functions/wcscoll.texi: Mention the new module.
5843
5844 2011-02-06  Bruno Haible  <bruno@clisp.org>
5845
5846         New module 'wcsncasecmp'.
5847         * modules/wcsncasecmp: New file.
5848         * lib/wchar.in.h (wcsncasecmp): New declaration.
5849         * lib/wcsncasecmp.c: New file.
5850         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5851         * m4/wcsncasecmp.m4: New file.
5852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5855         HAVE_WCSNCASECMP.
5856         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5857         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5858
5859 2011-02-06  Bruno Haible  <bruno@clisp.org>
5860
5861         New module 'wcscasecmp'.
5862         * modules/wcscasecmp: New file.
5863         * lib/wchar.in.h (wcscasecmp): New declaration.
5864         * lib/wcscasecmp.c: New file.
5865         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5866         * m4/wcscasecmp.m4: New file.
5867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5870         HAVE_WCSCASECMP.
5871         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5872         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5873
5874 2011-02-05  Bruno Haible  <bruno@clisp.org>
5875
5876         New module 'wcsncmp'.
5877         * modules/wcsncmp: New file.
5878         * lib/wchar.in.h (wcsncmp): New declaration.
5879         * lib/wcsncmp.c: New file.
5880         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5881         * m4/wcsncmp.m4: New file.
5882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5885         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5886         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5887
5888 2011-02-05  Bruno Haible  <bruno@clisp.org>
5889
5890         New module 'wcscmp'.
5891         * modules/wcscmp: New file.
5892         * lib/wchar.in.h (wcscmp): New declaration.
5893         * lib/wcscmp.c: New file.
5894         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5895         * m4/wcscmp.m4: New file.
5896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5899         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5900         * doc/posix-functions/wcscmp.texi: Mention the new module.
5901
5902 2011-02-05  Bruno Haible  <bruno@clisp.org>
5903
5904         New module 'wcsncat'.
5905         * modules/wcsncat: New file.
5906         * lib/wchar.in.h (wcsncat): New declaration.
5907         * lib/wcsncat.c: New file.
5908         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5909         * m4/wcsncat.m4: New file.
5910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5912         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5913         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5914         * doc/posix-functions/wcsncat.texi: Mention the new module.
5915
5916 2011-02-05  Bruno Haible  <bruno@clisp.org>
5917
5918         New module 'wcscat'.
5919         * modules/wcscat: New file.
5920         * lib/wchar.in.h (wcscat): New declaration.
5921         * lib/wcscat.c: New file.
5922         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5923         * m4/wcscat.m4: New file.
5924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5927         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5928         * doc/posix-functions/wcscat.texi: Mention the new module.
5929
5930 2011-02-05  Bruno Haible  <bruno@clisp.org>
5931
5932         New module 'wcpncpy'.
5933         * modules/wcpncpy: New file.
5934         * lib/wchar.in.h (wcpncpy): New declaration.
5935         * lib/wcpncpy.c: New file.
5936         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5937         * m4/wcpncpy.m4: New file.
5938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5940         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5941         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5942         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5943
5944 2011-02-05  Bruno Haible  <bruno@clisp.org>
5945
5946         New module 'wcsncpy'.
5947         * modules/wcsncpy: New file.
5948         * lib/wchar.in.h (wcsncpy): New declaration.
5949         * lib/wcsncpy.c: New file.
5950         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5951         * m4/wcsncpy.m4: New file.
5952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5954         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5955         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5956         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5957
5958 2011-02-05  Bruno Haible  <bruno@clisp.org>
5959
5960         New module 'wcpcpy'.
5961         * modules/wcpcpy: New file.
5962         * lib/wchar.in.h (wcpcpy): New declaration.
5963         * lib/wcpcpy.c: New file.
5964         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5965         * m4/wcpcpy.m4: New file.
5966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5968         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5969         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5970         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5971
5972 2011-02-05  Bruno Haible  <bruno@clisp.org>
5973
5974         New module 'wcscpy'.
5975         * modules/wcscpy: New file.
5976         * lib/wchar.in.h (wcscpy): New declaration.
5977         * lib/wcscpy.c: New file.
5978         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5979         * m4/wcscpy.m4: New file.
5980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5983         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5984         * doc/posix-functions/wcscpy.texi: Mention the new module.
5985
5986 2011-02-05  Bruno Haible  <bruno@clisp.org>
5987
5988         New module 'wcsnlen'.
5989         * modules/wcsnlen: New file.
5990         * lib/wchar.in.h (wcsnlen): New declaration.
5991         * lib/wcsnlen.c: New file.
5992         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5993         * m4/wcsnlen.m4: New file.
5994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5997         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5998         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5999
6000 2011-02-05  Bruno Haible  <bruno@clisp.org>
6001
6002         New module 'wcslen'.
6003         * modules/wcslen: New file.
6004         * lib/wchar.in.h (wcslen): New declaration.
6005         * lib/wcslen.c: New file.
6006         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
6007         * m4/wcslen.m4: New file.
6008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
6009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
6010         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
6011         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
6012         * doc/posix-functions/wcslen.texi: Mention the new module.
6013
6014 2011-02-05  Bruno Haible  <bruno@clisp.org>
6015
6016         New module 'wmemset'.
6017         * modules/wmemset: New file.
6018         * lib/wchar.in.h (wmemset): New declaration.
6019         * lib/wmemset.c: New file.
6020         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
6021         * m4/wmemset.m4: New file.
6022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
6023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
6024         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
6025         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
6026         * doc/posix-functions/wmemset.texi: Mention the new module.
6027
6028 2011-02-05  Bruno Haible  <bruno@clisp.org>
6029
6030         New module 'wmemmove'.
6031         * modules/wmemmove: New file.
6032         * lib/wchar.in.h (wmemmove): New declaration.
6033         * lib/wmemmove.c: New file.
6034         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
6035         * m4/wmemmove.m4: New file.
6036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
6037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
6038         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
6039         HAVE_WMEMMOVE.
6040         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
6041         * doc/posix-functions/wmemmove.texi: Mention the new module.
6042
6043 2011-02-05  Bruno Haible  <bruno@clisp.org>
6044
6045         New module 'wmemcpy'.
6046         * modules/wmemcpy: New file.
6047         * lib/wchar.in.h (wmemcpy): New declaration.
6048         * lib/wmemcpy.c: New file.
6049         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
6050         * m4/wmemcpy.m4: New file.
6051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
6052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
6053         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
6054         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
6055         * doc/posix-functions/wmemcpy.texi: Mention the new module.
6056
6057 2011-02-05  Bruno Haible  <bruno@clisp.org>
6058
6059         New module 'wmemcmp'.
6060         * modules/wmemcmp: New file.
6061         * lib/wchar.in.h (wmemcmp): New declaration.
6062         * lib/wmemcmp.c: New file.
6063         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
6064         * m4/wmemcmp.m4: New file.
6065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
6066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
6067         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
6068         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
6069         * doc/posix-functions/wmemcmp.texi: Mention the new module.
6070
6071 2011-02-07  Jim Meyering  <meyering@redhat.com>
6072
6073         di-set, ino-map: new modules, from coreutils
6074         * lib/di-set.c: New file.
6075         * lib/di-set.h: Likewise.
6076         * lib/ino-map.c: Likewise.
6077         * lib/ino-map.h: Likewise.
6078         * modules/di-set: Likewise.
6079         * modules/di-set-tests: Likewise.
6080         * modules/ino-map: Likewise.
6081         * modules/ino-map-tests: Likewise.
6082         * tests/test-di-set.c: Likewise.
6083         * tests/test-ino-map.c: Likewise.
6084
6085 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
6086
6087         getloadavg: merge minor changes from Emacs
6088
6089         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
6090         (getloadavg): Use memset, not bzero.
6091
6092         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
6093         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6094         clash (bug#86).
6095
6096 2010-11-14  Bruno Haible  <bruno@clisp.org>
6097
6098         Allow multiple gnulib generated replacements to coexist.
6099         * lib/getopt.in.h (struct option): Avoid identical redefinition.
6100         * lib/inttypes.in.h (imaxdiv_t): Likewise.
6101         * lib/langinfo.in.h (nl_item): Likewise.
6102         * lib/math.in.h (_NaN, NAN): Likewise.
6103         * lib/netdb.in.h (struct addrinfo): Likewise.
6104         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
6105         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
6106         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
6107         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
6108         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
6109         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
6110         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
6111         pthread_mutexattr_init, pthread_mutexattr_settype,
6112         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
6113         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
6114         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
6115         pthread_spin_trylock, pthread_spin_unlock): Likewise.
6116         * lib/sched.in.h (struct sched_param): Likewise.
6117         * lib/se-selinux.in.h (security_class_t, security_context_t,
6118         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
6119         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
6120         lsetfilecon, fsetfilecon, security_check_context,
6121         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
6122         Likewise.
6123         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
6124         Likewise.
6125         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
6126         _gl_function_taking_int_returning_void_t, union sigval,
6127         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
6128         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
6129         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
6130         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
6131         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
6132         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
6133         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
6134         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
6135         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
6136         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
6137         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
6138         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
6139         socklen_t, rpl_fd_isset): Likewise.
6140         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
6141         * lib/sys_time.in.h (struct timeval): Likewise.
6142         * lib/sys_times.in.h (struct tms): Likewise.
6143         * lib/sys_utsname.in.h (struct utsname):
6144         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
6145         * lib/unistd.in.h (getpagesize): Likewise.
6146         * lib/wchar.in.h (mbstate_t): Likewise.
6147         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6148         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
6149         towlower, towupper): Likewise.
6150         Reported by Sam Steingold <sds@gnu.org>.
6151
6152 2011-02-05  Eric Blake  <eblake@redhat.com>
6153
6154         unsetenv: work around Haiku issues
6155         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
6156         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
6157
6158 2010-12-30  Bruce Korb  <bkorb@gnu.org>
6159
6160         libposix: avoid calling error() within libposix
6161         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
6162         is defined.
6163
6164 2011-02-05  Eric Blake  <eblake@redhat.com>
6165
6166         strerror_r-posix: port to cygwin
6167         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
6168         implementation.
6169         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
6170         * tests/test-strerror_r.c (main): Fix test.
6171         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6172         issue.
6173
6174 2011-02-05  Bruno Haible  <bruno@clisp.org>
6175
6176         New module 'wmemchr'.
6177         * modules/wmemchr: New file.
6178         * lib/wchar.in.h (wmemchr): New declaration.
6179         * lib/wmemchr.c: New file.
6180         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
6181         * m4/wmemchr.m4: New file.
6182         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
6183         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
6184         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
6185         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
6186         * doc/posix-functions/wmemchr.texi: Mention the new module.
6187
6188 2011-02-04  Eric Blake  <eblake@redhat.com>
6189
6190         fdopendir: detect FreeBSD bug
6191         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
6192         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
6193
6194 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
6195
6196         stdbool: do not define HAVE_STDBOOL_H
6197         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
6198         AC_HEADER_STDBOOL.  All uses changed.  Do not define
6199         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
6200         imported from the latest Autoconf git.  It was motivated by Emacs,
6201         which uses gnulib but does not need HAVE_STDBOOL_H.
6202
6203 2011-02-04  Bruno Haible  <bruno@clisp.org>
6204
6205         wcsnrtombs: Prepare for new module wwcsnrtombs.
6206         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
6207         * lib/wcsnrtombs.c: Include it.
6208         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
6209
6210         wcsrtombs: Prepare for new module wwcsrtombs.
6211         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
6212         * lib/wcsrtombs.c: Include it.
6213         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6214
6215         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6216         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6217         * lib/mbsnrtowcs.c: Include it.
6218         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6219
6220         mbsrtowcs: Prepare for new module mbsrtowwcs.
6221         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6222         * lib/mbsrtowcs.c: Include it.
6223         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6224
6225 2011-02-04  Bruno Haible  <bruno@clisp.org>
6226
6227         vasnprintf: Reduce use of malloc for small format strings.
6228         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6229         (arguments): Add room for the first 7 arguments.
6230         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6231         (char_directives, u8_directives, u16_directives, u32_directives): Add
6232         room for the first 7 directives.
6233         * lib/printf-parse.c: Include <string.h>.
6234         (PRINTF_PARSE): Change memory handling code so that it uses the first
6235         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6236         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6237         Reported by Pádraig Brady <P@draigbrady.com>.
6238
6239 2011-01-31  Eric Blake  <eblake@redhat.com>
6240
6241         dup2: work around Haiku bug
6242         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6243         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6244         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6245         * tests/test-dup2.c (main): Enhance test.
6246
6247 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6248
6249         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6250         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6251         declared by eglibc 2.11.2.
6252         * lib/stdio.in.h: Likewise.
6253
6254 2011-01-31  Eric Blake  <eblake@redhat.com>
6255
6256         ignore-value: add missing test dependency
6257         * tests/test-ignore-value.c: Revert previous change; stdio.h
6258         provides off_t.
6259         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6260
6261 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6262
6263         mktime: clarify long_int width checking
6264         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6265         the top level, to make it clearer that the assumption about
6266         long_int width is being checked.  See
6267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6268
6269 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6270
6271         ignore-value: Fix self-test.
6272         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6273
6274 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6275
6276         TYPE_MAXIMUM: avoid theoretically undefined behavior
6277         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6278         negative number, which the C Standard says has undefined behavior.
6279         In practice this is not a problem, but might as well do it by the book.
6280         Reported by Rich Felker and Eric Blake; see
6281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6282         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6283         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6285         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6286         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6287         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6288
6289         mktime: #undef mktime before #defining it
6290         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6291
6292         mktime: systematically normalize tm_isdst comparisons
6293         * lib/mktime.c (isdst_differ): New function.
6294         (__mktime_internal): Use it systematically for all isdst comparisons.
6295         This completes the fix for libc BZ #6723, and removes the need for
6296         normalizing tm_isdst.  See
6297         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6298         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6299
6300         mktime: fix some integer overflow issues and sidestep the rest
6301
6302         This was prompted by a bug report by Benjamin Lindner for MinGW
6303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6304         His bug is due to signed integer overflow (0 - INT_MIN), and I
6305         I scanned through mktime.c looking for other integer overflow
6306         problems, fixing all the bugs I found.
6307
6308         Although the C Standard says the resulting code is still not safe
6309         in the presence of integer overflow, in practice it should be good
6310         enough for all real-world two's-complement implementations, except
6311         for debugging environments that deliberately trap on integer
6312         overflow (e.g., gcc -ftrapv).
6313
6314         * lib/mktime.c (WRAPV): New macro.
6315         (SHR): Also check that long_int and time_t shift right in the
6316         usual way, before using the fast-but-unportable method.
6317         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6318         used.  The code already assumed two's complement, so there's
6319         no need to test for alternatives.  All uses removed.
6320         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6321         the C standard.  Problem reported by Rich Felker in
6322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6323         (twos_complement_arithmetic): Also check long_int and time_t.
6324         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6325         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6326         (__mktime_internal): Avoid integer overflow with unary subtraction
6327         in two instances where -1 - X is an adequate replacement for -X,
6328         since the calculations are approximate.
6329
6330 2011-01-29  Eric Blake  <eblake@redhat.com>
6331
6332         mktime: avoid infinite loop
6333         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6334         type; behavior is still undefined but portable to all known targets.
6335         Reported by Rich Felker.
6336
6337 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6338
6339         rename, unlink, same-inode: Relicense.
6340         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6341         * modules/unlink (License): Likewise.
6342         * modules/same-inode (License): Likewise.
6343
6344 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6345
6346         mktime: avoid problems on NetBSD 5 / i386
6347         * lib/mktime.c (long_int): New type.  This works around a problem
6348         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6349         but time_t is 64 bits, and where I expect the existing code is
6350         wrong in some cases.
6351         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6352         (ydhms_diff): Bring back the compile-time check for wide-enough
6353         year and yday.
6354
6355         mktime: fix misspelling in comment
6356         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6357         This merges all recent glibc changes of importance.
6358
6359 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6360
6361         move-if-change: cope with concurrent mv of identical file.
6362         * build-aux/move-if-change (CMPPROG): Accept environment
6363         variable as an override for `cmp'.
6364         (usage): Document CMPPROG.
6365         Adjust comparison to drop stdout.  Cope with failure of mv if
6366         the target file exists and is identical to the source, for
6367         parallel builds.
6368         Report from H.J. Lu against binutils in PR binutils/12283.
6369
6370 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6371
6372         * users.txt: Mention sharutils.
6373
6374 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6375
6376         * users.txt: Mention OATH Toolkit.
6377
6378 2011-01-27  Bruno Haible  <bruno@clisp.org>
6379
6380         Prepare for supporting FreeBSD 10.
6381         * build-aux/config.libpath: Remove handling of freebsd1*.
6382
6383 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6384
6385         Prepare for supporting FreeBSD 10.
6386         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6387         match FreeBSD 10.0.
6388
6389 2011-01-27  Bruno Haible  <bruno@clisp.org>
6390
6391         vma-iter, get-rusage-as: Add OpenBSD support.
6392         * modules/vma-iter (configure.ac): Test for mquery.
6393         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6394         * lib/vma-iter.c: Include <sys/mman.h>.
6395         (vma_iterate): Add an implementation based on mquery().
6396         * lib/resource-ext.h (get_rusage_as): Update comments.
6397         * lib/get-rusage-as.c: Likewise.
6398         * lib/get-rusage-data.c: Likewise.
6399
6400 2011-01-26  Karl Berry  <karl@gnu.org>
6401
6402         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6403         variables to make it easier to override the makeinfo program used.
6404
6405 2011-01-26  Eric Blake  <eblake@redhat.com>
6406
6407         fcntl: work around Haiku F_DUPFD bugs
6408         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6409         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6410         cloexec bit on duplication.
6411         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6412
6413 2011-01-26  Bruno Haible  <bruno@clisp.org>
6414
6415         Enable memory leak tests on AIX.
6416         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6417         * tests/test-fprintf-posix3.c (main): Likewise.
6418
6419 2011-01-26  Bruno Haible  <bruno@clisp.org>
6420
6421         Tests for module 'get-rusage-data'.
6422         * modules/get-rusage-data-tests: New file.
6423         * tests/test-get-rusage-data.c: New file.
6424
6425         New module 'get-rusage-data'.
6426         * lib/resource-ext.h (get_rusage_data): New declaration.
6427         * lib/get-rusage-data.c: New file.
6428         * modules/get-rusage-data: New file.
6429
6430 2011-01-25  Bruno Haible  <bruno@clisp.org>
6431
6432         get-rusage-as: Allow for easier testing.
6433         * lib/resource-ext.h (get_rusage_as): Add comment.
6434         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6435         (main): New function for interactive testing.
6436
6437 2011-01-25  Bruno Haible  <bruno@clisp.org>
6438
6439         vma-iter: Treat Haiku like BeOS.
6440         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6441         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6442
6443 2011-01-25  Eric Blake  <eblake@redhat.com>
6444
6445         c-stack: fix regression on cygwin when libsigsegv is present
6446         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6447
6448 2011-01-24  Bruno Haible  <bruno@clisp.org>
6449
6450         vma-iter: Avoid empty intervals.
6451         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6452         on an empty interval.
6453
6454 2011-01-24  Jim Meyering  <meyering@redhat.com>
6455
6456         u64: remove unnecessary #include
6457         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6458
6459 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6460
6461         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6462         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6463
6464 2011-01-23  Bruno Haible  <bruno@clisp.org>
6465
6466         New module 'vma-iter'.
6467         * lib/vma-iter.h: New file.
6468         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6469         * modules/vma-iter: New file.
6470         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6471         for get_rusage_as_via_iterator.
6472         (vma_iterate_callback): New function.
6473         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6474         * modules/get-rusage-as (Depends-on): Add vma-iter.
6475
6476 2011-01-23  Bruno Haible  <bruno@clisp.org>
6477
6478         uninorm: Tweak includes.
6479         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6480         Reported by Jim Meyering.
6481
6482 2011-01-23  Bruno Haible  <bruno@clisp.org>
6483
6484         get-rusage-as: Improve on NetBSD.
6485         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6486         /proc, like on FreeBSD.
6487
6488 2011-01-23  Jim Meyering  <meyering@redhat.com>
6489
6490         xreadlink.h: remove unnecessary #include
6491         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6492
6493         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6494         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6495
6496 2011-01-23  Bruno Haible  <bruno@clisp.org>
6497
6498         get-rusage-as: Fix bug.
6499         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6500         original limit when aborting the first loop.
6501
6502 2011-01-23  Bruno Haible  <bruno@clisp.org>
6503
6504         wctype: Ensure valid C syntax.
6505         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6506         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6507
6508 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6509
6510         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6512         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6513         as they are needed only for configure's test case.
6514         This removes two unnecessary symbols from config.h.
6515
6516         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6517         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6519         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6520         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6521         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6522         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6523         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6524         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6525         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6526         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6528         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6529         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6530         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6531         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6532         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6533         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6534
6535 2011-01-21  Eric Blake  <eblake@redhat.com>
6536
6537         maintainer-makefile: work with older git for submodule check
6538         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6539         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6540         Reported by Matthias Bolte.
6541
6542         bootstrap: minor portability fixes
6543         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6544         (usage): Omit leading capital and trailing . on help phrases, per
6545         GNU Coding Standards.
6546         (check_versions, top level): Prefix messages with script name.
6547
6548 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6549
6550         bootstrap: support --no-git option
6551         * build-aux/bootstrap: Add --no-git option, to be used when
6552         --gnulib-srcdir points to the exact desired checkout.
6553
6554 2011-01-21  Eric Blake  <eblake@redhat.com>
6555
6556         strerror_r-posix: work with glibc 2.13
6557         * lib/strerror_r.c (strerror_r): Fix return type.
6558
6559 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6560             Bruno Haible  <bruno@clisp.org>
6561
6562         uN_strstr: New unit tests.
6563         * modules/unistr/u8-strstr-tests: New file.
6564         * modules/unistr/u16-strstr-tests: New file.
6565         * modules/unistr/u32-strstr-tests: New file.
6566         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6567         * tests/unistr/test-u8-strstr.c: New file.
6568         * tests/unistr/test-u16-strstr.c: New file.
6569         * tests/unistr/test-u32-strstr.c: New file.
6570
6571 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6572             Bruno Haible  <bruno@clisp.org>
6573
6574         Make uN_strstr functions O(n) worst-case.
6575         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6576         16-bit and 32-bit unit cases, use the unibyte algorithm from
6577         lib/mbsstr.c.
6578         * lib/unistr/u8-strstr.c: Include <string.h>.
6579         (UNIT_IS_UINT8_T): New macro.
6580         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6581         (U_STRLEN, U_STRNLEN): New macros.
6582         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6583         (U_STRLEN, U_STRNLEN): New macros.
6584         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6585         (configure.ac): Update required libunistring version.
6586         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6587         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6588         malloca.
6589         (configure.ac): Update required libunistring version.
6590         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6591         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6592         malloca.
6593         (configure.ac): Update required libunistring version.
6594
6595 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6596             Bruno Haible  <bruno@clisp.org>
6597
6598         Prepare for faster uN_strstr functions.
6599         * lib/str-kmp.h: Support definable UNITs.
6600         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6601         needle_len argument.
6602         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6603         * lib/mbscasestr.c (mbscasestr): Likewise.
6604
6605 2011-01-21  Pádraig Brady <P@draigBrady.com>
6606
6607         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6608         * tests/test-malloca.c (main): Unset the environment variable
6609         to greatly speed up the test.
6610         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6611         * modules/malloca-tests: Depend on unsetenv.
6612
6613 2011-01-21  Pádraig Brady <P@draigBrady.com>
6614
6615         ignore-value: remove stdint dependency
6616         * lib/ignore-value.h: Remove <stdint.h>
6617         * modules/ignore-value: Remove stdint dependency.
6618
6619 2011-01-21  Jim Meyering  <meyering@redhat.com>
6620
6621         maint.mk: adjust variable name to be consistent with other gl_ vars
6622         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6623         to be lower case.
6624
6625 2011-01-20  Jim Meyering  <meyering@redhat.com>
6626
6627         maint.mk: make "check" depend on public-submodule-commit by default
6628         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6629
6630 2011-01-20  Bruno Haible  <bruno@clisp.org>
6631
6632         mbfile, mbiter: Complete change from 2008-12-21.
6633         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6634         * m4/mbiter.m4 (gl_MBITER): Likewise.
6635
6636 2011-01-20  Jim Meyering  <meyering@redhat.com>
6637
6638         init.sh: insert space between each function name and "()"
6639         * tests/init.sh: Make it a little easier to see that a function's
6640         name is "warn_", and not "warn" when looking at the first part of
6641         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6642
6643 2011-01-20  Jim Meyering  <meyering@redhat.com>
6644
6645         mountlist: clean up code formatting
6646         * lib/mountlist.c (read_file_system_list): Split a long line,
6647         correct bracing style, use NULL in place of "(struct statfs *)0",
6648         don't parenthesize return value, add spaces around "=" and after
6649         ";-in-for-stmt".
6650
6651 2011-01-14  Markus Duft <mduft@gentoo.org>
6652
6653         mountlist: add support for Interix
6654         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6655         Apply statvfs to all entries of /dev/fs.
6656         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6657         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6658
6659 2011-01-20  Jim Meyering  <meyering@redhat.com>
6660
6661         maint.mk: improve the public-submodule-commit rule
6662         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6663         to suppress printing of its commands... unless V=1.
6664         Add git submodule's --quiet option to suppress printing of e.g.,
6665         "Entering gnulib" output.
6666         "cd" into $(srcdir) before running git submodule.
6667
6668 2011-01-20  Bruno Haible  <bruno@clisp.org>
6669
6670         include_next: Fix bug introduced on 2011-01-18.
6671         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6672         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6673         ac_cv_header_... variable if the second argument is not 'check'.
6674         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6675         gl_NEXT_HEADERS_INTERNAL.
6676
6677 2011-01-20  Bruno Haible  <bruno@clisp.org>
6678
6679         Allow the user to avoid the GNULIB_TEST_* macros.
6680         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6681         Suggested by Paul Eggert.
6682
6683 2011-01-14  Jim Meyering  <meyering@redhat.com>
6684
6685         bootstrap: avoid failure when there is no .gitmodules file
6686         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6687         has been assigned to, even when its value is the empty string.
6688         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6689         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6690         Reported by John W. Eaton <jwe@gnu.org>.
6691
6692 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6693
6694         assume <ctype.h>, ..., <time.h> exist
6695         For years gnulib has been assuming the existence of the headers
6696         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6697         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6698         them, since they don't appear to be needed.
6699         * README (Portability guidelines): Document this.
6700         * lib/flock.c: Assume <fcntl.h> exists.
6701         * lib/regex_internal.h: Assume <locale.h> exists.
6702         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6703         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6704         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6705         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6706         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6707         * m4/regex.m4 (gl_REGEX): Likewise.
6708         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6709         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6710         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6711         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6712         * tests/test-argp.c: Likewise.
6713         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6714
6715         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6716         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6717         AA_APPLE_UNIVERSAL_BUILD.  See
6718         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6719         * NEWS: Document this.
6720
6721 2011-01-19  Eric Blake  <eblake@redhat.com>
6722
6723         c-stack: assume stack overflow if SA_SIGINFO unsupported
6724         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6725         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6726         sigaction will work.
6727         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6728         behavior match Linux.
6729         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6730
6731         stdbool-tests: accomodate Haiku
6732         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6733
6734         binary-io: fix O_TEXT on Haiku
6735         * modules/binary-io (Depends-on): Add fcntl-h.
6736         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6737         than blindly undefining O_TEXT.
6738         Reported by Scott McCreary.
6739
6740 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6741
6742         include_next: do not check for standard headers like stddef.h
6743
6744         I found this problem when modifying Emacs to use gnulib.
6745         I noticed that it added HAVE_STDDEF_H to config.h, even though
6746         gnulib always assumes <stddef.h> exists as per README and this
6747         symbol is unnecessary.
6748         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6749         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6750         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6751         faster for headers like stddef.h that are known to exist.
6752         (gl_CHECK_NEXT_HEADERS): Use it.
6753         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6754         rather than gl_CHECK_NEXT_HEADERS.
6755         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6756         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6757
6758 2011-01-18  Eric Blake  <eblake@redhat.com>
6759
6760         ansi-c++-opt: skip C++ dependency style if C++ is unused
6761         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6762         tests when we know C++ compilation is not desired.
6763         Reported by Scott McCreary.
6764
6765 2011-01-18  Bruno Haible  <bruno@clisp.org>
6766
6767         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6768         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6769         (main): Perform test also when getrlimit and setrlimit don't exist or
6770         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6771         limiting the address space size using setrlimit, compare the address
6772         space size before and after the the test.
6773         * tests/test-dprintf-posix2.c: Likewise.
6774         * tests/test-fprintf-posix3.sh: Update skip messages.
6775         * tests/test-dprintf-posix2.sh: Likewise.
6776         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6777         * modules/dprintf-posix-tests (Depends-on): Likewise.
6778         Reported by Bruce Korb <bkorb@gnu.org> and
6779         Gary V. Vaughan <gary@gnu.org>.
6780
6781 2011-01-18  Bruno Haible  <bruno@clisp.org>
6782
6783         get-rusage-as: Improvement for Cygwin.
6784         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6785         areas that are merely reserved.
6786
6787 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6788
6789         strftime: remove dependencies on multibyte modules
6790
6791         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6792         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6793         only if __osf__ is defined, and I suspect OSF doesn't need these
6794         other modules.  If my guess is wrong, we'll need to come up with a
6795         variant of strftime that doesn't need the multibyte modules.
6796
6797         I discovered this problem when attempting modify Emacs to use the
6798         strftime module.  With the previous gnulib, this caused Emacs to
6799         need 31 new files, ranging from lib/config.charset to
6800         m4/wint_t.m4.  This was overkill and I expect would be offputting
6801         to the Emacs maintainers.  After this change, only 6 new files are
6802         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6803         stdbool.m4, and tm_gmtoff.m4.
6804
6805         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6806         Suggested by Bruno Haible in
6807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6808         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6809         and do not check for wchar.h.
6810         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6811         (Depends-on): Remove mbrlen, mbsinit, wchar.
6812
6813 2011-01-18  Bruno Haible  <bruno@clisp.org>
6814
6815         Tests for module 'get-rusage-as'.
6816         * modules/get-rusage-as-tests: New file.
6817         * tests/test-get-rusage-as.c: New file.
6818
6819         New module 'get-rusage-as'.
6820         * modules/get-rusage-as: New file.
6821         * lib/resource-ext.h: New file.
6822         * lib/get-rusage-as.c: New file.
6823
6824 2011-01-17  Eric Blake  <eblake@redhat.com>
6825
6826         sigaction: relax license from LGPLv3+ to LGPLv2+
6827         * modules/sigaction (License): Relax to LGPLv2+.
6828
6829 2011-01-14  Bruno Haible  <bruno@clisp.org>
6830
6831         filemode: Make function declarations usable in C++ mode.
6832         * lib/filemode.h: Enclose function declarations in extern "C" block.
6833         Reported by John W. Eaton <jwe@gnu.org>.
6834
6835 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6836
6837         save-cwd: no longer include "xgetcwd.h"
6838         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6839         This avoids a compilation failure in projects that use save-cwd
6840         without also using the xgetcwd module.
6841
6842 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6843
6844         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6845         This is so that a program like Emacs, which needs only dtoastr,
6846         does not have to bother with distributing and compiling ftoastr
6847         and ldtoastr.
6848         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6849         * modules/dtoastr, modules/ldtoastr: New files.
6850         * modules/ftoastr: Now works just for 'float'.
6851         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6852         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6853         dtoastr.c, ldtoastr.c.
6854
6855 2011-01-11  Jim Meyering  <meyering@redhat.com>
6856
6857         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6858         There is no need to work around the lack of the fchdir function,
6859         since gnulib can now provide a replacement when required.
6860         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6861         * modules/save-cwd (Depends-on): Add fchdir.
6862
6863 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6864
6865         openat, save-cwd: avoid xmalloc
6866
6867         This removes a direct (but undocumented) dependency of openat on
6868         xalloc, along with an indirect dependency via save-cwd.  It also
6869         removes a dependency of save-cwd on xgetcwd, and thereby
6870         indirectly on xalloc.  This change causes the openat substitute
6871         to fall back on save_cwd when memory is tight, and for save_cwd to
6872         fail instead of dying when memory is tight, but that's good enough.
6873         Problem and initial idea for fix reported by Bastien Roucaries in
6874         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6875
6876         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6877         xalloc.h (for xmalloc).
6878         (openat_proc_name): Use malloc, not xmalloc.
6879         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6880         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6881
6882         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6883         This avoids heap allocation for file names whose lengths are in
6884         the range 512..1023, with the upper bound increasing to at most
6885         4031 depending on the platform's PATH_MAX.  (We do not want
6886         pathmax.h here as it might supply a non-constant PATH_MAX.)
6887         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6888         Perhaps they should be moved to malloca.h?
6889         (OPENAT_BUFFER_SIZE): Use them.
6890
6891 2011-01-10  Bruno Haible  <bruno@clisp.org>
6892
6893         doc: Update users.txt.
6894         * users.txt: Add recutils.
6895
6896 2011-01-09  Karl Berry  <karl@gnu.org>
6897
6898         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6899
6900         * doc/configmake.texi: New file.
6901         * doc/gnulib.texi: Include it.
6902         * modules/configmake: Move documentation from here.
6903
6904 2011-01-09  Bruno Haible  <bruno@clisp.org>
6905
6906         Update to Unicode 6.0.0.
6907         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6908         (get_lbp): Update for Unicode 6.0.0.
6909         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6910         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6911         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6912         U+11001, U+11038..U+11046. Remove U+06DE.
6913         (uc_width): Fix bounds of planes.
6914         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6915         lib/uniwidth/width.c.
6916         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6917         trailing whitespace removed.
6918         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6919         without comments, but with the original copyright notice.
6920         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6921         * lib/unicase/ignorable.h: Likewise.
6922         * lib/unicase/tocasefold.h: Likewise.
6923         * lib/unicase/tolower.h: Likewise.
6924         * lib/unicase/totitle.h: Likewise.
6925         * lib/unicase/toupper.h: Likewise.
6926         * lib/unictype/bidi_of.h: Likewise.
6927         * lib/unictype/blocks.h: Likewise.
6928         * lib/unictype/categ_C.h: Likewise.
6929         * lib/unictype/categ_Cn.h: Likewise.
6930         * lib/unictype/categ_L.h: Likewise.
6931         * lib/unictype/categ_Ll.h: Likewise.
6932         * lib/unictype/categ_Lm.h: Likewise.
6933         * lib/unictype/categ_Lo.h: Likewise.
6934         * lib/unictype/categ_Lu.h: Likewise.
6935         * lib/unictype/categ_M.h: Likewise.
6936         * lib/unictype/categ_Mc.h: Likewise.
6937         * lib/unictype/categ_Me.h: Likewise.
6938         * lib/unictype/categ_Mn.h: Likewise.
6939         * lib/unictype/categ_N.h: Likewise.
6940         * lib/unictype/categ_Nd.h: Likewise.
6941         * lib/unictype/categ_No.h: Likewise.
6942         * lib/unictype/categ_P.h: Likewise.
6943         * lib/unictype/categ_Po.h: Likewise.
6944         * lib/unictype/categ_S.h: Likewise.
6945         * lib/unictype/categ_Sc.h: Likewise.
6946         * lib/unictype/categ_Sk.h: Likewise.
6947         * lib/unictype/categ_Sm.h: Likewise.
6948         * lib/unictype/categ_So.h: Likewise.
6949         * lib/unictype/categ_of.h: Likewise.
6950         * lib/unictype/combining.h: Likewise.
6951         * lib/unictype/ctype_alnum.h: Likewise.
6952         * lib/unictype/ctype_alpha.h: Likewise.
6953         * lib/unictype/ctype_graph.h: Likewise.
6954         * lib/unictype/ctype_lower.h: Likewise.
6955         * lib/unictype/ctype_print.h: Likewise.
6956         * lib/unictype/ctype_punct.h: Likewise.
6957         * lib/unictype/ctype_upper.h: Likewise.
6958         * lib/unictype/decdigit.h: Likewise.
6959         * lib/unictype/digit.h: Likewise.
6960         * lib/unictype/numeric.h: Likewise.
6961         * lib/unictype/pr_alphabetic.h: Likewise.
6962         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6963         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6964         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6965         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6966         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6967         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6968         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6969         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6970         * lib/unictype/pr_case_ignorable.h: Likewise.
6971         * lib/unictype/pr_cased.h: Likewise.
6972         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6973         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6974         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6975         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6976         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6977         * lib/unictype/pr_combining.h: Likewise.
6978         * lib/unictype/pr_composite.h: Likewise.
6979         * lib/unictype/pr_currency_symbol.h: Likewise.
6980         * lib/unictype/pr_decimal_digit.h: Likewise.
6981         * lib/unictype/pr_deprecated.h: Likewise.
6982         * lib/unictype/pr_format_control.h: Likewise.
6983         * lib/unictype/pr_grapheme_base.h: Likewise.
6984         * lib/unictype/pr_grapheme_extend.h: Likewise.
6985         * lib/unictype/pr_grapheme_link.h: Likewise.
6986         * lib/unictype/pr_id_continue.h: Likewise.
6987         * lib/unictype/pr_id_start.h: Likewise.
6988         * lib/unictype/pr_ideographic.h: Likewise.
6989         * lib/unictype/pr_lowercase.h: Likewise.
6990         * lib/unictype/pr_math.h: Likewise.
6991         * lib/unictype/pr_numeric.h: Likewise.
6992         * lib/unictype/pr_other_alphabetic.h: Likewise.
6993         * lib/unictype/pr_other_id_continue.h: Likewise.
6994         * lib/unictype/pr_other_math.h: Likewise.
6995         * lib/unictype/pr_punctuation.h: Likewise.
6996         * lib/unictype/pr_sentence_terminal.h: Likewise.
6997         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6998         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6999         * lib/unictype/pr_unified_ideograph.h: Likewise.
7000         * lib/unictype/pr_uppercase.h: Likewise.
7001         * lib/unictype/pr_xid_continue.h: Likewise.
7002         * lib/unictype/pr_xid_start.h: Likewise.
7003         * lib/unictype/scripts.h: Likewise.
7004         * lib/unictype/scripts_byname.gperf: Likewise.
7005         * lib/unictype/sy_java_ident.h: Likewise.
7006         * lib/unigbrk/gbrkprop.h: Likewise.
7007         * lib/unilbrk/lbrkprop1.h: Likewise.
7008         * lib/unilbrk/lbrkprop2.h: Likewise.
7009         * lib/uninorm/decomposition-table2.h: Likewise.
7010         * lib/uniwbrk/wbrkprop.h: Likewise.
7011         * tests/unicase/test-cased.c: Likewise.
7012         * tests/unicase/test-ignorable.c: Likewise.
7013         * tests/unicase/test-uc_tolower.c: Likewise.
7014         * tests/unicase/test-uc_totitle.c: Likewise.
7015         * tests/unicase/test-uc_toupper.c: Likewise.
7016         * tests/unictype/test-categ_C.c: Likewise.
7017         * tests/unictype/test-categ_Cn.c: Likewise.
7018         * tests/unictype/test-categ_L.c: Likewise.
7019         * tests/unictype/test-categ_Ll.c: Likewise.
7020         * tests/unictype/test-categ_Lm.c: Likewise.
7021         * tests/unictype/test-categ_Lo.c: Likewise.
7022         * tests/unictype/test-categ_Lu.c: Likewise.
7023         * tests/unictype/test-categ_M.c: Likewise.
7024         * tests/unictype/test-categ_Mc.c: Likewise.
7025         * tests/unictype/test-categ_Me.c: Likewise.
7026         * tests/unictype/test-categ_Mn.c: Likewise.
7027         * tests/unictype/test-categ_N.c: Likewise.
7028         * tests/unictype/test-categ_Nd.c: Likewise.
7029         * tests/unictype/test-categ_No.c: Likewise.
7030         * tests/unictype/test-categ_P.c: Likewise.
7031         * tests/unictype/test-categ_Po.c: Likewise.
7032         * tests/unictype/test-categ_S.c: Likewise.
7033         * tests/unictype/test-categ_Sc.c: Likewise.
7034         * tests/unictype/test-categ_Sk.c: Likewise.
7035         * tests/unictype/test-categ_Sm.c: Likewise.
7036         * tests/unictype/test-categ_So.c: Likewise.
7037         * tests/unictype/test-ctype_alnum.c: Likewise.
7038         * tests/unictype/test-ctype_alpha.c: Likewise.
7039         * tests/unictype/test-ctype_graph.c: Likewise.
7040         * tests/unictype/test-ctype_lower.c: Likewise.
7041         * tests/unictype/test-ctype_print.c: Likewise.
7042         * tests/unictype/test-ctype_punct.c: Likewise.
7043         * tests/unictype/test-ctype_upper.c: Likewise.
7044         * tests/unictype/test-decdigit.h: Likewise.
7045         * tests/unictype/test-digit.h: Likewise.
7046         * tests/unictype/test-numeric.h: Likewise.
7047         * tests/unictype/test-pr_alphabetic.c: Likewise.
7048         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7049         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
7050         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
7051         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7052         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7053         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7054         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7055         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7056         * tests/unictype/test-pr_case_ignorable.c: Likewise.
7057         * tests/unictype/test-pr_cased.c: Likewise.
7058         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
7059         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
7060         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
7061         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
7062         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
7063         * tests/unictype/test-pr_combining.c: Likewise.
7064         * tests/unictype/test-pr_composite.c: Likewise.
7065         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7066         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7067         * tests/unictype/test-pr_deprecated.c: Likewise.
7068         * tests/unictype/test-pr_format_control.c: Likewise.
7069         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7070         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7071         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7072         * tests/unictype/test-pr_id_continue.c: Likewise.
7073         * tests/unictype/test-pr_id_start.c: Likewise.
7074         * tests/unictype/test-pr_ideographic.c: Likewise.
7075         * tests/unictype/test-pr_lowercase.c: Likewise.
7076         * tests/unictype/test-pr_math.c: Likewise.
7077         * tests/unictype/test-pr_numeric.c: Likewise.
7078         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7079         * tests/unictype/test-pr_other_id_continue.c: Likewise.
7080         * tests/unictype/test-pr_other_math.c: Likewise.
7081         * tests/unictype/test-pr_punctuation.c: Likewise.
7082         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7083         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7084         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7085         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7086         * tests/unictype/test-pr_uppercase.c: Likewise.
7087         * tests/unictype/test-pr_xid_continue.c: Likewise.
7088         * tests/unictype/test-pr_xid_start.c: Likewise.
7089         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7090         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7091         changes.
7092         * lib/unictype/categ_Cc.h: Likewise.
7093         * lib/unictype/categ_Cf.h: Likewise.
7094         * lib/unictype/categ_Co.h: Likewise.
7095         * lib/unictype/categ_Cs.h: Likewise.
7096         * lib/unictype/categ_Lt.h: Likewise.
7097         * lib/unictype/categ_Nl.h: Likewise.
7098         * lib/unictype/categ_Pc.h: Likewise.
7099         * lib/unictype/categ_Pd.h: Likewise.
7100         * lib/unictype/categ_Pe.h: Likewise.
7101         * lib/unictype/categ_Pf.h: Likewise.
7102         * lib/unictype/categ_Pi.h: Likewise.
7103         * lib/unictype/categ_Ps.h: Likewise.
7104         * lib/unictype/categ_Z.h: Likewise.
7105         * lib/unictype/categ_Zl.h: Likewise.
7106         * lib/unictype/categ_Zp.h: Likewise.
7107         * lib/unictype/categ_Zs.h: Likewise.
7108         * lib/unictype/ctype_blank.h: Likewise.
7109         * lib/unictype/ctype_cntrl.h: Likewise.
7110         * lib/unictype/ctype_digit.h: Likewise.
7111         * lib/unictype/ctype_space.h: Likewise.
7112         * lib/unictype/ctype_xdigit.h: Likewise.
7113         * lib/unictype/mirror.h: Likewise.
7114         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7115         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7116         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7117         * lib/unictype/pr_bidi_control.h: Likewise.
7118         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7119         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7120         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7121         * lib/unictype/pr_bidi_pdf.h: Likewise.
7122         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7123         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7124         * lib/unictype/pr_dash.h: Likewise.
7125         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7126         * lib/unictype/pr_diacritic.h: Likewise.
7127         * lib/unictype/pr_extender.h: Likewise.
7128         * lib/unictype/pr_hex_digit.h: Likewise.
7129         * lib/unictype/pr_hyphen.h: Likewise.
7130         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7131         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7132         * lib/unictype/pr_ignorable_control.h: Likewise.
7133         * lib/unictype/pr_iso_control.h: Likewise.
7134         * lib/unictype/pr_join_control.h: Likewise.
7135         * lib/unictype/pr_left_of_pair.h: Likewise.
7136         * lib/unictype/pr_line_separator.h: Likewise.
7137         * lib/unictype/pr_logical_order_exception.h: Likewise.
7138         * lib/unictype/pr_non_break.h: Likewise.
7139         * lib/unictype/pr_not_a_character.h: Likewise.
7140         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7141         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7142         * lib/unictype/pr_other_id_start.h: Likewise.
7143         * lib/unictype/pr_other_lowercase.h: Likewise.
7144         * lib/unictype/pr_other_uppercase.h: Likewise.
7145         * lib/unictype/pr_paired_punctuation.h: Likewise.
7146         * lib/unictype/pr_paragraph_separator.h: Likewise.
7147         * lib/unictype/pr_pattern_syntax.h: Likewise.
7148         * lib/unictype/pr_pattern_white_space.h: Likewise.
7149         * lib/unictype/pr_private_use.h: Likewise.
7150         * lib/unictype/pr_quotation_mark.h: Likewise.
7151         * lib/unictype/pr_radical.h: Likewise.
7152         * lib/unictype/pr_soft_dotted.h: Likewise.
7153         * lib/unictype/pr_space.h: Likewise.
7154         * lib/unictype/pr_titlecase.h: Likewise.
7155         * lib/unictype/pr_variation_selector.h: Likewise.
7156         * lib/unictype/pr_white_space.h: Likewise.
7157         * lib/unictype/pr_zero_width.h: Likewise.
7158         * lib/unictype/sy_c_ident.h: Likewise.
7159         * lib/unictype/sy_c_whitespace.h: Likewise.
7160         * lib/unictype/sy_java_whitespace.h: Likewise.
7161         * lib/uninorm/composition-table.gperf: Likewise.
7162         * lib/uninorm/decomposition-table1.h: Likewise.
7163         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
7164         LB8.
7165         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7166         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7167         * modules/unictype/*: Bump version number of expected libunistring
7168         version.
7169
7170 2011-01-09  Bruno Haible  <bruno@clisp.org>
7171
7172         Update to Unicode 5.2.0.
7173         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
7174         trailing whitespace removed.
7175
7176 2011-01-09  Bruno Haible  <bruno@clisp.org>
7177
7178         New Unicode character properties, from Unicode 5.2.0.
7179         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
7180         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
7181         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
7182         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
7183         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
7184         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
7185         uc_is_property_cased, uc_is_property_case_ignorable,
7186         uc_is_property_changes_when_lowercased,
7187         uc_is_property_changes_when_uppercased,
7188         uc_is_property_changes_when_titlecased,
7189         uc_is_property_changes_when_casefolded,
7190         uc_is_property_changes_when_casemapped): New declarations.
7191         * lib/unictype/pr_byname.gperf: Add the new properties.
7192         * modules/unictype/property-byname (Depends-on): Depend on the new
7193         properties modules.
7194         * modules/unictype/property-all (Depends-on): Likewise.
7195         * MODULES.html.sh (Unicode string functions): Add
7196         unictype/property-case-ignorable, unictype/property-cased,
7197         unictype/property-changes-when-casefolded,
7198         unictype/property-changes-when-casemapped,
7199         unictype/property-changes-when-lowercased,
7200         unictype/property-changes-when-titlecased,
7201         unictype/property-changes-when-uppercased.
7202
7203         New module 'unictype/property-changes-when-casemapped'.
7204         * modules/unictype/property-changes-when-casemapped: New file.
7205         * lib/unictype/pr_changes_when_casemapped.c: New file.
7206         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
7207         generated by gen-uni-tables.
7208         * modules/unictype/property-changes-when-casemapped-tests: New file.
7209         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
7210         automatically generated by gen-uni-tables.
7211
7212         New module 'unictype/property-changes-when-casefolded'.
7213         * modules/unictype/property-changes-when-casefolded: New file.
7214         * lib/unictype/pr_changes_when_casefolded.c: New file.
7215         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7216         generated by gen-uni-tables.
7217         * modules/unictype/property-changes-when-casefolded-tests: New file.
7218         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7219         automatically generated by gen-uni-tables.
7220
7221         New module 'unictype/property-changes-when-titlecased'.
7222         * modules/unictype/property-changes-when-titlecased: New file.
7223         * lib/unictype/pr_changes_when_titlecased.c: New file.
7224         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7225         generated by gen-uni-tables.
7226         * modules/unictype/property-changes-when-titlecased-tests: New file.
7227         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7228         automatically generated by gen-uni-tables.
7229
7230         New module 'unictype/property-changes-when-uppercased'.
7231         * modules/unictype/property-changes-when-uppercased: New file.
7232         * lib/unictype/pr_changes_when_uppercased.c: New file.
7233         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7234         generated by gen-uni-tables.
7235         * modules/unictype/property-changes-when-uppercased-tests: New file.
7236         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7237         automatically generated by gen-uni-tables.
7238
7239         New module 'unictype/property-changes-when-lowercased'.
7240         * modules/unictype/property-changes-when-lowercased: New file.
7241         * lib/unictype/pr_changes_when_lowercased.c: New file.
7242         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7243         generated by gen-uni-tables.
7244         * modules/unictype/property-changes-when-lowercased-tests: New file.
7245         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7246         automatically generated by gen-uni-tables.
7247
7248         New module 'unictype/property-case-ignorable'.
7249         * modules/unictype/property-case-ignorable: New file.
7250         * lib/unictype/pr_case_ignorable.c: New file.
7251         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7252         by gen-uni-tables.
7253         * modules/unictype/property-case-ignorable-tests: New file.
7254         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7255         generated by gen-uni-tables.
7256
7257         New module 'unictype/property-cased'.
7258         * modules/unictype/property-cased: New file.
7259         * lib/unictype/pr_cased.c: New file.
7260         * lib/unictype/pr_cased.h: New file, automatically generated by
7261         gen-uni-tables.
7262         * modules/unictype/property-cased-tests: New file.
7263         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7264         gen-uni-tables.
7265
7266 2011-01-09  Bruno Haible  <bruno@clisp.org>
7267
7268         Update to Unicode 5.2.0.
7269         * lib/gen-uni-tables.c (output_predicate, output_category,
7270         output_combclass, output_bidi_category, output_decimal_digit_test,
7271         output_decimal_digit, output_digit_test, output_digit,
7272         output_numeric_test, output_numeric, output_mirror, output_scripts,
7273         output_scripts_byname, output_blocks, output_ident_category): Fix
7274         comment header.
7275         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7276         get_wbp.
7277         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7278         items.
7279         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7280         Changes_When_Lowercased, Changes_When_Uppercased,
7281         Changes_When_Titlecased, Changes_When_Casefolded,
7282         Changes_When_Casemapped.
7283         (is_property_alphabetic, is_property_default_ignorable_code_point):
7284         Update for Unicode 5.2.0.
7285         (is_property_cased, is_property_case_ignorable,
7286         is_property_changes_when_lowercased,
7287         is_property_changes_when_uppercased,
7288         is_property_changes_when_titlecased,
7289         is_property_changes_when_casefolded,
7290         is_property_changes_when_casemapped): New functions.
7291         (output_properties): Output also the properties cased, case_ignorable,
7292         changes_when_lowercased, changes_when_uppercased,
7293         changes_when_titlecased, changes_when_casefolded,
7294         changes_when_casemapped.
7295         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7296         Unicode TR#11 revision 17 -> 19.
7297         (LBP_CP): New enumeration value.
7298         (LBP_*): Adjust values accordingly.
7299         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7300         TR#14 revision 22 -> 24.
7301         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7302         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7303         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7304         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7305         is_WBP_MIDLETTER.
7306         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7307         the code1 and code2 of each composition rule.
7308         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7309         * lib/unicase/ignorable.h: Likewise.
7310         * lib/unicase/tocasefold.h: Likewise.
7311         * lib/unicase/tolower.h: Likewise.
7312         * lib/unicase/totitle.h: Likewise.
7313         * lib/unicase/toupper.h: Likewise.
7314         * lib/unictype/bidi_of.h: Likewise.
7315         * lib/unictype/blocks.h: Likewise.
7316         * lib/unictype/categ_C.h: Likewise.
7317         * lib/unictype/categ_Cf.h: Likewise.
7318         * lib/unictype/categ_Cn.h: Likewise.
7319         * lib/unictype/categ_L.h: Likewise.
7320         * lib/unictype/categ_Ll.h: Likewise.
7321         * lib/unictype/categ_Lm.h: Likewise.
7322         * lib/unictype/categ_Lo.h: Likewise.
7323         * lib/unictype/categ_Lu.h: Likewise.
7324         * lib/unictype/categ_M.h: Likewise.
7325         * lib/unictype/categ_Mc.h: Likewise.
7326         * lib/unictype/categ_Mn.h: Likewise.
7327         * lib/unictype/categ_N.h: Likewise.
7328         * lib/unictype/categ_Nd.h: Likewise.
7329         * lib/unictype/categ_Nl.h: Likewise.
7330         * lib/unictype/categ_No.h: Likewise.
7331         * lib/unictype/categ_P.h: Likewise.
7332         * lib/unictype/categ_Pd.h: Likewise.
7333         * lib/unictype/categ_Po.h: Likewise.
7334         * lib/unictype/categ_S.h: Likewise.
7335         * lib/unictype/categ_Sc.h: Likewise.
7336         * lib/unictype/categ_So.h: Likewise.
7337         * lib/unictype/categ_of.h: Likewise.
7338         * lib/unictype/combining.h: Likewise.
7339         * lib/unictype/ctype_alnum.h: Likewise.
7340         * lib/unictype/ctype_alpha.h: Likewise.
7341         * lib/unictype/ctype_graph.h: Likewise.
7342         * lib/unictype/ctype_lower.h: Likewise.
7343         * lib/unictype/ctype_print.h: Likewise.
7344         * lib/unictype/ctype_punct.h: Likewise.
7345         * lib/unictype/ctype_upper.h: Likewise.
7346         * lib/unictype/decdigit.h: Likewise.
7347         * lib/unictype/digit.h: Likewise.
7348         * lib/unictype/numeric.h: Likewise.
7349         * lib/unictype/pr_alphabetic.h: Likewise.
7350         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7351         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7352         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7353         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7354         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7355         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7356         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7357         * lib/unictype/pr_combining.h: Likewise.
7358         * lib/unictype/pr_composite.h: Likewise.
7359         * lib/unictype/pr_currency_symbol.h: Likewise.
7360         * lib/unictype/pr_dash.h: Likewise.
7361         * lib/unictype/pr_decimal_digit.h: Likewise.
7362         * lib/unictype/pr_deprecated.h: Likewise.
7363         * lib/unictype/pr_diacritic.h: Likewise.
7364         * lib/unictype/pr_extender.h: Likewise.
7365         * lib/unictype/pr_grapheme_base.h: Likewise.
7366         * lib/unictype/pr_grapheme_extend.h: Likewise.
7367         * lib/unictype/pr_grapheme_link.h: Likewise.
7368         * lib/unictype/pr_id_continue.h: Likewise.
7369         * lib/unictype/pr_id_start.h: Likewise.
7370         * lib/unictype/pr_ideographic.h: Likewise.
7371         * lib/unictype/pr_ignorable_control.h: Likewise.
7372         * lib/unictype/pr_logical_order_exception.h: Likewise.
7373         * lib/unictype/pr_lowercase.h: Likewise.
7374         * lib/unictype/pr_numeric.h: Likewise.
7375         * lib/unictype/pr_other_alphabetic.h: Likewise.
7376         * lib/unictype/pr_punctuation.h: Likewise.
7377         * lib/unictype/pr_sentence_terminal.h: Likewise.
7378         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7379         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7380         * lib/unictype/pr_unified_ideograph.h: Likewise.
7381         * lib/unictype/pr_uppercase.h: Likewise.
7382         * lib/unictype/pr_xid_continue.h: Likewise.
7383         * lib/unictype/pr_xid_start.h: Likewise.
7384         * lib/unictype/pr_zero_width.h: Likewise.
7385         * lib/unictype/scripts.h: Likewise.
7386         * lib/unictype/scripts_byname.gperf: Likewise.
7387         * lib/unictype/sy_java_ident.h: Likewise.
7388         * lib/unigbrk/gbrkprop.h: Likewise.
7389         * lib/unilbrk/lbrkprop1.h: Likewise.
7390         * lib/unilbrk/lbrkprop2.h: Likewise.
7391         * lib/unilbrk/lbrktables.h: Likewise.
7392         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7393         LBP_CP. Implement rule LB30.
7394         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7395         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7396         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7397         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7398         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7399         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7400         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7401         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7402         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7403         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7404         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7405         bits instead of 16 bits in the code1 and code2 of each composition
7406         rule.
7407         (uc_composition): Update for Unicode 5.2.0.
7408         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7409         * lib/uninorm/decomposition-table2.h: Likewise.
7410         * lib/uniwbrk/wbrkprop.h: Likewise.
7411         * tests/unicase/test-cased.c: Likewise.
7412         * tests/unicase/test-ignorable.c: Likewise.
7413         * tests/unicase/test-uc_tolower.c: Likewise.
7414         * tests/unicase/test-uc_totitle.c: Likewise.
7415         * tests/unicase/test-uc_toupper.c: Likewise.
7416         * tests/unictype/test-categ_C.c: Likewise.
7417         * tests/unictype/test-categ_Cf.c: Likewise.
7418         * tests/unictype/test-categ_Cn.c: Likewise.
7419         * tests/unictype/test-categ_L.c: Likewise.
7420         * tests/unictype/test-categ_Ll.c: Likewise.
7421         * tests/unictype/test-categ_Lm.c: Likewise.
7422         * tests/unictype/test-categ_Lo.c: Likewise.
7423         * tests/unictype/test-categ_Lu.c: Likewise.
7424         * tests/unictype/test-categ_M.c: Likewise.
7425         * tests/unictype/test-categ_Mc.c: Likewise.
7426         * tests/unictype/test-categ_Mn.c: Likewise.
7427         * tests/unictype/test-categ_N.c: Likewise.
7428         * tests/unictype/test-categ_Nd.c: Likewise.
7429         * tests/unictype/test-categ_Nl.c: Likewise.
7430         * tests/unictype/test-categ_No.c: Likewise.
7431         * tests/unictype/test-categ_P.c: Likewise.
7432         * tests/unictype/test-categ_Pd.c: Likewise.
7433         * tests/unictype/test-categ_Po.c: Likewise.
7434         * tests/unictype/test-categ_S.c: Likewise.
7435         * tests/unictype/test-categ_Sc.c: Likewise.
7436         * tests/unictype/test-categ_So.c: Likewise.
7437         * tests/unictype/test-ctype_alnum.c: Likewise.
7438         * tests/unictype/test-ctype_alpha.c: Likewise.
7439         * tests/unictype/test-ctype_graph.c: Likewise.
7440         * tests/unictype/test-ctype_lower.c: Likewise.
7441         * tests/unictype/test-ctype_print.c: Likewise.
7442         * tests/unictype/test-ctype_punct.c: Likewise.
7443         * tests/unictype/test-ctype_upper.c: Likewise.
7444         * tests/unictype/test-decdigit.h: Likewise.
7445         * tests/unictype/test-digit.h: Likewise.
7446         * tests/unictype/test-numeric.h: Likewise.
7447         * tests/unictype/test-pr_alphabetic.c: Likewise.
7448         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7449         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7450         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7451         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7452         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7453         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7454         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7455         * tests/unictype/test-pr_combining.c: Likewise.
7456         * tests/unictype/test-pr_composite.c: Likewise.
7457         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7458         * tests/unictype/test-pr_dash.c: Likewise.
7459         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7460         * tests/unictype/test-pr_deprecated.c: Likewise.
7461         * tests/unictype/test-pr_diacritic.c: Likewise.
7462         * tests/unictype/test-pr_extender.c: Likewise.
7463         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7464         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7465         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7466         * tests/unictype/test-pr_id_continue.c: Likewise.
7467         * tests/unictype/test-pr_id_start.c: Likewise.
7468         * tests/unictype/test-pr_ideographic.c: Likewise.
7469         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7470         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7471         * tests/unictype/test-pr_lowercase.c: Likewise.
7472         * tests/unictype/test-pr_numeric.c: Likewise.
7473         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7474         * tests/unictype/test-pr_punctuation.c: Likewise.
7475         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7476         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7477         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7478         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7479         * tests/unictype/test-pr_uppercase.c: Likewise.
7480         * tests/unictype/test-pr_xid_continue.c: Likewise.
7481         * tests/unictype/test-pr_xid_start.c: Likewise.
7482         * tests/unictype/test-pr_zero_width.c: Likewise.
7483         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7484         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7485         changed behaviour: line breaking is now disallowed between a letter
7486         or '=' and '('.
7487         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7488         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7489         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7490         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7491         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7492         lib/uniwidth/width.c.
7493         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7494         without comments, but with the original copyright notice.
7495         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7496         changes.
7497         * lib/unictype/categ_Cc.h: Likewise.
7498         * lib/unictype/categ_Co.h: Likewise.
7499         * lib/unictype/categ_Cs.h: Likewise.
7500         * lib/unictype/categ_Lt.h: Likewise.
7501         * lib/unictype/categ_Me.h: Likewise.
7502         * lib/unictype/categ_Pc.h: Likewise.
7503         * lib/unictype/categ_Pe.h: Likewise.
7504         * lib/unictype/categ_Pf.h: Likewise.
7505         * lib/unictype/categ_Pi.h: Likewise.
7506         * lib/unictype/categ_Ps.h: Likewise.
7507         * lib/unictype/categ_Sk.h: Likewise.
7508         * lib/unictype/categ_Sm.h: Likewise.
7509         * lib/unictype/categ_Z.h: Likewise.
7510         * lib/unictype/categ_Zl.h: Likewise.
7511         * lib/unictype/categ_Zp.h: Likewise.
7512         * lib/unictype/categ_Zs.h: Likewise.
7513         * lib/unictype/ctype_blank.h: Likewise.
7514         * lib/unictype/ctype_cntrl.h: Likewise.
7515         * lib/unictype/ctype_digit.h: Likewise.
7516         * lib/unictype/ctype_space.h: Likewise.
7517         * lib/unictype/ctype_xdigit.h: Likewise.
7518         * lib/unictype/mirror.h: Likewise.
7519         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7520         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7521         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7522         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7523         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7524         * lib/unictype/pr_bidi_control.h: Likewise.
7525         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7526         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7527         * lib/unictype/pr_bidi_pdf.h: Likewise.
7528         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7529         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7530         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7531         * lib/unictype/pr_format_control.h: Likewise.
7532         * lib/unictype/pr_hex_digit.h: Likewise.
7533         * lib/unictype/pr_hyphen.h: Likewise.
7534         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7535         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7536         * lib/unictype/pr_iso_control.h: Likewise.
7537         * lib/unictype/pr_join_control.h: Likewise.
7538         * lib/unictype/pr_left_of_pair.h: Likewise.
7539         * lib/unictype/pr_line_separator.h: Likewise.
7540         * lib/unictype/pr_math.h: Likewise.
7541         * lib/unictype/pr_non_break.h: Likewise.
7542         * lib/unictype/pr_not_a_character.h: Likewise.
7543         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7544         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7545         * lib/unictype/pr_other_id_continue.h: Likewise.
7546         * lib/unictype/pr_other_id_start.h: Likewise.
7547         * lib/unictype/pr_other_lowercase.h: Likewise.
7548         * lib/unictype/pr_other_math.h: Likewise.
7549         * lib/unictype/pr_other_uppercase.h: Likewise.
7550         * lib/unictype/pr_paired_punctuation.h: Likewise.
7551         * lib/unictype/pr_paragraph_separator.h: Likewise.
7552         * lib/unictype/pr_pattern_syntax.h: Likewise.
7553         * lib/unictype/pr_pattern_white_space.h: Likewise.
7554         * lib/unictype/pr_private_use.h: Likewise.
7555         * lib/unictype/pr_quotation_mark.h: Likewise.
7556         * lib/unictype/pr_radical.h: Likewise.
7557         * lib/unictype/pr_soft_dotted.h: Likewise.
7558         * lib/unictype/pr_space.h: Likewise.
7559         * lib/unictype/pr_titlecase.h: Likewise.
7560         * lib/unictype/pr_variation_selector.h: Likewise.
7561         * lib/unictype/pr_white_space.h: Likewise.
7562         * lib/unictype/sy_c_ident.h: Likewise.
7563         * lib/unictype/sy_c_whitespace.h: Likewise.
7564         * lib/unictype/sy_java_whitespace.h: Likewise.
7565         * modules/uni*/*: Bump version number of expected libunistring version.
7566         Reported by Simon Josefsson.
7567
7568 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7569
7570         useless-if-before-free: fix typo in --help and make the internal,
7571         automatic version date update process work once again.
7572         --help output contained a NUL character instead of the
7573         backslash-zero that was intended.  Also, the "must lie within
7574         the first 8 lines" line is on line 9, and hence not getting
7575         automatically updated.
7576         * build-aux/useless-if-before-free: Fix the former by adding a
7577         backslash, and the latter by condensing the three lines of what-it-does
7578         to a single line, leaving one line of slack for the future.
7579
7580 2011-01-09  Bruno Haible  <bruno@clisp.org>
7581
7582         uniwidth/width: Fix width of U+1D173..U+1D17A.
7583         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7584         symbolic_width, output_width_property_test): New functions.
7585         (main): Invoke output_nonspacing_property, output_width_property_test.
7586         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7587         U+1D173..U+1D17A.
7588         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7589         1.
7590         * modules/uniwidth/*: Bump version number of expected libunistring
7591         version.
7592         * modules/unilbrk/*: Likewise.
7593
7594 2011-01-08  Bruno Haible  <bruno@clisp.org>
7595
7596         uninorm tests: Preserve copyright of Unicode data file.
7597         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7598         Mention modifications.
7599
7600 2011-01-08  Bruno Haible  <bruno@clisp.org>
7601
7602         gen-uni-tables: Prepare for Unicode 5.2.0.
7603         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7604         (debug_output_lbp, output_lbp): Update.
7605
7606 2011-01-08  Bruno Haible  <bruno@clisp.org>
7607
7608         unilbrk: Clarify gen-uni-tables.c code.
7609         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7610         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7611         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7612
7613 2011-01-07  Bruno Haible  <bruno@clisp.org>
7614
7615         strtod: Restore errno when successfully parsing Infinity or NaN.
7616         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7617         restore the original errno.
7618
7619 2011-01-07  Bruno Haible  <bruno@clisp.org>
7620
7621         remove test: Avoid failure on HP-UX 11.
7622         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7623
7624 2011-01-07  Bruno Haible  <bruno@clisp.org>
7625
7626         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7627         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7628         error code.
7629
7630 2011-01-07  Pádraig Brady <P@draigBrady.com>
7631
7632         ignore-value: fixup comments, and add Eric Blake
7633         as an author since he rewrote the macros.
7634         * lib/ignore-value.h (ignore_value):  State that
7635         we now support aggregates.  Also specify exactly
7636         when the GCC warn_unused_result feature was added.
7637
7638 2011-01-06  Eric Blake  <eblake@redhat.com>
7639
7640         ignore-value: support aggregate types
7641         * lib/ignore-value.h (ignore_value): Provide separate gcc
7642         definition.
7643         * modules/ignore-value-tests: New test module.
7644         * tests/test-ignore-value.c: New test.
7645
7646         maint.mk: improve sc_prohibit_strcmp regex
7647         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7648         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7649         definition of STRNEQ.
7650
7651         signal: work around Haiku issue with SIGBUS
7652         * lib/siglist.h: Add comment.
7653         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7654         strsignal's favoring of SIGSEGV.
7655         * tests/test-signal.c (main): Avoid test failure.
7656         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7657         Reported by Scott McCreary.
7658
7659         maint.mk: add pre-release check to ensure submodule commits are public
7660         * top/maint.mk (public-submodule-commit): New rule.
7661         (submodule-checks): New variable.
7662         (alpha beta stable): Depend on the variable.
7663
7664 2011-01-05  Pádraig Brady <P@draigBrady.com>
7665         and Jim Meyering  <meyering@redhat.com>
7666
7667         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7668         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7669         (ATTRIBUTE_DEPRECATED): Define.
7670         (_ignore_case): New function.
7671         (ignore_value): New macro, to replace the old function.
7672         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7673         * modules/ignore-value (Depends-on): Add stdint.
7674
7675 2011-01-04  Eric Blake  <eblake@redhat.com>
7676
7677         doc: regenerate INSTALL
7678         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7679         @firstparagraphindent support, now that autoconf dropped it.
7680         (INSTALL_PRELUDE): Reinstate old macro.
7681         * doc/install.texi: Resync from autoconf.
7682         * doc/INSTALL: Reflect recent autoconf update.
7683         * doc/INSTALL.ISO: Likewise.
7684         * doc/INSTALL.UTF-8: Likewise.
7685         Reported by Karl Berry.
7686
7687 2011-01-04  Bruce Korb  <address@hidden>
7688
7689         git-version-gen: avoid a sub-shell
7690         * build-aux/git-version-gen: Redirect stderr in `...` via
7691         "exec 2>...", rather than via an added sub-shell.
7692
7693 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7694
7695         git-version-gen: use (...) rather than sh -c '...'
7696         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7697         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7698
7699 2011-01-03  Jim Meyering  <meyering@redhat.com>
7700
7701         git-version-gen: convert leading TABs to spaces
7702         * build-aux/git-version-gen: Expand leading TABs.
7703
7704         git-version-gen: handle failed "git rev-list"
7705         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7706         from git and proceeding as if it had succeeded but printed no SHA1
7707         checksums, suppress the diagnostic and handle the failure.
7708         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7709
7710         git-version-gen: include command name in one more diagnostic
7711         * build-aux/git-version-gen: When the required .tarball-version file
7712         was missing or unreadable, you might see the diagnostic from "cat",
7713         but no trace of the name of the invoking script.  Now, you still see
7714         the diagnostic from cat, but also get one from "git-version-gen: ".
7715         Inspired by a patch from Bruce Korb.
7716
7717         update-copyright: adjust test to match changed code
7718         * tests/test-update-copyright.sh: Change test's expected output
7719         to match new actual output.
7720
7721 2011-01-02  Bruno Haible  <bruno@clisp.org>
7722
7723         getlogin_r: Avoid test failure on HP-UX 11.
7724         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7725         ERANGE when the second argument is zero.
7726         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7727         portability problem.
7728
7729 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7730
7731         * build-aux/update-copyright: doc Simon's changes
7732
7733 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7734
7735         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7736         environment variable.
7737
7738 2011-01-02  Bruno Haible  <bruno@clisp.org>
7739
7740         unigbrk: Avoid gcc warnings.
7741         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7742         unused variable.
7743         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7744         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7745         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7746         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7747         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7748         Change type of first argument to 'const char *'.
7749         (main): Remove unused variable.
7750         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7751         type of first argument to 'const char *'.
7752         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7753         Likewise.
7754         (main): Change type of variable 's'.
7755         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7756         to 'int'.
7757
7758 2011-01-02  Bruno Haible  <bruno@clisp.org>
7759
7760         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7761         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7762         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7763         bug.
7764         * lib/pwrite.c: Undo 2010-12-31 patch.
7765         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7766
7767 2011-01-02  Bruno Haible  <bruno@clisp.org>
7768
7769         pread: Fix test whether it works.
7770         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7771
7772 2011-01-02  Bruno Haible  <bruno@clisp.org>
7773
7774         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7775         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7776         ends in "6". Don't require a specific month name. Try also the locale
7777         names found on HP-UX 11 and Solaris 7.
7778
7779 2011-01-02  Bruno Haible  <bruno@clisp.org>
7780
7781         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7782         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7783         C linkage.
7784         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7785
7786 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7787
7788         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7789         for consistency, since the "cluster" term is not used elsewhere.
7790         * lib/unigbrk.in.h: Update name.
7791         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7792         * lib/unigbrk/u16-grapheme-next.c: Update name.
7793         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7794         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7795         * lib/unigbrk/u32-grapheme-next.c: Update name.
7796         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7797         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7798         * lib/unigbrk/u8-grapheme-next.c: Update name.
7799         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7800         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7801         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7802         Suggested by Bruno Haible.
7803
7804 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7805
7806         Remove module 'u8-grapheme-len' as too redundant with
7807         'u8-grapheme-next'.
7808         * modules/unigbrk/u8-grapheme-len: Delete file.
7809         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7810         * lib/unigbrk.in.h: Remove prototype for deleted function.
7811         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7812         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7813
7814         Remove module 'u16-grapheme-len' as too redundant with
7815         'u16-grapheme-next'.
7816         * modules/unigbrk/u16-grapheme-len: Delete file.
7817         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7818         * lib/unigbrk.in.h: Remove prototype for deleted function.
7819         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7820         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7821
7822         Remove module 'u32-grapheme-len' as too redundant with
7823         'u32-grapheme-next'.
7824         * modules/unigbrk/u32-grapheme-len: Delete file.
7825         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7826         * lib/unigbrk.in.h: Remove prototype for deleted function.
7827         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7828         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7829
7830         Suggested by Bruno Haible.
7831
7832 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7833
7834         * unigbrk.in.h: Fix typo: "ben" => "been".
7835         Reported by Bruno Haible.
7836
7837 2011-01-01  Jim Meyering  <meyering@redhat.com>
7838
7839         maint: update almost all copyright ranges to include 2011
7840         Run the new "make update-copyright" rule.
7841
7842 2011-01-01  Jim Meyering  <meyering@redhat.com>
7843
7844         maint: update-copyright: exempt doc/INSTALL*
7845         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7846         since they are generated.  Suggested by Bruno Haible.
7847
7848 2011-01-01  Jim Meyering  <meyering@redhat.com>
7849
7850         maint: refine the update-copyright rule
7851         * Makefile (update-copyright): Also exclude any file that includes
7852         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7853         code that merely generates the comment.
7854
7855 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7856
7857         New module 'u8-grapheme-len'.
7858         * modules/unigbrk/u8-grapheme-len: New file.
7859         * modules/unigbrk/u8-grapheme-len-tests: New file.
7860         * lib/unigbrk.in.h: Add prototype for new function.
7861         * lib/unigbrk/u8-grapheme-len.c: New file.
7862         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7863
7864         New module 'u16-grapheme-len'.
7865         * modules/unigbrk/u16-grapheme-len: New file.
7866         * modules/unigbrk/u16-grapheme-len-tests: New file.
7867         * lib/unigbrk.in.h: Add prototype for new function.
7868         * lib/unigbrk/u16-grapheme-len.c: New file.
7869         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7870
7871         New module 'u32-grapheme-len'.
7872         * modules/unigbrk/u32-grapheme-len: New file.
7873         * modules/unigbrk/u32-grapheme-len-tests: New file.
7874         * lib/unigbrk.in.h: Add prototype for new function.
7875         * lib/unigbrk/u32-grapheme-len.c: New file.
7876         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7877
7878         New module 'u8-grapheme-next'.
7879         * modules/unigbrk/u8-grapheme-next: New file.
7880         * modules/unigbrk/u8-grapheme-next-tests: New file.
7881         * lib/unigbrk.in.h: Add prototype for new function.
7882         * lib/unigbrk/u8-grapheme-next.c: New file.
7883         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7884
7885         New module 'u16-grapheme-next'.
7886         * modules/unigbrk/u16-grapheme-next: New file.
7887         * modules/unigbrk/u16-grapheme-next-tests: New file.
7888         * lib/unigbrk.in.h: Add prototype for new function.
7889         * lib/unigbrk/u16-grapheme-next.c: New file.
7890         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7891
7892         New module 'u32-grapheme-next'.
7893         * modules/unigbrk/u32-grapheme-next: New file.
7894         * modules/unigbrk/u32-grapheme-next-tests: New file.
7895         * lib/unigbrk.in.h: Add prototype for new function.
7896         * lib/unigbrk/u32-grapheme-next.c: New file.
7897         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7898
7899         New module 'u8-grapheme-prev'.
7900         * modules/unigbrk/u8-grapheme-prev: New file.
7901         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7902         * lib/unigbrk.in.h: Add prototype for new function.
7903         * lib/unigbrk/u8-grapheme-prev.c: New file.
7904         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7905
7906         New module 'u16-grapheme-prev'.
7907         * modules/unigbrk/u16-grapheme-prev: New file.
7908         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7909         * lib/unigbrk.in.h: Add prototype for new function.
7910         * lib/unigbrk/u16-grapheme-prev.c: New file.
7911         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7912
7913         New module 'u32-grapheme-prev'.
7914         * modules/unigbrk/u32-grapheme-prev: New file.
7915         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7916         * lib/unigbrk.in.h: Add prototype for new function.
7917         * lib/unigbrk/u32-grapheme-prev.c: New file.
7918         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7919
7920         New module 'u8-grapheme-breaks'.
7921         * modules/unigbrk/u8-grapheme-breaks: New file.
7922         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7923         * lib/unigbrk.in.h: Add prototype for new function.
7924         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7925         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7926
7927         New module 'u16-grapheme-breaks'.
7928         * modules/unigbrk/u16-grapheme-breaks: New file.
7929         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7930         * lib/unigbrk.in.h: Add prototype for new function.
7931         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7932         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7933
7934         New module 'u32-grapheme-breaks'.
7935         * modules/unigbrk/u32-grapheme-breaks: New file.
7936         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7937         * lib/unigbrk.in.h: Add prototype for new function.
7938         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7939         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7940
7941         New module 'ulc-grapheme-breaks'.
7942         * modules/unigbrk/ulc-grapheme-breaks: New file.
7943         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7944         * m4/locale-ar.m4: New file.
7945         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7946         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7947         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7948
7949 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7950
7951         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7952         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7953         modified how this file was generated before I initially submitted
7954         the module, but failed to regenerate it.  This meant that several
7955         of the level2 entries were wrong.
7956         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7957         Remove the division-by-2 that is folded into the table now that
7958         gbrkprop.h has been regenerated properly.  Now -1 entries are
7959         handled correctly.
7960
7961         New module 'unigbrk/uc-gbrk-prop-tests'.
7962         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7963         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7964         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7965         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7966
7967 2011-01-01  Bruno Haible  <bruno@clisp.org>
7968
7969         Avoid use of hexadecimal escapes.
7970         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7971         instead of hexadecimal escapes.
7972
7973 2011-01-01  Jim Meyering  <meyering@redhat.com>
7974
7975         maint: new rule to update copyright year ranges
7976         * Makefile (update-copyright): New rule.
7977
7978         maint: indent with TABs in Makefile
7979         * Makefile: Expand leading sequences of spaces to TABs
7980
7981         version-etc: update the copyright year it reports
7982         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7983
7984 2010-12-31  Bruno Haible  <bruno@clisp.org>
7985
7986         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7987         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7988         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7989         zero.
7990
7991 2010-12-31  Bruno Haible  <bruno@clisp.org>
7992
7993         pwrite: Work around HP-UX 11.11 bug.
7994         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7995         works and set REPLACE_PWRITE if not.
7996         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7997         function.
7998         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7999
8000 2010-12-31  Bruno Haible  <bruno@clisp.org>
8001
8002         pread: Work around HP-UX 11 bugs.
8003         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
8004         and set REPLACE_PREAD if not.
8005         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
8006
8007 2010-12-31  Eric Blake  <eblake@redhat.com>
8008
8009         nl_langinfo: fix YESEXPR on Irix 6.5
8010         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
8011         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
8012         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
8013         it.
8014
8015 2010-12-31  Bruno Haible  <bruno@clisp.org>
8016
8017         iconv: Document HP-UX 11 bug.
8018         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
8019
8020 2010-12-31  Bruno Haible  <bruno@clisp.org>
8021
8022         ldexpl: Fix link error on HP-UX 11.
8023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
8024         LDEXPL_LIBM, using $ISNANL_LIBM.
8025
8026 2010-12-31  Eric Blake  <eblake@redhat.com>
8027
8028         ftello: avoid compilation failure with SunStudio c89
8029         * lib/ftello.c (ftello): Use lseek, not llseek.
8030
8031         tests: avoid failing coreutils tests on cygwin
8032         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
8033         (create_exe_shims_): Return 0 when skipping.
8034
8035 2010-12-31  Bruno Haible  <bruno@clisp.org>
8036
8037         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
8038         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
8039
8040 2010-12-31  Bruno Haible  <bruno@clisp.org>
8041
8042         waitpid: Fix link error in C++ mode.
8043         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
8044
8045 2010-12-31  Bruno Haible  <bruno@clisp.org>
8046
8047         isnan: Use GCC built-ins when possible.
8048         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
8049         __builtin_isnan.
8050         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
8051         (isnan): Define using GCC built-ins for GCC >= 4.0.
8052
8053 2010-12-31  Bruno Haible  <bruno@clisp.org>
8054
8055         isnand: Fix mistake.
8056         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
8057         __builtin_isnand.
8058
8059 2010-12-31  Bruno Haible  <bruno@clisp.org>
8060
8061         open: Avoid C++ error on HP-UX 11.
8062         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
8063
8064 2010-12-31  Bruno Haible  <bruno@clisp.org>
8065
8066         time_r: Add missing declarations on HP-UX 11.
8067         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
8068         instead of HAVE_LOCALTIME_R.
8069         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
8070         HAVE_LOCALTIME_R always.
8071         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
8072         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
8073         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
8074         HAVE_LOCALTIME_R.
8075         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
8076         * doc/posix-functions/localtime_r.texi: Likewise.
8077
8078 2010-12-29  Eric Blake  <eblake@redhat.com>
8079
8080         mountlist: tweak previous commit
8081         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
8082         Reported by Paul Eggert.
8083
8084         mountlist: fix local drive detection on cygwin
8085         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
8086         that works for cygwin.
8087
8088 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8089
8090         ftoastr, snprintf: ftoastr + snprintf module
8091         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
8092         since the snprintf module now should be good enough here.
8093         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
8094         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
8095         and gl_MODULE_INDICATOR([snprintf]), but the former enables
8096         GNULIB_SNPRINTF only for the test directory, and the latter
8097         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
8098         seems to suffice by itself.
8099
8100 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
8101
8102         alloca: one step towards thread-safety
8103         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
8104         need for a static variable.  All callers changed.  This does not
8105         make the alloca replacement thread-safe, but it's one step.
8106
8107         tests: minor indenting change
8108         * tests/init.sh: Sync from coreutils housekeeping patch
8109         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
8110         to keep lines within 80 columns.
8111
8112 2010-12-28  Jim Meyering  <meyering@redhat.com>
8113
8114         regex: don't infloop on persistent failing calloc
8115         * lib/regexec.c (build_trtable): Return failure indication upon
8116         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
8117         In glibc, this was fixed for version 2.13:
8118         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
8119
8120 2010-12-28  Bruno Haible  <bruno@clisp.org>
8121             Paul Eggert <eggert@cs.ucla.edu>
8122
8123         linkat: Make implementation robust against system behaviour variations.
8124         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
8125         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
8126         way, and to -2 if it needs a generic runtime test.
8127         * lib/linkat.c (solaris_optimized_link_immediate,
8128         solaris_optimized_link_follow): New functions.
8129         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
8130         (check_same_link): Use it.
8131
8132 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
8133
8134         New module 'unigbrk/base'.
8135         * modules/unigbrk/base: New file.
8136         * lib/unigbrk.in.h: New file.
8137
8138         New module 'unigbrk/uc-gbrk-prop'.
8139         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
8140         * modules/unigbrk/uc-gbrk-prop: New file.
8141         * lib/unigbrk/gbrkprop.h: New file.
8142         * lib/unigbrk/uc-gbrk-prop.c: New file.
8143
8144         New module 'unigbrk/uc-is-grapheme-break'.
8145         * modules/unigbrk/uc-is-grapheme-break: New file.
8146         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
8147         * lib/unigbrk/uc-is-grapheme-break.c: New file.
8148         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
8149         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
8150         * tests/unigbrk/GraphemeBreakTest.txt: New file.
8151
8152         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
8153
8154 2010-12-27  Bruno Haible  <bruno@clisp.org>
8155
8156         linkat test: Avoid failure on Solaris 11 2010-11.
8157         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
8158
8159 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         utimens: work around glibc rounding bug on more platforms
8162         * lib/utimens.c (fdutimens): Work around rounding bug even if
8163         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
8164         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
8165
8166 2010-12-27  Bruno Haible  <bruno@clisp.org>
8167
8168         select tests: Improve comments.
8169         * tests/test-select.c (do_select): Add comments.
8170
8171 2010-12-27  Bruno Haible  <bruno@clisp.org>
8172
8173         select tests: Safer way of handling timeout.
8174         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
8175         at every invocation.
8176
8177 2010-12-27  Bruno Haible  <bruno@clisp.org>
8178
8179         select tests: Use 'bool' where appropriate.
8180         * tests/test-select.c (connect_to_socket): Change argument type to
8181         'bool'.
8182
8183 2010-12-27  Bruno Haible  <bruno@clisp.org>
8184
8185         select tests: Use existing modules.
8186         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
8187         (configure.ac): Don't test for unistd.h.
8188         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
8189         declared in <unistd.h>.
8190
8191 2010-12-27  Bruno Haible  <bruno@clisp.org>
8192
8193         mbrtowc: Work around a Solaris 7 bug.
8194         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
8195         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
8196         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
8197         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
8198         MBRTOWC_NULL_ARG1_BUG.
8199         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
8200         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
8201         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
8202         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
8203
8204 2010-12-27  Jim Meyering  <meyering@redhat.com>
8205
8206         read-file.c: tweak syntax
8207         * lib/read-file.c (fread_file): Remove space after "*" in function
8208         definitions.
8209
8210 2010-12-27  Bruno Haible  <bruno@clisp.org>
8211
8212         times test: Avoid gcc warnings on OSF/1.
8213         * tests/test-times.c (main): Cast printf arguments from clock_t to
8214         'long int'.
8215
8216 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8217
8218         utimens: work around glibc rounding bug on older Linux kernels
8219         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8220         on Linux with a glibc whose utimes might not work, then work
8221         around a longstanding glibc bug involving rounding rather than
8222         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8224
8225 2010-12-26  Bruno Haible  <bruno@clisp.org>
8226
8227         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8228         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8229         _GL_CXXALIAS_SYS.
8230         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8231
8232 2010-12-26  Bruno Haible  <bruno@clisp.org>
8233
8234         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8235         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8236         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8237         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8238         looking for the declaration.
8239         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8240         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8241         problem.
8242         * doc/posix-functions/inet_pton.texi: Likewise.
8243
8244 2010-12-26  Bruno Haible  <bruno@clisp.org>
8245
8246         arpa_inet: Use the common idioms with C++ support.
8247         * lib/arpa_inet.in.h: Include c++defs.h.
8248         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8249         support.
8250         * modules/arpa_inet (Depends-on): Add c++defs.
8251         (Makefile.am): Substitute the contents of c++defs.h.
8252         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8253         * modules/arpa_inet-c++-tests: New file.
8254         * tests/test-arpa_inet-c++.cc: New file.
8255
8256 2010-12-25  Bruno Haible  <bruno@clisp.org>
8257
8258         Fix more C++ link errors on Solaris 8.
8259         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8260         $(LIB_EACCESS).
8261         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8262         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8263         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8264         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8265         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8266
8267 2010-12-25  Bruno Haible  <bruno@clisp.org>
8268
8269         printf-posix: Fix link error when a non-GCC compiler is used.
8270         * lib/stdio.in.h (printf): When not using GCC, override printf
8271         correctly.
8272         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8273
8274 2010-12-25  Bruno Haible  <bruno@clisp.org>
8275
8276         strerror_r-posix: Update doc.
8277         * doc/posix-functions/strerror_r.texi: Update doc about the return
8278         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8279
8280 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8281
8282         utimens: simplify the logic of the previous change
8283         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8284         This should not affect whether the test succeeds or fails.
8285
8286         utimens: configure better on hosts with NFS clock skew
8287         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8288         uses the clock of the local host.  It might use the clock of the
8289         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8291
8292 2010-12-25  Bruno Haible  <bruno@clisp.org>
8293
8294         ptsname test: Avoid failure on Solaris.
8295         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8296         open a pseudo-terminal; don't use BSD-style ptys.
8297         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8298
8299 2010-12-25  Bruno Haible  <bruno@clisp.org>
8300
8301         ptsname: Avoid ERANGE failure on some systems.
8302         * lib/ptsname.c (buffer): Increase size.
8303
8304 2010-12-25  Bruno Haible  <bruno@clisp.org>
8305
8306         rename, renameat: Avoid test failures at NFS mounted locations.
8307         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8308         so that subsequent mkdir calls succeed.
8309
8310 2010-12-25  Bruno Haible  <bruno@clisp.org>
8311
8312         iswblank: Fix C++ link error on Solaris 8.
8313         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8314         _GL_FUNCDECL_SYS.
8315
8316 2010-12-25  Bruno Haible  <bruno@clisp.org>
8317
8318         unistd: Fix C++ link error on Solaris 8.
8319         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8320
8321 2010-12-25  Bruno Haible  <bruno@clisp.org>
8322
8323         readlink doc: Mention an old glibc bug.
8324         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8325
8326 2010-12-25  Bruno Haible  <bruno@clisp.org>
8327
8328         fcntl-h: Fix for use of C++ on glibc systems.
8329         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8330         also on glibc systems in C++ mode.
8331         Reported by Gary V. Vaughan <gary@gnu.org>.
8332
8333 2010-12-25  Bruno Haible  <bruno@clisp.org>
8334
8335         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8336         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8337
8338 2010-12-25  Bruno Haible  <bruno@clisp.org>
8339
8340         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8341         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8342         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8343         test whether truncl works according to ISO C 99 with IEC 60559.
8344         * m4/truncl-ieee.m4: New file.
8345         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8346         m4/signbit.m4.
8347         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8348
8349 2010-12-25  Bruno Haible  <bruno@clisp.org>
8350
8351         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8352         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8353         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8354         test whether ceill works according to ISO C 99 with IEC 60559.
8355         * m4/ceill-ieee.m4: New file.
8356         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8357         m4/signbit.m4.
8358         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8359
8360 2010-12-25  Bruno Haible  <bruno@clisp.org>
8361
8362         Ensure all prerequisites of <wchar.h> are included.
8363         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8364         before <wchar.h>.
8365         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8366         gl_MBRLEN_NUL_RETVAL): Likewise.
8367         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8368         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8369         AC_FUNC_MBRTOWC): Likewise.
8370         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8371         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8372         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8373         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8374         Likewise.
8375         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8376         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8377         (gl_WCHAR_H): Improve comments.
8378         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8379
8380 2010-12-25  Bruno Haible  <bruno@clisp.org>
8381
8382         strtok_r: Fix C syntax error in autoconf macro.
8383         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8384         characters in test program.
8385
8386 2010-12-24  Bruno Haible  <bruno@clisp.org>
8387
8388         ceil, trunc, round: Fix gcc warnings.
8389         * lib/ceil.c (MIN): Undefine before redefining.
8390         * lib/trunc.c (MIN): Likewise.
8391         * lib/round.c (MIN): Likewise.
8392         Include <math.h> first.
8393
8394 2010-12-24  Bruno Haible  <bruno@clisp.org>
8395
8396         select tests: Avoid failures on OSF/1 5.1.
8397         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8398         failure of closing the last socket; it may fail with ECONNRESET.
8399
8400 2010-12-24  Eric Blake  <eblake@redhat.com>
8401
8402         stdint: avoid HP-UX 10.20 preprocessor bug
8403         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8404         than #if.
8405         * tests/test-floor2.c (main): Likewise.
8406         Reported by Peter O'Gorman.
8407
8408         pipe: make obsoletion transition easier
8409         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8410         * modules/pipe (Files): Include revived file.
8411         (Include): Drop reference, to mirror getdate's behavior.
8412
8413 2010-12-24  Bruno Haible  <bruno@clisp.org>
8414
8415         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8416         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8417         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8418         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8419
8420 2010-12-24  Bruno Haible  <bruno@clisp.org>
8421
8422         gethostname: Ensure declaration on NonStop Kernel.
8423         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8424         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8425
8426 2010-12-24  Bruno Haible  <bruno@clisp.org>
8427
8428         sys_select: Ensure all necessary types on NonStop Kernel.
8429         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8430         include <sys/time.h>.
8431         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8432         NonStop Kernel.
8433         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8434
8435 2010-12-24  Bruno Haible  <bruno@clisp.org>
8436
8437         sys_select: Remove unneeded include.
8438         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8439         have <sys/select.h>.
8440
8441 2010-12-24  Bruno Haible  <bruno@clisp.org>
8442
8443         gethostname: Provide a fallback for HOST_NAME_MAX.
8444         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8445         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8446         instead.
8447         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8448
8449 2010-12-24  Bruno Haible  <bruno@clisp.org>
8450
8451         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8452         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8453         (SA_RESTART): Likewise.
8454         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8455
8456 2010-12-24  Bruno Haible  <bruno@clisp.org>
8457
8458         signal: Define NSIG.
8459         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8460         * tests/test-signal.c (nsig): New variable.
8461         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8462
8463 2010-12-24  Bruno Haible  <bruno@clisp.org>
8464
8465         rename, renameat: Avoid test failures on OSF/1 5.1.
8466         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8467         alternative error codes.
8468         * tests/test-renameat.c (main): Likewise.
8469
8470 2010-12-24  Bruno Haible  <bruno@clisp.org>
8471
8472         *printf: Detect large precisions bug on Solaris 10/SPARC.
8473         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8474         by Paul Eggert.
8475         * tests/test-snprintf-posix.h (test_function): Add this test code here
8476         too.
8477         * tests/test-sprintf-posix.h (test_function): Likewise.
8478         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8479         * tests/test-vasprintf-posix.c (test_function): Likewise.
8480         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8481         around by gnulib.
8482         * doc/posix-functions/printf.texi: Likewise.
8483         * doc/posix-functions/snprintf.texi: Likewise.
8484         * doc/posix-functions/sprintf.texi: Likewise.
8485         * doc/posix-functions/vfprintf.texi: Likewise.
8486         * doc/posix-functions/vprintf.texi: Likewise.
8487         * doc/posix-functions/vsnprintf.texi: Likewise.
8488         * doc/posix-functions/vsprintf.texi: Likewise.
8489         * doc/posix-functions/dprintf.texi: Undo last commit.
8490         * doc/posix-functions/vdprintf.texi: Likewise.
8491
8492 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8493
8494         tests: port test-fdutimensat.c to Solaris 8
8495         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8496         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8497         On Solaris 8, it fails with errno == ENOSYS, because there is no
8498         futimens (so it can't use the fd), and there is no lutimens (so it
8499         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8500
8501         vsnprintf: make more consistent with snprintf; doc fixes
8502
8503         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8504         the byte count return problem was promoted from the snprintf-posix
8505         to the snprintf module.
8506         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8507         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8508         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8509         * tests/test-snprintf.c (main): Check the byte count returned.
8510         * tests/test-vsnprintf.c (main): Likewise.
8511
8512 2010-12-23  Eric Blake  <eblake@redhat.com>
8513
8514         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8515         * modules/sigpipe (License): Relax license.
8516
8517 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8518
8519         doc: document Solaris printf bug with large float precisions
8520         * doc/posix-functions/dprintf.texi (dprintf):
8521         * doc/posix-functions/fprintf.texi (fprintf):
8522         * doc/posix-functions/printf.texi (printf):
8523         * doc/posix-functions/snprintf.texi (snprintf):
8524         * doc/posix-functions/sprintf.texi (sprintf):
8525         * doc/posix-functions/vdprintf.texi (vdprintf):
8526         * doc/posix-functions/vfprintf.texi (vfprintf):
8527         * doc/posix-functions/vprintf.texi (vprintf):
8528         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8529         * doc/posix-functions/vsprintf.texi (vsprintf):
8530         Mention that these functions mishandle large floating point
8531         precisions on Solaris 10.  The same bug is also present in Solaris
8532         8, and I assume earlier.  This causes "cd gnulib-tests; make
8533         check" to fail on Solaris 8 (and I assume, later) when building
8534         the latest coreutils, in test-vasprintf-posix's call to
8535         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8536         the wide flavors (e.g., wprintf) so this patch just updates the
8537         documentation for the narrow ones.
8538
8539         test-posixtm.c: add two tests
8540         * tests/test-posixtm.c: Add two tests, to highlight the
8541         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8542         around this bug; this is merely to document it.
8543
8544 2010-12-22  Bruno Haible  <bruno@clisp.org>
8545
8546         getlogin_r: Work around portability problem on OSF/1.
8547         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8548         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8549         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8550         test for a truncated result.
8551         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8552         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8553         * modules/getlogin_r (Depends-on): Add memchr.
8554         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8555
8556 2010-12-22  Bruno Haible  <bruno@clisp.org>
8557
8558         ptsname: Avoid test failure on OSF/1 5.1.
8559         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8560         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8561         (same_slave): New function.
8562         (main): Use it to compare ptsname's result with the expected file name.
8563
8564 2010-12-22  Bruno Haible  <bruno@clisp.org>
8565
8566         Port extended stdio modules to HP NonStop Kernel.
8567         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8568         macros.
8569         * lib/fbufmode.c: Update comments.
8570         * lib/fflush.c: Likewise.
8571         * lib/fpurge.c: Likewise.
8572         * lib/freadable.c: Likewise.
8573         * lib/freadahead.c: Likewise.
8574         * lib/freading.c: Likewise.
8575         * lib/freadptr.c: Likewise.
8576         * lib/freadseek.c: Likewise.
8577         * lib/fseeko.c: Likewise.
8578         * lib/fseterr.c: Likewise.
8579         * lib/fwritable.c: Likewise.
8580         * lib/fwriting.c: Likewise.
8581         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8582
8583 2010-12-22  Bruno Haible  <bruno@clisp.org>
8584
8585         ttyname_r: Work around bug on OSF/1 5.1.
8586         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8587         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8588         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8589         present.
8590         * lib/ttyname_r.c (ttyname_r): Update comments.
8591
8592 2010-12-22  Bruno Haible  <bruno@clisp.org>
8593
8594         round: Implement result sign according to IEEE 754.
8595         * lib/round.c (MIN, MINUS_ZERO): New macros.
8596         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8597         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8598         * tests/test-round-ieee.c (main): Likewise.
8599         * tests/test-roundl-ieee.c (main): Likewise.
8600
8601         trunc: Implement result sign according to IEEE 754.
8602         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8603         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8604         * tests/test-trunc2.c: Include minus-zero.h.
8605         (MINUS_ZERO): New macro.
8606         (trunc_reference): Keep in sync with lib/trunc.c.
8607         * tests/test-truncf2.c: Include minus-zero.h.
8608         (MINUS_ZERO): New macro.
8609         (truncf_reference): Keep in sync with lib/trunc.c.
8610         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8611         * tests/test-trunc-ieee.c (main): Likewise.
8612         * tests/test-truncl-ieee.c (main): Likewise.
8613
8614         ceil: Implement result sign according to IEEE 754.
8615         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8616         (FUNC): Return -0.0 for -1 < x < 0.
8617         * tests/test-ceil2.c: Include minus-zero.h.
8618         (MINUS_ZERO): New macro.
8619         (ceil_reference): Keep in sync with lib/ceil.c.
8620         * tests/test-ceilf2.c: Include minus-zero.h.
8621         (MINUS_ZERO): New macro.
8622         (ceilf_reference): Keep in sync with lib/ceil.c.
8623         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8624         * tests/test-ceil-ieee.c (main): Likewise.
8625         * tests/test-ceill-ieee.c (main): Likewise.
8626
8627         floor: Implement result sign according to IEEE 754.
8628         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8629         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8630         * tests/test-floorf2.c (floorf_reference): Likewise.
8631         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8632         * tests/test-floor-ieee.c (main): Likewise.
8633         * tests/test-floorl-ieee.c (main): Likewise.
8634
8635 2010-12-22  Bruno Haible  <bruno@clisp.org>
8636
8637         getaddrinfo: Update doc.
8638         * doc/posix-functions/gai_strerror.texi: Return type is also different
8639         on AIX and HP-UX.
8640
8641 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8642
8643         getaddrinfo, inet_ntop: Update doc for Solaris.
8644         * doc/posix-functions/gai_strerror.texi: Return type is also an
8645         issue on Solaris 9 and earlier.
8646         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8647         on Solaris 10 and earlier.
8648
8649 2010-12-21  Bruno Haible  <bruno@clisp.org>
8650
8651         New module 'roundl-ieee'.
8652         * modules/roundl-ieee: New file.
8653         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8654         test whether roundl works according to ISO C 99 with IEC 60559.
8655         * m4/roundl-ieee.m4: New file.
8656         * modules/roundl-ieee-tests: New file.
8657         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8658         * tests/test-roundl.c (main): Remove signbit tests.
8659         * modules/roundl-tests (Depends-on): Remove signbit.
8660         * doc/posix-functions/roundl.texi: Mention the new module.
8661
8662 2010-12-21  Bruno Haible  <bruno@clisp.org>
8663
8664         New module 'truncl-ieee'.
8665         * modules/truncl-ieee: New file.
8666         * modules/truncl-ieee-tests: New file.
8667         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8668         * tests/test-truncl.c (main): Remove signbit tests.
8669         * modules/truncl-tests (Depends-on): Remove signbit.
8670         * doc/posix-functions/truncl.texi: Mention the new module.
8671
8672 2010-12-21  Bruno Haible  <bruno@clisp.org>
8673
8674         New module 'ceill-ieee'.
8675         * modules/ceill-ieee: New file.
8676         * modules/ceill-ieee-tests: New file.
8677         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8678         * tests/test-ceill.c (main): Remove signbit tests.
8679         * modules/ceill-tests (Depends-on): Remove signbit.
8680         * doc/posix-functions/ceill.texi: Mention the new module.
8681
8682 2010-12-21  Bruno Haible  <bruno@clisp.org>
8683
8684         New module 'floorl-ieee'.
8685         * modules/floorl-ieee: New file.
8686         * modules/floorl-ieee-tests: New file.
8687         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8688         * tests/test-floorl.c (main): Remove signbit tests.
8689         * modules/floorl-tests (Depends-on): Remove signbit.
8690         * doc/posix-functions/floorl.texi: Mention the new module.
8691
8692 2010-12-21  Bruno Haible  <bruno@clisp.org>
8693
8694         New module 'round-ieee'.
8695         * modules/round-ieee: New file.
8696         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8697         whether round works according to ISO C 99 with IEC 60559.
8698         * m4/round-ieee.m4: New file.
8699         * modules/round-ieee-tests: New file.
8700         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8701         * tests/test-round1.c (main): Remove signbit tests.
8702         * modules/round-tests (Depends-on): Remove 'signbit'.
8703         * doc/posix-functions/round.texi: Mention the new module.
8704
8705 2010-12-21  Bruno Haible  <bruno@clisp.org>
8706
8707         New module 'trunc-ieee'.
8708         * modules/trunc-ieee: New file.
8709         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8710         whether trunc works according to ISO C 99 with IEC 60559.
8711         * m4/trunc-ieee.m4: New file.
8712         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8713         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8714         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8715         * modules/trunc-ieee-tests: New file.
8716         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8717         * tests/test-trunc1.c (main): Remove signbit tests.
8718         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8719         * doc/posix-functions/trunc.texi: Mention the new module.
8720
8721 2010-12-21  Bruno Haible  <bruno@clisp.org>
8722
8723         New module 'ceil-ieee'.
8724         * modules/ceil-ieee: New file.
8725         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8726         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8727         ISO C 99 with IEC 60559.
8728         * m4/ceil-ieee.m4: New file.
8729         * modules/ceil (Files): Add lib/ceil.c.
8730         (Depends-on): Add 'float'.
8731         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8732         * lib/math.in.h (ceil): New declaration.
8733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8734         REPLACE_CEIL.
8735         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8736         * modules/ceil-ieee-tests: New file.
8737         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8738         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8739         * doc/posix-functions/ceil.texi: Mention the new module.
8740
8741 2010-12-21  Bruno Haible  <bruno@clisp.org>
8742
8743         New module 'floor-ieee'.
8744         * modules/floor-ieee: New file.
8745         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8746         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8747         ISO C 99 with IEC 60559.
8748         * m4/floor-ieee.m4: New file.
8749         * modules/floor (Files): Add lib/floor.c.
8750         (Depends-on): Add 'float'.
8751         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8752         * lib/math.in.h (floor): New declaration.
8753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8754         REPLACE_FLOOR.
8755         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8756         * modules/floor-ieee-tests: New file.
8757         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8758         * tests/test-math-c++.cc: Check the signature of 'floor'.
8759         * doc/posix-functions/floor.texi: Mention the new module.
8760
8761 2010-12-21  Bruno Haible  <bruno@clisp.org>
8762
8763         New module 'roundf-ieee'.
8764         * modules/roundf-ieee: New file.
8765         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8766         test whether roundf works according to ISO C 99 with IEC 60559.
8767         * m4/roundf-ieee.m4: New file.
8768         * modules/roundf-ieee-tests: New file.
8769         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8770         * tests/test-roundf1.c (main): Remove signbit tests.
8771         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8772         * doc/posix-functions/roundf.texi: Mention the new module.
8773
8774 2010-12-21  Bruno Haible  <bruno@clisp.org>
8775
8776         New module 'truncf-ieee'.
8777         * modules/truncf-ieee: New file.
8778         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8779         test whether truncf works according to ISO C 99 with IEC 60559.
8780         * m4/truncf-ieee.m4: New file.
8781         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8783         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8784         * modules/truncf-ieee-tests: New file.
8785         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8786         * tests/test-truncf1.c (main): Remove signbit tests.
8787         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8788         * doc/posix-functions/truncf.texi: Mention the new module.
8789
8790 2010-12-21  Bruno Haible  <bruno@clisp.org>
8791
8792         New module 'ceilf-ieee'.
8793         * modules/ceilf-ieee: New file.
8794         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8795         test whether ceilf works according to ISO C 99 with IEC 60559.
8796         * m4/ceilf-ieee.m4: New file.
8797         * modules/ceilf-ieee-tests: New file.
8798         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8799         * tests/test-ceilf1.c (main): Remove signbit tests.
8800         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8801         * doc/posix-functions/ceilf.texi: Mention the new module.
8802
8803 2010-12-21  Bruno Haible  <bruno@clisp.org>
8804
8805         New module 'floorf-ieee'.
8806         * modules/floorf-ieee: New file.
8807         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8808         test whether floorf works according to ISO C 99 with IEC 60559.
8809         * m4/floorf-ieee.m4: New file.
8810         * modules/floorf-ieee-tests: New file.
8811         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8812         * tests/test-floorf1.c (main): Remove signbit tests.
8813         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8814         * doc/posix-functions/floorf.texi: Mention the new module.
8815
8816 2010-12-21  Bruno Haible  <bruno@clisp.org>
8817
8818         Support for minus zero in autoconf macros.
8819         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8820         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8821         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8822         * tests/minus-zero.h: Update comments.
8823
8824 2010-12-21  Bruno Haible  <bruno@clisp.org>
8825
8826         Tests for module 'ceil'.
8827         * modules/ceil-tests: New file.
8828         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8829         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8830
8831 2010-12-21  Bruno Haible  <bruno@clisp.org>
8832
8833         Tests for module 'floor'.
8834         * modules/floor-tests: New file.
8835         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8836         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8837
8838 2010-12-21  Bruno Haible  <bruno@clisp.org>
8839
8840         math: Fix indentation.
8841         * lib/math.in.h (floorf): Fix indentation.
8842
8843 2010-12-21  Bruno Haible  <bruno@clisp.org>
8844
8845         Fix cross-compilation guesses on Solaris.
8846         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8847         not match "solaris2.10".
8848         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8849         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8850         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8851
8852 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8853
8854         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8855         This fixes a problem observed with the latest coreutils snapshot
8856         that caused a test to fail on Solaris 8.  src/csplit.c's call
8857         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8858         earlier, instead of returning the number of bytes that would have
8859         been generated; this causes csplit to incorrectly report memory
8860         exhaustion.
8861         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8862         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8863         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8864         comments to match.
8865         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8866         Fix typo in matching older versions of Solaris: "solaris2.10"
8867         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8868         only for guessing while cross-compiling.
8869         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8870
8871 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8872
8873         ftoastr: fix comment again
8874         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8875         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8876         Also, simplify example a bit by using flags = 0.
8877
8878 2010-12-20  Bruno Haible  <bruno@clisp.org>
8879
8880         round*, trunc*: Update documentation regarding glibc.
8881         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8882         * doc/posix-functions/round.texi: Likewise.
8883         * doc/posix-functions/roundl.texi: Likewise.
8884         * doc/posix-functions/truncf.texi: Likewise.
8885         * doc/posix-functions/trunc.texi: Likewise.
8886         * doc/posix-functions/truncl.texi: Likewise.
8887
8888 2010-12-20  Bruno Haible  <bruno@clisp.org>
8889
8890         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8891         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8892         * doc/posix-functions/round.texi: Likewise.
8893         * doc/posix-functions/roundl.texi: Likewise.
8894
8895 2010-12-20  Bruno Haible  <bruno@clisp.org>
8896
8897         ttyname_r: Add missing declaration on HP-UX 11.
8898         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8899         HAVE_TTYNAME_R.
8900         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8901         declared. Set HAVE_TTYNAME_R always.
8902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8903         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8904         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8905         HAVE_TTYNAME_R.
8906         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8907
8908 2010-12-20  Bruno Haible  <bruno@clisp.org>
8909
8910         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8911         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8912         * doc/posix-functions/getlogin_r.texi: Likewise.
8913         * tests/test-getlogin.c: Include <errno.h>.
8914         (main): Avoid test failure on HP-UX 11.11.
8915         * tests/test-getlogin_r.c (main): Likewise.
8916
8917 2010-12-20  Bruno Haible  <bruno@clisp.org>
8918
8919         getlogin_r: Add missing declaration on HP-UX 11.
8920         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8921         declared also when it exists as a function.
8922         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8923
8924 2010-12-20  Bruno Haible  <bruno@clisp.org>
8925
8926         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8927         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8928         through wcrtomb.
8929
8930 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8931
8932         ftoastr: fix comment
8933         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8934         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8935
8936 2010-12-19  Bruno Haible  <bruno@clisp.org>
8937
8938         isnan: Ensure it is a macro.
8939         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8940         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8941         Solaris.
8942
8943 2010-12-19  Bruno Haible  <bruno@clisp.org>
8944
8945         ldexpl test: Fix link error on OSF/1 5.1.
8946         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8947
8948 2010-12-19  Bruno Haible  <bruno@clisp.org>
8949
8950         wctype: Make it work in C++ mode on OSF/1 5.1.
8951         * lib/wctype.in.h (iswblank): Declare but not define here.
8952         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8953         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8954         * modules/wctype (Files): Add lib/iswblank.c.
8955
8956 2010-12-19  Bruno Haible  <bruno@clisp.org>
8957
8958         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8959         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8960         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8961
8962 2010-12-19  Bruno Haible  <bruno@clisp.org>
8963
8964         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8965         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8966         _POSIX_PII_SOCKET.
8967         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8968         * doc/posix-functions/recvfrom.texi: Likewise.
8969         * doc/posix-functions/send.texi: Likewise.
8970         * doc/posix-functions/sendto.texi: Likewise.
8971
8972 2010-12-19  Bruno Haible  <bruno@clisp.org>
8973
8974         tcgetsid: Add missing declaration on OSF/1 5.1.
8975         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8976         HAVE_TCGETSID.
8977         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8978         Don't set HAVE_TCGETSID.
8979         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8980         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8981         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8982         HAVE_TCGETSID.
8983         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8984
8985 2010-12-19  Bruno Haible  <bruno@clisp.org>
8986
8987         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8988         * lib/stdio.in.h: During the include_next statement, let recursive
8989         includes of this file include only the system header file.
8990
8991 2010-12-19  Bruno Haible  <bruno@clisp.org>
8992
8993         iconv_open: Fix regression from 2010-12-04.
8994         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8995         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8996
8997 2010-12-19  Bruno Haible  <bruno@clisp.org>
8998
8999         stdbool test: Avoid a gcc warning.
9000         * tests/test-stdbool.c (main): Fail if e1 is false.
9001         Reported by Jim Meyering.
9002
9003 2010-12-19  Jim Meyering  <meyering@redhat.com>
9004
9005         setenv: restore to working order
9006         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
9007         mistakenly removed.
9008         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
9009         HAVE_SETENV.
9010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
9011         HAVE_SETENV.
9012
9013 2010-12-19  Bruno Haible  <bruno@clisp.org>
9014
9015         Document some different function declarations on OSF/1 5.1.
9016         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
9017         * doc/posix-functions/inet_ntop.texi: Likewise.
9018         * doc/posix-functions/gethostname.texi: Likewise.
9019         * lib/unistd.in.h (gethostname): Update comment.
9020
9021 2010-12-19  Bruno Haible  <bruno@clisp.org>
9022
9023         doc: Mention vasprintf-posix module.
9024         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
9025         the 'vasprintf-posix' module.
9026         * doc/glibc-functions/vasprintf.texi: Likewise.
9027
9028 2010-12-19  Bruno Haible  <bruno@clisp.org>
9029
9030         unsetenv: Add missing declaration on OSF/1 5.1.
9031         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
9032         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
9033         Don't set HAVE_UNSETENV. In the test program, set _BSD.
9034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
9035         not HAVE_UNSETENV.
9036         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
9037         HAVE_UNSETENV.
9038         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
9039
9040 2010-12-19  Bruno Haible  <bruno@clisp.org>
9041
9042         setenv: Add missing declaration on OSF/1 5.1.
9043         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
9044         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
9045         declared. Don't set HAVE_SETENV.
9046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
9047         not HAVE_SETENV.
9048         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
9049         HAVE_SETENV.
9050         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
9051
9052 2010-12-19  Bruno Haible  <bruno@clisp.org>
9053
9054         nl_langinfo tests: Avoid gcc warning.
9055         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
9056
9057 2010-12-19  Bruno Haible  <bruno@clisp.org>
9058
9059         mknod: Avoid error in C++ mode on OSF/1 with GCC.
9060         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
9061         _GL_CXXALIAS_SYS.
9062
9063 2010-12-19  Bruno Haible  <bruno@clisp.org>
9064
9065         stdbool: Relax test.
9066         * tests/test-stdbool.c (e): Don't require that casts from a variable's
9067         address to 'bool' work in static initializer, for compilers other than
9068         GCC.
9069
9070 2010-12-19  Bruno Haible  <bruno@clisp.org>
9071
9072         ftello: Add missing declaration on OSF/1 5.1.
9073         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
9074         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
9075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
9076         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
9077         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
9078
9079 2010-12-19  Bruno Haible  <bruno@clisp.org>
9080
9081         fseeko: Add missing declaration on OSF/1 5.1.
9082         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
9083         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
9084         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
9085         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
9086         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
9087
9088 2010-12-19  Bruno Haible  <bruno@clisp.org>
9089
9090         fchdir: Add missing declaration on OSF/1 5.1.
9091         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
9092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
9093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
9094         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
9095         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
9096
9097 2010-12-19  Bruno Haible  <bruno@clisp.org>
9098
9099         relocatable-prog-wrapper: Separate from relocatable-prog.
9100         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
9101         uninstall-relocwrapper rule here.
9102         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
9103         Reported by Ian Beckwith <ianb@erislabs.net>.
9104
9105 2010-12-19  Bruno Haible  <bruno@clisp.org>
9106
9107         unistr/u8-mbsnlen: Add missing dependency.
9108         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
9109         Reported by Ian Beckwith <ianb@erislabs.net>.
9110
9111 2010-12-19  Bruno Haible  <bruno@clisp.org>
9112
9113         iconv: Make it possible again to use this module without 'iconv-h'.
9114         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
9115         if it is not defined.
9116         Reported by Ian Beckwith <ianb@erislabs.net>.
9117
9118 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9119
9120         acl: port to Solaris 8 when copying from tmpfs to ufs
9121         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
9122         error number.  Problem observed on Solaris 8 with latest
9123         coreutils, with "mv A B", where A is on a tmpfs file system and B
9124         is on a ufs file system.  This caused coreutils' mv/part-symlink
9125         test to fail.
9126
9127         tests: set fail=0 at start
9128         * tests/init.sh (setup_): Move fail=0 initialization here ...
9129         (mktempd_): ... from here, so that tests can rely on fail being
9130         set to 0 initially.  This fixes a problem in coreutils; see:
9131         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
9132
9133 2010-12-18  Bruno Haible  <bruno@clisp.org>
9134
9135         memmem-simple: Stylistic changes.
9136         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
9137         Fix preprocessor directive indentation.
9138
9139 2010-12-15  Pádraig Brady <P@draigBrady.com>
9140
9141         memmem, memmem-simple: reorganize and expand empty needle check
9142         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
9143         functional checks to memmem-simple so that one has a fully functional
9144         memmem by using just this module.
9145         Restrict the performance only check to the memmem module.
9146         Also expand the empty needle check to ensure the correct
9147         pointer is returned, not just a non NULL pointer.
9148         * doc/glibc-functions/memmem.texi: Rearrange the portability
9149         documentation to correlate with the rearranged checks.
9150         Clarify exactly how the memmem and memmem-simple modules
9151         relate to each other.
9152
9153 2010-12-15  Pádraig Brady <P@draigBrady.com>
9154             Bruno Haible  <bruno@clisp.org>
9155
9156         Improve cross-compilation guesses for uClibc.
9157         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
9158         that uClibc does not have the glibc bug.
9159         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
9160         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
9161
9162 2010-12-14  Eric Blake  <eblake@redhat.com>
9163
9164         configmake: provide fallbacks for oldest supported autotools
9165         * m4/configmake.m4: New file.
9166         * modules/configmake (Files): Ship it.
9167         (configure.ac): Use it to guarantee fallbacks.
9168
9169 2010-12-13  Pádraig Brady <P@draigBrady.com>
9170
9171         read-file: Improve handling of large files
9172         * lib/read-file.c (fread_file): Minimize realloc()s
9173         for regular files, and better manage sizes around SIZE_MAX.
9174
9175 2010-12-13  Eric Blake  <eblake@redhat.com>
9176
9177         cloexec, fcntl: relax license
9178         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
9179         consent from all contributors.
9180         * modules/fcntl (License): Likewise.
9181
9182 2010-12-10  Bruno Haible  <bruno@clisp.org>
9183
9184         Tests for module 'pipe-posix'.
9185         * modules/pipe-posix-tests: New file.
9186         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
9187
9188 2010-12-10  Bruno Haible  <bruno@clisp.org>
9189
9190         pipe-posix: Make it work in C++ mode.
9191         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
9192         (pipe): Use common idiom, not a macro definition.
9193         * lib/pipe.c: New file.
9194         * m4/pipe.m4: New file.
9195         * modules/pipe-posix (Description): Enhance.
9196         (Files): Add lib/pipe.c, m4/pipe.m4.
9197         (configure.ac): Invoke gl_FUNC_PIPE.
9198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
9199         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
9200         * tests/test-unistd-c++.cc: Check the signature of pipe.
9201
9202 2010-12-10  Bruno Haible  <bruno@clisp.org>
9203
9204         Rename module 'pipe' to 'spawn-pipe'.
9205         * modules/spawn-pipe: New file, renamed from modules/pipe.
9206         (Files, configure.ac, Makefile.am): Update.
9207         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
9208         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
9209         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
9210         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
9211         "spawn-pipe.h" instead of "pipe.h".
9212         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
9213         to gl_SPAWN_PIPE.
9214         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9215         (Files, Makefile.am): Update.
9216         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9217         Update.
9218         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9219         Include "spawn-pipe.h" instead of "pipe.h".
9220         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9221         * lib/javacomp.c: Likewise.
9222         * lib/javaversion.c: Likewise.
9223         * lib/pipe-filter-gi.c: Likewise.
9224         * lib/pipe-filter-ii.c: Likewise.
9225         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9226         * modules/javacomp (Depends-on): Likewise.
9227         * modules/javaversion (Depends-on): Likewise.
9228         * modules/pipe-filter-gi (Depends-on): Likewise.
9229         * modules/pipe-filter-ii (Depends-on): Likewise.
9230         * MODULES.html.sh (Executing programs): Update.
9231         * NEWS: Mention the change.
9232
9233 2010-12-10  Eric Blake  <eblake@redhat.com>
9234
9235         pipe-posix: new module
9236         * modules/pipe-posix: New file.
9237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9238         (gl_UNISTD_H): Check for declaration.
9239         * modules/unistd (Makefile.am): Substitute it.
9240         * lib/unistd.in.h (pipe): Provide it for mingw.
9241         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9242         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9243
9244 2010-12-07  Bruno Haible  <bruno@clisp.org>
9245
9246         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9247         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9248         u8_strcmp_gnu.
9249         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9250
9251 2010-12-06  Bruno Haible  <bruno@clisp.org>
9252
9253         Update internal documentation.
9254         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9255
9256 2010-12-04  Bruno Haible  <bruno@clisp.org>
9257
9258         Put more information about failed tests into the test return codes.
9259         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9260         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9261         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9262         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9263         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9264         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9265         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9266         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9267         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9269         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9270         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9271         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9272         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9273         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9274         returns a bit mask.
9275         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9276         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9277         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9278         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9279         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9280         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9282         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9283         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9284         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9285         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9286         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9287         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9288         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9289         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9290         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9291         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9292         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9293         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9294         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9295         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9296         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9298         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9299         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9300         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9301         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9302         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9303         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9304         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9305         gl_PRINTF_PRECISION): Likewise.
9306         * m4/regex.m4 (gl_REGEX): Likewise.
9307         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9308         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9309         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9310         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9311         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9312         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9314         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9315         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9316         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9317         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9318         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9319         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9320         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9321         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9322         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9323         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9324         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9325         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9326         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9327         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9328         enumerated value.
9329         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9330
9331 2010-12-04  Bruno Haible  <bruno@clisp.org>
9332
9333         Update for Solaris 11 2010-11.
9334         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9335         Express, released in November 2010.
9336
9337 2010-12-04  Bruno Haible  <bruno@clisp.org>
9338
9339         nproc: Relax license.
9340         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9341         and Paul Eggert.
9342         Requested by Ludovic Courtès <ludo@gnu.org>.
9343
9344 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9345
9346         utimecmp: fine-grained src to nearby coarse-grained dest
9347
9348         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9349         and the source is on a file system with higher-resolution time
9350         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9351         not work, and the time stamps are close together, the algorithm to
9352         determine the exact resolution from the read-back mtime was buggy:
9353         it had a "!=" where it should have had an "==".  This bug has been
9354         in the code ever since it was introduced to gnulib.
9355         Problem reported by Dan Jacobson in
9356         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9357
9358 2010-11-30  Bruno Haible  <bruno@clisp.org>
9359
9360         strerror_r-posix: Fix autoconf test.
9361         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9362
9363 2010-11-28  Bruno Haible  <bruno@clisp.org>
9364             Paul Eggert  <eggert@cs.ucla.edu>
9365
9366         Tests for module 'getdomainname'.
9367         * modules/getdomainname-tests: New file.
9368         * tests/test-getdomainname.c: New file, based on
9369         tests/test-gethostname.c.
9370
9371 2010-11-28  Bruno Haible  <bruno@clisp.org>
9372             Paul Eggert  <eggert@cs.ucla.edu>
9373
9374         getdomainname: Use the system function when possible.
9375         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9376         (getdomainname): Replace if needed. Provide the declaration if it is
9377         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9378         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9379         (getdomainname): When the system has getdomainname, call the system
9380         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9381         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9382         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9383         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9384         the function if its second argument is of type 'int' or if it is found
9385         in libnsl.
9386         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9387         <sys/systeminfo.h> and sysinfo().
9388         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9390         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9391         HAVE_GETDOMAINNAME.
9392         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9393         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9394         * doc/glibc-functions/getdomainname.texi: Document the problems with
9395         the getdomainname declaration.
9396
9397 2010-11-28  Bruno Haible  <bruno@clisp.org>
9398
9399         sys_socket: Ensure ss_family field on AIX.
9400         * lib/sys_socket.in.h (ss_family): New macro definition.
9401         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9402         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9403         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9404         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9405         * modules/sys_socket (Makefile.am): Substitute
9406         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9407         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9408
9409 2010-11-27  Bruno Haible  <bruno@clisp.org>
9410
9411         readline: Improve configure output.
9412         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9413         "checking for readline..." result understandable.
9414
9415 2010-11-27  Bruno Haible  <bruno@clisp.org>
9416
9417         *printf-posix: Detect a bug on Solaris 10/x86.
9418         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9419         for floating-point output.
9420         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9421         directive.
9422         * tests/test-snprintf-posix.h (test_function): Likewise.
9423         * tests/test-sprintf-posix.h (test_function): Likewise.
9424         * tests/test-vasprintf-posix.c (test_function): Likewise.
9425         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9426         * doc/posix-functions/printf.texi: Likewise.
9427         * doc/posix-functions/snprintf.texi: Likewise.
9428         * doc/posix-functions/sprintf.texi: Likewise.
9429         * doc/posix-functions/vfprintf.texi: Likewise.
9430         * doc/posix-functions/vprintf.texi: Likewise.
9431         * doc/posix-functions/vsnprintf.texi: Likewise.
9432         * doc/posix-functions/vsprintf.texi: Likewise.
9433         * doc/glibc-functions/obstack_printf.texi: Likewise.
9434         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9435
9436 2010-11-27  Bruno Haible  <bruno@clisp.org>
9437
9438         Fix link error when module libunistring-optional is in use.
9439         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9440         * modules/striconveha-tests (Makefile.am): Likewise.
9441
9442 2010-11-27  Bruno Haible  <bruno@clisp.org>
9443
9444         regex: Mention link dependencies.
9445         * modules/regex (Link): New section.
9446         * modules/rpmatch (Link): Likewise.
9447         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9448
9449 2010-11-27  Bruno Haible  <bruno@clisp.org>
9450
9451         ftoastr: Fix compilation error on Solaris.
9452         * lib/ftoastr.c: Include <config.h>.
9453
9454 2010-11-27  Bruno Haible  <bruno@clisp.org>
9455
9456         getloadavg: Update documentation.
9457         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9458
9459 2010-11-27  Bruno Haible  <bruno@clisp.org>
9460
9461         sys_socket: Fix test whether the functions are declared.
9462         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9463         not <sys/select.h>.
9464
9465 2010-11-27  Bruno Haible  <bruno@clisp.org>
9466
9467         getpass: Make sure to get system declaration on some platforms.
9468         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9469         gl_USE_SYSTEM_EXTENSIONS.
9470         * modules/getpass (Depends-on): Add extensions.
9471
9472 2010-11-26  Bruno Haible  <bruno@clisp.org>
9473
9474         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9475         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9476         'iconv' module is present.
9477         (ICONV_CONST): New macro.
9478         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9479         ICONV_CONST.
9480         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9481         set ICONV_CONST.
9482         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9483         here.
9484         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9485         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9486         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9487         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9488         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9489         present.
9490
9491 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9492
9493         ftoastr: comment fix
9494         * lib/ftoastr.c: "little" -> "little or no" in comment
9495
9496 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9497
9498         stdint: port to GCC 4.3 + OSX + Octave
9499         On this platform, stdint.h is buggy and defines int64_t to long
9500         long int.  The replacement defined it to long int, causing
9501         problems with C++ style name mangling.  Instead, trust the system
9502         definition if INT64_MAX is defined, and likewise for the unsigned
9503         variant.   Problem reported by Jarno Rajahalme in
9504         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9505         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9506         and don't mess with int64_t and INT64_MAX in this case.
9507         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9508
9509 2010-11-24  Bruno Haible  <bruno@clisp.org>
9510
9511         doc: Corrections regarding MacOS X 10.4 and 10.5.
9512         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9513         MacOS X.
9514         Reported by Simon Josefsson.
9515
9516 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9517
9518         Uninstall ".bin" files installed by relocwrapper.
9519         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9520         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9521         unless it is already there.
9522
9523 2010-11-21  Bruno Haible  <bruno@clisp.org>
9524
9525         Update for NetBSD 5.0.
9526         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9527         NetBSD; the test fails on NetBSD 5.0.
9528         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9529         about NetBSD.
9530
9531 2010-11-21  Bruno Haible  <bruno@clisp.org>
9532
9533         Update for HP-UX 11.23 and HP-UX 11.31.
9534         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9535         HP-UX.
9536
9537 2010-11-21  Bruno Haible  <bruno@clisp.org>
9538
9539         Update for MacOS X 10.5.
9540         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9541         MacOS X; the test fails on MacOS X 10.5.8.
9542         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9543         about MacOS X.
9544
9545 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9546
9547         bootstrap: add bootstrap_sync option.
9548         See discussion at
9549         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9551         * build-aux/bootstrap: Accept --bootstrap-sync to update
9552         bootstrap if it is not identical to the local gnulib's
9553         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9554         enable this by default.  Accept --no-bootstrap-sync to disable
9555         it.
9556
9557 2010-11-20  Bruno Haible  <bruno@clisp.org>
9558
9559         Ensure that <features.h> is included before __GLIBC__ is tested.
9560         * lib/printf-parse.h: Include <features.h>.
9561         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9562         Reported by Mike Frysinger <vapier@gentoo.org>.
9563
9564         Ensure that <features.h> is included before __GLIBC__ is tested.
9565         * lib/wchar.in.h: Include <features.h>.
9566         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9567         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9568         Reported by Mike Frysinger <vapier@gentoo.org>.
9569
9570         Ensure that <features.h> is included before __GLIBC__ is tested.
9571         * lib/arpa_inet.in.h: Include <features.h>.
9572         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9573         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9574         Reported by Mike Frysinger <vapier@gentoo.org>.
9575
9576         Ensure that <features.h> is included before __GLIBC__ is tested.
9577         * build-aux/link-warning.h: Include <features.h>.
9578         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9579         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9580         Reported by Mike Frysinger <vapier@gentoo.org>.
9581
9582         Ensure that <features.h> is included before __GLIBC__ is tested.
9583         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9584         Reported by Mike Frysinger <vapier@gentoo.org>.
9585
9586 2010-11-20  Bruno Haible  <bruno@clisp.org>
9587
9588         memmem: Fix autoconf test.
9589         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9590
9591 2010-11-20  Bruno Haible  <bruno@clisp.org>
9592
9593         Port to uClibc.
9594         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9595         * lib/fcntl.in.h: Likewise.
9596         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9597         * lib/mbrtowc.c (mbrtowc): Likewise.
9598         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9599         * lib/strerror_r.c: Likewise.
9600         * lib/unistr/u8-strnlen.c: Likewise.
9601         * lib/vasnprintf.c (decimal_point_char): Likewise.
9602         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9603         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9604         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9605         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9606         * tests/test-sigaction.c (handler, main): Likewise.
9607         * lib/freading.h: Treat uClibc like a non-glibc platform.
9608         * lib/freading.c: Likewise.
9609         * lib/gettext.h: Likewise.
9610         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9611         Likewise.
9612         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9613         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9614         * lib/propername.c (proper_name_utf8): Likewise.
9615         * lib/spawn.in.h: Likewise.
9616         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9617         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9618         mem_cd_iconveh_internal): Likewise.
9619         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9620         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9621         strstr, strcasestr): Likewise.
9622         * lib/unicodeio.c (unicode_to_mb): Likewise.
9623         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9624         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9625         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9626         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9627         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9628         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9629         * lib/unistr/u8-stpncpy.c: Likewise.
9630         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9631         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9632         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9633         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9634         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9635         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9636         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9637         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9639         Likewise.
9640         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9641         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9642         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9643         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9644         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9645         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9646         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9647         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9648         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9649         * tests/test-striconveha.c (main): Likewise.
9650         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9651         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9652         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9653         * doc/posix-functions/getline.texi: Likewise.
9654         Reported by Mike Frysinger <vapier@gentoo.org>.
9655
9656 2010-11-20  Bruno Haible  <bruno@clisp.org>
9657
9658         nproc: Fix condition.
9659         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9660         HAVE_PTHREAD_AFFINITY_NP.
9661
9662 2010-11-20  Bruno Haible  <bruno@clisp.org>
9663
9664         Fix a comment.
9665         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9666
9667 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9668
9669         ftoastr: don't assume snprintf
9670         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9671         Implement a subset of snprintf here, by using sprintf safely.
9672         * modules/ftoastr (Depends-on): Remove snprintf.
9673
9674 2010-11-19  Jim Meyering  <meyering@redhat.com>
9675
9676         test-rename.h: fix compilation failure
9677         * tests/test-rename.h (test_rename): Add omitted "}".
9678
9679 2010-11-17  Jim Meyering  <meyering@redhat.com>
9680
9681         maint.mk: add a URL discussing the no-@acronym policy
9682         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9683
9684 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9685
9686         ftoastr: depend on snprintf, improve comments
9687         * lib/ftoastr.c: Also mention Loitsch's draft.
9688         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9689         needed in the current implementation, but it might simplify
9690         speeding up the code later.
9691         * modules/ftoastr: Depend on snprintf; this improves portability.
9692         Suggested by Bruno Haible in the same email.
9693
9694         ftoastr: port to hosts lacking strtof and strtold
9695         Problem reported by Bruno Haible in
9696         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9697         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9698         environment and strtold (and presumably strtof) are not available.
9699         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9700         (configure.ac): Require gl_C99_STRTOLD.
9701
9702 2010-11-18  Bruno Haible  <bruno@clisp.org>
9703
9704         c-strtold: Avoid link error on AIX 7.
9705         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9706         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9707         (gl_C_STRTOLD): Test whether strtold_l exists.
9708         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9709
9710 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9711
9712         intprops: new macro INT_BITS_STRLEN_BOUND
9713         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9714         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9715         not exposed.  Also, it uses a slightly tighter bound than before;
9716         though this makes no practical difference, we might as well be as
9717         tight as we easily can.
9718
9719         ftoastr: new module, for lossless conversion of floats to short strings
9720         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9721         * modules/ftoastr: New files.
9722
9723 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9724
9725         bootstrap: port to Solaris sed
9726         * build-aux/bootstrap (get_version): Port to Solaris sed.
9727         See Ralf Wildenhues's note in
9728         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9729
9730 2010-11-14  Jim Meyering  <meyering@redhat.com>
9731
9732         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9733         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9734         and move definition closer to sole use.
9735
9736 2010-11-13  Jim Meyering  <meyering@redhat.com>
9737
9738         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9739         Now we require at least autoconf-2.59, which means the work-around
9740         is no longer needed.
9741         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9742         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9743         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9744         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9745         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9746
9747 2010-11-13  Bruno Haible  <bruno@clisp.org>
9748
9749         rename, renameat: Avoid test failures at NFS mounted locations.
9750         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9751         functions.
9752         (test_rename): Use assert_nonexistent.
9753         * tests/test-rename.c: Include <dirent.h>.
9754         * tests/test-renameat.c: Likewise.
9755         Reported by Gary V. Vaughan <gary@gnu.org>.
9756
9757         rename, renameat: Document Linux bug with NFS
9758         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9759         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9760         * doc/posix-functions/renameat.texi: Likewise.
9761         Suggested by Eric Blake.
9762
9763 2010-11-13  Bruno Haible  <bruno@clisp.org>
9764
9765         rename test: Add comments.
9766         * tests/test-rename.h (test_rename): Add structure and comments.
9767
9768 2010-11-13  Eric Blake  <eblake@redhat.com>
9769
9770         maintainer-makefile: cover a few more files
9771         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9772         scripts generated within C files, for libvirt.
9773
9774 2010-11-13  Bruno Haible  <bruno@clisp.org>
9775
9776         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9777         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9778         character, return the number of bytes that belong together, not always
9779         1.
9780         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9781         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9782         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9783         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9784         number of bytes of an invalid character.
9785         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9786         (main): Invoke it.
9787         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9788         results.
9789         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9790         malformed byte sequences.
9791         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9792         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9793         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9794         Reported by Ben Pfaff and Paolo Bonzini.
9795
9796 2010-11-13  Bruno Haible  <bruno@clisp.org>
9797
9798         openat: Work around glibc bug with fchownat() and empty file names.
9799         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9800         (gl_FUNC_FCHOWNAT): Invoke it.
9801         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9802         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9803         Reported by Gary V. Vaughan <gary@gnu.org>.
9804
9805 2010-11-13  Bruno Haible  <bruno@clisp.org>
9806
9807         openat: Ensure autoconf macro ordering.
9808         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9809         gl_USE_SYSTEM_EXTENSIONS.
9810         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9811
9812 2010-11-13  Bruno Haible  <bruno@clisp.org>
9813
9814         Update comments.
9815         * lib/unistr/u8-check.c: Update file name in comments.
9816         * lib/unistr/u8-mblen.c: Likewise.
9817         * lib/unistr/u8-prev.c: Likewise.
9818         * lib/unistr/u8-strmblen.c: Likewise.
9819         * lib/unistr/u8-strmbtouc.c: Likewise.
9820
9821 2010-11-13  Jim Meyering  <meyering@redhat.com>
9822
9823         tests: avoid test failure on Solaris 10 due to lack of PATH export
9824         * tests/test-update-copyright.sh: Don't forget to export PATH.
9825
9826         init.sh: ensure that IFS is defined, just in case...
9827         * tests/init.sh (setup_): Ensure that IFS is defined,
9828         so that saving and restoring it works as expected.  This
9829         appears to be useful at least for an old version of dash
9830         from a long time ago (RH 6).  See here for details:
9831         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9832
9833         maint.mk: tighten "test a == b" check
9834         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9835         test to files that contain something like #!/bin/sh.
9836         Without this, coreutils would get two false positives in
9837         the comments of C source files.
9838
9839 2010-11-12  Eric Blake  <eblake@redhat.com>
9840
9841         bootstrap: fix typo in previous attempt
9842         * build-aux/bootstrap (buildreq): Correct the grouping.
9843         Reported by Paul Eggert.
9844
9845         maintainer-makefile: prohibit test x == x
9846         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9847         Based on a report by Matthias Bolte.
9848
9849         bootstrap: allow FreeBSD gzip
9850         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9851         which has no '.' and goes to stderr.
9852         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9853         Reported by Matthias Bolte.
9854
9855         maintainer-makefile: check for i18n setup
9856         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9857         will likely work.
9858
9859 2010-11-12  Bruno Haible  <bruno@clisp.org>
9860
9861         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9862         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9863         * lib/nanosleep.c (nanosleep): Likewise.
9864
9865 2010-11-11  Bruno Haible  <bruno@clisp.org>
9866
9867         fcntl-h: Fix for use of C++ on glibc systems.
9868         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9869         also on glibc systems in C++ mode.
9870         Reported by Gary V. Vaughan <gary@gnu.org>.
9871
9872 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9873
9874         mknod: avoid false failure with dash
9875         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9876
9877 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9878
9879         unlink: Fix "is it should" typo in diagnostic.
9880         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9881         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9882
9883 2010-11-11  Bruno Haible  <bruno@clisp.org>
9884
9885         Tests for module 'strerror_r-posix'.
9886         * modules/strerror_r-posix-tests: New file.
9887         * tests/test-strerror_r.c: New file.
9888         * tests/test-string-c++.cc: Check the signature of strerror_r.
9889
9890         New module 'strerror_r-posix'.
9891         * lib/string.in.h (strerror_r): New declaration.
9892         * lib/strerror_r.c: New file.
9893         * m4/strerror_r.m4: New file.
9894         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9895         of strerror_r.
9896         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9897         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9898         * modules/strerror_r-posix: New file.
9899         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9900         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9901         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9902         portability problems.
9903
9904 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9905
9906         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9907         line is also considered for output. Quoted function name in shell
9908         command, so temporary files for functions like MyClass::operator()
9909         are removed correctly without errors.
9910
9911 2010-11-09  Bruno Haible  <bruno@clisp.org>
9912
9913         * doc/posix-functions/strerror.texi: List more failing platforms.
9914
9915         * doc/posix-functions/strerror.texi: Add a comment.
9916
9917 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9918
9919         fdopendir: fix bug on MacOS X when low on file descriptors
9920
9921         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9922         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9923         All callers changed.
9924         (fdopendir): Invoke save_cwd at the top level, not after using
9925         multiple dup() calls to use up file descriptors.  Then retry
9926         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9927         less than the maximum number of open file descriptors, because
9928         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9929         on Mac OS X 10.6.4 for tar 1.24
9930         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9931         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9932         and for tar 1.25
9933         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9934
9935 2010-11-07  Bruno Haible  <bruno@clisp.org>
9936
9937         vasnprintf: Support I flag on glibc systems.
9938         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9939         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9940         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9941         snprintf function.
9942         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9943         glibc systems.
9944         * tests/test-vasnprintf-posix3.c: New file.
9945         * modules/vasnprintf-posix-tests (Files): Add it.
9946         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9947
9948 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9949
9950         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9951         * MODULES.html.sh: For compiler warnings, use name
9952         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9953
9954 2010-11-05  Eric Blake  <eblake@redhat.com>
9955
9956         ceil, floor: avoid spurious failure with icc
9957         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9958         [denormals-as-zero] when optimizing without -mieee-fp option.
9959         * tests/test-floorf2.c (floorf_reference): Likewise.
9960         * tests/test-ceilf1.c (dummy): New function.
9961         (main): Use it to outsmart icc's optimization.
9962         * tests/test-floorf1.c (dummy, main): Likewise.
9963
9964         tests: require working signbit
9965         * modules/ceilf-tests (Depends-on): Add signbit.
9966         * modules/ceill-tests (Depends-on): Likewise.
9967         * modules/floorf-tests (Depends-on): Likewise.
9968         * modules/floorl-tests (Depends-on): Likewise.
9969         * modules/round-tests (Depends-on): Likewise.
9970         * modules/roundf-tests (Depends-on): Likewise.
9971         * modules/roundl-tests (Depends-on): Likewise.
9972         * modules/trunc-tests (Depends-on): Likewise.
9973         * modules/truncf-tests (Depends-on): Likewise.
9974         * modules/truncl-tests (Depends-on): Likewise.
9975
9976         strtod: work around icc bug
9977         * lib/strtod.c (minus_zero): Define to working value.
9978         (strtod): Use it to avoid icc bug.
9979
9980         copysign: enhance tests
9981         * modules/copysign-tests (Files): Add minus-zero.h.
9982         * tests/test-copysign.c (main): Also test zeros.
9983
9984 2010-11-04  Eric Blake  <eblake@redhat.com>
9985
9986         ceil, floor, round, trunc: enhance tests of -0
9987         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9988         * tests/test-ceill.c (main): Likewise.
9989         * tests/test-floorf1.c (main): Likewise.
9990         * tests/test-floorl.c (main): Likewise.
9991         * tests/test-round1.c (main): Likewise.
9992         * tests/test-roundf1.c (main): Likewise.
9993         * tests/test-roundl.c (main): Likewise.
9994         * tests/test-trunc1.c (main): Likewise.
9995         * tests/test-truncf1.c (main): Likewise.
9996         * tests/test-truncl.c (main): Likewise.
9997
9998 2010-11-04  Eric Blake  <eblake@redhat.com>
9999
10000         frexp, tests: work around ICC bug with -zero
10001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
10002         works with more compilers.
10003         * tests/minus-zero.h: New file.
10004         * modules/ceilf-tests (Files): Include it.
10005         * modules/ceill-tests (Files): Likewise.
10006         * modules/floorf-tests (Files): Likewise.
10007         * modules/floorl-tests (Files): Likewise.
10008         * modules/frexp-nolibm-tests (Files): Likewise.
10009         * modules/frexp-tests (Files): Likewise.
10010         * modules/frexpl-nolibm-tests (Files): Likewise.
10011         * modules/frexpl-tests (Files): Likewise.
10012         * modules/isnan-tests (Files): Likewise.
10013         * modules/isnand-nolibm-tests (Files): Likewise.
10014         * modules/isnand-tests (Files): Likewise.
10015         * modules/isnanf-nolibm-tests (Files): Likewise.
10016         * modules/isnanf-tests (Files): Likewise.
10017         * modules/isnanl-nolibm-tests (Files): Likewise.
10018         * modules/isnanl-tests (Files): Likewise.
10019         * modules/round-tests (Files): Likewise.
10020         * modules/roundf-tests (Files): Likewise.
10021         * modules/roundl-tests (Files): Likewise.
10022         * modules/ldexpl-tests (Files): Likewise.
10023         * modules/signbit-tests (Files): Likewise.
10024         * modules/snprintf-posix-tests (Files): Likewise.
10025         * modules/sprintf-posix-tests (Files): Likewise.
10026         * modules/strtod-tests (Files): Likewise.
10027         * modules/trunc-tests (Files): Likewise.
10028         * modules/truncf-tests (Files): Likewise.
10029         * modules/truncl-tests (Files): Likewise.
10030         * modules/vsnprintf-posix-tests (Files): Likewise.
10031         * modules/vsprintf-posix-tests (Files): Likewise.
10032         * modules/vasnprintf-posix-tests (Files): Likewise.
10033         * modules/vasprintf-posix-tests (Files): Likewise.
10034         * tests/test-ceilf1.c (main): Use it.
10035         * tests/test-ceill.c (main): Likewise.
10036         * tests/test-floorf1.c (main): Likewise.
10037         * tests/test-floorl.c (main): Likewise.
10038         * tests/test-frexp.c (main): Likewise.
10039         * tests/test-frexpl.c (main): Likewise.
10040         * tests/test-isnan.c (main): Likewise.
10041         * tests/test-isnand.h (main): Likewise.
10042         * tests/test-isnanf.h (main): Likewise.
10043         * tests/test-isnanl.h (main): Likewise.
10044         * tests/test-ldexpl.c (main): Likewise.
10045         * tests/test-round.c (main): Likewise.
10046         * tests/test-roundf.c (main): Likewise.
10047         * tests/test-roundl.c (main): Likewise.
10048         * tests/test-signbit.c (test_signbitf, test_signbitd)
10049         (test_signbitl): Likewise.
10050         * tests/test-snprintf-posix.h (test_function): Likewise.
10051         * tests/test-sprintf-posix.h (test_function): Likewise.
10052         * tests/test-strtod.c (main): Likewise.
10053         * tests/test-trunc1.c (main): Likewise.
10054         * tests/test-truncf1.c (main): Likewise.
10055         * tests/test-truncl.c (main): Likewise.
10056
10057         isnanl: work around icc bug
10058         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
10059
10060 2010-11-03  Eric Blake  <eblake@redhat.com>
10061
10062         tests: fix compiler warnings
10063         * tests/test-getopt.h (test_getopt): Fix condition.
10064         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10065         * tests/test-pipe2.c (main): Likewise.
10066         * tests/test-quotearg-simple.c (main): Avoid icc warning.
10067
10068         utimens: fix broken m4 test
10069         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
10070
10071 2010-10-28  Bruno Haible  <bruno@clisp.org>
10072
10073         posix_spawn*, getdtablesize: Relax license.
10074         * modules/posix_spawn (License): Change to LGPLv2+.
10075         * modules/posix_spawnp (License): Likewise.
10076         * modules/posix_spawn-internal (License): Likewise.
10077         * modules/posix_spawnattr_init (License): Likewise.
10078         * modules/posix_spawnattr_getflags (License): Likewise.
10079         * modules/posix_spawnattr_setflags (License): Likewise.
10080         * modules/posix_spawnattr_getpgroup (License): Likewise.
10081         * modules/posix_spawnattr_setpgroup (License): Likewise.
10082         * modules/posix_spawnattr_getschedparam (License): Likewise.
10083         * modules/posix_spawnattr_setschedparam (License): Likewise.
10084         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
10085         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
10086         * modules/posix_spawnattr_getsigdefault (License): Likewise.
10087         * modules/posix_spawnattr_setsigdefault (License): Likewise.
10088         * modules/posix_spawnattr_getsigmask (License): Likewise.
10089         * modules/posix_spawnattr_setsigmask (License): Likewise.
10090         * modules/posix_spawnattr_destroy (License): Likewise.
10091         * modules/posix_spawn_file_actions_init (License): Likewise.
10092         * modules/posix_spawn_file_actions_addclose (License): Likewise.
10093         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
10094         * modules/posix_spawn_file_actions_addopen (License): Likewise.
10095         * modules/posix_spawn_file_actions_destroy (License): Likewise.
10096         * modules/getdtablesize (License): Likewise.
10097         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
10098
10099 2010-10-26  Bruno Haible  <bruno@clisp.org>
10100
10101         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
10102         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
10103         Cygwin and mingw.
10104         Suggested by Eric Blake.
10105
10106 2010-10-26  Bruno Haible  <bruno@clisp.org>
10107
10108         stdio: Work around compilation error due to renameat() on Solaris 10.
10109         * lib/stdio.in.h: Include <unistd.h> on Solaris.
10110         * lib/renameat.c: Don't include <unistd.h> here.
10111         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
10112         Reported by Paul Eggert and Eric Blake.
10113
10114 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
10115
10116         renameat: port to Solaris 10, which declares renameat in unistd.h
10117
10118         * lib/renameat.c: Include unistd.h before stdio.h, because
10119         Solaris 10 declares renameat in unistd.h.  Problem encountered
10120         when building GNU tar 1.24 on Solaris 10.
10121
10122 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
10123
10124         fdopendir: fix C89 compilation
10125         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
10126         compilers.
10127
10128 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10129
10130         inttostr: simplify by removing unnecessary redundancy
10131         * lib/anytostr.c: Don't include verify.h.
10132         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
10133         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
10134         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
10135         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
10136         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
10137         Likewise.
10138         * modules/inttostr (Depends-on): Remove 'verify'.
10139
10140 2010-10-23  Bruno Haible  <bruno@clisp.org>
10141
10142         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
10143         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
10144         Reported by Eric Blake.
10145
10146 2010-10-23  Bruno Haible  <bruno@clisp.org>
10147
10148         Tests: Fix LOCALE_JA on MirBSD 10.
10149         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
10150         to an UTF-8 locale.
10151         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
10152         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10153         Reported by Eric Blake.
10154
10155 2010-10-21  Bruno Haible  <bruno@clisp.org>
10156
10157         nl_langinfo test: Avoid test failure on NetBSD 5.
10158         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
10159         Reported by Eric Blake.
10160
10161 2010-10-21  Eric Blake  <eblake@redhat.com>
10162
10163         c-stack: work around libsigsegv 2.8 bug
10164         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
10165         overflow on at least PowerPC64.
10166
10167 2010-10-17  Bruno Haible  <bruno@clisp.org>
10168
10169         userspec: Drop redundant file.
10170         * modules/userspec (Files): Remove lib/inttostr.h.
10171
10172 2010-10-17  Bruno Haible  <bruno@clisp.org>
10173
10174         nl_langinfo tests: Silence some warnings.
10175         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
10176         Reported by Jim Meyering.
10177
10178 2010-10-17  Bruno Haible  <bruno@clisp.org>
10179
10180         Make use of GCC's attribute __alloc_size__.
10181         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
10182         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
10183         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
10184         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
10185         __alloc_size__.
10186         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
10187         Suggested by Jim Meyering.
10188
10189 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
10190
10191         bootstrap: anchor .gitignore entries.
10192         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
10193         with...
10194         (insert_vc_ignore): ... this new function, which prepends `/' to
10195         all .gitignore entries before passing them to
10196         insert_sorted_if_absent.
10197
10198 2010-10-16  Bruno Haible  <bruno@clisp.org>
10199
10200         nextafter: Fix configure check.
10201         * modules/nextafter (configure.ac): Correct expected prototype.
10202
10203 2010-10-16  Bruno Haible  <bruno@clisp.org>
10204
10205         termios: Update documentation.
10206         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
10207
10208 2010-10-16  Bruno Haible  <bruno@clisp.org>
10209
10210         tests: Make them compile with TinyCC.
10211         * tests/test-strstr.c (main): Remove parentheses around array
10212         initializer.
10213
10214 2010-10-15  Eric Blake  <eblake@redhat.com>
10215
10216         ignore-value: make header idempotent
10217         * lib/ignore-value.h: Add double-inclusion guards.
10218         Reported by Stefan Berger.
10219
10220 2010-10-15  Jim Meyering  <meyering@redhat.com>
10221
10222         GNUmakefile: handle "stable" target, not "major"
10223         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10224         lists in maint.mk and announce-gen.  Without this, "make stable"
10225         would fail to ensure that $(VERSION) is up to date.
10226
10227 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10228
10229         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10230         & co.
10231
10232 2010-10-14  Bruno Haible  <bruno@clisp.org>
10233
10234         vasnprintf: Don't set errno to 0.
10235         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10236         block that sets it to 0.
10237         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10238
10239 2010-10-14  Bruno Haible  <bruno@clisp.org>
10240
10241         socketlib: Fix.
10242         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10243         gl_PREREQ_SYS_H_WINSOCK2.
10244         Reported by Ian Beckwith <ianb@erislabs.net>.
10245
10246 2010-10-13  Jim Meyering  <meyering@redhat.com>
10247
10248         test-select-stdin.c: avoid warn_unused_result warnings
10249         * tests/test-select-stdin.c: Include "macros.h".
10250         ASSERT that read and fflush succeed.
10251
10252 2010-10-13  Jim Meyering  <meyering@redhat.com>
10253
10254         git-version-gen: do require git-VC'd files in cwd
10255         * build-aux/git-version-gen: Reject a git version string
10256         if there are no commits associated with the current directory.
10257         This avoids an unlikely false-positive (unrelated dir whose parent
10258         repository also contains a tag matching v*), as pointed out
10259         by Giuseppe Scrivano in
10260         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10261
10262 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10263
10264         argv-iter: omit nonconforming declaration
10265         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10266         enum arg_iter_err declaration, which doesn't conform to C99.
10267         Solaris 10 cc warns about this.
10268
10269 2010-10-13  Eric Blake  <eblake@redhat.com>
10270
10271         termios: fix compilation on mingw
10272         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10273         (gl_TERMIOS_H): Adjust it on mingw.
10274         * modules/termios (Makefile.am): Substitute new key.
10275         * lib/termios.in.h (includes): Make include_next conditional.
10276         * doc/posix-headers/termios.texi (termios.h): Update
10277         documentation.
10278         Reported by Daniel P. Berrange.
10279
10280 2010-10-13  Jim Meyering  <meyering@redhat.com>
10281
10282         git-version-gen: don't require that .git/ be in the current dir
10283         * build-aux/git-version-gen: Adjust this script so that it works
10284         when run from any working directory beneath the top-level .git/-
10285         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10286         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10287
10288         test-select: avoid warn_unused_result warnings
10289         * tests/test-select.c: Include "macros.h".
10290         ASSERT that each call to read, write, and pipe succeeds.
10291         While not technically required, also check each "close".
10292         * modules/select-tests (Files): Add tests/macros.h.
10293
10294         test-symlinkat: remove declaration of unused local
10295         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10296
10297         test-inttostr: avoid shadowing warnings
10298         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10299         and use malloc rather than the stack for the same reason as
10300         mentioned in the comment justifying the other allocation.
10301
10302 2010-10-11  Bruno Haible  <bruno@clisp.org>
10303
10304         stdlib: Allow multiple gnulib generated replacements to coexist.
10305         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10306         Reported by Sam Steingold <sds@gnu.org>.
10307
10308 2010-10-11  Jim Meyering  <meyering@redhat.com>
10309
10310         fix a documentation typo
10311         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10312
10313 2010-10-11  Eric Blake  <eblake@redhat.com>
10314
10315         futimens: work around Solaris 11 bug
10316         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10317         * tests/test-futimens.h (test_futimens): Enhance, rather than
10318         weaken test.
10319         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10320
10321 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10322
10323         Indentation.
10324         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10325         higher-level operators more to the left.
10326
10327 2010-10-11  Jim Meyering  <meyering@redhat.com>
10328
10329         test-futimens: avoid unwarranted test failure on Solaris 5.11
10330         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10331         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10332         because it tries to dereference the NULL name argument.
10333
10334 2010-10-11  Bruno Haible  <bruno@clisp.org>
10335
10336         Indentation.
10337         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10338         indentation.
10339
10340 2010-10-11  Jim Meyering  <meyering@redhat.com>
10341
10342         spawn.in.h: make indentation consistent with parentheses
10343         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10344         Make indentation consistent with parentheses.
10345
10346 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10347
10348         Fix mismatched parens in previous commit
10349         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10350         parens.
10351
10352 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10353
10354         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10355
10356         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10357         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10358         * lib/malloca.c: Include "verify.h".
10359         (verify1): Remove, replacing with a verify call.
10360         * lib/relocwrapper.c (verify1): Likewise.
10361         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10362         Likewise.
10363         * modules/malloca (Depends-on): Add 'verify'.
10364         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10365         * modules/vasnprintf (Depends-on): Add 'verify'.
10366         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10367         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10368         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10369         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10370         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10371         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10372         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10373
10374         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10375
10376         Formerly the style was sometimes 2*X - 1, because the C standard
10377         was wrongly thought to disallow ?: in integral constant expressions.
10378         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10379         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10380         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10381         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10382         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10383         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10384         verify that time_t cannot be floating.
10385
10386 2010-10-08  Eric Blake  <eblake@redhat.com>
10387
10388         time: enforce recent POSIX ruling that time_t is integral
10389         * lib/time.in.h (__time_t_must_be_integral): Detect any
10390         problematic systems, allowing the rest of gnulib to assume POSIX.
10391
10392 2010-10-08  Jim Meyering  <meyering@redhat.com>
10393
10394         fdopendir: fix a bug on systems lacking openat and /proc support
10395         OpenBSD 4.7 is one such system.  The most noticeable effect was
10396         failure of any application making nontrivial use of fts: rm, du,
10397         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10398           ./rm: traversal failed: `a': Bad file descriptor
10399         Debugging that, you see that even though FD 6 was closed just
10400         prior to the opendir call in fd_clone_opendir, its resulting
10401         dir->dd_fd was 8, rather than the expected value of 6:
10402
10403         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10404         93                close (fd);
10405         (gdb) n
10406         94                dir = fd_clone_opendir (dupfd);
10407         (gdb) n
10408         95                saved_errno = errno;
10409         (gdb) p dir->dd_fd
10410         $11 = 8
10411
10412         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10413         The problem is that on OpenBSD, fd_clone_opendir has to resort
10414         to using the old-style save/restore CWD mechanism, due to its
10415         lack of openat/proc support, and *that* would steal the FD (6)
10416         that opendir was supposed to use.
10417
10418         The fix is to squirrel away the desired FD so that save_cwd uses a
10419         different one, and then free the dest FD right before calling opendir.
10420         That guarantees opendir will use the required file descriptor.
10421
10422         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10423
10424 2010-10-08  Bruno Haible  <bruno@clisp.org>
10425
10426         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10427         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10428
10429 2010-10-08  Bruno Haible  <bruno@clisp.org>
10430
10431         nanosleep: Make replacement POSIX compliant.
10432         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10433         is out of range.
10434         Reported by Jim Meyering.
10435
10436 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10437
10438         bootstrap: add hook for altering gnulib.mk, for Bison
10439         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10440         the Bison bootstrapping process can rewrite file names and variables
10441         in this file before later parts of 'bootstrap' use the file.
10442         Bison wants to include lib/gnulib.mk from the top-level makefile,
10443         so it needs the file names in this file to be relative to the top
10444         level, not relative to lib; plus it needs variable names to be
10445         rewritten.
10446         (slurp): Use the new function.
10447
10448         bootstrap: reformat for readability
10449         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10450
10451 2010-10-08  Eric Blake  <eblake@redhat.com>
10452
10453         docs: update cygwin progress
10454         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10455         1.7.7.
10456         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10457         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10458         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10459         * doc/posix-functions/carg.texi (carg): Likewise.
10460         * doc/posix-functions/cargf.texi (cargf): Likewise.
10461         * doc/posix-functions/casin.texi (casin): Likewise.
10462         * doc/posix-functions/casinf.texi (casinf): Likewise.
10463         * doc/posix-functions/casinh.texi (casinh): Likewise.
10464         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10465         * doc/posix-functions/catan.texi (catan): Likewise.
10466         * doc/posix-functions/catanf.texi (catanf): Likewise.
10467         * doc/posix-functions/catanh.texi (catanh): Likewise.
10468         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10469         * doc/posix-functions/ccos.texi (ccos): Likewise.
10470         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10471         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10472         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10473         * doc/posix-functions/cexp.texi (cexp): Likewise.
10474         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10475         * doc/posix-functions/cimag.texi (cimag): Likewise.
10476         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10477         * doc/posix-functions/clog.texi (clog): Likewise.
10478         * doc/posix-functions/clogf.texi (clogf): Likewise.
10479         * doc/posix-functions/conj.texi (conj): Likewise.
10480         * doc/posix-functions/conjf.texi (conjf): Likewise.
10481         * doc/posix-functions/cpow.texi (cpow): Likewise.
10482         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10483         * doc/posix-functions/cproj.texi (cproj): Likewise.
10484         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10485         * doc/posix-functions/creal.texi (creal): Likewise.
10486         * doc/posix-functions/crealf.texi (crealf): Likewise.
10487         * doc/posix-functions/csin.texi (csin): Likewise.
10488         * doc/posix-functions/csinf.texi (csinf): Likewise.
10489         * doc/posix-functions/csinh.texi (csinh): Likewise.
10490         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10491         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10492         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10493         * doc/posix-functions/ctan.texi (ctan): Likewise.
10494         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10495         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10496         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10497         * doc/posix-headers/complex.texi (complex.h): Likewise.
10498
10499 2010-10-07  Jim Meyering  <meyering@redhat.com>
10500
10501         parse-datetime: avoid compilation failure on OpenBSD 4.7
10502         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10503         This works around a compilation failure on OpenBSD 4.7:
10504         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10505
10506 2010-10-07  Eric Blake  <eblake@redhat.com>
10507
10508         docs: update cygwin progress
10509         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10510         1.7.6.
10511         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10512         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10513         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10514         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10515         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10516         Likewise.
10517         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10518         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10519         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10520         Likewise.
10521         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10522         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10523         Likewise.
10524         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10525         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10526         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10527         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10528         Likewise.
10529         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10530         Likewise.
10531         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10532
10533         docs: update parse-datetime history
10534         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10535         documentation of this function's history and alternatives.
10536
10537         cygwin: use more robust version check
10538         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10539         exclude an eventual cygwin 1.9.1.
10540         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10541         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10542         (gl_FUNC_STRCASESTR): Likewise.
10543         Reported by Bruno Haible.
10544
10545 2010-10-06  Bruno Haible  <bruno@clisp.org>
10546
10547         string, sys_select: Avoid #including large headers unless necessary.
10548         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10549         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10550         OSF/1, BeOS, Haiku.
10551         Reported by Jim Meyering.
10552
10553 2010-10-05  Eric Blake  <eblake@redhat.com>
10554
10555         memmem, strstr, strcasestr: fix bug with long periodic needle
10556         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10557         periodic needle having false positive.
10558         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10559         and cygwin 1.7.7.
10560         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10562         (gl_FUNC_STRCASESTR): Likewise.
10563         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10564         * tests/test-memmem.c (main): Expose the bug.
10565         * tests/test-strcasestr.c (main): Likewise.
10566         * tests/test-strstr.c (main): Likewise.
10567         * tests/test-c-strcasestr.c (main): Likewise.
10568         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10569         * doc/posix-functions/strstr.texi (strstr): Likewise.
10570         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10571         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10572
10573 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10574
10575         parse-datetime: do some more renaming
10576         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10577         parse_datetime, not get_date.  Mention the renaming.
10578         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10579         in comments.
10580         * m4/bison.m4: Likewise.
10581
10582 2010-10-05  Eric Blake  <eblake@redhat.com>
10583
10584         parse-datetime: better name than get_date
10585         * NEWS: Reword the deprecation notice.
10586         * modules/get_date: Rename to modules/parse-datetime.
10587         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10588         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10589         * lib/get_date.y: Rename to lib/parse-datetime.y.
10590         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10591         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10592         * doc/getdate.texi: Provide fallback wrapper.
10593         * lib/getdate.h: Move guts, and wrap...
10594         * lib/parse-datetime.h: ...new file.
10595         * lib/parse-datetime.y (get_date): Rename...
10596         (parse_datetime): ...to this.
10597         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10598         (gl_PARSE_DATETIME): ...to this.
10599         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10600         documentation.
10601         * modules/getdate (Files): Provide fallback docs and header.
10602         (Notice, Depends-on): Update references.
10603         * tests/test-parse-datetime.c: Likewise.
10604         * DEPENDENCIES: Likewise.
10605         * MODULES.html.sh (Date and time <time.h>): Likewise.
10606         * doc/parse-datetime.texi (Date input formats)
10607         (Authors of parse_datetime): Likewise.
10608         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10609         (Include): Likewise.
10610         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10611         * gnulib-tool: Likewise.
10612         * m4/bison.m4 (gl_BISON): Likewise.
10613         Suggested by Bruno Haible.
10614
10615 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10616
10617         more ports to Solaris tr, which needs [] around ranges
10618         * gnulib-tool: Solaris tr needs [] around ranges.
10619         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10620         * tests/test-pipe-filter-gi1.c (main): Likewise.
10621         * tests/test-pipe-filter-ii1.c (main): Likewise.
10622
10623 2010-10-05  Eric Blake  <eblake@redhat.com>
10624
10625         bootstrap: fix Solaris regression
10626         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10627         around ranges.
10628         Reported by Pádraig Brady.
10629
10630         bootstrap: work with pkg-config
10631         * build-aux/bootstrap (check_versions): Also transliterate - in
10632         prerequisite name.
10633         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10634         prerequisites that were already found, to avoid confusion.
10635         Reported by Justin Clift.
10636
10637         faccessat: remove unused wrappers
10638         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10639         presence of these wrappers dragged in -lgen on Solaris.
10640         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10641
10642 2010-10-05  Jim Meyering  <meyering@redhat.com>
10643
10644         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10645         * Makefile (sc_pragma_columns): New syntax-check rule.
10646
10647 2010-10-04  Bruno Haible  <bruno@clisp.org>
10648
10649         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10650         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10651         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10652         Reported by Bruce Korb and Eric Blake.
10653
10654 2010-10-04  Bruno Haible  <bruno@clisp.org>
10655
10656         threadlib: Make option --with-libpth-prefix work.
10657         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10658         use $LIBPTH, not just -lpth.
10659
10660 2010-10-04  Bruno Haible  <bruno@clisp.org>
10661
10662         Avoid line length limitation from HP NonStop system header files.
10663         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10664         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10665         * lib/ctype.in.h: Likewise.
10666         * lib/dirent.in.h: Likewise.
10667         * lib/errno.in.h: Likewise.
10668         * lib/fcntl.in.h: Likewise.
10669         * lib/float.in.h: Likewise.
10670         * lib/getopt.in.h: Likewise.
10671         * lib/iconv.in.h: Likewise.
10672         * lib/inttypes.in.h: Likewise.
10673         * lib/langinfo.in.h: Likewise.
10674         * lib/locale.in.h: Likewise.
10675         * lib/math.in.h: Likewise.
10676         * lib/netdb.in.h: Likewise.
10677         * lib/netinet_in.in.h: Likewise.
10678         * lib/poll.in.h: Likewise.
10679         * lib/pthread.in.h: Likewise.
10680         * lib/pty.in.h: Likewise.
10681         * lib/sched.in.h: Likewise.
10682         * lib/se-selinux.in.h: Likewise.
10683         * lib/search.in.h: Likewise.
10684         * lib/signal.in.h: Likewise.
10685         * lib/spawn.in.h: Likewise.
10686         * lib/stdarg.in.h: Likewise.
10687         * lib/stddef.in.h: Likewise.
10688         * lib/stdint.in.h: Likewise.
10689         * lib/stdio.in.h: Likewise.
10690         * lib/stdlib.in.h: Likewise.
10691         * lib/string.in.h: Likewise.
10692         * lib/strings.in.h: Likewise.
10693         * lib/sys_file.in.h: Likewise.
10694         * lib/sys_ioctl.in.h: Likewise.
10695         * lib/sys_select.in.h: Likewise.
10696         * lib/sys_socket.in.h: Likewise.
10697         * lib/sys_stat.in.h: Likewise.
10698         * lib/sys_time.in.h: Likewise.
10699         * lib/sys_times.in.h: Likewise.
10700         * lib/sys_utsname.in.h: Likewise.
10701         * lib/sys_wait.in.h: Likewise.
10702         * lib/sysexits.in.h: Likewise.
10703         * lib/termios.in.h: Likewise.
10704         * lib/time.in.h: Likewise.
10705         * lib/unistd.in.h: Likewise.
10706         * lib/wchar.in.h: Likewise.
10707         * lib/wctype.in.h: Likewise.
10708         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10709         * modules/ctype (Makefile.am): Likewise.
10710         * modules/dirent (Makefile.am): Likewise.
10711         * modules/errno (Makefile.am): Likewise.
10712         * modules/fcntl-h (Makefile.am): Likewise.
10713         * modules/float (Makefile.am): Likewise.
10714         * modules/getopt-posix (Makefile.am): Likewise.
10715         * modules/iconv-h (Makefile.am): Likewise.
10716         * modules/inttypes (Makefile.am): Likewise.
10717         * modules/langinfo (Makefile.am): Likewise.
10718         * modules/locale (Makefile.am): Likewise.
10719         * modules/math (Makefile.am): Likewise.
10720         * modules/netdb (Makefile.am): Likewise.
10721         * modules/netinet_in (Makefile.am): Likewise.
10722         * modules/poll-h (Makefile.am): Likewise.
10723         * modules/pthread (Makefile.am): Likewise.
10724         * modules/pty (Makefile.am): Likewise.
10725         * modules/sched (Makefile.am): Likewise.
10726         * modules/search (Makefile.am): Likewise.
10727         * modules/selinux-h (Makefile.am): Likewise.
10728         * modules/signal (Makefile.am): Likewise.
10729         * modules/spawn (Makefile.am): Likewise.
10730         * modules/stdarg (Makefile.am): Likewise.
10731         * modules/stddef (Makefile.am): Likewise.
10732         * modules/stdint (Makefile.am): Likewise.
10733         * modules/stdio (Makefile.am): Likewise.
10734         * modules/stdlib (Makefile.am): Likewise.
10735         * modules/string (Makefile.am): Likewise.
10736         * modules/strings (Makefile.am): Likewise.
10737         * modules/sys_file (Makefile.am): Likewise.
10738         * modules/sys_ioctl (Makefile.am): Likewise.
10739         * modules/sys_select (Makefile.am): Likewise.
10740         * modules/sys_socket (Makefile.am): Likewise.
10741         * modules/sys_stat (Makefile.am): Likewise.
10742         * modules/sys_time (Makefile.am): Likewise.
10743         * modules/sys_times (Makefile.am): Likewise.
10744         * modules/sys_utsname (Makefile.am): Likewise.
10745         * modules/sys_wait (Makefile.am): Likewise.
10746         * modules/sysexits (Makefile.am): Likewise.
10747         * modules/termios (Makefile.am): Likewise.
10748         * modules/time (Makefile.am): Likewise.
10749         * modules/unistd (Makefile.am): Likewise.
10750         * modules/wchar (Makefile.am): Likewise.
10751         * modules/wctype (Makefile.am): Likewise.
10752
10753 2010-10-04  Bruno Haible  <bruno@clisp.org>
10754
10755         read-file tests: Avoid a test failure on NonStop Kernel.
10756         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10757         a regular file.
10758         Reported by Joachim Schmitz <schmitz@hp.com>.
10759
10760 2010-10-03  Bruno Haible  <bruno@clisp.org>
10761
10762         gnulib-tool: Fixes for --create-testdir with --libtool.
10763         * gnulib-tool (func_get_automake_snippet): Don't augment
10764         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10765         an executable.
10766         (func_create_testdir): Handle module 'alloca' like func_import.
10767         Reported by Bruce Korb <bruce.korb@gmail.com>.
10768
10769 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10770
10771         Avoid some lines longer than 80 characters.
10772         * lib/stdint.in.h: Break long comment lines.
10773         * lib/math.in.h: Likewise.
10774         (_GL_NUM_UINT_WORDS): New macro, for readability.
10775         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10776         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10777         * lib/stdlib.in.h: Likewise.
10778         * lib/spawn.in.h: Likewise.
10779         * lib/sys_socket.in.h: Update an URL.
10780         * lib/sys_stat.in.h: Break long line.
10781
10782 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10783
10784         Improve pmccabe2html.
10785         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10786         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10787         when the sources change. Remove the line in the HTML about "Used
10788         ranges" (which implied that there might be other unused ranges),
10789         rename "Resume" to "Summary" (easier to understand for more users).
10790         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10791         styles, and some unnecessary blank lines.
10792
10793 2010-10-03  Bruno Haible  <bruno@clisp.org>
10794             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10795
10796         acl: Add support for ACLs on NonStop Kernel.
10797         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10798         Check whether the function aclsort() exists.
10799         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10800         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10801         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10802         (acl_nontrivial [HAVE_ACLSORT]: New function.
10803         (file_has_acl): Implement for NonStop Kernel.
10804         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10805         (qset_acl): Implement for NonStop Kernel.
10806         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10807         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10808         (main): Implement for NonStop Kernel.
10809         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10810         Kernel. Handle this flavor.
10811         * tests/test-set-mode-acl.sh: Likewise.
10812         * tests/test-copy-acl.sh: Likewise.
10813         * tests/test-copy-file.sh: Likewise.
10814
10815 2010-10-03  Bruno Haible  <bruno@clisp.org>
10816
10817         Info about ACLs on NonStop Kernel.
10818         * doc/acl-resources.txt: Add info about NonStop Kernel.
10819         References by Joachim Schmitz <schmitz@hp.com>.
10820
10821 2010-10-02  Bruno Haible  <bruno@clisp.org>
10822
10823         Define missing EDQUOT on NonStop Kernel.
10824         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10825         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10826         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10827         missing.
10828         * doc/posix-headers/errno.texi: Mention the NSK bug.
10829         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10830         Reported by Joachim Schmitz <schmitz@hp.com>.
10831
10832 2010-10-02  Bruno Haible  <bruno@clisp.org>
10833
10834         Update doc for POSIX:2008.
10835         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10836         Update URL of POSIX specification.
10837
10838 2010-10-02  Bruno Haible  <bruno@clisp.org>
10839
10840         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10841         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10842         from gnulib, not from Automake.
10843
10844 2010-10-02  Bruno Haible  <bruno@clisp.org>
10845
10846         New module 'system-posix'.
10847         * modules/system-posix: New file.
10848         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10849         module is present.
10850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10851         GNULIB_SYSTEM_POSIX.
10852         * modules/stdlib (Depends-on): Remove sys_wait.
10853         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10854         * doc/posix-functions/system.texi: Mention the new module.
10855         * doc/posix-headers/stdlib.texi: Likewise.
10856         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10857         define test_sys_wait_macros to a no-op.
10858         Reported by Sam Steingold <sds@gnu.org>.
10859
10860 2010-09-30  Bruno Haible  <bruno@clisp.org>
10861
10862         More renaming from 'getdate' to 'get_date'.
10863         * doc/get_date.texi: Renamed from doc/getdate.texi.
10864         * modules/get_date (Files): Update.
10865         * MODULES.html.sh (Date and time <time.h>): Update.
10866         * DEPENDENCIES: Update.
10867         * gnulib-tool: Update comment.
10868         * m4/bison.m4 (gl_BISON): Likewise.
10869         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10870
10871 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10872
10873         bootstrap: support ACLOCAL_FLAGS during aclocal
10874         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10875         can add additional -I dir for third-party .m4 files.
10876
10877 2010-09-30  Eric Blake  <eblake@redhat.com>
10878
10879         bootstrap: use glibtoolize on MacOS
10880         * build-aux/bootstrap (check_versions): Convert libtool into
10881         libtoolize.
10882         (tool search): Move libtool check earlier, and look for
10883         glibtoolize for MacOS.
10884         (gnulib_tool_options): Auto-add --libtool when appropriate.
10885         Reported by Justin Clift.
10886
10887         poll: fix typo that broke test on MacOS
10888         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10889         Reported by Justin Clift.
10890
10891         getdate: rename to get_date
10892         Note: getdate.h is not renamed, to minimize client impact.
10893         * modules/getdate: Mark obsolete.  Move old contents...
10894         * modules/get_date: ...to new module name.
10895         * modules/getdate-tests: Move...
10896         * modules/get_date-tests: ...here.
10897         * m4/getdate.m4: Move...
10898         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10899         * lib/getdate.y: Move...
10900         * lib/get_date.y: ...here.
10901         * tests/test-getdate.c: Move...
10902         * tests/test-get_date.c: ...here.
10903         * doc/posix-functions/getdate.texi (getdate): Update name.
10904         * NEWS: Mention the change.
10905
10906 2010-09-29  Bruno Haible  <bruno@clisp.org>
10907
10908         Separate the module 'waitpid' from the module 'sys_wait'.
10909         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10910         present.
10911         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10912         gl_MODULE_INDICATOR_FOR_TESTS.
10913         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10914         * modules/sys_wait (Depends-on): Remove waitpid.
10915         (Makefile.am): Substitute GNULIB_WAITPID.
10916         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10917         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10918         signature only if the 'waitpid' module is present.
10919         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10920         * NEWS: Mention the change.
10921         * modules/grantpt (Depends-on): Add waitpid.
10922         * modules/wait-process (Depends-on): Likewise.
10923
10924 2010-09-29  Bruno Haible  <bruno@clisp.org>
10925
10926         More tests for module 'sys_wait'.
10927         * modules/sys_wait-c++-tests: New file.
10928         * tests/test-sys_wait-c++.cc: New file.
10929         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10930         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10931
10932 2010-09-29  Bruno Haible  <bruno@clisp.org>
10933
10934         New module 'waitpid'.
10935         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10936         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10937         Don't include <process.h>.
10938         (waitpid): Declare only, using modern idiom.
10939         * m4/waitpid.m4: New file.
10940         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10941         * modules/waitpid: New file.
10942         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10943         (Makefile.am): Update.
10944         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10945
10946 2010-09-28  Bruno Haible  <bruno@clisp.org>
10947
10948         poll: Assume ANSI C.
10949         * lib/poll.c (poll): Use an ANSI C declaration.
10950
10951 2010-09-28  Bruno Haible  <bruno@clisp.org>
10952
10953         poll-h: Create poll.h on all platforms.
10954         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10955         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10956         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10957         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10958         (gl_REPLACE_POLL_H): Don't set POLL_H.
10959         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10960         * modules/poll-h (Depends-on): Add include_next.
10961         (Makefile.am): Create poll.h unconditionally. Substitute also
10962         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10963
10964 2010-09-28  Bruno Haible  <bruno@clisp.org>
10965
10966         Tests for module 'poll-h'.
10967         * modules/poll-h-c++-tests: New file.
10968         * tests/test-poll-h-c++.cc: New file.
10969
10970         Tests for module 'poll-h'.
10971         * modules/poll-h-tests: New file.
10972         * tests/test-poll-h.c: New file.
10973
10974 2010-09-28  Bruno Haible  <bruno@clisp.org>
10975
10976         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10977         * modules/poll-h (Depends-on): Add 'extensions'.
10978
10979 2010-09-28  Bruno Haible  <bruno@clisp.org>
10980
10981         New module 'poll-h'.
10982         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10983         (poll): Use modern idiom.
10984         * modules/poll-h: New file.
10985         * modules/poll (Files): Remove lib/poll.in.h.
10986         (Depends-on): Add poll-h.
10987         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10988         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10989         * m4/poll_h.m4: New file.
10990         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10991         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10992         and invoke gl_REPLACE_POLL_H.
10993         * lib/poll.c: Use common idiom.
10994         * tests/test-poll.c: Likewise.
10995         * doc/posix-headers/poll.texi: Mention the poll-h module.
10996         Suggested by Eric Blake.
10997
10998 2010-09-26  Bruno Haible  <bruno@clisp.org>
10999
11000         sys_wait: Implement WSTOPSIG.
11001         * lib/sys_wait.in.h (WSTOPSIG): New macro.
11002         Reported by Simon Josefsson.
11003
11004 2010-09-26  Simon Josefsson  <simon@josefsson.org>
11005
11006         stdlib, sys_wait: Avoid compilation error on mingw.
11007         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
11008
11009 2010-09-26  Bruno Haible  <bruno@clisp.org>
11010
11011         stdlib tests: Avoid code duplication.
11012         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
11013         * modules/sys_wait-tests (Files): Likewise.
11014         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
11015         * tests/test-stdlib.c: Include test-sys_wait.h.
11016         (main): Invoke test_sys_wait_macros.
11017         * tests/test-sys_wait.c: Include test-sys_wait.h.
11018         (main): Invoke test_sys_wait_macros.
11019
11020 2010-09-25  Simon Josefsson  <simon@josefsson.org>
11021
11022         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
11023         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
11024         sure Windows sockets are working before calling getaddrinfo.
11025         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
11026         * doc/gnulib.texi (Windows sockets): Fix typo.
11027
11028 2010-09-25  Bruno Haible  <bruno@clisp.org>
11029
11030         Tests for module 'regex-quote'.
11031         * modules/regex-quote-tests: New file.
11032         * tests/test-regex-quote.c: New file.
11033
11034         New module 'regex-quote'.
11035         * lib/regex-quote.h: New file.
11036         * lib/regex-quote.c: New file.
11037         * modules/regex-quote: New file.
11038         Suggested by Reuben Thomas <rrt@sc3d.org>.
11039
11040 2010-09-24  Bruno Haible  <bruno@clisp.org>
11041
11042         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
11043         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
11044
11045 2010-09-23  Bruno Haible  <bruno@clisp.org>
11046
11047         setenv: Relax license.
11048         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
11049         Blake.
11050         Requested by Eric Blake.
11051
11052 2010-09-22  Bruno Haible  <bruno@clisp.org>
11053
11054         termios: Relax license.
11055         * modules/termios (License): Change to LGPLv2+.
11056         Requested by Eric Blake.
11057
11058 2010-09-22  Bruno Haible  <bruno@clisp.org>
11059
11060         threadlib: Allow the package to change the default to 'no'.
11061         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
11062         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
11063         Reported by Paul Eggert.
11064
11065 2010-09-22  Pádraig Brady  <P@draigbrady.com>
11066             Bruno Haible  <bruno@clisp.org>
11067
11068         Fix endless loop in mbmemcasecoll.
11069         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
11070         byte.
11071         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
11072
11073 2010-09-22  Bruno Haible  <bruno@clisp.org>
11074
11075         Tests for module 'memcoll'.
11076         * modules/memcoll-tests: New file.
11077         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
11078
11079         memcoll, xmemcoll: Clarify size vs. length.
11080         * modules/memcoll.c (memcoll0): Clarify specification.
11081         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
11082         passed to collate_error.
11083
11084 2010-09-22  Bruno Haible  <bruno@clisp.org>
11085
11086         Tests for module 'memcasecmp'.
11087         * modules/memcasecmp-tests: New file.
11088         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
11089
11090 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11091
11092         * lib/pthread.in.h: Add split double-inclusion guard, and include
11093         system <pthread.h> if there is one.  Use @@-style as in other
11094         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
11095         pthread.h doesn't.
11096         (pthread_mutexattr_destroy, pthread_mutexattr_init):
11097         (pthread_mutexattr_settype, pthread_mutex_trylock):
11098         New static inline functions, if there's no system <pthread.h>.
11099         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
11100         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
11101         Approximate with mutexes if the system lacks spinlocks, as in
11102         MacOS.
11103         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
11104         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
11105         @@-style.  Check for spinlocks separately.
11106         (gl_PTHREAD_DEFAULTS): New macro.
11107         * modules/pthread: Redo to use a more typical style for in.h files.
11108
11109 2010-09-21  Eric Blake  <eblake@redhat.com>
11110
11111         net_if: enhance tests
11112         * tests/test-net_if.c (main): Move signature checks earlier.
11113         Print failures to stderr.
11114         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
11115         Document the bug that we do not yet fix.
11116
11117 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11118
11119         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
11120         about gnulib, not GSS.
11121
11122 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
11123
11124         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
11125         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
11126         for Emacs.
11127         * build-aux/pmccabe2html: Make Makefile.am example code more
11128         cut-and-paste friendly.
11129
11130 2010-09-21  Simon Josefsson  <simon@josefsson.org>
11131
11132         * tests/test-net_if.c: New file.
11133         * modules/net_if-tests: New file.
11134
11135 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
11136
11137         pthread: add pthread_spin_destroy
11138         * lib/pthread.in.h (pthread_spin_destroy): New function.
11139
11140 2010-09-19  Bruno Haible  <bruno@clisp.org>
11141
11142         gnulib-tool: Fix --help output.
11143         * gnulib-tool (func_usage): Fix help message.
11144         Reported by Reuben Thomas <rrt@sc3d.org>.
11145
11146 2010-09-18  Jim Meyering  <meyering@redhat.com>
11147
11148         maint.mk: avoid unexpanded \n in two diagnostics
11149         * top/maint.mk (sc_prohibit_always_true_header_tests):
11150         Don't use a literal \n in a halt=... assignment.  It would not be
11151         expanded, and the two \n bytes would appear in the diagnostic output
11152         rather than the desired newline.  Use halt=$$(printf ... instead.
11153         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
11154
11155 2010-09-18  Bruno Haible  <bruno@clisp.org>
11156
11157         netinet_in: Doc tweak.
11158         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
11159         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11160
11161 2010-09-18  Jim Meyering  <meyering@redhat.com>
11162
11163         init.sh: correct an outdated comment
11164         * tests/init.sh (create_exe_shims_):  s/function/alias/
11165
11166         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
11167         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
11168         a file named "*.exe" is removed between the glob expansion and the
11169         processing of that oddly named file.
11170
11171 2010-09-17  Eric Blake  <eblake@redhat.com>
11172
11173         mirbsd: add some more support
11174         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
11175         in BSD family.
11176         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
11177         devices as OpenBSD.
11178         * m4/host-os.m4 (mirbsd): Add MirBSD.
11179
11180         tests: fix unportable assumption on sys/wait.h
11181         * tests/test-sys_wait.c (main): Relax test.
11182         * tests/test-stdlib.c (main): Likewise.
11183
11184         init.sh: accomodate directory with no .exes
11185         * tests/init.sh: Accomodate directory containing only scripts.
11186
11187         tests: avoid compiler warning
11188         * tests/test-stdlib.c (main): Use the variable.
11189
11190         fdutimens, fdutimensat: update signature, again
11191         * lib/utimens.h (gl_futimens): Delete, and move signature...
11192         (fdutimens): ...here.
11193         (fdutimensat): Rearrange signature.
11194         (lutimensat): Rename variable for clarity.
11195         * lib/fdutimensat.c (fdutimensat): Update signature.
11196         * lib/utimens.c (fdutimens): Likewise.
11197         (gl_futimens): Delete.
11198         (utimens, lutimens): Update callers.
11199         * lib/futimens.c (futimens): Likewise.
11200         * tests/test-fdutimensat.c: Likewise.
11201         * tests/test-utimens.c: Likewise.
11202         * tests/test-futimens.h: Update comment.
11203         * NEWS: Mention this.
11204         Suggested by Paul Eggert.
11205
11206 2010-09-17  Bruno Haible  <bruno@clisp.org>
11207
11208         Take over the maintenance of some older macros from Autoconf.
11209         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
11210         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
11211         GNU Autoconf.
11212         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
11213         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11214
11215 2010-09-17  Eric Blake  <eblake@redhat.com>
11216
11217         fdutimensat: drop atflag validation
11218         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11219         with valid fd, to close a race scenario where futimens is
11220         unsupported and FILE was replaced by a symlink.
11221         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11222         accordingly.
11223         Suggested by Paul Eggert.
11224
11225 2010-09-16  Bruno Haible  <bruno@clisp.org>
11226
11227         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11228         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11229
11230 2010-09-16  Bruno Haible  <bruno@clisp.org>
11231
11232         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11233         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11234         login_tty exists.
11235         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11236
11237 2010-09-16  Bruno Haible  <bruno@clisp.org>
11238
11239         login_tty: Make the replacement code work on BSD systems.
11240         * lib/login_tty.c: Include <sys/ioctl.h>.
11241         (login_tty): Use ioctl TIOCSCTTY when available.
11242         * modules/login_tty (Depends-on): Add sys_ioctl.
11243         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11244
11245 2010-09-16  Bruno Haible  <bruno@clisp.org>
11246
11247         login_tty: Stricter unit test.
11248         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11249         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11250         and tcgetsid() after login_tty.
11251         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11252
11253 2010-09-16  Bruno Haible  <bruno@clisp.org>
11254
11255         New module 'tcgetsid'.
11256         * lib/tcgetsid.c: New file.
11257         * m4/tcgetsid.m4: New file.
11258         * modules/tcgetsid: New file.
11259         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11260         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11261         GNULIB_TCGETSID, HAVE_TCGETSID.
11262         * lib/termios.in.h: Include <sys/types.h>.
11263         (tcgetsid): New declaration.
11264         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11265         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11266         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11267         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11268
11269 2010-09-16  Bruno Haible  <bruno@clisp.org>
11270
11271         Tests for module 'termios'.
11272         * modules/termios-c++-tests: New file.
11273         * modules/termios-tests: New file.
11274         * tests/test-termios-c++.cc: New file.
11275         * tests/test-termios.c: New file.
11276
11277         New module 'termios'.
11278         * modules/termios: New file.
11279         * lib/termios.in.h: New file.
11280         * m4/termios_h.m4: New file.
11281         * doc/posix-headers/termios.texi: Mention the new module.
11282
11283 2010-09-16  Eric Blake  <eblake@redhat.com>
11284
11285         fdutimensat: add an atflag parameter
11286         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11287         * lib/utimens.h (fdutimensat): Update prototype.
11288         * tests/test-fdutimensat.c: Adjust test to match.
11289         * NEWS: Document the change.
11290         Suggested by Paul Eggert.
11291
11292 2010-09-16  Bruno Haible  <bruno@clisp.org>
11293
11294         Fix typos in comments.
11295         * lib/striconveh.h: Fix typo in comment.
11296         * lib/login_tty.c (login_tty): Likewise.
11297
11298 2010-09-15  Bruno Haible  <bruno@clisp.org>
11299
11300         stdlib: clarify MirBSD WEXITSTATUS bug
11301         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11302         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11303
11304 2010-09-15  Eric Blake  <eblake@redhat.com>
11305
11306         stdlib: work around MirBSD WEXITSTATUS bug
11307         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11308         * modules/stdlib (Depends-on): Add sys_wait.
11309         * tests/test-sys_wait.c (main): Enhance test.
11310         * tests/test-stdlib.c (main): Likewise.
11311         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11312
11313         docs: mention MacOS issue with WEXITSTATUS(constant)
11314         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11315         issue.
11316         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11317
11318         strnlen: add tests
11319         * modules/strnlen-tests: New file.
11320         * tests/test-strnlen.c: Likewise.
11321
11322 2010-09-14  Bruno Haible  <bruno@clisp.org>
11323
11324         unistr/base: Avoid link errors when module 'libunistring' is also used.
11325         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11326         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11327         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11328         Declare also when HAVE_LIBUNISTRING is set.
11329         Reported by Pádraig Brady <P@draigbrady.com>.
11330
11331 2010-09-14  Eric Blake  <eblake@redhat.com>
11332
11333         test-rawmemchr: make more robust
11334         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11335         (Depends-on, configure.ac): Add needed prerequisites to use it.
11336         * modules/memchr-tests (Files, Depends-on, configure.ac):
11337         Likewise, to avoid implicit reliance on memchr module prereqs.
11338         * tests/test-memchr.c (main): Ensure proper masking.
11339         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11340         reads.
11341
11342         memchr: detect glibc Alpha bug
11343         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11344         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11345         Alpha.
11346         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11347         * tests/test-memchr.c (main): Enhance test.
11348         Reported by Nelson H. F. Beebe.
11349
11350 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11351
11352         fts, getcwd, glob: audit for dirfd returning -1
11353         * lib/fts.c (opendir): Remove #define; no longer used.
11354         (opendirat): New arg PDIR_FD.  All callers changed.
11355         (fts_build, _opendir2): Use new opendirat to avoid the need for
11356         dirfd, or for checking whether dirfd returns a negative value.
11357         Don't use opendir; always use openat followed by fdopendir.
11358         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11359         it.
11360         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11361         returns -1 here.
11362         * modules/fts (Depends-on): Remove dirfd.
11363         * modules/getcwd (Depends-on): Likewise.
11364
11365 2010-09-13  Eric Blake  <eblake@redhat.com>
11366
11367         float: fix broken MirBSD header
11368         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11369         * doc/posix-headers/float.texi (float.h): Document it.
11370
11371 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11372
11373         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11374         * lib/fts.c (opendirat): New arg extra_flags.
11375         (__opendir2): Use it to avoid following symlinks when opening
11376         a directory, if symlinks are not supposed to be followed.  See
11377         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11378
11379         fdopendir: preserve argument fd before returning
11380         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11381         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11382         (fdopendir): Use them, arranging for FD to be open to the same
11383         directory that it was when it started.  (It might be temporarily
11384         closed while fdopendir is running, so this not thread- or
11385         signal-safe.)  Be careful to do the right thing even when file
11386         descriptors are scarce and dup fails with errno == EMFILE.  See
11387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11388
11389 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11390
11391         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11392         * NEWS: Document change.
11393         * m4/regex.m4: Disable test for regoff_t size.
11394
11395 2010-09-13  Jim Meyering  <meyering@redhat.com>
11396
11397         fts: don't operate on an invalid file descriptor after failed dup
11398         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11399         negative file descriptor.
11400
11401 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         savedir: add streamsavedir, deprecate fdsavedir
11404         * NEWS: Mention deprecation of fdsavedir.
11405         * lib/savedir.c (streamsavedir): New extern function, whose name
11406         ends in "savedir" to be consistent with the others.  This differs
11407         from savedirstream in that it doesn't close its argument.  The
11408         next version of GNU tar will use this instead of fdsavedir, to
11409         avoid some race conditions and conserve file descriptors.
11410         (savedirstream): Reimplement as a wrapper around streamsavedir.
11411         (fdsavedir): Add a comment deprecating this function.  As far as
11412         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11413         * lib/savedir.h (streamsavedir): New decl.
11414         (fdsavedir): Add a comment deprecating this.
11415
11416 2010-09-10  Bruno Haible  <bruno@clisp.org>
11417
11418         langinfo: Fix last commit.
11419         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11420         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11421         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11422
11423 2010-09-10  Bruno Haible  <bruno@clisp.org>
11424
11425         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11426         * lib/progreloc.c (O_EXEC): Define fallback.
11427
11428 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11429
11430         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11431         * NEWS: Document recent changes to fcntl-h.
11432         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11433         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11434         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11435         Similarly for O_SEARCH; this last was already true, but not documented.
11436         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11437         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11438         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11439         Likewise.
11440         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11441         is zero, not whether it is defined.
11442         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11443         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11444         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11445
11446 2010-09-10  Bruno Haible  <bruno@clisp.org>
11447
11448         langinfo, nl_langinfo: Fix for IRIX 5.3.
11449         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11450         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11451         HAVE_LANGINFO_YESEXPR.
11452         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11453         HAVE_LANGINFO_YESEXPR.
11454         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11455         HAVE_LANGINFO_T_FMT_AMPM is 0.
11456         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11457         HAVE_LANGINFO_YESEXPR is 0.
11458         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11459         NOEXPR.
11460         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11461         * doc/posix-functions/nl_langinfo.texi: Likewise.
11462         Reported by Eric Blake.
11463
11464 2010-09-10  Bruno Haible  <bruno@clisp.org>
11465
11466         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11467         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11468         on FreeBSD 8.0 and OpenBSD 4.6.
11469         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11470         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11471         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11472         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11473         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11474         ac_includes_default.
11475         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11476
11477 2010-09-09  Eric Blake  <eblake@redhat.com>
11478
11479         strsignal: work around NetBSD bug
11480         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11481         * lib/string.in.h (includes): Likewise.
11482         * doc/posix-functions/strsignal.texi (strsignal): Document the
11483         bug.
11484         Reported by Nelson H. F. Beebe.
11485
11486         gnulib-tool: work with NetBSD /bin/sh
11487         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11488         (func_get_description, func_get_comment, func_get_status)
11489         (func_get_notice, func_get_applicability, func_get_filelist)
11490         (func_get_dependencies, func_get_autoconf_early_snippet)
11491         (func_get_autoconf_snippet, func_get_automake_snippet)
11492         (func_get_include_directive, func_get_link_directive)
11493         (func_get_license, func_get_maintainer, func_import): Avoid
11494         shell syntax errors from parsing syntax extensions.
11495
11496 2010-09-09  Bruno Haible  <bruno@clisp.org>
11497
11498         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11499         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11500         a reliable way to determine whether the 'alias' command works.
11501
11502 2010-09-08  Jim Meyering  <meyering@redhat.com>
11503
11504         init.sh: penalize a set-x-impaired shell; don't disqualify it
11505         * tests/init.sh: Too many shells corrupt application stderr when
11506         you set -x, so we can't afford to disqualify them, since at least
11507         on Irix-6.5, that would disqualify all bourne shells.
11508         Instead, use a two-pass approach.
11509         On the first pass, try to find a shell that meets the stricter
11510         condition that set -x does not corrupt stderr.
11511         If no shell meets the stricter condition, retest each candidate
11512         shell, but without that extra condition.  Finally, when
11513         VERBOSE=yes is requested and set -x might cause trouble, simply
11514         issue a warning and refrain from enabling debug output.
11515
11516 2010-09-08  Eric Blake  <eblake@redhat.com>
11517
11518         unsetenv: fix OpenBSD bug
11519         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11520         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11521         documentation.
11522         Reported by Jim Meyering.
11523
11524         strtod: work around IRIX 6.5 bug
11525         * lib/strtod.c (strtod): Reparse number on shorter string if
11526         exponent parse was invalid.
11527         * tests/test-strtod.c (main): Add check for "0x1p 2".
11528         Reported by Tom G. Christensen.
11529
11530         getopt: optimize previous patch
11531         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11532         empty variable.  Speed up awk script.
11533         Reported by Paolo Bonzini.
11534
11535 2010-09-08  Jim Meyering  <meyering@redhat.com>
11536
11537         test.sh: disqualify shells for which set -x corrupts stderr
11538         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11539         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11540         appear in stderr output.  For example, this command:
11541             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11542         prints "P=1" on those two systems:
11543
11544 2010-09-08  Bruno Haible  <bruno@clisp.org>
11545
11546         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11547         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11548         commands, because some shells ignore redirections when there is an
11549         error in the command lookup.
11550         Reported by Eric Blake.
11551
11552 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11553
11554         * lib/regex.h: Fix a mention of `regex_compile' (should be
11555         `re_compile_pattern').
11556         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11557         (re_set_registers): Correct name of parameter in comment.
11558
11559         * doc/regex.texi: Add documentation for missing syntax flags.
11560         Remove commented-out documentation of defunct syntax option
11561         RE_NO_EMPTY_ALTS.
11562         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11563         Add documentation of re_set_registers.
11564         Document trick to re-use a pattern buffer by setting fastmap manually.
11565         Update documentation of struct re_pattern_buffer per public members.
11566         Uncomment documentation of equivalence class operators and
11567         collating symbol operators, since they are now implemented,
11568         Explain leftmost-longest matching in relation to alternatives.
11569         Tidy documentation of substring matching.
11570         Remove POSIX documentation, which is done better in
11571         glibc, and refer the reader there. Keep BSD API documentation, as
11572         that is not readily available elsewhere.
11573
11574 2010-09-07  Eric Blake  <eblake@redhat.com>
11575
11576         getopt: handle POSIXLY_CORRECT set but not exported
11577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11578         export state of POSIXLY_CORRECT, due to bash set -o posix.
11579         Reported by Dustin J. Mitchell.
11580
11581 2010-09-05  Bruno Haible  <bruno@clisp.org>
11582
11583         gnulib-tool: Highlight the changed options.
11584         * gnulib-tool (func_usage): Display the --import, --add-import,
11585         --remove-import explanations in bold font.
11586
11587 2010-09-06  Karl Berry  <karl@gnu.org>
11588
11589         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11590
11591 2010-09-05  Bruno Haible  <bruno@clisp.org>
11592
11593         uniwidth/width: Update comment.
11594         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11595         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11596
11597 2010-09-05  Bruno Haible  <bruno@clisp.org>
11598
11599         isinf, isnan: Relax license.
11600         * modules/isinf (License): Change from GPL to LGPL, with consent from
11601         Ben Pfaff.
11602         * modules/isnan (License): Likewise.
11603         Requested by Ludovic Courtès.
11604
11605 2010-09-04  Bruno Haible  <bruno@clisp.org>
11606
11607         gnulib-tool: Help migration from --import to --add-import or --update.
11608         * gnulib-tool: Emit a verbose error message when --import is used
11609         without any module name.
11610
11611 2010-09-04  Bruno Haible  <bruno@clisp.org>
11612
11613         Update doc about gnulib-tool.
11614         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11615         'gnulib-tool --update' in more detail.
11616         Reported by Eric Blake.
11617
11618 2010-09-04  Bruno Haible  <bruno@clisp.org>
11619
11620         gnulib-tool: Change --import. New options --add/remove-import.
11621         * gnulib-tool: New options --add-import, --remove-import.
11622         (func_usage): Document them.
11623         (have_associative): Define always.
11624         (func_import): In import mode, don't merge the specified settings with
11625         the cached settings. Implement remove-import mode.
11626         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11627         Explain when to use them versus --import.
11628         (Simple update): Use --add-import instead of --import.
11629         * NEWS: Mention the change.
11630
11631 2010-09-04  Bruno Haible  <bruno@clisp.org>
11632
11633         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11634         separate gnulib.mk.
11635
11636 2010-09-04  Bruno Haible  <bruno@clisp.org>
11637
11638         gnulib-tool: Don't talk about CVS any more.
11639         * gnulib-tool (func_usage, func_import): Write "version control"
11640         instead of CVS.
11641
11642 2010-09-04  Jim Meyering  <meyering@redhat.com>
11643
11644         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11645         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11646         false positives (whose names may be ill-chosen) when searching
11647         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11648         would cause a false-positive.
11649
11650         avoid coreutils "make distcheck" failure
11651         Coreutils tests with an absolute build directory name that contains
11652         a space.  Not quoting this directory name caused a failure.
11653         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11654         * tests/test-vc-list-files-cvs.sh: Likewise.
11655
11656 2010-09-04  Bruno Haible  <bruno@clisp.org>
11657
11658         gnulib-tool: Avoid error when run in a package without Makefile.am.
11659         * gnulib-tool: When collecting the m4dirs in a package that does not
11660         have a Makefile.am, eliminate those directories that contain no
11661         gnulib-cache.m4. Fix expression that counts these directories.
11662
11663 2010-09-04  Bruno Haible  <bruno@clisp.org>
11664
11665         update-copyright test: Improve output when perl is missing or too old.
11666         * tests/test-update-copyright.sh: Move test of Perl version down after
11667         the test whether Perl exists. Provide an explanation relating Perl's
11668         error message to Automake's SKIP: message.
11669
11670 2010-09-04  Bruno Haible  <bruno@clisp.org>
11671
11672         Don't augment PATH in TESTS_ENVIRONMENT.
11673         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11674         set abs_aux_dir instead of augmenting PATH.
11675         * modules/vc-list-files-tests (Makefile.am): Likewise.
11676         * tests/test-update-copyright.sh: Augment PATH here.
11677         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11678         path_prepend_.
11679         * tests/test-vc-list-files-git.sh: Likewise.
11680
11681 2010-09-04  Jim Meyering  <meyering@redhat.com>
11682
11683         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11684         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11685
11686 2010-09-04  Bruno Haible  <bruno@clisp.org>
11687
11688         strdup: Fix compilation error in C++ mode.
11689         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11690         the macro.
11691
11692 2010-09-04  Bruno Haible  <bruno@clisp.org>
11693
11694         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11695         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11696         macro into a function.
11697         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11698
11699 2010-09-04  Bruno Haible  <bruno@clisp.org>
11700
11701         Set PATH_SEPARATOR the same way autoconf does.
11702         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11703         the value of PATH_SEPARATOR the same way autoconf-generated configure
11704         scripts do.
11705         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11706         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11707
11708 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11709
11710         Set PATH_SEPARATOR the same way autoconf does.
11711         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11712         the same way autoconf-generated configure scripts do.
11713         * posix-modules: Likewise.
11714
11715 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11716
11717         hash: fix safe_hasher const typo
11718         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11719         const; otherwise, there is a type error later.
11720
11721 2010-09-02  Jim Meyering  <meyering@redhat.com>
11722
11723         test-update-copyright.sh: require perl 5.8.0
11724         * tests/test-update-copyright.sh: Require 5.8.0,
11725         which Tom G. Christensen has confirmed is adequate,
11726         while 5.6.1 is not.
11727
11728 2010-09-02  Eric Blake  <eblake@redhat.com>
11729
11730         tests: init.sh improvements for re-exec'ing with zsh
11731         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11732         -vx through shell re-exec.
11733         Reported by Tom G. Christensen.
11734
11735         wctype: fix typo in previous commit
11736         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11737         Reported by Ludovic Courtès.
11738
11739 2010-09-02  Jim Meyering  <meyering@redhat.com>
11740
11741         test-update-copyright.sh: skip test if Perl is too old
11742         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11743         Reported by Tom G. Christensen.
11744
11745 2010-09-02  Bruno Haible  <bruno@clisp.org>
11746
11747         wctype: Avoid compilation error on IRIX 6.5.30.
11748         * lib/wctype.in.h (iswblank): Declare with a replacement if
11749         REPLACE_ISWBLANK is set.
11750         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11751         declared. Set REPLACE_ISWBLANK.
11752         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11753         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11754         * doc/posix-headers/wctype.texi: Likewise.
11755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11756
11757 2010-09-01  Bruno Haible  <bruno@clisp.org>
11758
11759         New module 'socketlib'.
11760         * modules/socketlib: New file.
11761         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11762         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11763         * modules/sockets (Depends-on): Add socketlib.
11764         Suggested by Sam Steingold <sds@gnu.org>.
11765
11766 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11767
11768         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11769
11770         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11771         when one needs search access to a directory but not read access.
11772         On systems where it is available, it works in some cases where
11773         O_RDONLY does not, namely on directories that are searchable but
11774         not readable, and which need only to be searchable.  If O_SEARCH
11775         is not available, fall back to the traditional method of using
11776         O_RDONLY.
11777
11778         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11779         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11780         when opening a directory that needs only to be searchable.
11781         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11782         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11783         * lib/openat-proc.c (openat_proc_name): Likewise.
11784         * lib/openat.c (openat_needs_fchdir): Likewise.
11785         * lib/save-cwd.c (save_cwd): Likewise.
11786         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11787
11788 2010-08-28  Bruno Haible  <bruno@clisp.org>
11789
11790         New module 'host-cpu-c-abi'.
11791         * modules/host-cpu-c-abi: New file.
11792         * m4/host-cpu-c-abi.m4: New file, based on part of
11793         clisp/src/m4/general.m4.
11794         Requested by Sam Steingold <sds@gnu.org>.
11795
11796 2010-08-31  Eric Blake  <eblake@redhat.com>
11797         and Jim Meyering  <meyering@redhat.com>
11798
11799         hash: factor, and guard against misbehaving hasher function
11800         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11801         of table->hasher's return value.  Also protect against a hash value
11802         so large that adding it to table->bucket results in a NULL pointer.
11803         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11804         Use it in place of open-coded check-and-abort.
11805
11806 2010-08-30  Bruno Haible  <bruno@clisp.org>
11807
11808         hash: silence spurious clang warning
11809         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11810         Reported by Eric Blake.
11811
11812 2010-08-30  Eric Blake  <eblake@redhat.com>
11813
11814         strstr, memmem, strcasestr: avoid leaked shell message
11815         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11816         FreeBSD.
11817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11818         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11819
11820         tests: silence clang warning
11821         * tests/test-malloca.c (do_allocation): Avoid dead store.
11822
11823 2010-08-29  Bruno Haible  <bruno@clisp.org>
11824
11825         gettext: Fix recent mistake.
11826         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11827
11828 2010-08-29  Bruno Haible  <bruno@clisp.org>
11829
11830         selinux-h: Offer a --without-selinux option.
11831         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11832         --without-selinux was specified, skip all tests and define
11833         HAVE_SELINUX_SELINUX_H to 0.
11834         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11835         set LIB_SELINUX to empty.
11836         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11837         gl_LIBSELINUX. If --without-selinux was specified, replace
11838         selinux/context.h.
11839         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11840
11841 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11842             Bruno Haible  <bruno@clisp.org>
11843
11844         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11845         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11846         of HAVE_REALLOC.
11847         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11848         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11849         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11850         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11851
11852 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11853             Bruno Haible  <bruno@clisp.org>
11854
11855         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11856         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11857         HAVE_CALLOC.
11858         * lib/xmalloc.c: Update accordingly.
11859         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11860         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11861         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11862
11863 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11864             Bruno Haible  <bruno@clisp.org>
11865
11866         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11867         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11868         HAVE_MALLOC.
11869         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11870         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11871         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11872
11873 2010-08-29  Bruno Haible  <bruno@clisp.org>
11874
11875         Update modules list.
11876         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11877         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11878         (String handling <string.h>): Add astrxfrm.
11879         (File system functions): Add readlinkat.
11880
11881 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11882
11883         Tests for module 'realloc-gnu'.
11884         * modules/realloc-gnu-tests: New file.
11885         * tests/test-realloc-gnu.c: New file.
11886
11887         Tests for module 'calloc-gnu'.
11888         * modules/calloc-gnu-tests: New file.
11889         * tests/test-calloc-gnu.c: New file.
11890
11891         Tests for module 'malloc-gnu'.
11892         * modules/malloc-gnu-tests: New file.
11893         * tests/test-malloc-gnu.c: New file.
11894
11895 2010-08-28  Bruno Haible  <bruno@clisp.org>
11896
11897         Rename module 'realloc' -> 'realloc-gnu'.
11898         * modules/realloc-gnu: New file, copied from modules/realloc.
11899         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11900         obsolete.
11901         * modules/mgetgroups (Depends-on): Update.
11902         * doc/posix-functions/realloc.texi: Update.
11903         * NEWS: Mention the change.
11904
11905         Rename module 'calloc' -> 'calloc-gnu'.
11906         * modules/calloc-gnu: New file, copied from modules/calloc.
11907         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11908         obsolete.
11909         * doc/posix-functions/calloc.texi: Update.
11910         * NEWS: Mention the change.
11911
11912         Rename module 'malloc' -> 'malloc-gnu'.
11913         * modules/malloc-gnu: New file, copied from modules/malloc.
11914         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11915         obsolete.
11916         * modules/argp (Depends-on): Update.
11917         * modules/regex (Depends-on): Update.
11918         * doc/posix-functions/malloc.texi: Update.
11919         * NEWS: Mention the change.
11920
11921 2010-08-28  Eric Blake  <eblake@redhat.com>
11922
11923         pread, pwrite: add missing dependency
11924         * modules/pread (Depends-on): Add extensions.
11925         * modules/pwrite (Depends-on): Likewise.
11926
11927 2010-08-28  Bruno Haible  <bruno@clisp.org>
11928
11929         unistr/u*-strchr: Fix tests dependencies.
11930         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11931         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11932         Reported by Ian Beckwith <ianb@erislabs.net>.
11933
11934 2010-08-28  Bruno Haible  <bruno@clisp.org>
11935
11936         read-file: Don't occupy too much unused memory.
11937         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11938
11939 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11940             Eric Blake  <eblake@redhat.com>
11941             Bruno Haible  <bruno@clisp.org>
11942
11943         read-file: Avoid memory reallocations with regular files.
11944         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11945         (fread_file): With regular files, use the remaining length as the
11946         initial buffer size.  Check against overflow.
11947         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11948         sys_stat.
11949
11950 2010-08-28  Bruno Haible  <bruno@clisp.org>
11951
11952         ftello: Relax license.
11953         * modules/ftello (License): Relax to LGPLv2+.
11954         Reported by Eric Blake.
11955
11956 2010-08-28  Bruno Haible  <bruno@clisp.org>
11957
11958         Avoid relocwrapper link errors due to gnulib replacement functions.
11959         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11960         function.
11961         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11962
11963 2010-08-28  Bruno Haible  <bruno@clisp.org>
11964
11965         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11966         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11967         defined.
11968         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11969         Suggested by Eric Blake.
11970
11971 2010-08-28  Bruno Haible  <bruno@clisp.org>
11972
11973         sys_socket, netdb: Ensure socklen_t gets defined.
11974         * modules/sys_socket (Depends-on): Add socklen.
11975         * modules/netdb (Depends-on): Likewise.
11976         * modules/getaddrinfo (Depends-on): Remove socklen.
11977         * modules/getsockopt (Depends-on): Likewise.
11978         * modules/setsockopt (Depends-on): Likewise.
11979         * tests/test-sys_socket.c: Check that socklen_t is defined.
11980         * tests/test-netdb.c: Likewise.
11981         * m4/socklen.m4: Update comments.
11982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11983
11984 2010-08-27  Eric Blake  <eblake@redhat.com>
11985
11986         login_tty: add missing dependency
11987         * modules/login_tty (Depends-on): Add pty.
11988
11989 2010-08-26  Eric Blake  <eblake@redhat.com>
11990
11991         lib-symbol-versions: fix m4 quoting
11992         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11993         format for AC_LINK_IFELSE.
11994
11995         glob: fix compile test
11996         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11997
11998         btowc: fix missing file
11999         * modules/btowc (Files): Also ship locale-fr.m4.
12000
12001         lseek: fix link test
12002         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
12003         AC_LINK_IFELSE.
12004
12005         include_next: silence autoconf 2.68 warning
12006         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
12007         AC_COMPILE_IFELSE as special.
12008         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
12009         autoconf < 2.68.
12010
12011         acl: fix compilation test
12012         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
12013         AC_COMPILE_IFELSE.
12014
12015 2010-08-26  Bruno Haible  <bruno@clisp.org>
12016
12017         Modernize AC_TRY_RUN invocations.
12018         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
12019         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
12020         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
12021         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
12022         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12023         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12024         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
12026         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12027         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12028         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
12029         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12030         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12031         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12032         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12033         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12034         gl_MBRLEN_NUL_RETVAL): Likewise.
12035         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12036         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12037         Likewise.
12038         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12039         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
12040         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12041         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12042         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12043         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12044         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
12045         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12046         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
12047         Likewise.
12048         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12049         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
12050         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12051         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12052         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12053         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
12054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12055         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
12056         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12058
12059 2010-08-26  Bruno Haible  <bruno@clisp.org>
12060
12061         Modernize AC_TRY_LINK invocations.
12062         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
12063         AC_TRY_LINK.
12064         * m4/argp.m4 (gl_ARGP): Likewise.
12065         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12066         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12067         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
12068         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12069         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12070         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
12071         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12072         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12073         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12074         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12075         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12076         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
12077         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
12078         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12079         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12080         * m4/hostent.m4 (gl_HOSTENT): Likewise.
12081         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
12082         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
12083         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12084         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
12085         Likewise.
12086         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
12087         Likewise.
12088         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
12089         Likewise.
12090         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12091         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
12092         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
12093         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12094         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12095         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12096         * m4/servent.m4 (gl_SERVENT): Likewise.
12097         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12098         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12099         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12100         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12101         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12102         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12103         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12104         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12105         * modules/tsearch-tests (configure.ac): Likewise.
12106
12107 2010-08-26  Bruno Haible  <bruno@clisp.org>
12108
12109         Modernize AC_TRY_COMPILE invocations.
12110         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
12111         AC_TRY_COMPILE.
12112         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
12113         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
12114         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12115         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12116         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12117         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12118         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
12119         * m4/lock.m4 (gl_LOCK): Likewise.
12120         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
12121         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12122         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
12123         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12124         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12125         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
12126         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12127         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
12128         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12129         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12130         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12131         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12132         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
12133         extraneous semicolon.
12134
12135 2010-08-26  Jim Meyering  <meyering@redhat.com>
12136
12137         stat-time: relax license LGPL
12138         * modules/stat-time (License): Change from GPL to LGPL,
12139         with consent from all contributors, for use in libguile.
12140         Requested by Ludovic Courtès.
12141
12142 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
12143
12144         poll: return immediately on POLLHUP.
12145         * lib/poll.c (poll): Always set timeout before wait_timeout is
12146         computed.
12147
12148 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12149
12150         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
12151         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
12152         rmdir ("dir/.//"), unlinkat.
12153
12154 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12155
12156         stdbool: avoid spurious failure with modern xlc
12157         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12158
12159 2010-08-24  Bruno Haible  <bruno@clisp.org>
12160
12161         getloadavg: simplify code
12162         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
12163         gl_have_func. Update comments.
12164
12165 2010-08-24  Eric Blake  <eblake@redhat.com>
12166
12167         getloadavg: don't define SVR4 on cygwin
12168         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
12169         only define SVR4 when -lkvm is required.
12170         Reported by Yaakov Selkowitz.
12171
12172 2010-08-24  Bruno Haible  <bruno@clisp.org>
12173
12174         priv-set: fix comment
12175         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
12176
12177 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12178
12179         priv-set: fix comments
12180         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
12181         to match code, as suggested by David Bartley in:
12182         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
12183
12184 2010-08-23  Eric Blake  <eblake@redhat.com>
12185
12186         stdbool: avoid rejecting clang
12187         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
12188         * tests/test-stdbool.c: Enable more tests if using the system
12189         <stdbool.h> instead of the gnulib replacement.
12190         (main): Move xlc bug test to a runtime test for all compilers.
12191         Reported by Anders Kaseorg.
12192
12193         argz: fix shell quoting issue
12194         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
12195         Reported by Charles Wilson.
12196
12197 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
12198             Erik Faye-Lund <kusmabite@gmail.com>
12199
12200         poll, select: handle ERROR_BROKEN_PIPE.
12201         * lib/poll.c (win32_compute_revents): Return POLLHUP when
12202         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12203         * lib/select.c (win32_compute_revents): Do not mark a pipe
12204         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
12205
12206 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
12207
12208         fts: allow compilation with C++
12209         * lib/fts_.h: Specify extern "C" linkage with C++.
12210
12211 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12212
12213         Fix gnulib-tool sed script de-commentation for AIX sed.
12214         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12215         sed.
12216
12217 2010-08-17  Eric Blake  <eblake@redhat.com>
12218
12219         test-stddef: test for (some) offsetof bugs
12220         * tests/test-stddef.c: Enhance test to ensure correct type of
12221         offsetof.
12222         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12223         that we are not fixing at this time.
12224
12225 2010-08-15  Bruno Haible  <bruno@clisp.org>
12226
12227         stpncpy: Allow stpncpy to be defined as a macro.
12228         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12229         if it's already correctly declared.
12230         * lib/string.in.h (stpncpy): Undefine before redefining.
12231         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12232
12233 2010-08-14  Bruno Haible  <bruno@clisp.org>
12234
12235         Rename module 'memxfrm' to 'amemxfrm'.
12236         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12237         (amemxfrm): Renamed from memxfrm.
12238         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12239         (amemxfrm): Renamed from memxfrm.
12240         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12241         * NEWS: Mention the change.
12242         * MODULES.html.sh (String handling <string.h>): Update.
12243         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12244         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12245         * lib/unicase/u16-casexfrm.c: Likewise.
12246         * lib/unicase/u32-casexfrm.c: Likewise.
12247         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12248         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12249         * lib/uninorm/u16-normxfrm.c: Likewise.
12250         * lib/uninorm/u32-normxfrm.c: Likewise.
12251         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12252         memxfrm.
12253         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12254         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12255         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12256         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12257         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12258         Suggested by Paul Eggert.
12259
12260 2010-08-14  Bruno Haible  <bruno@clisp.org>
12261
12262         Tests for module 'astrxfrm'.
12263         * modules/astrxfrm-tests: New file.
12264         * tests/test-astrxfrm.c: New file.
12265
12266         New module 'astrxfrm'.
12267         * lib/astrxfrm.h: New file.
12268         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12269         * modules/astrxfrm: New file.
12270
12271 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12272
12273         regex: Tweak doc.
12274         * doc/regex.texi (Overview): Don't mention regex.c.
12275         (GNU Regular Expression Compiling): Likewise.
12276         (Match-end-of-line Operator): Mention 'not_eol'.
12277
12278 2010-08-14  Brian Gough  <bjg@gnu.org>
12279             Bruno Haible  <bruno@clisp.org>
12280
12281         git-merge-changelog: add doc relating to use with bzr and hg.
12282         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12283
12284 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12285
12286         pthread: fix pthread.h creation for srcdir != builddir
12287         * modules/pthread (Makefile.am): Fix the rule to work also in a
12288         non-srcdir build.
12289
12290 2010-08-13  Karl Berry  <karl@gnu.org>
12291
12292         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12293         * doc/posix-*/*: force line break before @url of POSIX
12294         specifications.
12295         Suggested by Werner Lemberg.
12296
12297 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12298
12299         strtod: fix const diagnostic
12300         * lib/strtod.c (strtod): Don't assign const char * to char *,
12301         as this elicits a warning from GCC when warnings are enabled.
12302
12303 2010-08-10  Pádraig Brady <P@draigbrady.com>
12304         and Eric Blake  <eblake@redhat.com>
12305
12306         copy-acl: ignore ENOTSUP on HP-UX
12307         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12308         so that it is available for HP-UX.
12309         * lib/copy-acl.c (qcopy_acl): Use it.
12310         Reported by Patrick M. Callahan.
12311
12312 2010-08-10  Eric Blake  <eblake@redhat.com>
12313
12314         open, chown: relax license
12315         * modules/open (License): Change to LGPLv2+, with consent by all
12316         authors, for use in augeas.
12317         * modules/chown (License): Likewise.
12318         * modules/lchown (Likewise): Likewise.
12319         Requested by Adam Stokes.
12320
12321 2010-08-09  Karl Berry  <karl@gnu.org>
12322
12323         * build-aux/ar-lib: new file, import from Automake.
12324         * config/srclist.txt: autocheck for updates.
12325
12326 2010-08-09  Eric Blake  <eblake@redhat.com>
12327
12328         readlinkat: adjust client modules
12329         * modules/areadlinkat (Depends-on): Use readlinkat, not
12330         symlinkat.
12331         * modules/areadlinkat-with-size (Depends-on): Likewise.
12332
12333         mknod: be more vocal about danger of running tests as root
12334         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12335         root, since that is just asking for problems.
12336         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12337
12338         readlinkat: split into its own module
12339         * modules/symlinkat: Split readlinkat...
12340         * modules/readlinkat: ...into separate module.
12341         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12342         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12343         * lib/symlinkat.c (readlinkat): Move...
12344         * lib/readlinkat.c: ...into new file.
12345         * modules/symlinkat-tests: Split readlinkat test...
12346         * modules/readlinkat-tests: ...into separate module.
12347         * tests/test-symlinkat.c: Split...
12348         * tests/test-readlinkat.c: ...into new file.
12349         * NEWS: Document the split.
12350         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12351         * lib/unistd.in.h (readlinkat): Likewise.
12352         Suggested by Bruno Haible.
12353
12354 2010-08-08  Bruno Haible  <bruno@clisp.org>
12355
12356         memxfrm: Speed up.
12357         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12358         that usually only one call to strxfrm is necessary for each string
12359         part.
12360         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12361
12362 2010-08-07  Karl Berry  <karl@gnu.org>
12363
12364         * doc/posix-headers/limits.texi,
12365         * doc/posix-functions/malloc.texi,
12366         * doc/posix-functions/strsignal.texi: missing @item.
12367         * doc/ld-version-script.texi: spurious leading i.
12368         * doc/regex.texi (Interval Operators): no commas inside @var.
12369
12370 2010-08-01  Bruno Haible  <bruno@clisp.org>
12371
12372         Integrate the regex documentation.
12373         * doc/gnulib.texi: Define 'cn' index.
12374         (Regular expressions): New a chapter that includes regex.texi and
12375         regexprops-generic.texi.
12376         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12377         syntax.
12378
12379         Whitespace cleanup.
12380         * doc/regex.texi: Remove trailing spaces.
12381
12382         Add regex documentation.
12383         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12384         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12385         Written by Kathy A. Hargreaves and Karl Berry.
12386
12387 2010-08-01  Bruno Haible  <bruno@clisp.org>
12388
12389         link: Update documentation.
12390         * doc/posix-functions/link.texi: Update regarding Solaris.
12391
12392 2010-07-31  Bruno Haible  <bruno@clisp.org>
12393
12394         Update modules list.
12395         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12396         (String handling <string.h>): Add memcmp2, memxfrm.
12397         (Container data structures): Add xlist, xsublist, xoset.
12398         (Core language properties): Add alignof, unused-parameter.
12399         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12400         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12401         (Unibyte characters <ctype.h>): New section.
12402         (String handling <string.h>): New section.
12403         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12404         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12405         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12406         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12407         tan, tanh, tanl, y0, y1, yn.
12408         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12409         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12410         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12411         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12412         unlockpt, vdprintf, vdprintf-posix.
12413         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12414         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12415         xconcat-filename.
12416         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12417         getdtablesize, pipe2, pipe2-safer.
12418         (Security): New section.
12419         (Networking functions): Add accept4.
12420         (Signal handling): Add sigpipe.
12421         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12422         mbmemcasecoll.
12423         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12424         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12425         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12426         pipe-filter-ii.
12427         (Misc): Add argp-version-etc, login_tty, parse-duration.
12428
12429 2010-07-31  Bruno Haible  <bruno@clisp.org>
12430
12431         Improve doc in MODULES.html.
12432         * modules/linkat (Description): Add the word "function".
12433         * modules/mkfifo (Description): Likewise.
12434         * modules/mknod (Description): Likewise.
12435         * modules/remove (Description): Likewise.
12436         * modules/renameat (Description): Likewise.
12437         * modules/stat (Description): Likewise.
12438         * modules/symlink (Description): Likewise.
12439         * modules/unlink (Description): Likewise.
12440
12441 2010-07-31  Bruno Haible  <bruno@clisp.org>
12442
12443         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12444         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12445         option --enable/disable-c++ instead of --enable/disable-cxx.
12446         * NEWS: Mention the change.
12447
12448 2010-07-31  Bruno Haible  <bruno@clisp.org>
12449
12450         readlink, areadlink: Relax test a bit.
12451         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12452         alternative to ENOTDIR.
12453         * tests/test-areadlink.h (test_areadlink): Likewise.
12454         Reported by Rainer Tammer.
12455
12456 2010-07-31  Bruno Haible  <bruno@clisp.org>
12457
12458         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12459         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12460         character, perform the search using U_STRCHR.
12461         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12462         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12463         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12464         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12465         Suggested by Paolo Bonzini.
12466
12467 2010-07-31  Bruno Haible  <bruno@clisp.org>
12468
12469         unistr/u*-strstr: Fix dependencies.
12470         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12471         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12472         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12473
12474 2010-07-31  Bruno Haible  <bruno@clisp.org>
12475
12476         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12477         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12478         the beginning of the loop.
12479         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12480         cases in 'switch' statement.
12481
12482         unistr/u8-strchr: Fix several bugs.
12483         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12484         the string. When not found, return NULL, not a pointer near the end.
12485
12486         More tests for unistr/u8-strchr.
12487         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12488         that the function does not read past the first occurrence of the byte
12489         being searched.
12490         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12491         * tests/unistr/test-u16-strchr.c (main): New function.
12492         * tests/unistr/test-u32-strchr.c (main): New function.
12493
12494 2010-07-31  Bruno Haible  <bruno@clisp.org>
12495
12496         posix-modules: Ignore backup files of documentation files.
12497         * posix-modules: grep only through files named *.texi.
12498
12499 2010-07-31  Bruno Haible  <bruno@clisp.org>
12500
12501         symlinkat: Fix documentation.
12502         * doc/posix-functions/readlinkat.texi: Fix module name.
12503
12504 2010-07-31  Bruno Haible  <bruno@clisp.org>
12505
12506         fchownat: Replace also when chown has the trailing slash bug.
12507         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12508         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12509         introduced on 2010-04-10.
12510         Reported by Rainer Tammer.
12511
12512 2010-07-31  Bruno Haible  <bruno@clisp.org>
12513
12514         linkat: Work around AIX 7.1 bug.
12515         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12516         whether linkat handles trailing slash correctly. If not, replace linkat
12517         and define LINKAT_TRAILING_SLASH_BUG.
12518         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12519         check whether (fd1,file1) points to a directory if file1 or file2 ends
12520         in a slash. Code taken from lib/link.c.
12521         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12522         Reported by Rainer Tammer.
12523
12524 2010-07-31  Bruno Haible  <bruno@clisp.org>
12525
12526         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12527         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12528         This disables an xlc optimization that was causing wrong test results.
12529         Reported by Rainer Tammer.
12530
12531 2010-07-31  Bruno Haible  <bruno@clisp.org>
12532
12533         iconv: Work around AIX 6.1..7.1 bug.
12534         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12535         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12536         cross-compiling, guess no on all versions of AIX.
12537         Reported by Rainer Tammer.
12538
12539 2010-07-31  Bruno Haible  <bruno@clisp.org>
12540
12541         readlink: Relax test a bit.
12542         * tests/test-readlink.h (test_readlink): Allow different errno value
12543         when readlink is called with a file name that ends in / and refers to
12544         a file.
12545         Suggested by Eric Blake.
12546         Reported by Rainer Tammer.
12547
12548 2010-07-31  Bruno Haible  <bruno@clisp.org>
12549
12550         copysign: Does not require -lm on glibc systems.
12551         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12552         gl_COMMON_DOUBLE_MATHFUNC.
12553         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12554
12555 2010-07-31  Bruno Haible  <bruno@clisp.org>
12556
12557         duplocale: Work around AIX 7.1 bug.
12558         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12559         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12560         * lib/duplocale.c (rpl_duplocale): Update comment.
12561         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12562         Reported by Rainer Tammer.
12563
12564 2010-07-30  Bruno Haible  <bruno@clisp.org>
12565
12566         dirfd: Avoid link error on AIX 7.1.
12567         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12568         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12569         exist, set REPLACE_DIRFD.
12570         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12571         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12572         * doc/posix-functions/dirfd.texi: Update.
12573         Reported by Rainer Tammer.
12574
12575 2010-07-30  Eric Blake  <eblake@redhat.com>
12576
12577         strtod: next round of AIX fixes
12578         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12579         exponent.
12580         * tests/test-strtod.c (main): Enhance tests.
12581         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12582         Reported by Rainer Tammer.
12583
12584         futimens: fix configure check
12585         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12586         Reported by Bruno Haible.
12587
12588 2010-07-30  Bruno Haible  <bruno@clisp.org>
12589
12590         getline: Update regarding AIX.
12591         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12592         Reported by Rainer Tammer.
12593
12594 2010-07-30  Bruno Haible  <bruno@clisp.org>
12595
12596         wcwidth: Drop replacement on AIX 7.
12597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12598         AIX 7.
12599         Reported by Rainer Tammer.
12600
12601 2010-07-30  Bruno Haible  <bruno@clisp.org>
12602
12603         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12604         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12605         a 'char *'.
12606         Reported by Rainer Tammer.
12607
12608 2010-07-30  Bruno Haible  <bruno@clisp.org>
12609
12610         unlink: Update regarding AIX.
12611         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12612         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12613         Reported by Rainer Tammer.
12614
12615 2010-07-30  Bruno Haible  <bruno@clisp.org>
12616
12617         symlink: Update regarding AIX.
12618         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12619         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12620         Reported by Rainer Tammer.
12621
12622 2010-07-30  Bruno Haible  <bruno@clisp.org>
12623
12624         strndup: Update regarding AIX.
12625         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12626         AIX 7.
12627         Reported by Rainer Tammer.
12628
12629 2010-07-30  Bruno Haible  <bruno@clisp.org>
12630
12631         stat: Update regarding AIX.
12632         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12633         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12634         Reported by Rainer Tammer.
12635
12636 2010-07-30  Bruno Haible  <bruno@clisp.org>
12637
12638         truncl: Fix autoconf test.
12639         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12640         whether truncl works.
12641         Reported by Rainer Tammer.
12642
12643 2010-07-30  Bruno Haible  <bruno@clisp.org>
12644
12645         round: Update regarding AIX.
12646         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12647         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12648         Reported by Rainer Tammer.
12649
12650 2010-07-30  Bruno Haible  <bruno@clisp.org>
12651
12652         rename: Update regarding AIX.
12653         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12654         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12655         Reported by Rainer Tammer.
12656
12657 2010-07-30  Bruno Haible  <bruno@clisp.org>
12658
12659         printf.m4: Update regarding AIX.
12660         * m4/printf.m4: Update comments regarding AIX.
12661         Reported by Rainer Tammer.
12662
12663 2010-07-30  Bruno Haible  <bruno@clisp.org>
12664
12665         iconv: Update regarding AIX.
12666         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12667         AIX 7.
12668         Reported by Rainer Tammer.
12669
12670 2010-07-30  Bruno Haible  <bruno@clisp.org>
12671
12672         getopt: Update regarding AIX.
12673         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12674         no on AIX.
12675         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12676         Reported by Rainer Tammer.
12677
12678 2010-07-30  Bruno Haible  <bruno@clisp.org>
12679
12680         ldexpl; Update regarding AIX.
12681         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12682         on AIX 7.
12683         Reported by Rainer Tammer.
12684
12685 2010-07-30  Bruno Haible  <bruno@clisp.org>
12686
12687         frexpl: Update regarding AIX.
12688         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12689         on AIX 7.
12690         Reported by Rainer Tammer.
12691
12692 2010-07-30  Bruno Haible  <bruno@clisp.org>
12693
12694         open, fopen: Update regarding AIX.
12695         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12696         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12697         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12698         * doc/posix-functions/fopen.texi: Likewise.
12699         Reported by Rainer Tammer.
12700
12701 2010-07-30  Bruno Haible  <bruno@clisp.org>
12702
12703         chown: Update doc regarding AIX.
12704         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12705         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12706         Reported by Rainer Tammer.
12707
12708 2010-07-30  Eric Blake  <eblake@redhat.com>
12709
12710         strtod: fix bug in replacement function on AIX
12711         * lib/strtod.c (strtod): Special case broken "0x" parse in
12712         underlying strtod.
12713         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12714         * doc/posix-functions/strtod.texi (strtod): Likewise.
12715         Reported by Rainer Tammer.
12716
12717 2010-07-30  Bruno Haible  <bruno@clisp.org>
12718
12719         mbrlen: Fix cross-compilation guess for AIX.
12720         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12721         guess. Leftover from 2008-12-22.
12722
12723 2010-07-30  Bruno Haible  <bruno@clisp.org>
12724
12725         mbrtowc: Fix cross-compilation guess for AIX.
12726         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12727         guess. Leftover from 2008-12-21.
12728
12729 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12730
12731         init.sh: work around trap limitation of some shells
12732         * tests/init.sh (setup_): Move exit trap outside of shell function.
12733
12734 2010-07-29  Eric Blake  <eblake@redhat.com>
12735
12736         strtod: aid debugging
12737         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12738         understanding why strtod is rejected.
12739
12740 2010-07-28  Bruno Haible  <bruno@clisp.org>
12741
12742         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12743         * lib/unistr/u8-chr.c: Include <string.h>.
12744         * tests/unistr/test-u8-chr.c: Likewise.
12745         * tests/unistr/test-u16-chr.c: Likewise.
12746         * tests/unistr/test-u32-chr.c: Likewise.
12747         * tests/unistr/test-u8-strchr.c: Likewise.
12748         * tests/unistr/test-u16-strchr.c: Likewise.
12749         * tests/unistr/test-u32-strchr.c: Likewise.
12750         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12751         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12752         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12753         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12754
12755 2010-07-28  Bruno Haible  <bruno@clisp.org>
12756
12757         Use spaces for indentation, not tabs.
12758         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12759
12760 2010-07-27  Bruno Haible  <bruno@clisp.org>
12761
12762         mbspcasecmp: Fix function specification.
12763         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12764         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12765         Reported by Eric Blake <eblake@redhat.com>.
12766
12767 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12768
12769         timespec: use cast and not conditional, as truncation isn't possible
12770         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12771         instead of a conditional.  Comment about the situation in more detail.
12772         This undoes most of the 2009-10-29 patch.
12773
12774 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12775
12776         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12777         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12778         * lib/unistr/u8-strchr.c: Likewise.
12779         * modules/unistr/u8-chr: Depend on memchr.
12780
12781         unistr/u*-strchr: add tests
12782         * modules/unistr/u8-strchr-tests: New file.
12783         * modules/unistr/u16-strchr-tests: New file.
12784         * modules/unistr/u32-strchr-tests: New file.
12785         * tests/unistr/test-strchr.h: New file.
12786         * tests/unistr/test-u8-strchr.c: New file.
12787         * tests/unistr/test-u16-strchr.c: New file.
12788         * tests/unistr/test-u32-strchr.c: New file.
12789
12790         unistr/u*-chr: test multibyte sequences more
12791         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12792         test vector.
12793         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12794         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12795         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12796
12797         unistr/u*-chr: test multibyte sequences
12798         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12799
12800         unistr/u*-chr: prepare for multibyte tests
12801         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12802         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12803         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12804         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12805         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12806         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12807
12808 2010-07-18  Bruno Haible  <bruno@clisp.org>
12809
12810         unistr/u8-strchr: Optimize non-ASCII argument case.
12811         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12812         because the first byte often matches anyway.
12813         Reported by Pádraig Brady <P@draigbrady.com>.
12814
12815 2010-07-15  Karl Berry  <karl@gnu.org>
12816
12817         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12818
12819 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12820
12821         getcwd: on Solaris, work better if ancestors are inaccessible
12822         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12823         buffer and size, try again with a large buffer.  This works better
12824         on Solaris, since its getcwd succeeds even if the path to the root
12825         is inaccessible, and this is helpful in common cases such as .zfs
12826         hidden directories.  Problem reported by J Chapman Flack in
12827         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12828         Use system getcwd if it's declared, not merely if it's partly
12829         working; use the partly-working test only to avoid needless effort
12830         if the system getcwd fails.
12831         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12832         comment that was already obsolete and is now even more obsolete.
12833         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12834         now might call strdup.
12835
12836 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12837
12838         pthread: Add enough so that coreutils/src/sort.c compiles.
12839         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12840         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12841         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12842         Include <sys/types.h>, in case it defines pthread_t.
12843         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12844         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12845         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12846         (pthread_rwlockattr_t, pthread_spinlock_t):
12847         New typedefs, if HAVE_PTHREAD_T is not defined.
12848         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12849         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12850         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12851         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12852         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12853         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12854         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12855         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12856         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12857         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12858         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12859         New macros.
12860         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12861         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12862         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12863         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12864         (pthread_spin_unlock): New dummy functions.
12865         (pthread_create): Return EAGAIN; don't set errno.
12866         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12867         require AC_C_INLINE.
12868         * modules/pthread (Depends-on): Add sched, time.
12869         (pthread.h): Use AM_V_GEN.
12870
12871 2010-07-13  Bruno Haible  <bruno@clisp.org>
12872
12873         striconveh: Don't malloc memory if the result buffer is sufficient.
12874         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12875         buffer if its size is sufficient.
12876         Reported by Ludovic Courtès <ludo@gnu.org>.
12877
12878 2010-07-13  Bruno Haible  <bruno@clisp.org>
12879
12880         strtod: Add safety check.
12881         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12882
12883 2010-07-12  Bruno Haible  <bruno@clisp.org>
12884
12885         Unify tests that set gl_cv_func_ldexpl_no_libm.
12886         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12887         gl_FUNC_LDEXPL.
12888         (gl_FUNC_LDEXPL): Invoke it.
12889         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12890
12891 2010-07-12  Bruno Haible  <bruno@clisp.org>
12892
12893         Unify tests that set gl_cv_func_ldexp_no_libm.
12894         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12895         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12896         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12897         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12898         * modules/strtod (Files): Add m4/ldexp.m4.
12899
12900 2010-07-12  Bruno Haible  <bruno@clisp.org>
12901
12902         Unify tests that set gl_cv_func_frexpl_no_libm.
12903         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12904         gl_FUNC_FREXPL_NO_LIBM.
12905         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12906         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12907
12908 2010-07-12  Bruno Haible  <bruno@clisp.org>
12909
12910         Unify tests that set gl_cv_func_frexp_no_libm.
12911         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12912         gl_FUNC_FREXP_NO_LIBM.
12913         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12914         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12915
12916 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12917
12918         memcoll: clarify sizes versus lengths, document better, and tweak perf
12919         * lib/memcoll.c (strcoll_loop, memcoll0):
12920         Improve quality of descriptive comments.  Name variables
12921         consistently as to whether they are lengths (which do not include
12922         terminating null) versus sizes (which do).
12923         * lib/xmemcoll.c (xmemcoll0): Likewise.
12924         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12925         returned when s1size == 0; this is easier to compile and saves
12926         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12927
12928 2010-07-12  Bruno Haible  <bruno@clisp.org>
12929
12930         Tests for module '_Exit'.
12931         * modules/_Exit-tests: New file.
12932         * tests/test-_Exit.sh: New file.
12933         * tests/test-_Exit.c: New file.
12934
12935         New module '_Exit'.
12936         * lib/stdlib.in.h (__attribute__): New macro.
12937         (_Exit): New declaration.
12938         * lib/_Exit.c: New file.
12939         * m4/_Exit.m4: New file.
12940         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12941         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12942         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12943         * modules/_Exit: New file.
12944         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12945         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12946
12947 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12948
12949         strtod: make it more-accurate typically, and don't require libm
12950         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12951         Include limits.h.  Don't include string.h.
12952         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12953         (locale_isspace): New function, so that no casts are needed to
12954         check whether *s is a space.
12955         (ldexp): Provide an unused dummy if not available.
12956         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12957         (strtod): Use them.  This implementation prefers to use the
12958         underlying strtod if available, falling back on our own code
12959         only to fix known bugs.  This is more likely to produce an
12960         accurate result.  Also, it avoids the use of libm functions.
12961         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12962         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12963         was absent, but it caused a test failure with coreutils.
12964         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12965         with libm.
12966         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12967         * modules/strtod-tests (Makefile.am): Likewise.
12968
12969 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12970             Bruno Haible  <bruno@clisp.org>
12971
12972         unistr/u8-strchr: Optimize ASCII argument case.
12973         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12974
12975 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12976
12977         (x)memcoll: minor tweaks
12978         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12979         is after the type that it qualifies.
12980         (memcoll0): Likewise.
12981         * lib/memcoll.h (memcoll0): Likewise.
12982         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12983         * lib/xmemcoll.h (xmemcoll0): Likewise.
12984         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12985         differs from memcoll in that the NUL byte is part of the argument.
12986         Omit the abort-checks, as performance is a real issue here.  Plus,
12987         the checks were wrong anyway (an off-by-one error).  Omit local
12988         variable 'diff', as it's a bit clearer that way.
12989         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12990         no longer needed.
12991
12992 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12993
12994         (x)memcoll: speedup when input is known to be NUL delimited
12995         * lib/memcoll.c: Include stdlib.
12996         (memcoll0): New function.
12997         (strcoll_loop): New function, refactored for use in both memcoll
12998         and memcoll0.
12999         * lib/memcoll.h (memcoll0): Add prototype.
13000         * lib/xmemcoll.c (xmemcoll0): New function.
13001         (collate_error): New function, refactored for use in both xmemcoll
13002         and xmemcoll0.
13003         * lib/xmemcoll.h (xmemcoll0): Add prototype.
13004         * m4/memcoll.m4: add inline invocation.
13005
13006 2010-07-06  Pádraig Brady  <P@draigBrady.com>
13007
13008         * build-aux/bootstrap: Remove any local translations
13009         from the translation project synchronization directory,
13010         so that local only translations are not distributed.
13011
13012 2010-07-04  Bruno Haible  <bruno@clisp.org>
13013
13014         fsusage: Clarify which code applies to which platforms.
13015         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
13016         platform.
13017         * lib/fsusage.c (get_fs_usage): Likewise.
13018
13019 2010-07-04  Bruno Haible  <bruno@clisp.org>
13020
13021         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
13022         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
13023         Reported by Martin Lambers <marlam@marlam.de>.
13024
13025 2010-07-04  Jim Meyering  <meyering@redhat.com>
13026
13027         hash: once again explicitly disallow insertion of NULL
13028         * lib/hash.c (hash_insert0): Reinstate just-removed test:
13029         inserting a NULL pointer cannot work with these functions.
13030         Add a comment with details.
13031         This reverts part of the 2010-07-01 commit, 5bef1a35
13032         "hash: extend module to deal with non-pointer keys".
13033
13034 2010-07-01  Bruno Haible  <bruno@clisp.org>
13035
13036         stdbool: Update doc.
13037         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
13038         Info from Christian Weisgerber <naddy@mips.inka.de>.
13039
13040 2010-07-01  Jim Meyering  <meyering@redhat.com>
13041
13042         hash: extend module to deal with non-pointer keys
13043         * lib/hash.c (hash_insert0): New interface, much like hash_insert
13044         but that allows insertion of non-pointer entries.
13045         Do not disallow an ENTRY value of NULL.
13046         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
13047         * lib/hash.h (hash_insert0): Declare.
13048
13049 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
13050
13051         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
13052         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
13053         not present (i.e. with autoconf 2.59 and when using gettextize, not
13054         gnulib), require AC_GNU_SOURCE instead.
13055
13056 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
13057
13058         idpriv-drop: Fix tests.
13059         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
13060         not to the test-idpriv-droptemp program.
13061
13062 2010-06-29  Bruno Haible  <bruno@clisp.org>
13063
13064         string: Fix syntax error with g++ 2.96.
13065         * lib/string.in.h (__pure__): Remove definition.
13066         (_GL_ATTRIBUTE_PURE): New macro.
13067         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
13068         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
13069         Reported by Christian Weisgerber <naddy@mips.inka.de>.
13070
13071 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
13072
13073         unitypes: Fix bug introduced on 2010-05-18.
13074         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
13075
13076 2010-06-22  Eric Blake  <eblake@redhat.com>
13077
13078         memmem: slight optimization
13079         * lib/str-two-way.h (critical_factorization): Update comments.
13080         Reduce work during factorization phase.
13081         Reported by Carlos Bueno <carlos@bueno.org>.
13082
13083 2010-06-21  Bruno Haible  <bruno@clisp.org>
13084
13085         Fix HAVE_CALLOC_POSIX misnomer.
13086         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
13087         !HAVE_CALLOC_POSIX.
13088         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
13089         HAVE_CALLOC_POSIX.
13090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
13091         instead of HAVE_CALLOC_POSIX.
13092         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
13093         HAVE_CALLOC_POSIX.
13094
13095         Use modern idiom for calloc() replacement.
13096         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
13097         AC_FUNC_CALLOC.
13098         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
13099         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
13100         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13101         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
13102         (gl_REPLACE_CALLOC): New macro.
13103
13104 2010-06-21  Bruno Haible  <bruno@clisp.org>
13105
13106         Fix HAVE_REALLOC_POSIX misnomer.
13107         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
13108         !HAVE_REALLOC_POSIX.
13109         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
13110         HAVE_REALLOC_POSIX.
13111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
13112         instead of HAVE_REALLOC_POSIX.
13113         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
13114         HAVE_REALLOC_POSIX.
13115
13116         Use modern idiom for realloc() replacement.
13117         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
13118         AC_FUNC_REALLOC.
13119         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
13120         Autoconf's AC_FUNC_REALLOC.
13121         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13122         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
13123         (gl_REPLACE_REALLOC): New macro.
13124         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13125
13126 2010-06-21  Bruno Haible  <bruno@clisp.org>
13127
13128         Fix HAVE_MALLOC_POSIX misnomer.
13129         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
13130         !HAVE_MALLOC_POSIX.
13131         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
13132         HAVE_MALLOC_POSIX.
13133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
13134         instead of HAVE_MALLOC_POSIX.
13135         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
13136         HAVE_MALLOC_POSIX.
13137
13138         Use modern idiom for malloc() replacement.
13139         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
13140         AC_FUNC_MALLOC.
13141         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
13142         Autoconf's AC_FUNC_MALLOC.
13143         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
13144         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
13145         (gl_REPLACE_MALLOC): New macro.
13146         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
13147
13148 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
13149
13150         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
13151         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
13152         This macro takes 3 arguments, not 4.
13153
13154 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
13155
13156         ipv6: fix detection under mingw
13157         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
13158         in6_addr.
13159
13160 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
13161
13162         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
13163         that strtod() works when cross-compiling to a glibc version known
13164         to work.
13165
13166 2010-06-15  Bruno Haible  <bruno@clisp.org>
13167
13168         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
13169
13170 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
13171
13172         select: Correct timeout.
13173         * lib/select.c (rpl_select): Compute wait_timeout correctly.
13174
13175 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
13176
13177         git-version-gen: init shell var to avoid env var influence
13178         * build-aux/git-version-gen (v): Init shell var to empty.
13179
13180 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
13181
13182         priv-set: Don't assume that priv.h exists merely because getppriv does.
13183         See Jan Andersen's bug report about AIX 5L in
13184         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
13185         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
13186         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
13187         * lib/priv-set.h: Likewise.
13188         * tests/test-priv-set.c: Likewise.
13189
13190 2010-06-13  Bruno Haible  <bruno@clisp.org>
13191
13192         relocatable: Make it easier to test whether to install wrappers.
13193         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
13194         RELOCATABLE_VIA_WRAPPER.
13195
13196 2010-06-13  Bruno Haible  <bruno@clisp.org>
13197
13198         gnulib-tool: Display specified modules and dependencies differently.
13199         * gnulib-tool (func_show_module_list): New function.
13200         (func_import, func_create_testdir): Invoke it.
13201         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13202
13203 2010-06-13  Bruno Haible  <bruno@clisp.org>
13204
13205         gnulib-tool: Align code of func_import and func_create_testdir.
13206         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
13207         specified_modules.
13208
13209 2010-06-12  Jim Meyering  <meyering@redhat.com>
13210
13211         test-inttostr: avoid spurious failure on Solaris 9
13212         * tests/test-inttostr.c (main): Skip the test when snprintf fails
13213         to accept "%ju".  Reported by Bruno Haible.
13214
13215 2010-06-11  Jim Meyering  <meyering@redhat.com>
13216
13217         test-sys_socket: mark variables as used more readably
13218         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13219         as "used" explicitly via (void) statement casts.  This is more
13220         readable than using them in an artificial return expression.
13221         Suggestion from Bruno Haible.
13222
13223 2010-06-11  Bruno Haible  <bruno@clisp.org>
13224
13225         Avoid some more warnings from "gcc -Wwrite-strings".
13226         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13227         to 'const char *'.
13228         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13229         * tests/test-c-strcasestr.c (main): Likewise.
13230         * tests/test-mbscasestr1.c (main): Likewise.
13231         * tests/test-mbscasestr2.c (main): Likewise.
13232         * tests/test-memmem.c (main): Likewise.
13233         * tests/test-strstr.c (main): Likewise.
13234         * tests/test-strcasestr.c (main): Likewise.
13235
13236 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13237
13238         init.sh: change framework_failure_ to fail with status 99, not 1
13239         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13240         automake's parallel-tests rule that this is an unexpected failure,
13241         even if the test is listed in XFAIL_TESTS.
13242
13243 2010-06-11  Jim Meyering  <meyering@redhat.com>
13244
13245         test-inttostr: avoid warnings about 4-6KB literal strings
13246         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13247         Include "macros.h", for its definition of ASSERT.
13248         (CK): s/assert/ASSERT/
13249         * modules/inttostr-tests (Files): Add macros.h.
13250
13251         init.sh: don't use $ME_ or skip_ before they are defined
13252         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13253         their first uses.  Also hoist their companions: warn_, fail_,
13254         framework_failure_, $stderr_fileno.  Prompted by a patch from
13255         Stefano Lattarini.
13256
13257         test-sys_socket: avoid set-but-not-used warnings from gcc
13258         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13259         avoid warning about set-but-not-used variables.
13260
13261         test-xvasprintf: avoid 'const' discard warnings
13262         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13263         "const" when assigning from literal strings.
13264         (test_xasprintf): Add "void" in function argument list to placate
13265         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13266
13267         tests: avoid compilation warnings in argmatch and exclude tests...
13268         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13269         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13270         Since it always exits, declare with the "noreturn" attribute.
13271         * tests/test-argmatch.c: Likewise.
13272
13273         tests: avoid 'const' discard warnings in mbsstr tests
13274         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13275         * tests/test-mbsstr2.c (main): Likewise.
13276
13277         test-verify: avoid warning from gcc's -Wmissing-declarations
13278         * tests/test-verify.c (function): Declare to be static.
13279
13280         test-inttostr.c: include <string.h> for use of strcmp
13281         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13282
13283         test-linkat: avoid failed assertion on "other" architectures
13284         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13285         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13286         sparc: https://bugs.launchpad.net/bugs/591968
13287
13288 2010-06-11  Jim Meyering  <meyering@redhat.com>
13289
13290         printf.m4: avoid autoconf's "Expanded Before Required" warning
13291         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13292         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13293         autoconf warning.
13294
13295 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13296
13297         Replacement header templates are now named with ".in", not "_".
13298         * doc/gnulib-intro.texi: Correct.
13299
13300 2010-06-10  Jim Meyering  <meyering@redhat.com>
13301
13302         inttostr-tests: depend on snprintf, not snprintf-posix
13303         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13304         snprintf-posix, to avoid this aclocal failure:
13305           missing file gnulib-tests/vasnprintf.c
13306           configure.ac:45: error: expected source file, required through \
13307           AC_LIBSOURCES, not found
13308
13309 2010-06-10  Jim Meyering  <meyering@redhat.com>
13310
13311         inttostr: add a new function, inttostr, and tests
13312         The namesake function was not available.  The existence of the
13313         template file, inttostr.c makes its addition nontrivial.
13314         * lib/anytostr.c: Rename from inttostr.c.
13315         (anytostr): Rename from inttostr.
13316         * lib/inttostr.c: New file.
13317         * modules/inttostr (Files): Add anytostr.c.
13318         (Makefile.am): Set lib_SOURCES instead of ...
13319         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13320         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13321         * lib/offtostr.c: Likewise.
13322         * lib/uinttostr.c: Likewise.
13323         * lib/umaxtostr.c: Likewise.
13324         * modules/inttostr-tests: New file.
13325         * tests/test-inttostr.c: New file.  Test these functions.
13326
13327 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13328             Bruno Haible  <bruno@clisp.org>
13329
13330         Add "Extending Gnulib" chapter to manual.
13331         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13332         chapter.
13333         (Extending Gnulib): New chapter.
13334         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13335         chapter.
13336
13337 2010-06-09  Bruno Haible  <bruno@clisp.org>
13338
13339         Avoid relocwrapper link errors due to gnulib replacement functions.
13340         * lib/areadlink.c: Use the system's malloc, realloc functions.
13341         (areadlink): Set errno to ENOMEM explicitly.
13342         * modules/areadlink (Depends-on): Remove malloc-posix.
13343         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13344
13345 2010-06-09  Bruno Haible  <bruno@clisp.org>
13346
13347         Avoid relocwrapper link errors due to gnulib replacement functions.
13348         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13349         * lib/malloca.c: Likewise.
13350         * lib/relocatable.c: Likewise.
13351         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13352         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13353         * lib/setenv.c: Use the system's malloc, realloc functions.
13354         * lib/strerror.c: Use the system's sprintf function.
13355         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13356
13357 2010-06-04  Bruno Haible  <bruno@clisp.org>
13358
13359         Prefer documented low-level autoconf macro names.
13360         * m4/lib-link.m4: Use m4_translit instead of translit.
13361         * m4/environ.m4: Likewise.
13362         * m4/mathfunc.m4: Likewise.
13363         * m4/onceonly.m4: Likewise.
13364         * m4/stdint.m4: Likewise.
13365         Suggested by Eric Blake.
13366
13367 2010-06-04  Martin Lambers  <marlam@marlam.de>
13368             Bruno Haible  <bruno@clisp.org>
13369
13370         havelib: Allow library names with '+' characters.
13371         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13372         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13373
13374 2010-06-09  Bruno Haible  <bruno@clisp.org>
13375
13376         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13377         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13378         realloc failed.
13379
13380 2010-06-08  Peter Simons  <simons@cryp.to>
13381
13382         maint.mk: make the news-check rule more configurable
13383         * top/maint.mk (news-check-lines-spec): New variable.
13384         (news-check): Use "sed -n 1,10p" in place of "head".
13385
13386 2010-06-07  Jim Meyering  <meyering@redhat.com>
13387
13388         do-release-commit-and-tag: fix typo in --help
13389         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13390
13391         regex: avoid new dead-code warning with gcc-4.6.0
13392         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13393         if-block containing a while-loop.  It's been unused for at least
13394         5 years.
13395
13396 2010-06-05  Bruno Haible  <bruno@clisp.org>
13397
13398         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13399         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13400
13401 2010-06-04  Bruno Haible  <bruno@clisp.org>
13402
13403         Update to GNU gettext 0.18.1.
13404         * modules/gettext (configure.ac): Require gettext infrastructure from
13405         version 0.18.1.
13406
13407 2010-06-03  Bruno Haible  <bruno@clisp.org>
13408
13409         Don't use AC_LIBOBJ with file names in subdirectories.
13410         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13411         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13412         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13413         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13414         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13415         gl_LIBUNISTRING_LIBSOURCE.
13416         (Makefile.am): Augment lib_SOURCES here, conditionally.
13417         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13418
13419 2010-06-03  Bruno Haible  <bruno@clisp.org>
13420
13421         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13422         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13423         expansion does not end with a newline.
13424         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13425         unnecessary newline.
13426
13427 2010-06-03  Bruno Haible  <bruno@clisp.org>
13428
13429         Reduce dependencies.
13430         * tests/test-quotearg.h: New file, extracted from
13431         tests/test-quotearg.c.
13432         * tests/test-quotearg-simple.c: New file, extracted from
13433         tests/test-quotearg.c.
13434         * tests/test-quotearg.c: Don't include <ctype.h>.
13435         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13436         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13437         use_quote_double_quotes, use_quotearg_colon): Moved to
13438         tests/test-quotearg.h.
13439         (results_g, flag_results, custom_quotes, custom_results): Moved
13440         to tests/test-quotearg-simple.c.
13441         (main): Moved the part that does not depend on gettext to
13442         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13443         performed.
13444         * modules/quotearg-simple: New file.
13445         * modules/quotearg-simple-tests: New file.
13446         * modules/quotearg (Depends-on): Add quotearg-simple.
13447         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13448         (Files): Add tests/test-quotearg.h.
13449         Reported by Paolo Bonzini.
13450
13451 2010-06-03  Bruno Haible  <bruno@clisp.org>
13452
13453         Reduce dependencies.
13454         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13455
13456 2010-06-03  Bruno Haible  <bruno@clisp.org>
13457
13458         time: Undefine more broken macros.
13459         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13460         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13461         Reported by Eric Blake.
13462
13463 2010-06-03  Bruno Haible  <bruno@clisp.org>
13464
13465         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13466         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13467         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13468         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13469         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13470         Reported by Ludovic Courtès <ludo@gnu.org>.
13471
13472 2010-06-02  Eric Blake  <eblake@redhat.com>
13473
13474         time: work with mingw + pthreads-win32 library
13475         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13476         if timespec is defined only in pthread.h.
13477         * modules/time (Makefile.am): Substitute it.
13478         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13479         <pthread.h>, when needed.
13480         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13481         from the library.
13482
13483 2010-05-31  Bruno Haible  <bruno@clisp.org>
13484
13485         Avoid expanding two macros in the wrong order.
13486         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13487         gl_LIBUNISTRING if it is defined.
13488         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13489         autoconf >= 2.64.
13490         Reported by Ludovic Courtès <ludo@gnu.org>.
13491
13492 2010-05-27  Jim Meyering  <meyering@redhat.com>
13493
13494         maint.mk: also prohibit "#undef" of always-defined symbols
13495         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13496         Allow more than one space before the symbol name.
13497         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13498         the regexp uses alternation.
13499
13500 2010-05-26  Eric Blake  <eblake@redhat.com>
13501
13502         maint.mk: avoid echo -e
13503         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13504         Convert all uses of echo -* to printf.
13505         Reported by Matthias Bolte.
13506
13507 2010-05-25  Bruno Haible  <bruno@clisp.org>
13508
13509         Update to GNU gettext 0.18, part 2.
13510         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13511         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13512
13513 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13514
13515         Add missing include in test-pwrite.c.
13516         * tests/test-pwrite.c: Include string.h, for strcmp.
13517
13518 2010-05-24  Bruno Haible  <bruno@clisp.org>
13519
13520         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13521
13522 2010-05-24  Bruno Haible  <bruno@clisp.org>
13523
13524         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13525         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13526         iconveh_error argument.
13527         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13528         U_STRCONV_TO_LOCALE.
13529         * lib/unistr/u16-strcoll.c: Likewise.
13530         * lib/unistr/u32-strcoll.c: Likewise.
13531         * modules/unistr/u8-strcoll (Depends-on): Add
13532         uniconv/u8-strconv-to-enc, localcharset. Remove
13533         uniconv/u8-strconv-to-locale.
13534         (configure.ac): Bump version number.
13535         * modules/unistr/u16-strcoll (Depends-on): Add
13536         uniconv/u16-strconv-to-enc, localcharset. Remove
13537         uniconv/u16-strconv-to-locale.
13538         (configure.ac): Bump version number.
13539         * modules/unistr/u32-strcoll (Depends-on): Add
13540         uniconv/u32-strconv-to-enc, localcharset. Remove
13541         uniconv/u32-strconv-to-locale.
13542         (configure.ac): Bump version number.
13543
13544 2010-05-24  Bruno Haible  <bruno@clisp.org>
13545
13546         Avoid a test failure on NetBSD 5.0.
13547         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13548         an iconv() bug.
13549
13550 2010-05-24  Bruno Haible  <bruno@clisp.org>
13551
13552         Adjust #include directive style.
13553         * modules/regex (Includes): Recommend to write <regex.h>.
13554
13555 2010-05-24  Bruno Haible  <bruno@clisp.org>
13556
13557         regex: Don't require alloca.
13558         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13559         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13560         only inside if (0).
13561
13562 2010-05-23  Jim Meyering  <meyering@redhat.com>
13563
13564         test-renameat.c: include <sys/stat.h>
13565         * tests/test-renameat.c: Include <sys/stat.h>; required for
13566         definition of S_IS* macros.
13567
13568 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13569
13570         Update maintainer documentation for 'relocatable-prog' module.
13571         * doc/relocatable-maint.texi: Update.
13572         Comments by Bruno Haible.
13573
13574 2010-05-23  Bruno Haible  <bruno@clisp.org>
13575
13576         git-merge-changelog: Enable --split-merged-entry by default.
13577         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13578         (usage): Don't mention this option any more.
13579         Reported by Ralf Wildenhues.
13580
13581 2010-05-23  Jim Meyering  <meyering@redhat.com>
13582
13583         test-pwrite: do not leave behind a test file named "out"
13584         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13585         The trivial-looking use of init.sh is really necessary.
13586         It ensures that the temporary file, "out", is created in
13587         a temporary directory, and removed upon termination.
13588         * tests/test-pwrite.sh: Re-add file.
13589         * modules/pwrite-tests: Reference it.
13590
13591 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13592
13593         Fix output redirection buglet in init.sh.
13594         * tests/init.sh: Fix redirection of stderr.
13595
13596 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13597
13598         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13599
13600 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13601
13602         * modules/valgrind-tests: New file.
13603         * m4/valgrind-tests.m4: New file.
13604         * doc/valgrind-tests.texi: New file.
13605         * doc/gnulib.texi (Running self-tests under valgrind): New
13606         section.
13607
13608 2010-05-19  Bruno Haible  <bruno@clisp.org>
13609
13610         Clean up dead code in recent commit.
13611         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13612         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13613         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13614         Suggested by Paolo Bonzini.
13615
13616 2010-05-19  Bruno Haible  <bruno@clisp.org>
13617
13618         Avoid valgrind error reports from libunistring.
13619         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13620         * modules/libunistring (Files): Add it.
13621         * modules/libunistring-optional (Files): Likewise.
13622
13623 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13624             Bruno Haible  <bruno@clisp.org>
13625
13626         New module 'libunistring-optional'.
13627         * modules/libunistring-optional: New file.
13628         * m4/libunistring-base.m4: New file.
13629         * m4/libunistring-optional.m4: New file.
13630         * lib/unicase.in.h: Renamed from lib/unicase.h.
13631         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13632         * lib/unictype.in.h: Renamed from lib/unictype.h.
13633         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13634         * lib/uniname.in.h: Renamed from lib/uniname.h.
13635         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13636         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13637         * lib/unistr.in.h: Renamed from lib/unistr.h.
13638         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13639         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13640         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13641         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13642         gl_LIBUNISTRING. If the library was found, determine the installed
13643         version and set LIBUNISTRING_VERSION.
13644         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13645         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13646         handle a configuration option --with-included-libunistring.
13647         * modules/libunistring (Files): Add m4/absolute-header.m4.
13648         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13649         Add m4/libunistring-base.m4.
13650         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13651         (Makefile.am): Build unicase.h from unicase.in.h.
13652         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13653         Add m4/libunistring-base.m4.
13654         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13655         (Makefile.am): Build uniconv.h from uniconv.in.h.
13656         * modules/unictype/base (Files): Use unictype.in.h instead of
13657         unictype.h. Add m4/libunistring-base.m4.
13658         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13659         (Makefile.am): Build unictype.h from unictype.in.h.
13660         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13661         Add m4/libunistring-base.m4.
13662         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13663         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13664         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13665         Add m4/libunistring-base.m4.
13666         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13667         (Makefile.am): Build uniname.h from uniname.in.h.
13668         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13669         Add m4/libunistring-base.m4.
13670         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13671         (Makefile.am): Build uninorm.h from uninorm.in.h.
13672         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13673         unistdio.h. Add m4/libunistring-base.m4.
13674         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13675         (Makefile.am): Build unistdio.h from unistdio.in.h.
13676         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13677         Add m4/libunistring-base.m4.
13678         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13679         (Makefile.am): Build unistr.h from unistr.in.h.
13680         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13681         Add m4/libunistring-base.m4.
13682         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13683         (Makefile.am): Build unitypes.h from unitypes.in.h.
13684         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13685         Add m4/libunistring-base.m4.
13686         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13687         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13688         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13689         uniwidth.h. Add m4/libunistring-base.m4.
13690         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13691         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13692         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13693         instead of augmenting lib_SOURCES.
13694         * modules/unicase/empty-suffix-context: Likewise.
13695         * modules/unicase/locale-language: Likewise.
13696         * modules/unicase/tolower: Likewise.
13697         * modules/unicase/totitle: Likewise.
13698         * modules/unicase/toupper: Likewise.
13699         * modules/unicase/u8-casecmp: Likewise.
13700         * modules/unicase/u8-casecoll: Likewise.
13701         * modules/unicase/u8-casefold: Likewise.
13702         * modules/unicase/u8-casexfrm: Likewise.
13703         * modules/unicase/u8-ct-casefold: Likewise.
13704         * modules/unicase/u8-ct-tolower: Likewise.
13705         * modules/unicase/u8-ct-totitle: Likewise.
13706         * modules/unicase/u8-ct-toupper: Likewise.
13707         * modules/unicase/u8-is-cased: Likewise.
13708         * modules/unicase/u8-is-casefolded: Likewise.
13709         * modules/unicase/u8-is-lowercase: Likewise.
13710         * modules/unicase/u8-is-titlecase: Likewise.
13711         * modules/unicase/u8-is-uppercase: Likewise.
13712         * modules/unicase/u8-prefix-context: Likewise.
13713         * modules/unicase/u8-suffix-context: Likewise.
13714         * modules/unicase/u8-tolower: Likewise.
13715         * modules/unicase/u8-totitle: Likewise.
13716         * modules/unicase/u8-toupper: Likewise.
13717         * modules/unicase/u16-casecmp: Likewise.
13718         * modules/unicase/u16-casecoll: Likewise.
13719         * modules/unicase/u16-casefold: Likewise.
13720         * modules/unicase/u16-casexfrm: Likewise.
13721         * modules/unicase/u16-ct-casefold: Likewise.
13722         * modules/unicase/u16-ct-tolower: Likewise.
13723         * modules/unicase/u16-ct-totitle: Likewise.
13724         * modules/unicase/u16-ct-toupper: Likewise.
13725         * modules/unicase/u16-is-cased: Likewise.
13726         * modules/unicase/u16-is-casefolded: Likewise.
13727         * modules/unicase/u16-is-lowercase: Likewise.
13728         * modules/unicase/u16-is-titlecase: Likewise.
13729         * modules/unicase/u16-is-uppercase: Likewise.
13730         * modules/unicase/u16-prefix-context: Likewise.
13731         * modules/unicase/u16-suffix-context: Likewise.
13732         * modules/unicase/u16-tolower: Likewise.
13733         * modules/unicase/u16-totitle: Likewise.
13734         * modules/unicase/u16-toupper: Likewise.
13735         * modules/unicase/u32-casecmp: Likewise.
13736         * modules/unicase/u32-casecoll: Likewise.
13737         * modules/unicase/u32-casefold: Likewise.
13738         * modules/unicase/u32-casexfrm: Likewise.
13739         * modules/unicase/u32-ct-casefold: Likewise.
13740         * modules/unicase/u32-ct-tolower: Likewise.
13741         * modules/unicase/u32-ct-totitle: Likewise.
13742         * modules/unicase/u32-ct-toupper: Likewise.
13743         * modules/unicase/u32-is-cased: Likewise.
13744         * modules/unicase/u32-is-casefolded: Likewise.
13745         * modules/unicase/u32-is-lowercase: Likewise.
13746         * modules/unicase/u32-is-titlecase: Likewise.
13747         * modules/unicase/u32-is-uppercase: Likewise.
13748         * modules/unicase/u32-prefix-context: Likewise.
13749         * modules/unicase/u32-suffix-context: Likewise.
13750         * modules/unicase/u32-tolower: Likewise.
13751         * modules/unicase/u32-totitle: Likewise.
13752         * modules/unicase/u32-toupper: Likewise.
13753         * modules/unicase/ulc-casecmp: Likewise.
13754         * modules/unicase/ulc-casecoll: Likewise.
13755         * modules/unicase/ulc-casexfrm: Likewise.
13756         * modules/uniconv/u8-conv-from-enc: Likewise.
13757         * modules/uniconv/u8-conv-to-enc: Likewise.
13758         * modules/uniconv/u8-strconv-from-enc: Likewise.
13759         * modules/uniconv/u8-strconv-from-locale: Likewise.
13760         * modules/uniconv/u8-strconv-to-enc: Likewise.
13761         * modules/uniconv/u8-strconv-to-locale: Likewise.
13762         * modules/uniconv/u16-conv-from-enc: Likewise.
13763         * modules/uniconv/u16-conv-to-enc: Likewise.
13764         * modules/uniconv/u16-strconv-from-enc: Likewise.
13765         * modules/uniconv/u16-strconv-from-locale: Likewise.
13766         * modules/uniconv/u16-strconv-to-enc: Likewise.
13767         * modules/uniconv/u16-strconv-to-locale: Likewise.
13768         * modules/uniconv/u32-conv-from-enc: Likewise.
13769         * modules/uniconv/u32-conv-to-enc: Likewise.
13770         * modules/uniconv/u32-strconv-from-enc: Likewise.
13771         * modules/uniconv/u32-strconv-from-locale: Likewise.
13772         * modules/uniconv/u32-strconv-to-enc: Likewise.
13773         * modules/uniconv/u32-strconv-to-locale: Likewise.
13774         * modules/unictype/bidicategory-byname: Likewise.
13775         * modules/unictype/bidicategory-name: Likewise.
13776         * modules/unictype/bidicategory-of: Likewise.
13777         * modules/unictype/bidicategory-test: Likewise.
13778         * modules/unictype/block-list: Likewise.
13779         * modules/unictype/block-test: Likewise.
13780         * modules/unictype/category-C: Likewise.
13781         * modules/unictype/category-Cc: Likewise.
13782         * modules/unictype/category-Cf: Likewise.
13783         * modules/unictype/category-Cn: Likewise.
13784         * modules/unictype/category-Co: Likewise.
13785         * modules/unictype/category-Cs: Likewise.
13786         * modules/unictype/category-L: Likewise.
13787         * modules/unictype/category-Ll: Likewise.
13788         * modules/unictype/category-Lm: Likewise.
13789         * modules/unictype/category-Lo: Likewise.
13790         * modules/unictype/category-Lt: Likewise.
13791         * modules/unictype/category-Lu: Likewise.
13792         * modules/unictype/category-M: Likewise.
13793         * modules/unictype/category-Mc: Likewise.
13794         * modules/unictype/category-Me: Likewise.
13795         * modules/unictype/category-Mn: Likewise.
13796         * modules/unictype/category-N: Likewise.
13797         * modules/unictype/category-Nd: Likewise.
13798         * modules/unictype/category-Nl: Likewise.
13799         * modules/unictype/category-No: Likewise.
13800         * modules/unictype/category-P: Likewise.
13801         * modules/unictype/category-Pc: Likewise.
13802         * modules/unictype/category-Pd: Likewise.
13803         * modules/unictype/category-Pe: Likewise.
13804         * modules/unictype/category-Pf: Likewise.
13805         * modules/unictype/category-Pi: Likewise.
13806         * modules/unictype/category-Po: Likewise.
13807         * modules/unictype/category-Ps: Likewise.
13808         * modules/unictype/category-S: Likewise.
13809         * modules/unictype/category-Sc: Likewise.
13810         * modules/unictype/category-Sk: Likewise.
13811         * modules/unictype/category-Sm: Likewise.
13812         * modules/unictype/category-So: Likewise.
13813         * modules/unictype/category-Z: Likewise.
13814         * modules/unictype/category-Zl: Likewise.
13815         * modules/unictype/category-Zp: Likewise.
13816         * modules/unictype/category-Zs: Likewise.
13817         * modules/unictype/category-and: Likewise.
13818         * modules/unictype/category-and-not: Likewise.
13819         * modules/unictype/category-byname: Likewise.
13820         * modules/unictype/category-name: Likewise.
13821         * modules/unictype/category-none: Likewise.
13822         * modules/unictype/category-of: Likewise.
13823         * modules/unictype/category-or: Likewise.
13824         * modules/unictype/category-test: Likewise.
13825         * modules/unictype/combining-class: Likewise.
13826         * modules/unictype/ctype-alnum: Likewise.
13827         * modules/unictype/ctype-alpha: Likewise.
13828         * modules/unictype/ctype-blank: Likewise.
13829         * modules/unictype/ctype-cntrl: Likewise.
13830         * modules/unictype/ctype-digit: Likewise.
13831         * modules/unictype/ctype-graph: Likewise.
13832         * modules/unictype/ctype-lower: Likewise.
13833         * modules/unictype/ctype-print: Likewise.
13834         * modules/unictype/ctype-punct: Likewise.
13835         * modules/unictype/ctype-space: Likewise.
13836         * modules/unictype/ctype-upper: Likewise.
13837         * modules/unictype/ctype-xdigit: Likewise.
13838         * modules/unictype/decimal-digit: Likewise.
13839         * modules/unictype/digit: Likewise.
13840         * modules/unictype/mirror: Likewise.
13841         * modules/unictype/numeric: Likewise.
13842         * modules/unictype/property-alphabetic: Likewise.
13843         * modules/unictype/property-ascii-hex-digit: Likewise.
13844         * modules/unictype/property-bidi-arabic-digit: Likewise.
13845         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13846         * modules/unictype/property-bidi-block-separator: Likewise.
13847         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13848         * modules/unictype/property-bidi-common-separator: Likewise.
13849         * modules/unictype/property-bidi-control: Likewise.
13850         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13851         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13852         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13853         * modules/unictype/property-bidi-european-digit: Likewise.
13854         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13855         * modules/unictype/property-bidi-left-to-right: Likewise.
13856         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13857         * modules/unictype/property-bidi-other-neutral: Likewise.
13858         * modules/unictype/property-bidi-pdf: Likewise.
13859         * modules/unictype/property-bidi-segment-separator: Likewise.
13860         * modules/unictype/property-bidi-whitespace: Likewise.
13861         * modules/unictype/property-byname: Likewise.
13862         * modules/unictype/property-combining: Likewise.
13863         * modules/unictype/property-composite: Likewise.
13864         * modules/unictype/property-currency-symbol: Likewise.
13865         * modules/unictype/property-dash: Likewise.
13866         * modules/unictype/property-decimal-digit: Likewise.
13867         * modules/unictype/property-default-ignorable-code-point: Likewise.
13868         * modules/unictype/property-deprecated: Likewise.
13869         * modules/unictype/property-diacritic: Likewise.
13870         * modules/unictype/property-extender: Likewise.
13871         * modules/unictype/property-format-control: Likewise.
13872         * modules/unictype/property-grapheme-base: Likewise.
13873         * modules/unictype/property-grapheme-extend: Likewise.
13874         * modules/unictype/property-grapheme-link: Likewise.
13875         * modules/unictype/property-hex-digit: Likewise.
13876         * modules/unictype/property-hyphen: Likewise.
13877         * modules/unictype/property-id-continue: Likewise.
13878         * modules/unictype/property-id-start: Likewise.
13879         * modules/unictype/property-ideographic: Likewise.
13880         * modules/unictype/property-ids-binary-operator: Likewise.
13881         * modules/unictype/property-ids-trinary-operator: Likewise.
13882         * modules/unictype/property-ignorable-control: Likewise.
13883         * modules/unictype/property-iso-control: Likewise.
13884         * modules/unictype/property-join-control: Likewise.
13885         * modules/unictype/property-left-of-pair: Likewise.
13886         * modules/unictype/property-line-separator: Likewise.
13887         * modules/unictype/property-logical-order-exception: Likewise.
13888         * modules/unictype/property-lowercase: Likewise.
13889         * modules/unictype/property-math: Likewise.
13890         * modules/unictype/property-non-break: Likewise.
13891         * modules/unictype/property-not-a-character: Likewise.
13892         * modules/unictype/property-numeric: Likewise.
13893         * modules/unictype/property-other-alphabetic: Likewise.
13894         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13895         * modules/unictype/property-other-grapheme-extend: Likewise.
13896         * modules/unictype/property-other-id-continue: Likewise.
13897         * modules/unictype/property-other-id-start: Likewise.
13898         * modules/unictype/property-other-lowercase: Likewise.
13899         * modules/unictype/property-other-math: Likewise.
13900         * modules/unictype/property-other-uppercase: Likewise.
13901         * modules/unictype/property-paired-punctuation: Likewise.
13902         * modules/unictype/property-paragraph-separator: Likewise.
13903         * modules/unictype/property-pattern-syntax: Likewise.
13904         * modules/unictype/property-pattern-white-space: Likewise.
13905         * modules/unictype/property-private-use: Likewise.
13906         * modules/unictype/property-punctuation: Likewise.
13907         * modules/unictype/property-quotation-mark: Likewise.
13908         * modules/unictype/property-radical: Likewise.
13909         * modules/unictype/property-sentence-terminal: Likewise.
13910         * modules/unictype/property-soft-dotted: Likewise.
13911         * modules/unictype/property-space: Likewise.
13912         * modules/unictype/property-terminal-punctuation: Likewise.
13913         * modules/unictype/property-test: Likewise.
13914         * modules/unictype/property-titlecase: Likewise.
13915         * modules/unictype/property-unassigned-code-value: Likewise.
13916         * modules/unictype/property-unified-ideograph: Likewise.
13917         * modules/unictype/property-uppercase: Likewise.
13918         * modules/unictype/property-variation-selector: Likewise.
13919         * modules/unictype/property-white-space: Likewise.
13920         * modules/unictype/property-xid-continue: Likewise.
13921         * modules/unictype/property-xid-start: Likewise.
13922         * modules/unictype/property-zero-width: Likewise.
13923         * modules/unictype/scripts: Likewise.
13924         * modules/unictype/syntax-c-ident: Likewise.
13925         * modules/unictype/syntax-c-whitespace: Likewise.
13926         * modules/unictype/syntax-java-ident: Likewise.
13927         * modules/unictype/syntax-java-whitespace: Likewise.
13928         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13929         * modules/unilbrk/u8-width-linebreaks: Likewise.
13930         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13931         * modules/unilbrk/u16-width-linebreaks: Likewise.
13932         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13933         * modules/unilbrk/u32-width-linebreaks: Likewise.
13934         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13935         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13936         * modules/uniname/uniname: Likewise.
13937         * modules/uninorm/canonical-decomposition: Likewise.
13938         * modules/uninorm/composition: Likewise.
13939         * modules/uninorm/decomposing-form: Likewise.
13940         * modules/uninorm/decomposition: Likewise.
13941         * modules/uninorm/filter: Likewise.
13942         * modules/uninorm/nfc: Likewise.
13943         * modules/uninorm/nfd: Likewise.
13944         * modules/uninorm/nfkc: Likewise.
13945         * modules/uninorm/nfkd: Likewise.
13946         * modules/uninorm/u8-normalize: Likewise.
13947         * modules/uninorm/u8-normcmp: Likewise.
13948         * modules/uninorm/u8-normcoll: Likewise.
13949         * modules/uninorm/u8-normxfrm: Likewise.
13950         * modules/uninorm/u16-normalize: Likewise.
13951         * modules/uninorm/u16-normcmp: Likewise.
13952         * modules/uninorm/u16-normcoll: Likewise.
13953         * modules/uninorm/u16-normxfrm: Likewise.
13954         * modules/uninorm/u32-normalize: Likewise.
13955         * modules/uninorm/u32-normcmp: Likewise.
13956         * modules/uninorm/u32-normcoll: Likewise.
13957         * modules/uninorm/u32-normxfrm: Likewise.
13958         * modules/unistdio/u8-asnprintf: Likewise.
13959         * modules/unistdio/u8-asprintf: Likewise.
13960         * modules/unistdio/u8-snprintf: Likewise.
13961         * modules/unistdio/u8-sprintf: Likewise.
13962         * modules/unistdio/u8-u8-asnprintf: Likewise.
13963         * modules/unistdio/u8-u8-asprintf: Likewise.
13964         * modules/unistdio/u8-u8-snprintf: Likewise.
13965         * modules/unistdio/u8-u8-sprintf: Likewise.
13966         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13967         * modules/unistdio/u8-u8-vasprintf: Likewise.
13968         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13969         * modules/unistdio/u8-u8-vsprintf: Likewise.
13970         * modules/unistdio/u8-vasnprintf: Likewise.
13971         * modules/unistdio/u8-vasprintf: Likewise.
13972         * modules/unistdio/u8-vsnprintf: Likewise.
13973         * modules/unistdio/u8-vsprintf: Likewise.
13974         * modules/unistdio/u16-asnprintf: Likewise.
13975         * modules/unistdio/u16-asprintf: Likewise.
13976         * modules/unistdio/u16-snprintf: Likewise.
13977         * modules/unistdio/u16-sprintf: Likewise.
13978         * modules/unistdio/u16-u16-asnprintf: Likewise.
13979         * modules/unistdio/u16-u16-asprintf: Likewise.
13980         * modules/unistdio/u16-u16-snprintf: Likewise.
13981         * modules/unistdio/u16-u16-sprintf: Likewise.
13982         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13983         * modules/unistdio/u16-u16-vasprintf: Likewise.
13984         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13985         * modules/unistdio/u16-u16-vsprintf: Likewise.
13986         * modules/unistdio/u16-vasnprintf: Likewise.
13987         * modules/unistdio/u16-vasprintf: Likewise.
13988         * modules/unistdio/u16-vsnprintf: Likewise.
13989         * modules/unistdio/u16-vsprintf: Likewise.
13990         * modules/unistdio/u32-asnprintf: Likewise.
13991         * modules/unistdio/u32-asprintf: Likewise.
13992         * modules/unistdio/u32-snprintf: Likewise.
13993         * modules/unistdio/u32-sprintf: Likewise.
13994         * modules/unistdio/u32-u32-asnprintf: Likewise.
13995         * modules/unistdio/u32-u32-asprintf: Likewise.
13996         * modules/unistdio/u32-u32-snprintf: Likewise.
13997         * modules/unistdio/u32-u32-sprintf: Likewise.
13998         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13999         * modules/unistdio/u32-u32-vasprintf: Likewise.
14000         * modules/unistdio/u32-u32-vsnprintf: Likewise.
14001         * modules/unistdio/u32-u32-vsprintf: Likewise.
14002         * modules/unistdio/u32-vasnprintf: Likewise.
14003         * modules/unistdio/u32-vasprintf: Likewise.
14004         * modules/unistdio/u32-vsnprintf: Likewise.
14005         * modules/unistdio/u32-vsprintf: Likewise.
14006         * modules/unistdio/ulc-asnprintf: Likewise.
14007         * modules/unistdio/ulc-asprintf: Likewise.
14008         * modules/unistdio/ulc-fprintf: Likewise.
14009         * modules/unistdio/ulc-snprintf: Likewise.
14010         * modules/unistdio/ulc-sprintf: Likewise.
14011         * modules/unistdio/ulc-vasnprintf: Likewise.
14012         * modules/unistdio/ulc-vasprintf: Likewise.
14013         * modules/unistdio/ulc-vfprintf: Likewise.
14014         * modules/unistdio/ulc-vsnprintf: Likewise.
14015         * modules/unistdio/ulc-vsprintf: Likewise.
14016         * modules/unistr/u8-check: Likewise.
14017         * modules/unistr/u8-chr: Likewise.
14018         * modules/unistr/u8-cmp: Likewise.
14019         * modules/unistr/u8-cmp2: Likewise.
14020         * modules/unistr/u8-cpy: Likewise.
14021         * modules/unistr/u8-cpy-alloc: Likewise.
14022         * modules/unistr/u8-endswith: Likewise.
14023         * modules/unistr/u8-mblen: Likewise.
14024         * modules/unistr/u8-mbsnlen: Likewise.
14025         * modules/unistr/u8-mbtouc: Likewise.
14026         * modules/unistr/u8-mbtouc-unsafe: Likewise.
14027         * modules/unistr/u8-mbtoucr: Likewise.
14028         * modules/unistr/u8-move: Likewise.
14029         * modules/unistr/u8-next: Likewise.
14030         * modules/unistr/u8-prev: Likewise.
14031         * modules/unistr/u8-set: Likewise.
14032         * modules/unistr/u8-startswith: Likewise.
14033         * modules/unistr/u8-stpcpy: Likewise.
14034         * modules/unistr/u8-stpncpy: Likewise.
14035         * modules/unistr/u8-strcat: Likewise.
14036         * modules/unistr/u8-strchr: Likewise.
14037         * modules/unistr/u8-strcmp: Likewise.
14038         * modules/unistr/u8-strcoll: Likewise.
14039         * modules/unistr/u8-strcpy: Likewise.
14040         * modules/unistr/u8-strcspn: Likewise.
14041         * modules/unistr/u8-strdup: Likewise.
14042         * modules/unistr/u8-strlen: Likewise.
14043         * modules/unistr/u8-strmblen: Likewise.
14044         * modules/unistr/u8-strmbtouc: Likewise.
14045         * modules/unistr/u8-strncat: Likewise.
14046         * modules/unistr/u8-strncmp: Likewise.
14047         * modules/unistr/u8-strncpy: Likewise.
14048         * modules/unistr/u8-strnlen: Likewise.
14049         * modules/unistr/u8-strpbrk: Likewise.
14050         * modules/unistr/u8-strrchr: Likewise.
14051         * modules/unistr/u8-strspn: Likewise.
14052         * modules/unistr/u8-strstr: Likewise.
14053         * modules/unistr/u8-strtok: Likewise.
14054         * modules/unistr/u8-to-u16: Likewise.
14055         * modules/unistr/u8-to-u32: Likewise.
14056         * modules/unistr/u8-uctomb: Likewise.
14057         * modules/unistr/u16-check: Likewise.
14058         * modules/unistr/u16-chr: Likewise.
14059         * modules/unistr/u16-cmp: Likewise.
14060         * modules/unistr/u16-cmp2: Likewise.
14061         * modules/unistr/u16-cpy: Likewise.
14062         * modules/unistr/u16-cpy-alloc: Likewise.
14063         * modules/unistr/u16-endswith: Likewise.
14064         * modules/unistr/u16-mblen: Likewise.
14065         * modules/unistr/u16-mbsnlen: Likewise.
14066         * modules/unistr/u16-mbtouc: Likewise.
14067         * modules/unistr/u16-mbtouc-unsafe: Likewise.
14068         * modules/unistr/u16-mbtoucr: Likewise.
14069         * modules/unistr/u16-move: Likewise.
14070         * modules/unistr/u16-next: Likewise.
14071         * modules/unistr/u16-prev: Likewise.
14072         * modules/unistr/u16-set: Likewise.
14073         * modules/unistr/u16-startswith: Likewise.
14074         * modules/unistr/u16-stpcpy: Likewise.
14075         * modules/unistr/u16-stpncpy: Likewise.
14076         * modules/unistr/u16-strcat: Likewise.
14077         * modules/unistr/u16-strchr: Likewise.
14078         * modules/unistr/u16-strcmp: Likewise.
14079         * modules/unistr/u16-strcoll: Likewise.
14080         * modules/unistr/u16-strcpy: Likewise.
14081         * modules/unistr/u16-strcspn: Likewise.
14082         * modules/unistr/u16-strdup: Likewise.
14083         * modules/unistr/u16-strlen: Likewise.
14084         * modules/unistr/u16-strmblen: Likewise.
14085         * modules/unistr/u16-strmbtouc: Likewise.
14086         * modules/unistr/u16-strncat: Likewise.
14087         * modules/unistr/u16-strncmp: Likewise.
14088         * modules/unistr/u16-strncpy: Likewise.
14089         * modules/unistr/u16-strnlen: Likewise.
14090         * modules/unistr/u16-strpbrk: Likewise.
14091         * modules/unistr/u16-strrchr: Likewise.
14092         * modules/unistr/u16-strspn: Likewise.
14093         * modules/unistr/u16-strstr: Likewise.
14094         * modules/unistr/u16-strtok: Likewise.
14095         * modules/unistr/u16-to-u32: Likewise.
14096         * modules/unistr/u16-to-u8: Likewise.
14097         * modules/unistr/u16-uctomb: Likewise.
14098         * modules/unistr/u32-check: Likewise.
14099         * modules/unistr/u32-chr: Likewise.
14100         * modules/unistr/u32-cmp: Likewise.
14101         * modules/unistr/u32-cmp2: Likewise.
14102         * modules/unistr/u32-cpy: Likewise.
14103         * modules/unistr/u32-cpy-alloc: Likewise.
14104         * modules/unistr/u32-endswith: Likewise.
14105         * modules/unistr/u32-mblen: Likewise.
14106         * modules/unistr/u32-mbsnlen: Likewise.
14107         * modules/unistr/u32-mbtouc: Likewise.
14108         * modules/unistr/u32-mbtouc-unsafe: Likewise.
14109         * modules/unistr/u32-mbtoucr: Likewise.
14110         * modules/unistr/u32-move: Likewise.
14111         * modules/unistr/u32-next: Likewise.
14112         * modules/unistr/u32-prev: Likewise.
14113         * modules/unistr/u32-set: Likewise.
14114         * modules/unistr/u32-startswith: Likewise.
14115         * modules/unistr/u32-stpcpy: Likewise.
14116         * modules/unistr/u32-stpncpy: Likewise.
14117         * modules/unistr/u32-strcat: Likewise.
14118         * modules/unistr/u32-strchr: Likewise.
14119         * modules/unistr/u32-strcmp: Likewise.
14120         * modules/unistr/u32-strcoll: Likewise.
14121         * modules/unistr/u32-strcpy: Likewise.
14122         * modules/unistr/u32-strcspn: Likewise.
14123         * modules/unistr/u32-strdup: Likewise.
14124         * modules/unistr/u32-strlen: Likewise.
14125         * modules/unistr/u32-strmblen: Likewise.
14126         * modules/unistr/u32-strmbtouc: Likewise.
14127         * modules/unistr/u32-strncat: Likewise.
14128         * modules/unistr/u32-strncmp: Likewise.
14129         * modules/unistr/u32-strncpy: Likewise.
14130         * modules/unistr/u32-strnlen: Likewise.
14131         * modules/unistr/u32-strpbrk: Likewise.
14132         * modules/unistr/u32-strrchr: Likewise.
14133         * modules/unistr/u32-strspn: Likewise.
14134         * modules/unistr/u32-strstr: Likewise.
14135         * modules/unistr/u32-strtok: Likewise.
14136         * modules/unistr/u32-to-u16: Likewise.
14137         * modules/unistr/u32-to-u8: Likewise.
14138         * modules/unistr/u32-uctomb: Likewise.
14139         * modules/uniwbrk/u8-wordbreaks: Likewise.
14140         * modules/uniwbrk/u16-wordbreaks: Likewise.
14141         * modules/uniwbrk/u32-wordbreaks: Likewise.
14142         * modules/uniwbrk/ulc-wordbreaks: Likewise.
14143         * modules/uniwbrk/wordbreak-property: Likewise.
14144         * modules/uniwidth/u8-strwidth: Likewise.
14145         * modules/uniwidth/u8-width: Likewise.
14146         * modules/uniwidth/u16-strwidth: Likewise.
14147         * modules/uniwidth/u16-width: Likewise.
14148         * modules/uniwidth/u32-strwidth: Likewise.
14149         * modules/uniwidth/u32-width: Likewise.
14150         * modules/uniwidth/width: Likewise.
14151         * modules/unicase/cased-tests (Makefile.am): Link all test programs
14152         with $(LIBUNISTRING).
14153         * modules/unicase/ignorable-tests: Likewise.
14154         * modules/unicase/locale-language-tests: Likewise.
14155         * modules/unicase/tolower-tests: Likewise.
14156         * modules/unicase/totitle-tests: Likewise.
14157         * modules/unicase/toupper-tests: Likewise.
14158         * modules/unicase/u8-casecmp-tests: Likewise.
14159         * modules/unicase/u8-casecoll-tests: Likewise.
14160         * modules/unicase/u8-casefold-tests: Likewise.
14161         * modules/unicase/u8-is-cased-tests: Likewise.
14162         * modules/unicase/u8-is-casefolded-tests: Likewise.
14163         * modules/unicase/u8-is-lowercase-tests: Likewise.
14164         * modules/unicase/u8-is-titlecase-tests: Likewise.
14165         * modules/unicase/u8-is-uppercase-tests: Likewise.
14166         * modules/unicase/u8-tolower-tests: Likewise.
14167         * modules/unicase/u8-totitle-tests: Likewise.
14168         * modules/unicase/u8-toupper-tests: Likewise.
14169         * modules/unicase/u16-casecmp-tests: Likewise.
14170         * modules/unicase/u16-casecoll-tests: Likewise.
14171         * modules/unicase/u16-casefold-tests: Likewise.
14172         * modules/unicase/u16-is-cased-tests: Likewise.
14173         * modules/unicase/u16-is-casefolded-tests: Likewise.
14174         * modules/unicase/u16-is-lowercase-tests: Likewise.
14175         * modules/unicase/u16-is-titlecase-tests: Likewise.
14176         * modules/unicase/u16-is-uppercase-tests: Likewise.
14177         * modules/unicase/u16-tolower-tests: Likewise.
14178         * modules/unicase/u16-totitle-tests: Likewise.
14179         * modules/unicase/u16-toupper-tests: Likewise.
14180         * modules/unicase/u32-casecmp-tests: Likewise.
14181         * modules/unicase/u32-casecoll-tests: Likewise.
14182         * modules/unicase/u32-casefold-tests: Likewise.
14183         * modules/unicase/u32-is-cased-tests: Likewise.
14184         * modules/unicase/u32-is-casefolded-tests: Likewise.
14185         * modules/unicase/u32-is-lowercase-tests: Likewise.
14186         * modules/unicase/u32-is-titlecase-tests: Likewise.
14187         * modules/unicase/u32-is-uppercase-tests: Likewise.
14188         * modules/unicase/u32-tolower-tests: Likewise.
14189         * modules/unicase/u32-totitle-tests: Likewise.
14190         * modules/unicase/u32-toupper-tests: Likewise.
14191         * modules/unicase/ulc-casecmp-tests: Likewise.
14192         * modules/unicase/ulc-casecoll-tests: Likewise.
14193         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
14194         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
14195         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
14196         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
14197         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
14198         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
14199         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
14200         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
14201         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
14202         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
14203         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
14204         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
14205         * modules/unictype/bidicategory-byname-tests: Likewise.
14206         * modules/unictype/bidicategory-name-tests: Likewise.
14207         * modules/unictype/bidicategory-of-tests: Likewise.
14208         * modules/unictype/bidicategory-test-tests: Likewise.
14209         * modules/unictype/block-list-tests: Likewise.
14210         * modules/unictype/block-of-tests: Likewise.
14211         * modules/unictype/block-test-tests: Likewise.
14212         * modules/unictype/category-C-tests: Likewise.
14213         * modules/unictype/category-Cc-tests: Likewise.
14214         * modules/unictype/category-Cf-tests: Likewise.
14215         * modules/unictype/category-Cn-tests: Likewise.
14216         * modules/unictype/category-Co-tests: Likewise.
14217         * modules/unictype/category-Cs-tests: Likewise.
14218         * modules/unictype/category-L-tests: Likewise.
14219         * modules/unictype/category-Ll-tests: Likewise.
14220         * modules/unictype/category-Lm-tests: Likewise.
14221         * modules/unictype/category-Lo-tests: Likewise.
14222         * modules/unictype/category-Lt-tests: Likewise.
14223         * modules/unictype/category-Lu-tests: Likewise.
14224         * modules/unictype/category-M-tests: Likewise.
14225         * modules/unictype/category-Mc-tests: Likewise.
14226         * modules/unictype/category-Me-tests: Likewise.
14227         * modules/unictype/category-Mn-tests: Likewise.
14228         * modules/unictype/category-N-tests: Likewise.
14229         * modules/unictype/category-Nd-tests: Likewise.
14230         * modules/unictype/category-Nl-tests: Likewise.
14231         * modules/unictype/category-No-tests: Likewise.
14232         * modules/unictype/category-P-tests: Likewise.
14233         * modules/unictype/category-Pc-tests: Likewise.
14234         * modules/unictype/category-Pd-tests: Likewise.
14235         * modules/unictype/category-Pe-tests: Likewise.
14236         * modules/unictype/category-Pf-tests: Likewise.
14237         * modules/unictype/category-Pi-tests: Likewise.
14238         * modules/unictype/category-Po-tests: Likewise.
14239         * modules/unictype/category-Ps-tests: Likewise.
14240         * modules/unictype/category-S-tests: Likewise.
14241         * modules/unictype/category-Sc-tests: Likewise.
14242         * modules/unictype/category-Sk-tests: Likewise.
14243         * modules/unictype/category-Sm-tests: Likewise.
14244         * modules/unictype/category-So-tests: Likewise.
14245         * modules/unictype/category-Z-tests: Likewise.
14246         * modules/unictype/category-Zl-tests: Likewise.
14247         * modules/unictype/category-Zp-tests: Likewise.
14248         * modules/unictype/category-Zs-tests: Likewise.
14249         * modules/unictype/category-and-not-tests: Likewise.
14250         * modules/unictype/category-and-tests: Likewise.
14251         * modules/unictype/category-byname-tests: Likewise.
14252         * modules/unictype/category-name-tests: Likewise.
14253         * modules/unictype/category-none-tests: Likewise.
14254         * modules/unictype/category-of-tests: Likewise.
14255         * modules/unictype/category-or-tests: Likewise.
14256         * modules/unictype/category-test-withtable-tests: Likewise.
14257         * modules/unictype/combining-class-tests: Likewise.
14258         * modules/unictype/ctype-alnum-tests: Likewise.
14259         * modules/unictype/ctype-alpha-tests: Likewise.
14260         * modules/unictype/ctype-blank-tests: Likewise.
14261         * modules/unictype/ctype-cntrl-tests: Likewise.
14262         * modules/unictype/ctype-digit-tests: Likewise.
14263         * modules/unictype/ctype-graph-tests: Likewise.
14264         * modules/unictype/ctype-lower-tests: Likewise.
14265         * modules/unictype/ctype-print-tests: Likewise.
14266         * modules/unictype/ctype-punct-tests: Likewise.
14267         * modules/unictype/ctype-space-tests: Likewise.
14268         * modules/unictype/ctype-upper-tests: Likewise.
14269         * modules/unictype/ctype-xdigit-tests: Likewise.
14270         * modules/unictype/decimal-digit-tests: Likewise.
14271         * modules/unictype/digit-tests: Likewise.
14272         * modules/unictype/mirror-tests: Likewise.
14273         * modules/unictype/numeric-tests: Likewise.
14274         * modules/unictype/property-alphabetic-tests: Likewise.
14275         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14276         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14277         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14278         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14279         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14280         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14281         * modules/unictype/property-bidi-control-tests: Likewise.
14282         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14283         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14284         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14285         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14286         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14287         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14288         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14289         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14290         * modules/unictype/property-bidi-pdf-tests: Likewise.
14291         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14292         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14293         * modules/unictype/property-byname-tests: Likewise.
14294         * modules/unictype/property-combining-tests: Likewise.
14295         * modules/unictype/property-composite-tests: Likewise.
14296         * modules/unictype/property-currency-symbol-tests: Likewise.
14297         * modules/unictype/property-dash-tests: Likewise.
14298         * modules/unictype/property-decimal-digit-tests: Likewise.
14299         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14300         * modules/unictype/property-deprecated-tests: Likewise.
14301         * modules/unictype/property-diacritic-tests: Likewise.
14302         * modules/unictype/property-extender-tests: Likewise.
14303         * modules/unictype/property-format-control-tests: Likewise.
14304         * modules/unictype/property-grapheme-base-tests: Likewise.
14305         * modules/unictype/property-grapheme-extend-tests: Likewise.
14306         * modules/unictype/property-grapheme-link-tests: Likewise.
14307         * modules/unictype/property-hex-digit-tests: Likewise.
14308         * modules/unictype/property-hyphen-tests: Likewise.
14309         * modules/unictype/property-id-continue-tests: Likewise.
14310         * modules/unictype/property-id-start-tests: Likewise.
14311         * modules/unictype/property-ideographic-tests: Likewise.
14312         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14313         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14314         * modules/unictype/property-ignorable-control-tests: Likewise.
14315         * modules/unictype/property-iso-control-tests: Likewise.
14316         * modules/unictype/property-join-control-tests: Likewise.
14317         * modules/unictype/property-left-of-pair-tests: Likewise.
14318         * modules/unictype/property-line-separator-tests: Likewise.
14319         * modules/unictype/property-logical-order-exception-tests: Likewise.
14320         * modules/unictype/property-lowercase-tests: Likewise.
14321         * modules/unictype/property-math-tests: Likewise.
14322         * modules/unictype/property-non-break-tests: Likewise.
14323         * modules/unictype/property-not-a-character-tests: Likewise.
14324         * modules/unictype/property-numeric-tests: Likewise.
14325         * modules/unictype/property-other-alphabetic-tests: Likewise.
14326         * modules/unictype/property-other-default-ignorable-code-point-tests:
14327         Likewise.
14328         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14329         * modules/unictype/property-other-id-continue-tests: Likewise.
14330         * modules/unictype/property-other-id-start-tests: Likewise.
14331         * modules/unictype/property-other-lowercase-tests: Likewise.
14332         * modules/unictype/property-other-math-tests: Likewise.
14333         * modules/unictype/property-other-uppercase-tests: Likewise.
14334         * modules/unictype/property-paired-punctuation-tests: Likewise.
14335         * modules/unictype/property-paragraph-separator-tests: Likewise.
14336         * modules/unictype/property-pattern-syntax-tests: Likewise.
14337         * modules/unictype/property-pattern-white-space-tests: Likewise.
14338         * modules/unictype/property-private-use-tests: Likewise.
14339         * modules/unictype/property-punctuation-tests: Likewise.
14340         * modules/unictype/property-quotation-mark-tests: Likewise.
14341         * modules/unictype/property-radical-tests: Likewise.
14342         * modules/unictype/property-sentence-terminal-tests: Likewise.
14343         * modules/unictype/property-soft-dotted-tests: Likewise.
14344         * modules/unictype/property-space-tests: Likewise.
14345         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14346         * modules/unictype/property-test-tests: Likewise.
14347         * modules/unictype/property-titlecase-tests: Likewise.
14348         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14349         * modules/unictype/property-unified-ideograph-tests: Likewise.
14350         * modules/unictype/property-uppercase-tests: Likewise.
14351         * modules/unictype/property-variation-selector-tests: Likewise.
14352         * modules/unictype/property-white-space-tests: Likewise.
14353         * modules/unictype/property-xid-continue-tests: Likewise.
14354         * modules/unictype/property-xid-start-tests: Likewise.
14355         * modules/unictype/property-zero-width-tests: Likewise.
14356         * modules/unictype/scripts-tests: Likewise.
14357         * modules/unictype/syntax-c-ident-tests: Likewise.
14358         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14359         * modules/unictype/syntax-java-ident-tests: Likewise.
14360         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14361         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14362         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14363         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14364         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14365         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14366         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14367         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14368         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14369         * modules/uniname/uniname-tests: Likewise.
14370         * modules/uninorm/canonical-decomposition-tests: Likewise.
14371         * modules/uninorm/compat-decomposition-tests: Likewise.
14372         * modules/uninorm/composition-tests: Likewise.
14373         * modules/uninorm/decomposing-form-tests: Likewise.
14374         * modules/uninorm/decomposition-tests: Likewise.
14375         * modules/uninorm/filter-tests: Likewise.
14376         * modules/uninorm/nfc-tests: Likewise.
14377         * modules/uninorm/nfd-tests: Likewise.
14378         * modules/uninorm/nfkc-tests: Likewise.
14379         * modules/uninorm/nfkd-tests: Likewise.
14380         * modules/uninorm/u8-normcmp-tests: Likewise.
14381         * modules/uninorm/u8-normcoll-tests: Likewise.
14382         * modules/uninorm/u16-normcmp-tests: Likewise.
14383         * modules/uninorm/u16-normcoll-tests: Likewise.
14384         * modules/uninorm/u32-normcmp-tests: Likewise.
14385         * modules/uninorm/u32-normcoll-tests: Likewise.
14386         * modules/unistdio/u8-asnprintf-tests: Likewise.
14387         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14388         * modules/unistdio/u8-vasprintf-tests: Likewise.
14389         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14390         * modules/unistdio/u8-vsprintf-tests: Likewise.
14391         * modules/unistdio/u16-asnprintf-tests: Likewise.
14392         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14393         * modules/unistdio/u16-vasprintf-tests: Likewise.
14394         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14395         * modules/unistdio/u16-vsprintf-tests: Likewise.
14396         * modules/unistdio/u32-asnprintf-tests: Likewise.
14397         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14398         * modules/unistdio/u32-vasprintf-tests: Likewise.
14399         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14400         * modules/unistdio/u32-vsprintf-tests: Likewise.
14401         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14402         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14403         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14404         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14405         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14406         * modules/unistr/u8-check-tests: Likewise.
14407         * modules/unistr/u8-chr-tests: Likewise.
14408         * modules/unistr/u8-cmp-tests: Likewise.
14409         * modules/unistr/u8-cmp2-tests: Likewise.
14410         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14411         * modules/unistr/u8-cpy-tests: Likewise.
14412         * modules/unistr/u8-mblen-tests: Likewise.
14413         * modules/unistr/u8-mbsnlen-tests: Likewise.
14414         * modules/unistr/u8-mbtouc-tests: Likewise.
14415         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14416         * modules/unistr/u8-mbtoucr-tests: Likewise.
14417         * modules/unistr/u8-move-tests: Likewise.
14418         * modules/unistr/u8-next-tests: Likewise.
14419         * modules/unistr/u8-prev-tests: Likewise.
14420         * modules/unistr/u8-set-tests: Likewise.
14421         * modules/unistr/u8-stpcpy-tests: Likewise.
14422         * modules/unistr/u8-stpncpy-tests: Likewise.
14423         * modules/unistr/u8-strcat-tests: Likewise.
14424         * modules/unistr/u8-strcmp-tests: Likewise.
14425         * modules/unistr/u8-strcoll-tests: Likewise.
14426         * modules/unistr/u8-strcpy-tests: Likewise.
14427         * modules/unistr/u8-strdup-tests: Likewise.
14428         * modules/unistr/u8-strlen-tests: Likewise.
14429         * modules/unistr/u8-strmblen-tests: Likewise.
14430         * modules/unistr/u8-strmbtouc-tests: Likewise.
14431         * modules/unistr/u8-strncat-tests: Likewise.
14432         * modules/unistr/u8-strncmp-tests: Likewise.
14433         * modules/unistr/u8-strncpy-tests: Likewise.
14434         * modules/unistr/u8-strnlen-tests: Likewise.
14435         * modules/unistr/u8-to-u16-tests: Likewise.
14436         * modules/unistr/u8-to-u32-tests: Likewise.
14437         * modules/unistr/u8-uctomb-tests: Likewise.
14438         * modules/unistr/u16-check-tests: Likewise.
14439         * modules/unistr/u16-chr-tests: Likewise.
14440         * modules/unistr/u16-cmp-tests: Likewise.
14441         * modules/unistr/u16-cmp2-tests: Likewise.
14442         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14443         * modules/unistr/u16-cpy-tests: Likewise.
14444         * modules/unistr/u16-mblen-tests: Likewise.
14445         * modules/unistr/u16-mbsnlen-tests: Likewise.
14446         * modules/unistr/u16-mbtouc-tests: Likewise.
14447         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14448         * modules/unistr/u16-mbtoucr-tests: Likewise.
14449         * modules/unistr/u16-move-tests: Likewise.
14450         * modules/unistr/u16-next-tests: Likewise.
14451         * modules/unistr/u16-prev-tests: Likewise.
14452         * modules/unistr/u16-set-tests: Likewise.
14453         * modules/unistr/u16-stpcpy-tests: Likewise.
14454         * modules/unistr/u16-stpncpy-tests: Likewise.
14455         * modules/unistr/u16-strcat-tests: Likewise.
14456         * modules/unistr/u16-strcmp-tests: Likewise.
14457         * modules/unistr/u16-strcoll-tests: Likewise.
14458         * modules/unistr/u16-strcpy-tests: Likewise.
14459         * modules/unistr/u16-strdup-tests: Likewise.
14460         * modules/unistr/u16-strlen-tests: Likewise.
14461         * modules/unistr/u16-strmblen-tests: Likewise.
14462         * modules/unistr/u16-strmbtouc-tests: Likewise.
14463         * modules/unistr/u16-strncat-tests: Likewise.
14464         * modules/unistr/u16-strncmp-tests: Likewise.
14465         * modules/unistr/u16-strncpy-tests: Likewise.
14466         * modules/unistr/u16-strnlen-tests: Likewise.
14467         * modules/unistr/u16-to-u32-tests: Likewise.
14468         * modules/unistr/u16-to-u8-tests: Likewise.
14469         * modules/unistr/u16-uctomb-tests: Likewise.
14470         * modules/unistr/u32-check-tests: Likewise.
14471         * modules/unistr/u32-chr-tests: Likewise.
14472         * modules/unistr/u32-cmp-tests: Likewise.
14473         * modules/unistr/u32-cmp2-tests: Likewise.
14474         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14475         * modules/unistr/u32-cpy-tests: Likewise.
14476         * modules/unistr/u32-mblen-tests: Likewise.
14477         * modules/unistr/u32-mbsnlen-tests: Likewise.
14478         * modules/unistr/u32-mbtouc-tests: Likewise.
14479         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14480         * modules/unistr/u32-mbtoucr-tests: Likewise.
14481         * modules/unistr/u32-move-tests: Likewise.
14482         * modules/unistr/u32-next-tests: Likewise.
14483         * modules/unistr/u32-prev-tests: Likewise.
14484         * modules/unistr/u32-set-tests: Likewise.
14485         * modules/unistr/u32-stpcpy-tests: Likewise.
14486         * modules/unistr/u32-stpncpy-tests: Likewise.
14487         * modules/unistr/u32-strcat-tests: Likewise.
14488         * modules/unistr/u32-strcmp-tests: Likewise.
14489         * modules/unistr/u32-strcoll-tests: Likewise.
14490         * modules/unistr/u32-strcpy-tests: Likewise.
14491         * modules/unistr/u32-strdup-tests: Likewise.
14492         * modules/unistr/u32-strlen-tests: Likewise.
14493         * modules/unistr/u32-strmblen-tests: Likewise.
14494         * modules/unistr/u32-strmbtouc-tests: Likewise.
14495         * modules/unistr/u32-strncat-tests: Likewise.
14496         * modules/unistr/u32-strncmp-tests: Likewise.
14497         * modules/unistr/u32-strncpy-tests: Likewise.
14498         * modules/unistr/u32-strnlen-tests: Likewise.
14499         * modules/unistr/u32-to-u16-tests: Likewise.
14500         * modules/unistr/u32-to-u8-tests: Likewise.
14501         * modules/unistr/u32-uctomb-tests: Likewise.
14502         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14503         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14504         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14505         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14506         * modules/uniwidth/u8-strwidth-tests: Likewise.
14507         * modules/uniwidth/u8-width-tests: Likewise.
14508         * modules/uniwidth/u16-strwidth-tests: Likewise.
14509         * modules/uniwidth/u16-width-tests: Likewise.
14510         * modules/uniwidth/u32-strwidth-tests: Likewise.
14511         * modules/uniwidth/u32-width-tests: Likewise.
14512         * modules/uniwidth/width-tests: Likewise.
14513
14514 2010-05-18  Richard Jones  <rjones@redhat.com>
14515
14516         doc: users.txt: list hivex
14517         * users.txt: Add hivex.
14518
14519 2010-05-18  Richard Jones  <rjones@redhat.com>
14520
14521         doc: users.txt: list febootstrap
14522         * users.txt: Add febootstrap.
14523
14524 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14525
14526         bootstrap: fix an error when gnulib is not used as a git submodule
14527         * build-aux/bootstrap (gnulib_path): If its length is zero then
14528         assign "gnulib" to it.
14529         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14530
14531 2010-05-16  Bruno Haible  <bruno@clisp.org>
14532
14533         Avoid autoconf warnings about AM_ICONV.
14534         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14535         2.64.
14536
14537 2010-05-16  Bruno Haible  <bruno@clisp.org>
14538
14539         absolute-header: Make the macro usable in more situations.
14540         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14541         from gl_ABSOLUTE_HEADER.
14542         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14543
14544 2010-05-16  James Youngman  <jay@gnu.org>
14545
14546         doc: update users.txt
14547         * users.txt: Add CSSC.
14548
14549 2010-05-16  Jim Meyering  <meyering@redhat.com>
14550
14551         init.sh: fix an error in the previous change; add more comments
14552         * tests/init.sh: Compare exit code in loop against 9, not 2.
14553         Patch by Bruno Haible.
14554         Make the two tests more similar by adding an empty "then" clause.
14555         Add comments.
14556
14557         init.sh: avoid unnecessary shell re-exec
14558         * tests/init.sh: Improve the re-exec-required check to first test the
14559         current shell.  If it passes the test, do not search for a shell that
14560         does pass, and do not re-exec.  This test is particularly contorted to
14561         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14562         of $(...) evokes a syntax error and causes immediate shell exit with
14563         status 2.  Bruno Haible reported that the re-exec made it impossible
14564         to single-step through any init.sh-using script.
14565
14566 2010-05-16  Bruno Haible  <bruno@clisp.org>
14567
14568         Fix collision between gnulib's and libintl's printf replacements.
14569         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14570         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14571         (printf): When using GNU C, map the __printf__ function to rpl_printf
14572         via __asm__. When not using GNU C, define rpl_printf instead of
14573         __printf__.
14574         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14575         commit.
14576         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14577         commit.
14578         * m4/asm-underscore.m4: New file.
14579         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14580         * modules/stdio (Files): Add m4/asm-underscore.m4.
14581         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14582         Reported by Ben Pfaff.
14583
14584 2010-05-16  Bruno Haible  <bruno@clisp.org>
14585
14586         verify: Avoid skipping the test on openSUSE 11.0.
14587         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14588
14589 2010-05-13  Bruno Haible  <bruno@clisp.org>
14590
14591         Avoid useless warnings from G++.
14592         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14593         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14594         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14595
14596 2010-05-11  Jim Meyering  <meyering@redhat.com>
14597
14598         maint.mk: tweak preceding change
14599         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14600         regexps tighter by anchoring at EOL, and make the new group "shy"
14601         for slightly decreased overhead.
14602
14603 2010-05-11  Eric Blake  <eblake@redhat.com>
14604
14605         maint.mk: gnulib doesn't guarantee NSIG
14606         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14607
14608 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14609
14610         test-pwrite.c: Remove unused variable declaration.
14611         * tests/test-pwrite.c (main): Remove read_buf declaration.
14612
14613         Remove useless test-pwrite.sh file.
14614         * tests/test-pwrite.sh: Delete file.
14615         * modules/pwrite-tests: Remove references.
14616         Reported by Bruno Haible.
14617
14618 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14619
14620         init.sh: fix a typo
14621         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14622
14623 2010-05-10  Jim Meyering  <meyering@redhat.com>
14624
14625         maint.mk: avoid using a temporary file in the always-defined-macros check
14626         * top/maint.mk (.re-defmac): Remove rule.
14627         (gl_trap_): Remove definition.
14628         (sc_prohibit_always-defined_macros): Rewrite not to create and
14629         depend on a temporary file.  Instead, depend on GNU grep's ability
14630         to read a list of regular expressions from stdin when given "-f -".
14631
14632 2010-05-09  Bruno Haible  <bruno@clisp.org>
14633
14634         Update to GNU gettext 0.18, part 1.
14635         * m4/gettext.m4: Update to GNU gettext 0.18.
14636         * m4/intl.m4: Likewise.
14637         * m4/po.m4: Likewise.
14638         * modules/gettext (Files): Add m4/fcntl-o.m4.
14639         (configure.ac): Require gettext infrastructure from version 0.18.
14640
14641 2010-05-09  Jim Meyering  <meyering@redhat.com>
14642
14643         init.sh: enable MALLOC_PERTURB_
14644         * tests/init.sh: Enable glibc's malloc-perturbing option.
14645
14646         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14647         With my recent change in init.sh from the two-line form:
14648             -#   : ${srcdir=.}
14649             -#   . "$srcdir/init.sh"; path_prepend_ .
14650             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14651         I noticed that using the one-line form would cause this test
14652         to fail with a false-positive, or to stop working altogether,
14653         depending on whether help-version changed or all the tests did.
14654         * top/maint.mk (_hv_regex): Remove this definition.
14655         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14656         (_hv_regex_strong): Use a stronger regex to check for conformance.
14657         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14658         Give a separate diagnostic for lack of conforming use.
14659
14660         maint.mk: prohibit definition of symbols defined by gnulib
14661         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14662         definition of symbols defined by gnulib.
14663
14664 2010-05-09  Bruno Haible  <bruno@clisp.org>
14665
14666         acl: Avoid test failure on Cygwin-hosted mingw.
14667         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14668
14669 2010-05-09  Bruno Haible  <bruno@clisp.org>
14670
14671         error: Use system's fcntl function.
14672         * lib/error.c (fcntl): Undefine.
14673
14674 2010-05-09  Jim Meyering  <meyering@redhat.com>
14675
14676         verify: adjust formatting to be more consistent
14677         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14678         argument-list '('s, and after one comma.
14679
14680 2010-05-09  Bruno Haible  <bruno@clisp.org>
14681
14682         error: More reliable output on mingw.
14683         * lib/error.c: Include <windows.h>.
14684         (is_open): New function.
14685         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14686         defined.
14687
14688 2010-05-09  Bruno Haible  <bruno@clisp.org>
14689
14690         vasnprintf: Fix syntax errors in libintl build on mingw.
14691         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14692         pad_ourselves and prec_ourselves after use.
14693
14694 2010-05-08  Bruno Haible  <bruno@clisp.org>
14695
14696         * lib/config.charset: Update comments for Cygwin 1.7.
14697         * lib/localcharset.c: Likewise.
14698
14699 2010-05-07  Jim Meyering  <meyering@redhat.com>
14700
14701         init.sh: improve comments
14702         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14703         . "${srcdir=.}/init.sh"; path_prepend_ .
14704         Add a note about path_prepend_ and the alternative of using
14705         TESTS_ENVIRONMENT.
14706
14707 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14708
14709         exclude: Unescape hashed patterns in wildcard mode.
14710         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14711         to the hash list.
14712         * tests/test-exclude8.sh: New test case.
14713         * modules/exclude-tests: Add new test.
14714
14715 2010-05-05  Eric Blake  <eblake@redhat.com>
14716
14717         verify: automate tests
14718         * modules/verify-tests: New module.
14719         * tests/test-verify.sh: New file.
14720         * tests/test-verify.c: Guard each negative test with a unique id.
14721         Also avoid warning about unused left hand of comma expressions.
14722
14723 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14724
14725         Further improvements to verify.h, suggested by Eric Blake.
14726         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14727         the GL_* versions, to avoid collision with OpenGL.
14728         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14729         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14730         than testing merely whether it's defined.
14731
14732         Modify verify.h to pacify gcc -Wredundant_decls.
14733         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14734         These use the prefix "GL_" since they're likely to be useful elsewhere.
14735         We may need to break them out into a different .h file.
14736         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14737         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14738         of verify_function__.
14739
14740 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14741
14742         Tests for module pwrite.
14743         * modules/pwrite-tests: New file.
14744         * tests/test-pwrite.sh: New file.
14745         * tests/test-pwrite.c: New file.
14746
14747         New module pwrite.
14748         * lib/unistd.in.h (pwrite): New declaration.
14749         * lib/pwrite.c: New file, from glibc with modifications.
14750         * m4/pwrite.m4: New file.
14751         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14752         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14753         REPLACE_PWRITE.
14754         * modules/pwrite: New file.
14755         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14756         REPLACE_PWRITE.
14757         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14758         * doc/posix-functions/pwrite.texi: Mention the new module.
14759
14760 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14761
14762         pread: Update documentation.
14763         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14764
14765 2010-05-04  Eric Blake  <eblake@redhat.com>
14766
14767         docs: update cygwin progress
14768         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14769         this bug.
14770         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14771         Added in cygwin 1.7.2.
14772         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14773         Likewise.
14774         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14775         Likewise.
14776         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14777         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14778         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14779         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14780         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14781         Mention nproc module.
14782         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14783         bug in cygwin 1.7.5 addition.
14784         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14785         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14786         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14787         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14788         1.7.5.
14789         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14790         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14791         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14792         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14793         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14794         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14795         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14796         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14797         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14798         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14799         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14800         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14801         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14802         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14803         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14804         Likewise.
14805         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14806         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14807         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14808         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14809         Likewise.
14810         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14811         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14812         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14813         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14814         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14815         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14816         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14817         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14818         Likewise.
14819         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14820         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14821         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14822         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14823         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14824         Likewise.
14825         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14826         Likewise.
14827         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14828         Likewise.
14829         * doc/glibc-functions/xdrrec_endofrecord.texi
14830         (xdrrec_endofrecord): Likewise.
14831         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14832         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14833         Likewise.
14834         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14835         Likewise.
14836
14837 2010-05-04  Jim Meyering  <meyering@redhat.com>
14838
14839         gendocs.sh: make its "-s FILE" option more useful
14840         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14841         $PACKAGE to reflect the probably-different basename of "FILE".
14842
14843 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14844
14845         bootstrap: don't ignore download_po_files failure
14846         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14847         failure.
14848
14849 2010-05-03  Jim Meyering  <meyering@redhat.com>
14850
14851         maint.mk: allow to pass options to gendocs.sh
14852         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14853         (gendocs_options_): New overridable variable.
14854
14855         gnu-web-doc-update: don't ignore configure or build failure
14856         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14857
14858         announce-gen: backslash-escape '@'s in --help output
14859         * build-aux/announce-gen: Fix syntax errors.
14860
14861         maint.mk, announce-gen: allow project-specific announcement mail headers
14862         * top/maint.mk (translation_project_): Define default.
14863         (announcement_Cc_, announcement_mail_headers_): Likewise.
14864         (announcement): Invoke announce-gen with new --mail-headers option.
14865         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14866
14867         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14868         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14869         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14870         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14871         line in the "err2" output file when running "make check" in verbose
14872         mode (i.e., with set -x enabled).
14873
14874 2010-05-03  Bruno Haible  <bruno@clisp.org>
14875
14876         wctob: Fix for weird platforms.
14877         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14878         argument value.
14879
14880 2010-05-03  Jim Meyering  <meyering@redhat.com>
14881
14882         maint.mk: prohibit unwarranted use of <strings.h>
14883         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14884         strings.h in a file that does not also use strcasecmp, strncasecmp,
14885         ffs or ffsll.
14886
14887         maint.mk: remove obsolete comments
14888         * top/maint.mk: Remove stale, commented-out rules.
14889
14890 2010-05-02  Bruno Haible  <bruno@clisp.org>
14891
14892         wcwidth: Declare also when it's aliased.
14893         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14894         macro.
14895
14896 2010-05-02  Bruno Haible  <bruno@clisp.org>
14897
14898         Fix regression from 2010-04-25.
14899         * gnulib-tool (func_modules_transitive_closure): Check the status of
14900         all modules, not only of the tests that are of the form foo-tests where
14901         foo is a module.
14902
14903 2010-05-02  Bruno Haible  <bruno@clisp.org>
14904
14905         wctob: Work around nasty Cygwin 1.7.2 bug.
14906         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14907         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14908
14909 2010-05-01  Bruno Haible  <bruno@clisp.org>
14910
14911         fpurge: Sharper test.
14912         * tests/test-fpurge.c (main): Add one more ftell check.
14913         * modules/fpurge-tests (Depends-on): Add ftell.
14914         Suggested by Eric Blake.
14915
14916 2010-05-01  Bruno Haible  <bruno@clisp.org>
14917
14918         ftello: Another test.
14919         * tests/test-ftello3.c: New file.
14920         * modules/ftello-tests (Files): Add it.
14921         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14922         MOSTLYCLEANFILES.
14923
14924         ftell: Another test.
14925         * tests/test-ftell3.c: New file.
14926         * modules/ftell-tests (Files): Add it.
14927         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14928         MOSTLYCLEANFILES.
14929
14930 2010-05-01  Bruno Haible  <bruno@clisp.org>
14931
14932         ftell, ftello: Work around Solaris bug.
14933         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14934         * lib/ftello.c: Include stdio-impl.h.
14935         (ftello): On Solaris, when _IOWRT is set, compute the result without
14936         looking at _IOREAD.
14937         * modules/ftello (Files): Add lib/stdio-impl.h.
14938         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14939         * doc/posix-functions/ftello.texi: Likewise.
14940         Reported by Eric Blake.
14941
14942 2010-05-01  Bruno Haible  <bruno@clisp.org>
14943
14944         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14945         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14946         the _IOWRT flag is also set.
14947
14948 2010-05-01  Bruno Haible  <bruno@clisp.org>
14949
14950         Fix doc about a HP-UX stdio bug.
14951         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14952         * doc/posix-functions/ftello.texi: Likewise.
14953
14954 2010-05-01  Bruno Haible  <bruno@clisp.org>
14955
14956         lseek test: Fix failure on Solaris.
14957         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14958         output.
14959
14960 2010-04-30  Jim Meyering  <meyering@redhat.com>
14961
14962         bootstrap: don't ignore failure to generate po*/Makevars
14963         * build-aux/bootstrap (with_gettext): Don't ignore failure
14964         to create po/Makevars or runtime-po/Makevars.
14965
14966 2010-04-29  Eric Blake  <eblake@redhat.com>
14967
14968         headers: relax license to LGPLv2+
14969         * modules/fcntl-h (License): Relax license.
14970         * modules/getopt-posix (License): Likewise.
14971         * modules/locale (License): Likewise.
14972         * modules/math (License): Likewise.
14973         * modules/pty (License): Likewise.
14974         * modules/sched (License): Likewise.
14975         * modules/search (License): Likewise.
14976         * modules/spawn (License): Likewise.
14977         * modules/stdarg (License): Likewise.
14978         * modules/sysexits (License): Likewise.
14979
14980 2010-04-29  Jim Meyering  <meyering@redhat.com>
14981
14982         inttypes: relax license to LGPLv2+
14983         * modules/inttypes (License): Relax license.
14984
14985 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14986
14987         * top/maint.mk (indent): Run twice to produce idempotent results.
14988
14989 2010-04-28  Bruno Haible  <bruno@clisp.org>
14990
14991         getdate: Generate getdate.c in the source directory.
14992         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14993         MOSTLYCLEANFILES.
14994         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14995
14996 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14997
14998         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14999         is not declared as a const *; avoid warnings in that case.
15000
15001 2010-04-28  Eric Blake  <eblake@redhat.com>
15002
15003         canonicalize-lgpl: avoid compiler warning
15004         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
15005         declaration' / 'extraneous semicolon' warning with some compilers.
15006         Reported by Andreas Gruenbacher.
15007
15008 2010-04-28  Jim Meyering  <meyering@redhat.com>
15009
15010         init.sh: ensure a more reliable exit status when exiting via trap
15011         * tests/init.sh (setup_): Don't rely on $? in signal handler.
15012         Inspired by patches from Dmitry V. Levin.
15013         Also trap on signal 3 (SIGQUIT).
15014
15015 2010-04-27  Bruno Haible  <bruno@clisp.org>
15016
15017         Update doc about utimes().
15018         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
15019         'utimens' module.
15020         Reported by Andreas Gruenbacher <agruen@suse.de>.
15021
15022 2010-04-27  Eric Blake  <eblake@redhat.com>
15023
15024         full-read, full-write: relax license
15025         * modules/full-read (License): Drop to LGPLv2+.
15026         * modules/full-write (License): Likewise.
15027         * modules/safe-read (License): Likewise.
15028         * modules/safe-write (License): Likewise.
15029
15030         pthread: mention library for linking
15031         * modules/pthread (Link): Mention $(LIB_PTHREAD).
15032
15033 2010-04-27  Jim Meyering  <meyering@redhat.com>
15034
15035         maint.mk: fix a bug introduced in last change
15036         * top/maint.mk (gl_assured_headers_): Now that all names are on
15037         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
15038         is not anchored to end of word, it should be adequate.
15039
15040         maint.mk: avoid side-effect in latest syntax-check
15041         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
15042         to run commands via $(shell...), and hence to incur cost only when
15043         the new rule is actually run.
15044
15045         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
15046         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
15047         and use that to create a regexp used to detect all #if HAVE_..._H uses.
15048         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
15049         (gl_assured_headers_, az_, AZ_): Define.
15050         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
15051
15052 2010-04-26  Jim Meyering  <jim@meyering.net>
15053             Bruno Haible  <bruno@clisp.org>
15054
15055         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
15056         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
15057         Prompted by an exchange with Gilles Espinasse.
15058
15059 2010-04-26  Jim Meyering  <meyering@redhat.com>
15060
15061         git-version-gen: aesthetic tweak
15062         * build-aux/git-version-gen: Use "$nl" rather than a literal,
15063         so that the command remains on a single line.
15064
15065 2010-04-26  Eric Blake  <eblake@redhat.com>
15066
15067         git-version-gen: allow use on EBCDIC hosts
15068         * build-aux/git-version-gen (dirty): Use literal rather than tying
15069         ourselves to ascii.
15070         Reported by Steve Goetze.
15071
15072 2010-04-25  Bruno Haible  <bruno@clisp.org>
15073
15074         netdb: Add support for GNULIB_POSIXCHECK.
15075         * lib/netdb.in.h: Include warn-on-use.h.
15076         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
15077         functions are used when GNULIB_POSIXCHECK is defined and the
15078         getaddrinfo module is not in use.
15079         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
15080         freeaddrinfo, gai_strerror, getnameinfo are declared.
15081         * modules/netdb (Depends-on): Add warn-on-use.
15082         (Makefile.am): Include warn-on-use.h in netdb.h.
15083
15084 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
15085
15086         build: avoid "make check" failure without .git/ directory
15087         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
15088         there is no .git/ directory.
15089
15090 2010-04-25  Bruno Haible  <bruno@clisp.org>
15091
15092         ptsname: Fix misuse of ttyname_r.
15093         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
15094         of errno.
15095
15096 2010-04-25  Bruno Haible  <bruno@clisp.org>
15097
15098         ttyname_r: Make it work on Solaris 10.
15099         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
15100         if the system function has the POSIX declaration. Test whether the
15101         function fails if the buffer is less than 128 bytes large.
15102         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
15103         system's ttyname_r function. Provide a reasonably large buffer.
15104         * modules/ttyname_r (Depends-on): Add extensions.
15105         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
15106
15107 2010-04-25  Bruno Haible  <bruno@clisp.org>
15108
15109         Use the 'extensions' module for some more functions on Solaris.
15110         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
15111         module.
15112         * doc/posix-functions/ctime_r.texi: Likewise.
15113         * doc/posix-functions/getgrgid_r.texi: Likewise.
15114         * doc/posix-functions/getgrnam_r.texi: Likewise.
15115         * doc/posix-functions/getpwnam_r.texi: Likewise.
15116         * doc/posix-functions/getpwuid_r.texi: Likewise.
15117         * doc/posix-functions/readdir_r.texi: Likewise.
15118         * doc/posix-functions/sigwait.texi: Likewise.
15119         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
15120         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
15121
15122 2010-04-25  Bruno Haible  <bruno@clisp.org>
15123
15124         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
15125         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
15126         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
15127         * lib/ttyname_r.c: Include <limits.h>.
15128         (ttyname_r): Define using the system's ttyname_r function, if it exists
15129         and not on Solaris.
15130         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
15131         set.
15132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
15133         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
15134         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
15135         Reported by Simon Josefsson.
15136
15137 2010-04-25  Bruno Haible  <bruno@clisp.org>
15138
15139         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
15140         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
15141         * doc/posix-functions/ctime_r.texi: Likewise.
15142         * doc/posix-functions/getgrgid_r.texi: Likewise.
15143         * doc/posix-functions/getgrnam_r.texi: Likewise.
15144         * doc/posix-functions/getlogin_r.texi: Likewise.
15145         * doc/posix-functions/getpwnam_r.texi: Likewise.
15146         * doc/posix-functions/getpwuid_r.texi: Likewise.
15147         * doc/posix-functions/readdir_r.texi: Likewise.
15148         * doc/posix-functions/sigwait.texi: Likewise.
15149         * doc/posix-functions/ttyname_r.texi: Likewise.
15150         Reported by Simon Josefsson.
15151
15152 2010-04-25  Bruno Haible  <bruno@clisp.org>
15153
15154         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
15155         * gnulib-tool (func_usage): Document that --with-*-tests options apply
15156         also to --create-testdir.
15157         (func_acceptable): Don't consider the status of *-tests modules here.
15158         (func_modules_transitive_closure): Consider it here, before including a
15159         test module.
15160         (func_import, func_create_testdir): Set inc_all_direct_tests,
15161         inc_all_indirect_tests.
15162         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
15163         --create-testdir and --create-megatestdir.
15164
15165 2010-04-25  Bruno Haible  <bruno@clisp.org>
15166
15167         gnulib-tool: Add --without-*-tests options.
15168         * gnulib-tool (func_usage): Document the --without-*-tests options.
15169         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
15170         excl_unportable_tests): New variables.
15171         Fail if they are specified with --import or --update.
15172         (func_acceptable): Respect the excl_*_tests variables.
15173         (func_import): Set the excl_*_tests variables to empty.
15174
15175 2010-04-25  Simon Josefsson  <simon@josefsson.org>
15176             Bruno Haible  <bruno@clisp.org>
15177
15178         Work around a MacOS X 10.4 bug with openpty.
15179         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
15180         * tests/test-openpty.c (main): Close the master side explicitly.
15181
15182 2010-04-25  Bruno Haible  <bruno@clisp.org>
15183
15184         strnlen: Fix a C++ test error on MacOS X and Solaris.
15185         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
15186         the function is not declared.
15187         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
15188         Simon Josefsson.
15189
15190 2010-04-24  Bruno Haible  <bruno@clisp.org>
15191
15192         Avoid a gcc warning.
15193         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
15194         of correct type for %08lx directive.
15195         Reported by Eric Blake.
15196
15197 2010-04-24  Bruno Haible  <bruno@clisp.org>
15198
15199         vasnprintf: Correct errno value in case of out-of-memory.
15200         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
15201         or sprintf. Use the errno value from SNPRINTF or sprintf.
15202         Reported by Ian Beckwith <ianb@erislabs.net>.
15203
15204 2010-04-24  Bruno Haible  <bruno@clisp.org>
15205
15206         ansi-c++-opt: Find correct compiler when cross-compiling.
15207         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
15208         AC_CHECK_PROGS.
15209         Reported by Simon Josefsson.
15210
15211 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
15212
15213         vc-list-files: Add support for subversion
15214         * build-aux/vc-list-files: Use "svn list" to generate the list of
15215         files controlled by subversion.
15216
15217 2010-04-23  Jim Meyering  <meyering@redhat.com>
15218
15219         vc-list-files tests: convert to use init.sh
15220         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15221         path_prepend_.
15222         Use Exit, not exit.
15223         Use skip_ rather than open coding it.
15224         Remove trap set-up and compare definitions.
15225         * tests/test-vc-list-files-git.sh: Likewise.
15226         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15227
15228 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15229
15230         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15231         backup files.
15232
15233 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15234
15235         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15236
15237 2010-04-20  Eric Blake  <eblake@redhat.com>
15238
15239         tests: be robust to ignored SIGPIPE
15240         * tests/test-select-in.sh: Consume all output.
15241         * tests/test-lseek.sh: Check correct exit status, while avoiding
15242         EPIPE.
15243
15244 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15245             Bruno Haible  <bruno@clisp.org>
15246
15247         visibility: Don't use -fvisibility if it leads to a warning.
15248         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15249         yes, don't pretend that visibility works if it leads to a warning.
15250         Reported by Mike Gran <spk121@yahoo.com>.
15251
15252 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15253
15254         * build-aux/bootstrap: Use "git -h" for testing for supported options
15255         instead of "git --help".  The short-form option only shows a summary,
15256         and doesn't layout the full man page.  Grep for the full option name
15257         in the summary, too.
15258
15259 2010-04-19  Bruno Haible  <bruno@clisp.org>
15260
15261         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15262         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15263         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15264         mention of RELOCATABLE_STRIP.
15265         Reported by Sylvain Beucler <beuc@beuc.net>.
15266
15267 2010-04-19  Bruno Haible  <bruno@clisp.org>
15268
15269         * lib/diffseq.h: Fix typo in comment.
15270         Reported by Eric Blake.
15271
15272 2010-04-19  Bruno Haible  <bruno@clisp.org>
15273
15274         ioctl: Move autoconf macro to a .m4 file.
15275         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15276         * modules/ioctl (Files): Add it.
15277         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15278         Reported by Ian Beckwith <ianb@erislabs.net>.
15279
15280 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15281             Bruno Haible  <bruno@clisp.org>
15282
15283         diffseq: Accommodate use-case with abstract arrays.
15284         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15285         is not defined.
15286         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15287         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15288
15289 2010-04-18  Bruno Haible  <bruno@clisp.org>
15290
15291         * doc/posix-headers/stdbool.texi: More precise wording.
15292
15293 2010-04-17  Jim Meyering  <meyering@redhat.com>
15294
15295         maint.mk: use gnu-style indentation in an embedded perl script
15296         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15297         Rename variable: s/two/last_two_bytes/
15298
15299 2010-04-16  Eric Blake  <eblake@redhat.com>
15300
15301         test-stdbool: skip test that fails with Solaris CC
15302         * tests/test-stdbool.c (f): Skip test that causes compilation
15303         error under buggy C++ compiler.
15304         * lib/stdbool.in.h: Document the limitation.
15305         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15306
15307         setenv: allow compilation with C++
15308         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15309         register keyword.
15310
15311         stdint: allow test to pass with C++
15312         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15313
15314         getopt: allow compilation with C++
15315         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15316         struct.
15317         * lib/getopt.c (_getopt_internal_r): Use correct type.
15318         Reported by Dagobert Michelson, via Joel E. Denny.
15319
15320 2010-04-16  Bruno Haible  <bruno@clisp.org>
15321
15322         Override netdb.h always.
15323         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15324         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15325         Reported by Ludovic Courtès <ludo@gnu.org>.
15326
15327 2010-04-15  Bruno Haible  <bruno@clisp.org>
15328
15329         openpty: Fix mistake from 2010-03-21.
15330         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15331         Reported by Simon Josefsson.
15332
15333 2010-04-15  Eric Blake  <eblake@redhat.com>
15334
15335         test-forkpty: fix expected signature
15336         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15337         Reported by Simon Josefsson.
15338
15339 2010-04-15  Jim Meyering  <meyering@redhat.com>
15340
15341         maint.mk: texinfo_suffix_re_: correct the default regexp
15342         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15343
15344         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15345         make it configurable via texinfo_suffix_re_.
15346
15347 2010-04-14  Eric Blake  <eblake@redhat.com>
15348
15349         strtok_r: relax license to LGPLv2+
15350         * modules/strtok_r (License): Relax license.
15351         Reported by Matthias Bolte.
15352
15353 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15354
15355         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15356         version 1.4.4 by default instead of requiring the libgcrypt
15357         version used during build.  This makes it possible to use the
15358         application with older but still binary compatible libgcrypt
15359         versions.
15360
15361 2010-04-13  Eric Blake  <eblake@redhat.com>
15362
15363         getopt-gnu: match recent glibc fixes and posix ruling
15364         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15365         '+' handling, when requesting extensions.
15366         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15367         'W;' handling.
15368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15369         * doc/posix-functions/getopt.texi (getopt): Document this.
15370         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15371         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15372         Likewise.
15373
15374         getopt: merge bug fixes from glibc
15375         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15376         diagnostics.  Honor '+:' correctly.  Reject ';'.
15377
15378         getopt-posix: detect MacOS bug
15379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15380         optind when missing a required argument.
15381         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15382         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15383         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15384         Likewise.
15385
15386         getopt-posix: avoid spurious failure on Solaris
15387         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15388         an indicator that setting optind=1 is sufficient for reset.
15389
15390         getopt-posix: avoid spurious failure on FreeBSD
15391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15392         in POSIX mode, since the m4 test uses it.
15393
15394         gnulib-tool: silence warning on BSD sh
15395         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15396
15397 2010-04-13  Jim Meyering  <meyering@redhat.com>
15398
15399         doc: users.txt: GNU patch now uses gnulib
15400         * users.txt: Add patch.
15401
15402 2010-04-12  Jim Meyering  <meyering@redhat.com>
15403
15404         maint.mk: generate more concise timing data for syntax-check rules
15405         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15406         " done" from each line that reports a syntax-check test duration.
15407
15408 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15409
15410         git-version-gen: use "git update-index..." rather than "git status"
15411         * build-aux/git-version-gen: Use git update-index --refresh, not
15412         "git status".  With some versions of git, "git status" would fail
15413         to update the index and result in an unwarranted "-dirty" suffix.
15414
15415 2010-04-11  Jim Meyering  <meyering@redhat.com>
15416
15417         openat: correct formatting (no semantic change)
15418         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15419         Suggested by Bruno Haible.
15420
15421 2010-04-11  Bruno Haible  <bruno@clisp.org>
15422
15423         Stricter declaration checking in testdirs.
15424         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15425         If for_tests is true, augment AM_CPPFLAGS to define
15426         GNULIB_STRICT_CHECKING.
15427         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15428         GNULIB_STRICT_CHECKING is defined, verify that the function is
15429         declared.
15430
15431 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15432             Bruno Haible  <bruno@clisp.org>
15433
15434         libunistring: Improve configure output.
15435         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15436         Don't say "consider installing GNU libunistring" when checking again
15437         with libiconv.
15438
15439 2010-04-11  Bruno Haible  <bruno@clisp.org>
15440
15441         libunistring: Correct value of $LTLIBUNISTRING.
15442         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15443         correct the value of $LTLIBUNISTRING.
15444
15445 2010-04-11  Bruno Haible  <bruno@clisp.org>
15446
15447         havelib: Add static libraries to LIBS in the right order.
15448         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15449         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15450
15451 2010-04-11  Bruno Haible  <bruno@clisp.org>
15452
15453         libunistring: Detect libunistring also when it depends on libiconv.
15454         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15455         the second AC_LIB_HAVE_LINKFLAGS invocation.
15456
15457 2010-04-11  James Youngman  <jay@gnu.org>
15458
15459         close-stream: declare local scalars to be "const"
15460         * lib/close-stream.c (close_stream): Make boolean variables const
15461         to document the fact that we set but do not change them.
15462
15463 2010-04-11  Bruno Haible  <bruno@clisp.org>
15464
15465         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15466
15467 2010-04-11  Jim Meyering  <meyering@redhat.com>
15468
15469         maint.mk: don't include dist-check.mk
15470         * top/maint.mk: Remove bogus include directive.
15471
15472         maint.mk: improve empty-line-at-EOF check
15473         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15474         solution, rather than tail+Perl-based one.  The latter would read
15475         a few kilobytes from the end of each file, and did not handle empty
15476         files properly.
15477
15478         maint.mk: print the elapsed time for each syntax-check rule
15479         * top/maint.mk (sc_m_rules_): Save start time in a file.
15480         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15481         (local-check): Interpose the .z rules
15482
15483 2010-04-11  Jim Meyering  <meyering@redhat.com>
15484
15485         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15486         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15487         empty file with one that ends in an empty line.
15488
15489 2010-04-10  Bruno Haible  <bruno@clisp.org>
15490
15491         mkdir: Make it work on mingw64.
15492         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15493         * lib/mkdir.c: Update comment.
15494         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15495
15496 2010-04-10  Bruno Haible  <bruno@clisp.org>
15497
15498         Don't override improved macro from newer autoconf.
15499         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15500         autoconf >= 2.62.
15501         Reported by Joel E. Denny <jdenny@clemson.edu>.
15502
15503 2010-04-10  Jim Meyering  <meyering@redhat.com>
15504
15505         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15506         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15507
15508         maint.mk: correct a diagnostic
15509         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15510         in diagnostic; now use $prohibit.
15511
15512 2010-04-10  Bruno Haible  <address@hidden>
15513
15514         fchownat: Fix a C++ test error on Solaris 8.
15515         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15516         the function does not exist.
15517
15518 2010-04-10  Bruno Haible  <bruno@clisp.org>
15519
15520         vasnprintf: Add more tests.
15521         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15522         (test_function): Test converting an invalid wide string.
15523
15524         vasnprintf: Correct handling of unconvertible wide string arguments.
15525         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15526         VASNPRINTF.
15527         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15528         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15529         smaller than the expected maximum need for the directive. Set errno to
15530         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15531         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15533         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15534         * modules/vasnprintf (Files): Add m4/printf.m4.
15535         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15536
15537 2010-04-10  Bruno Haible  <bruno@clisp.org>
15538
15539         vasnprintf: Fix crash in %ls directive.
15540         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15541         string is passed as argument to %ls, with no precision and no width.
15542         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15543
15544 2010-04-10  Bruno Haible  <bruno@clisp.org>
15545
15546         vasnprintf: Fix multiple test failures on mingw.
15547         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15548         _snprintf, or snwprintf, not _snwprintf.
15549
15550 2010-04-10  Bruno Haible  <bruno@clisp.org>
15551
15552         write: Fix a C++ test error on mingw.
15553         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15554
15555 2010-04-10  Bruno Haible  <bruno@clisp.org>
15556
15557         vasnprintf test: Reduce code duplication.
15558         * tests/test-vasnprintf.c (test_function): New function, extracted from
15559         test_vasnprintf.
15560         (test_vasnprintf, test_asnprintf): Invoke it.
15561
15562 2010-04-10  Bruno Haible  <bruno@clisp.org>
15563
15564         strnlen: Fix warning in C++ mode on MacOS X.
15565         * lib/string.in.h (strnlen): Use the modern idiom.
15566         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15567         defining strnlen as a macro already in <config.h>.
15568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15569         REPLACE_STRNLEN.
15570         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15571         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15572
15573 2010-04-08  James Youngman  <jay@gnu.org>
15574
15575         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15576         the example.
15577
15578 2010-04-09  Jim Meyering  <meyering@redhat.com>
15579
15580         maint.mk: print better diagnostic when there is no $(_hv_file)
15581         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15582         announce that when $(_hv_file) (aka help-version) does not exist.
15583
15584         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15585         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15586         not try to interpret its random input bytes.  Jarno Rajahalme reported
15587         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15588         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15589         (mktempd_): Likewise, just in case.
15590
15591         ftruncate: add two years to projected module removal date: 2012
15592         * m4/ftruncate.m4: Adjust comments.
15593
15594         ftruncate: mark module as obsolete; even MinGW provides it, now
15595         * modules/ftruncate (Status): Obsolete.
15596         (Notice): Say that.
15597         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15598         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15599
15600 2010-04-08  Bruno Haible  <bruno@clisp.org>
15601
15602         Fix side effects from tests-related modules.
15603         * modules/dprintf-posix (Comment): New section.
15604         * modules/fprintf-posix (Comment): Likewise.
15605         * modules/obstack-printf-posix (Comment): Likewise.
15606         * modules/printf-posix (Comment): Likewise.
15607         * modules/snprintf-posix (Comment): Likewise.
15608         * modules/sprintf-posix (Comment): Likewise.
15609         * modules/vasnprintf-posix (Comment): Likewise.
15610         * modules/vasprintf-posix (Comment): Likewise.
15611         * modules/vdprintf-posix (Comment): Likewise.
15612         * modules/vfprintf-posix (Comment): Likewise.
15613         * modules/vprintf-posix (Comment): Likewise.
15614         * modules/vsnprintf-posix (Comment): Likewise.
15615         * modules/vsprintf-posix (Comment): Likewise.
15616         * modules/xprintf-posix (Comment): Likewise.
15617         * modules/xvasprintf-posix (Comment): Likewise.
15618         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15619         * modules/floorf-tests (Depends-on): Likewise.
15620         * modules/round-tests (Depends-on): Likewise.
15621         * modules/roundf-tests (Depends-on): Likewise.
15622         * modules/trunc-tests (Depends-on): Likewise.
15623         * modules/truncf-tests (Depends-on): Likewise.
15624         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15625         'fprintf-posix' module is not present.
15626         * tests/test-floorf2.c (check): Likewise.
15627         * tests/test-trunc2.c (check): Likewise.
15628         * tests/test-truncf2.c (check): Likewise.
15629         * tests/test-round2.c (equal): Likewise.
15630         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15631
15632 2010-04-07  Karl Berry  <karl@gnu.org>
15633
15634         * config/srclist.txt,
15635         * config/srclistvars.sh,
15636         * config/srclist-update: doc fixes.
15637
15638 2010-04-07  Jim Meyering  <meyering@redhat.com>
15639
15640         maint.mk: add a PATH crosschecking syntax-check rule
15641         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15642         Useful if you use a test like the one in help-version (coreutils,
15643         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15644         printed by prog --version.
15645
15646 2010-04-06  Bruno Haible  <bruno@clisp.org>
15647
15648         Fix link error on mingw.
15649         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15650         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15651
15652 2010-04-06  Bruno Haible  <bruno@clisp.org>
15653
15654         Assume rmdir exists.
15655         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15656
15657 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15658
15659         doc: update users.txt
15660         * users.txt: Add gcal.
15661
15662 2010-04-06  Jim Meyering  <meyering@redhat.com>
15663
15664         init.sh: simply unset TMPDIR rather than risking env -i
15665         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15666         although it probably works fine on all Unix-based systems, some
15667         systems (Cygwin?) cannot tolerate a totally cleared environment.
15668         Suggestion from Eric Blake.
15669
15670 2010-04-06  Jim Meyering  <meyering@redhat.com>
15671
15672         init.sh: portability fix: use env's POSIX-specified -i option not -u
15673         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15674         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15675
15676 2010-04-05  Bruno Haible  <bruno@clisp.org>
15677
15678         btowc: Work around Cygwin 1.7.2 bug.
15679         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15680         does not map NUL to 0.
15681         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15682
15683 2010-04-05  Bruno Haible  <bruno@clisp.org>
15684
15685         Make the multithread modules work on Cygwin 1.7.2.
15686         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15687         imported symbols can be declared weak, so that it returns "no" on
15688         Cygwin 1.7.2.
15689
15690 2010-04-05  Bruno Haible  <bruno@clisp.org>
15691
15692         Use the module 'strncat'.
15693         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15694
15695         Tests for module 'strncat'.
15696         * modules/strncat-tests: New file.
15697         * tests/test-strncat.c: New file.
15698
15699         New module 'strncat'.
15700         * lib/string.in.h (strncat): New declaration.
15701         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15702         * m4/strncat.m4: New file, based on m4/memchr.m4.
15703         * modules/strncat: New file.
15704         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15705         is declared.
15706         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15707         REPLACE_STRNCAT.
15708         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15709         REPLACE_STRNCAT.
15710         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15711         module.
15712         * tests/test-string-c++.cc: Check signature of strncat.
15713
15714 2010-04-05  Jim Meyering  <meyering@redhat.com>
15715
15716         xstrtoumax-tests: convert to use init.sh
15717         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15718         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15719         Use Exit, not exit.
15720         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15721
15722         xstrtoimax-tests: convert to use init.sh
15723         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15724         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15725         Use Exit, not exit.
15726         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15727
15728 2010-04-05  Bruno Haible  <bruno@clisp.org>
15729
15730         sys_socket: Avoid #define replacements in C++ mode.
15731         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15732         warning to the function if possible, rather than #defining the symbol
15733         to a dysfunctional alias.
15734
15735 2010-04-05  Bruno Haible  <bruno@clisp.org>
15736
15737         fseeko: Fix C++ test error on mingw.
15738         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15739         gl_FUNC_FSEEKO.
15740         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15741         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15742         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15743         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15744
15745 2010-04-05  Bruno Haible  <bruno@clisp.org>
15746
15747         duplocale: Improve test output.
15748         * tests/test-duplocale.c (main): Print reason for skipped test.
15749
15750 2010-04-05  Bruno Haible  <bruno@clisp.org>
15751
15752         Assume rmdir exists.
15753         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15754         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15755
15756 2010-04-05  Bruno Haible  <bruno@clisp.org>
15757
15758         Fix link error on Solaris 8 with cc.
15759         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15760
15761 2010-04-05  Bruno Haible  <bruno@clisp.org>
15762
15763         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15764         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15765
15766 2010-04-05  Bruno Haible  <bruno@clisp.org>
15767
15768         vasprintf: Update documentation.
15769         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15770
15771 2010-04-05  Bruno Haible  <bruno@clisp.org>
15772
15773         ptsname: Improve test.
15774         * tests/test-ptsname.c (main): Also try the various master names of BSD
15775         systems.
15776
15777 2010-04-05  Bruno Haible  <bruno@clisp.org>
15778
15779         memchr: Avoid a possible C++ test error.
15780         * lib/string.in.h (memchr): Provide declaration if function is missing.
15781         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15782         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15784         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15785
15786 2010-04-05  Bruno Haible  <bruno@clisp.org>
15787
15788         strtok_r: Improve idiom.
15789         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15790         AC_LIBOBJ is used.
15791
15792 2010-04-05  Bruno Haible  <bruno@clisp.org>
15793
15794         strdup: Improve idiom.
15795         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15796         AC_LIBOBJ is used.
15797         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15798         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15799         when AC_LIBOBJ is used.
15800
15801 2010-04-05  Bruno Haible  <bruno@clisp.org>
15802
15803         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15804         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15805         don't set REPLACE_MBSINIT to 1.
15806         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15807         don't set REPLACE_MBRTOWC to 1.
15808         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15809         exist, don't set REPLACE_MBSRTOWCS to 1.
15810         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15811         exist, don't set REPLACE_MBSNRTOWCS to 1.
15812         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15813         don't set REPLACE_WCRTOMB to 1.
15814         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15815         exist, don't set REPLACE_WCSRTOMBS to 1.
15816         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15817         exist, don't set REPLACE_WCSNRTOMBS to 1.
15818
15819 2010-04-05  Bruno Haible  <bruno@clisp.org>
15820
15821         ldexpl: Improve idiom.
15822         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15823         make sure to set HAVE_DECL_LDEXPL to 0.
15824
15825 2010-04-05  Jim Meyering  <meyering@redhat.com>
15826
15827         xstrtol-tests: convert to use init.sh
15828         * modules/xstrtol-tests (Files): Add tests/init.sh.
15829         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15830         Use Exit, not exit.
15831         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15832
15833         atexit-tests: convert to use init.sh
15834         * modules/atexit-tests (Files): Add tests/init.sh.
15835         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15836         Use Exit, not exit.
15837         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15838
15839         init.sh: fix typo
15840         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15841
15842         init.sh: make it easier for a test script to write to the tty, ...
15843         when using automake's parallel-tests mode.
15844         * tests/init.sh (stderr_fileno_): Define overridable variable.
15845         (warn_): New function, to use it.
15846         (fail_, skip_, framework_failure_): Use warn_.
15847
15848 2010-04-04  Bruno Haible  <bruno@clisp.org>
15849
15850         btowc: Avoid warning.
15851         * lib/btowc.c: Include <stdlib.h>.
15852         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15853
15854 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15855             Bruno Haible  <bruno@clisp.org>
15856
15857         wchar: Port to NetBSD 1.5.
15858         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15859         * lib/wctype.in.h (WEOF): Likewise.
15860
15861 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15862             Bruno Haible  <bruno@clisp.org>
15863
15864         Port extended stdio to NetBSD 1.5.
15865         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15866         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15867         older.
15868
15869 2010-04-04  Bruno Haible  <bruno@clisp.org>
15870
15871         string: Remove unused substitution.
15872         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15873         HAVE_DECL_STRERROR.
15874         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15875
15876 2010-04-04  Bruno Haible  <bruno@clisp.org>
15877
15878         strtod: Avoid a possible C++ test error.
15879         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15880         set REPLACE_STRTOD.
15881
15882 2010-04-04  Bruno Haible  <bruno@clisp.org>
15883
15884         strerror: Update documentation.
15885         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15886
15887 2010-04-04  Bruno Haible  <bruno@clisp.org>
15888
15889         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15890         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15891         _GL_CXXALIAS_SYS_CAST.
15892
15893 2010-04-04  Bruno Haible  <bruno@clisp.org>
15894
15895         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15896         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15897         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15898         REPLACE_FREXPL to 1.
15899         * doc/posix-functions/frexpl.texi: Update documentation.
15900
15901 2010-04-04  Bruno Haible  <bruno@clisp.org>
15902
15903         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15904         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15905
15906 2010-04-04  Bruno Haible  <bruno@clisp.org>
15907
15908         Implement nanosleep for native Windows.
15909         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15910
15911 2010-04-04  Bruno Haible  <bruno@clisp.org>
15912
15913         math: Fix some C++ test errors on Solaris 8.
15914         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15915
15916 2010-04-04  Bruno Haible  <bruno@clisp.org>
15917
15918         math: Fix some C++ test errors on Cygwin.
15919         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15920         truncl): Provide declaration if the system does not have it.
15921         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15922         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15923         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15924         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15925         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15926         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15927         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15928         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15929         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15930         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15931         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15932         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15933         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15934         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15935         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15936         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15937         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15938         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15939         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15940         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15941         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15942         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15943
15944 2010-04-04  Bruno Haible  <bruno@clisp.org>
15945
15946         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15947         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15948         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15949         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15950         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15951         * m4/isinf.m4 (gl_ISINF): Likewise.
15952         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15953
15954 2010-04-04  Bruno Haible  <bruno@clisp.org>
15955
15956         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15957         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15958
15959 2010-04-04  Bruno Haible  <bruno@clisp.org>
15960
15961         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15962         * modules/tmpfile (configure.ac): Update.
15963
15964         tmpfile: Fix C++ test error on mingw.
15965         * lib/stdio.in.h (tmpfile): New declaration.
15966         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15967         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15968         * modules/tmpfile (Depends-on): Add stdio.
15969         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15970         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15971         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15972         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15973         REPLACE_TMPFILE.
15974         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15975
15976 2010-04-04  Bruno Haible  <bruno@clisp.org>
15977
15978         ioctl: Fix C++ test error on mingw.
15979         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15980         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15981         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15982
15983 2010-04-03  Bruno Haible  <bruno@clisp.org>
15984
15985         wcwidth: Fix C++ test error on mingw.
15986         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15988         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15989
15990 2010-04-03  Bruno Haible  <bruno@clisp.org>
15991
15992         nanosleep: Fix C++ test error on mingw.
15993         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15994         * lib/time.in.h (nanosleep): Use modern idiom.
15995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15996         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15997         REPLACE_NANOSLEEP to 1.
15998         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15999         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
16000
16001 2010-04-03  Bruno Haible  <bruno@clisp.org>
16002
16003         strptime: Fix C++ test error on mingw.
16004         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
16005         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
16006         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
16007         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
16008         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
16009         not REPLACE_STRPTIME.
16010         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
16011         REPLACE_STRPTIME.
16012
16013 2010-04-03  Bruno Haible  <bruno@clisp.org>
16014
16015         timegm: Fix C++ test error on mingw.
16016         * lib/time.in.h (timegm): Use modern idiom.
16017         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
16018         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
16019         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
16020         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
16021
16022 2010-04-03  Bruno Haible  <bruno@clisp.org>
16023
16024         timegm: Assume declaration if function exists.
16025         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
16026         if it exists. Don't clobber ac_cv_func_timegm.
16027
16028 2010-04-03  Bruno Haible  <bruno@clisp.org>
16029
16030         time_r: Fix C++ test error on mingw.
16031         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
16032         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
16033         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
16034         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
16035         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
16036
16037 2010-04-03  Bruno Haible  <bruno@clisp.org>
16038
16039         time_r: Minor updates.
16040         * modules/time_r (Description): Mention the provided functions.
16041         * lib/time_r.c: Don't include <string.h>.
16042         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
16043         * doc/posix-functions/localtime_r.texi: Likewise.
16044
16045 2010-04-03  Bruno Haible  <bruno@clisp.org>
16046
16047         time: Fix regression introduced on 2010-03-08.
16048         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
16049         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
16050
16051 2010-04-03  Jim Meyering  <meyering@redhat.com>
16052
16053         maint.mk: don't silently disable project-specific syntax-check rules
16054         * top/maint.mk (_prohibit_regexp): Define, to help people realize
16055         that they need to convert their project-specific syntax-check rules
16056         to use the new _sc_search_regexp.
16057
16058 2010-04-03  Bruno Haible  <bruno@clisp.org>
16059
16060         fchdir: Fix regression introduced on 2010-03-08.
16061         * lib/unistd.in.h (fchdir): Fix declaration.
16062         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
16063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
16064         REPLACE_FCHDIR.
16065         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
16066         REPLACE_FCHDIR.
16067
16068 2010-04-03  Bruno Haible  <bruno@clisp.org>
16069
16070         getpagesize: Fix C++ test error on mingw.
16071         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
16072         system does not declare the function.
16073         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
16074         declared.
16075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16076         HAVE_DECL_GETPAGESIZE.
16077         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
16078
16079 2010-04-03  Bruno Haible  <bruno@clisp.org>
16080
16081         stdio: Make C++ tests work on mingw.
16082         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
16083         does not declare the function.
16084
16085 2010-04-03  Bruno Haible  <bruno@clisp.org>
16086
16087         ftello: Fix C++ test error on mingw.
16088         * lib/stdio.in.h (ftello): Use modern idiom.
16089         * lib/ftello.c (ftello): Renamed from rpl_ftello.
16090         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
16091         is missing and that it needs to be replaced.
16092         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
16093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
16094         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
16095
16096 2010-04-03  Bruno Haible  <bruno@clisp.org>
16097
16098         fseeko: Fix C++ test error on mingw.
16099         * lib/stdio.in.h (fseeko): Use modern idiom.
16100         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
16101         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
16102         is missing and that it needs to be replaced.
16103         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
16104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
16105         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
16106
16107 2010-04-03  Bruno Haible  <bruno@clisp.org>
16108
16109         mkstemp: Fix C++ test error on mingw.
16110         * lib/stdlib.in.h (mkstemp): Use modern idiom.
16111         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
16112         function is missing and that it needs to be replaced.
16113         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
16114         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
16115
16116 2010-04-03  Bruno Haible  <bruno@clisp.org>
16117
16118         stpncpy: Fix C++ test error on mingw.
16119         * lib/string.in.h (stpncpy): Use modern idiom.
16120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
16121         function is missing and that it needs to be replaced.
16122         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16123         REPLACE_STPNCPY.
16124         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
16125
16126 2010-04-03  Bruno Haible  <bruno@clisp.org>
16127
16128         sys_stat: Fix C++ test error on mingw.
16129         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
16130         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
16131
16132 2010-04-03  Bruno Haible  <bruno@clisp.org>
16133
16134         pty: Update doc.
16135         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
16136
16137 2010-04-03  Bruno Haible  <bruno@clisp.org>
16138
16139         unistd: Fix C++ test error on mingw.
16140         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
16141
16142 2010-04-03  Bruno Haible  <bruno@clisp.org>
16143
16144         Update doc regarding mingw.
16145         * doc/glibc-functions/openpty.texi: Update regarding mingw.
16146         * doc/glibc-functions/login_tty.texi: Likewise.
16147         * doc/glibc-functions/forkpty.texi: Likewise.
16148
16149 2010-04-03  Bruno Haible  <bruno@clisp.org>
16150
16151         stdlib: Avoid compilation failure of c-strtold on mingw.
16152         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
16153
16154 2010-04-03  Bruno Haible  <bruno@clisp.org>
16155
16156         locale: Make C++ tests work on Cygwin and mingw.
16157         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
16158         cannot provide the function.
16159         Reported by Simon Josefsson.
16160
16161 2010-04-03  Bruno Haible  <bruno@clisp.org>
16162
16163         localename: Port to MacOS X 10.6.
16164         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
16165         memory layout of the locales in MacOS X 10.6 as well.
16166         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
16167
16168 2010-04-02  Bruno Haible  <bruno@clisp.org>
16169
16170         gnulib-tool: Ensure that long-running tests are executed last.
16171         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
16172         running tests after the one for the other tests.
16173
16174 2010-04-02  Bruno Haible  <bruno@clisp.org>
16175
16176         gnulib-tool: Ensure the tests in the main directory are executed first.
16177         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
16178         start with the current directory.
16179
16180 2010-04-02  Bruno Haible  <bruno@clisp.org>
16181
16182         Tests for module 'havelib', moved here from GNU gettext.
16183         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
16184         modifications.
16185         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
16186         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
16187         with modifications.
16188         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
16189         modifications.
16190         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
16191         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
16192         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
16193         with modifications.
16194         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
16195         with modifications.
16196         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
16197         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
16198         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
16199         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
16200         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
16201         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
16202         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
16203         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
16204         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
16205         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
16206         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
16207         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
16208         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
16209         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
16210         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
16211         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
16212         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
16213         with modifications.
16214         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16215         with modifications.
16216         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16217         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16218         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16219         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16220         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16221         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16222         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16223         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16224         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16225         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16226         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16227         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16228         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16229         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16230         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16231         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16232         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16233         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16234         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16235         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16236         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16237         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16238         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16239         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16240         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16241         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16242         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16243         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16244         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16245         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16246         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16247         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16248         * tests/havelib/rpathx/rpathx.c: New file, from
16249         gettext/autoconf-lib-link.
16250         * tests/havelib/rpathx/Makefile.am: New file, from
16251         gettext/autoconf-lib-link.
16252         * tests/havelib/rpathx/configure.ac: New file, from
16253         gettext/autoconf-lib-link with modifications.
16254         * tests/havelib/rpathy/rpathy.c: New file, from
16255         gettext/autoconf-lib-link.
16256         * tests/havelib/rpathy/Makefile.am: New file, from
16257         gettext/autoconf-lib-link.
16258         * tests/havelib/rpathy/configure.ac: New file, from
16259         gettext/autoconf-lib-link with modifications.
16260         * tests/havelib/rpathz/rpathz.c: New file, from
16261         gettext/autoconf-lib-link.
16262         * tests/havelib/rpathz/Makefile.am: New file, from
16263         gettext/autoconf-lib-link.
16264         * tests/havelib/rpathz/configure.ac: New file, from
16265         gettext/autoconf-lib-link with modifications.
16266         * tests/havelib/rpathlx/usex.c: New file, from
16267         gettext/autoconf-lib-link.
16268         * tests/havelib/rpathlx/Makefile.am: New file, from
16269         gettext/autoconf-lib-link.
16270         * tests/havelib/rpathlx/configure.ac: New file, from
16271         gettext/autoconf-lib-link with modifications.
16272         * tests/havelib/rpathly/usey.c: New file, from
16273         gettext/autoconf-lib-link.
16274         * tests/havelib/rpathly/Makefile.am: New file, from
16275         gettext/autoconf-lib-link.
16276         * tests/havelib/rpathly/configure.ac: New file, from
16277         gettext/autoconf-lib-link with modifications.
16278         * tests/havelib/rpathlz/usez.c: New file, from
16279         gettext/autoconf-lib-link.
16280         * tests/havelib/rpathlz/Makefile.am: New file, from
16281         gettext/autoconf-lib-link.
16282         * tests/havelib/rpathlz/configure.ac: New file, from
16283         gettext/autoconf-lib-link with modifications.
16284         * tests/havelib/rpathlyx/usey.c: New file, from
16285         gettext/autoconf-lib-link.
16286         * tests/havelib/rpathlyx/Makefile.am: New file, from
16287         gettext/autoconf-lib-link.
16288         * tests/havelib/rpathlyx/configure.ac: New file, from
16289         gettext/autoconf-lib-link with modifications.
16290         * tests/havelib/rpathlzyx/usez.c: New file, from
16291         gettext/autoconf-lib-link.
16292         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16293         gettext/autoconf-lib-link.
16294         * tests/havelib/rpathlzyx/configure.ac: New file, from
16295         gettext/autoconf-lib-link with modifications.
16296         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16297         with modifications.
16298
16299 2010-04-02  Bruno Haible  <bruno@clisp.org>
16300
16301         gnulib-tool: Create distributed built sources also for the tests.
16302         * gnulib-tool (func_create_testdir): Also generate distributed built
16303         sources in the tests directory.
16304
16305 2010-04-02  Bruno Haible  <bruno@clisp.org>
16306
16307         gnulib-tool: Obey user's environment variables.
16308         * gnulib-tool (func_create_testdir): When creating built sources,
16309         respect the environment variables for autoconf, automake, etc. given by
16310         the user.
16311
16312 2010-04-02  Bruno Haible  <bruno@clisp.org>
16313
16314         gnulib-tool: Provide the value of --m4-base to modules.
16315         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16316         of gl_m4_base.
16317
16318 2010-04-02  Eric Blake  <eblake@redhat.com>
16319
16320         maint.mk: fix some fallout
16321         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16322         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16323
16324 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16325
16326         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16327         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16328         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16329         (sc_cast_of_x_alloc_return_value): Likewise.
16330         (sc_cast_of_alloca_return_value): Likewise.
16331         (sc_space_tab): Likewise.
16332         (sc_prohibit_atoi_atof): Likewise.
16333         (sc_prohibit_magic_number_exit): Likewise.
16334         (sc_error_exit_success): Likewise.
16335         (sc_file_system): Likewise.
16336         (sc_prohibit_have_config_h): Likewise.
16337         (sc_require_config_h): Likewise.
16338         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16339         (sc_obsolete_symbols): Likewise.
16340         (sc_changelog): Likewise.
16341         (sc_program_name): Likewise.
16342         (sc_the_the): Likewise.
16343         (sc_trailing_blank): Likewise.
16344         (sc_two_space_separator_in_usage): Likewise.
16345         (sc_useless_cpp_parens): Likewise.
16346         (sc_GPL_version): Likewise.
16347         (sc_GFDL_version): Likewise.
16348         (sc_texinfo_acronym): Likewise.
16349         (sc_prohibit_cvs_keyword): Likewise.
16350         (sc_prohibit_stat_st_blocks): Likewise.
16351         (sc_prohibit_S_IS_definition): Likewise.
16352         (sc_redundant_const): Likewise.
16353         (sc_makefile_TAB_only_indentation): Likewise.
16354         (sc_m4_quote_check): Likewise.
16355         (sc_makefile_path_separator_check): Likewise.
16356         (sc_copyright_check): Likewise.
16357         (sc_Wundef_boolean): Likewise.
16358         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16359
16360         maint.mk: match 0 or more whitespace-before-function-call '('
16361         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16362         that have zero or two-and-more spaces between the function name
16363         and the open parenthesis.
16364         (sc_error_message_warn_fatal): Likewise.
16365         (sc_error_message_uppercase): Likewise.
16366         (sc_error_message_period): Likewise.
16367
16368 2010-03-31  Eric Blake  <eblake@redhat.com>
16369
16370         maint.mk: check for [ as well as test
16371         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16372         Based on a libvirt report by Matthias Bolte.
16373
16374         gnumakefile: don't squelch _version output
16375         * top/GNUmakefile (_version): Create one-shot dependency rather
16376         than using $(shell) when version must be regenerated.
16377         (_autoreconf): Run verbosely, by default.
16378
16379         sys_time: avoid compiler warnings
16380         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16381         unconditional, fixing regression from 2010-03-29.
16382         Reported by Simon Josefsson.
16383
16384 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16385
16386         maint.mk: s/_header_without_use/_sc_header_without_use/
16387         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16388         (sc_prohibit_assert_without_use): Use the new name.
16389         (sc_prohibit_close_stream_without_use): Likewise.
16390         (sc_prohibit_getopt_without_use): Likewise.
16391         (sc_prohibit_quotearg_without_use): Likewise.
16392         (sc_prohibit_quote_without_use): Likewise.
16393         (sc_prohibit_long_options_without_use): Likewise.
16394         (sc_prohibit_inttostr_without_use): Likewise.
16395         (sc_prohibit_ignore_value_without_use): Likewise.
16396         (sc_prohibit_error_without_use): Likewise.
16397         (sc_prohibit_xalloc_without_use): Likewise.
16398         (sc_prohibit_hash_without_use): Likewise.
16399         (sc_prohibit_hash_pjw_without_use): Likewise.
16400         (sc_prohibit_safe_read_without_use): Likewise.
16401         (sc_prohibit_argmatch_without_use): Likewise.
16402         (sc_prohibit_canonicalize_without_use): Likewise.
16403         (sc_prohibit_root_dev_ino_without_use): Likewise.
16404         (sc_prohibit_openat_without_use): Likewise.
16405         (sc_prohibit_c_ctype_without_use): Likewise.
16406         (sc_prohibit_signal_without_use): Likewise.
16407         (sc_prohibit_intprops_without_use): Likewise.
16408
16409 2010-03-30  Eric Blake  <eblake@redhat.com>
16410
16411         maint: improve module indicators
16412         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16413         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16414         columns, and avoid extra macro expansion.
16415
16416         fdopendir: work around FreeBSD bug
16417         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16418         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16419         * modules/dirent (Makefile.am): Substitute it.
16420         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16421         declaration.
16422         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16423         fix.
16424         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16425
16426 2010-03-29  Bruno Haible  <bruno@clisp.org>
16427
16428         Emit #pragma system_header after the inclusion guard, not before.
16429         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16430         guard that spans the entire file, not before. This enables an
16431         optimization in GCC's preprocessor.
16432         * lib/ctype.in.h: Likewise.
16433         * lib/dirent.in.h: Likewise.
16434         * lib/errno.in.h: Likewise.
16435         * lib/float.in.h: Likewise.
16436         * lib/getopt.in.h: Likewise.
16437         * lib/iconv.in.h: Likewise.
16438         * lib/langinfo.in.h: Likewise.
16439         * lib/locale.in.h: Likewise.
16440         * lib/math.in.h: Likewise.
16441         * lib/netdb.in.h: Likewise.
16442         * lib/netinet_in.in.h: Likewise.
16443         * lib/pty.in.h: Likewise.
16444         * lib/sched.in.h: Likewise.
16445         * lib/se-selinux.in.h: Likewise.
16446         * lib/search.in.h: Likewise.
16447         * lib/spawn.in.h: Likewise.
16448         * lib/stdarg.in.h: Likewise.
16449         * lib/stdint.in.h: Likewise.
16450         * lib/string.in.h: Likewise.
16451         * lib/strings.in.h: Likewise.
16452         * lib/sys_file.in.h: Likewise.
16453         * lib/sys_ioctl.in.h: Likewise.
16454         * lib/sys_time.in.h: Likewise.
16455         * lib/sys_times.in.h: Likewise.
16456         * lib/sys_utsname.in.h: Likewise.
16457         * lib/sys_wait.in.h: Likewise.
16458         * lib/sysexits.in.h: Likewise.
16459         * lib/wctype.in.h: Likewise.
16460
16461 2010-03-28  James Youngman  <jay@gnu.org>
16462
16463         save-cwd: don't leak a file descriptor when the caller execs.
16464         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16465         saved file descriptor.
16466         * modules/save-cwd (Depends-on): Depend on cloexec.
16467
16468 2010-03-29  Bruno Haible  <bruno@clisp.org>
16469
16470         Remove vestiges of fts-lgpl module.
16471         * lib/fts_.h: Assume GNULIB_FTS is 1.
16472         * lib/fts.c: Likewise.
16473         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16474
16475 2010-03-28  Bruno Haible  <bruno@clisp.org>
16476
16477         Fix definition of tests witness macro.
16478         * gnulib-tool (func_import): Fix definition of witness macro.
16479
16480 2010-03-28  Bruno Haible  <bruno@clisp.org>
16481
16482         Fix ioctl's protoype on glibc systems.
16483         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16484         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16485         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16486         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16487         signature. If not, arrange to replace the ioctl function.
16488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16489         REPLACE_IOCTL.
16490         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16491         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16492         Reported by Ludovic Courtès <ludo@gnu.org>.
16493
16494 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16495
16496         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16497         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16498         made it so grep -r --include=GLOB* ... did not work.
16499
16500 2010-03-26  Jim Meyering  <meyering@redhat.com>
16501             Eric Blake  <eblake@redhat.com>
16502
16503         maint.mk: prohibit use of test's -o and -a operators
16504         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16505
16506 2010-03-28  Bruno Haible  <bruno@clisp.org>
16507
16508         Remove unused GNULIB_XYZ macro definitions.
16509         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16510         invocation.
16511
16512 2010-03-28  Bruno Haible  <bruno@clisp.org>
16513
16514         Mark privileged tests modules.
16515         * modules/idpriv-drop-tests (Status): New section.
16516         * modules/idpriv-droptemp-tests (Status): New section.
16517
16518 2010-03-28  Bruno Haible  <bruno@clisp.org>
16519
16520         Split C++ tests into separate tests modules.
16521         * modules/dirent-c++-tests: New file, extracted from
16522         modules/dirent-tests.
16523         * modules/dirent-tests: Depend on it.
16524         * modules/fcntl-h-c++-tests: New file, extracted from
16525         modules/fcntl-h-tests.
16526         * modules/fcntl-h-tests: Depend on it.
16527         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16528         * modules/glob-tests: Depend on it.
16529         * modules/iconv-h-c++-tests: New file, extracted from
16530         modules/iconv-h-tests.
16531         * modules/iconv-h-tests: Depend on it.
16532         * modules/langinfo-c++-tests: New file, extracted from
16533         modules/langinfo-tests.
16534         * modules/langinfo-tests: Depend on it.
16535         * modules/locale-c++-tests: New file, extracted from
16536         modules/locale-tests.
16537         * modules/locale-tests: Depend on it.
16538         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16539         * modules/math-tests: Depend on it.
16540         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16541         * modules/pty-tests: Depend on it.
16542         * modules/search-c++-tests: New file, extracted from
16543         modules/search-tests.
16544         * modules/search-tests: Depend on it.
16545         * modules/signal-c++-tests: New file, extracted from
16546         modules/signal-tests.
16547         * modules/signal-tests: Depend on it.
16548         * modules/spawn-c++-tests: New file, extracted from
16549         modules/spawn-tests.
16550         * modules/spawn-tests: Depend on it.
16551         * modules/stdio-c++-tests: New file, extracted from
16552         modules/stdio-tests.
16553         * modules/stdio-tests: Depend on it.
16554         * modules/stdlib-c++-tests: New file, extracted from
16555         modules/stdlib-tests.
16556         * modules/stdlib-tests: Depend on it.
16557         * modules/string-c++-tests: New file, extracted from
16558         modules/string-tests.
16559         * modules/string-tests: Depend on it.
16560         * modules/sys_ioctl-c++-tests: New file, extracted from
16561         modules/sys_ioctl-tests.
16562         * modules/sys_ioctl-tests: Depend on it.
16563         * modules/sys_select-c++-tests: New file, extracted from
16564         modules/sys_select-tests.
16565         * modules/sys_select-tests: Depend on it.
16566         * modules/sys_socket-c++-tests: New file, extracted from
16567         modules/sys_socket-tests.
16568         * modules/sys_socket-tests: Depend on it.
16569         * modules/sys_stat-c++-tests: New file, extracted from
16570         modules/sys_stat-tests.
16571         * modules/sys_stat-tests: Depend on it.
16572         * modules/sys_time-c++-tests: New file, extracted from
16573         modules/sys_time-tests.
16574         * modules/sys_time-tests: Depend on it.
16575         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16576         * modules/time-tests: Depend on it.
16577         * modules/unistd-c++-tests: New file, extracted from
16578         modules/unistd-tests.
16579         * modules/unistd-tests: Depend on it.
16580         * modules/wchar-c++-tests: New file, extracted from
16581         modules/wchar-tests.
16582         * modules/wchar-tests: Depend on it.
16583         * modules/wctype-c++-tests: New file, extracted from
16584         modules/wctype-tests.
16585         * modules/wctype-tests: Depend on it.
16586         Reported by Simon Josefsson.
16587
16588 2010-03-28  Bruno Haible  <bruno@clisp.org>
16589
16590         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16591         * gnulib-tool (func_exists_module): New function, extracted from
16592         func_verify_module.
16593         (func_verify_module): Use it.
16594         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16595         'foo' only if 'foo' exists.
16596         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16597         module.
16598
16599 2010-03-28  Bruno Haible  <bruno@clisp.org>
16600
16601         gnulib-tool: Add support for special categories of tests.
16602         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16603         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16604         (func_usage): Document them.
16605         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16606         inc_unportable_tests, inc_all_tests): New variables.
16607         (func_acceptable): Consider these variables.
16608         (func_modules_transitive_closure): Make it work when the 'Status' field
16609         consists of multiple words.
16610         (func_import): Store and restore the values of inc_cxx_tests,
16611         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16612         inc_all_tests in gnulib-comp.m4.
16613         (func_create_testdir): Set inc_all_tests to true.
16614         * doc/gnulib.texi (Extra tests modules): New section.
16615         Suggested by Jim Meyering.
16616
16617 2010-03-28  Bruno Haible  <bruno@clisp.org>
16618
16619         ansi-c++-opt: Allow turning off the C++ build by default.
16620         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16621         gl_CXX_CHOICE_DEFAULT_NO is defined.
16622         Requested by Eric Blake.
16623
16624 2010-03-28  Bruno Haible  <bruno@clisp.org>
16625
16626         unistd: Avoid #define replacements in C++ mode.
16627         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16628         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16629         setsockopt, shutdown, select): In C++, attach a warning to the function
16630         if possible, rather than #defining the symbol to a dysfunctional alias.
16631         Reported by John W. Eaton <jwe@gnu.org>.
16632
16633 2010-03-28  Bruno Haible  <bruno@clisp.org>
16634
16635         Fix link errors on mingw.
16636         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16637         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16638         $(LIBSOCKET).
16639         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16640         $(LIBSOCKET).
16641
16642 2010-03-28  Bruno Haible  <bruno@clisp.org>
16643             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16644
16645         lib-ignore: Determine different options for different compilers.
16646         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16647         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16648         Add comments.
16649         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16650         * NEWS: Mention the change.
16651
16652 2010-03-27  Bruno Haible  <bruno@clisp.org>
16653
16654         Remove unused GNULIB_XYZ macro definitions.
16655         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16656         * modules/fseek (configure.ac): Likewise.
16657         * modules/ioctl (configure.ac): Likewise.
16658         * modules/open (configure.ac): Likewise.
16659         * modules/stdlib-safer (configure.ac): Likewise.
16660
16661 2010-03-27  Bruno Haible  <bruno@clisp.org>
16662
16663         Add a remark about certain modules.
16664         * modules/malloc (Comment): New section.
16665         * modules/realloc (Comment): Likewise.
16666         * modules/sigpipe (Comment): Likewise.
16667
16668 2010-03-27  Bruno Haible  <bruno@clisp.org>
16669
16670         Resolve conflict between the two kinds of module indicators.
16671         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16672         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16673         * modules/canonicalize (configure.ac): Invoke
16674         gl_MODULE_INDICATOR_FOR_TESTS.
16675         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16676         GNULIB_XYZ.
16677         * tests/test-dirent-c++.cc: Likewise.
16678         * tests/test-dirent-safer.c: Likewise.
16679         * tests/test-dup2.c: Likewise.
16680         * tests/test-fchdir.c: Likewise.
16681         * tests/test-fcntl-h-c++.cc: Likewise.
16682         * tests/test-getopt.c: Likewise.
16683         * tests/test-getopt.h: Likewise.
16684         * tests/test-langinfo-c++.cc: Likewise.
16685         * tests/test-locale-c++.cc: Likewise.
16686         * tests/test-math-c++.cc: Likewise.
16687         * tests/test-pty-c++.cc: Likewise.
16688         * tests/test-search-c++.cc: Likewise.
16689         * tests/test-signal-c++.cc: Likewise.
16690         * tests/test-spawn-c++.cc: Likewise.
16691         * tests/test-stdio-c++.cc: Likewise.
16692         * tests/test-stdlib-c++.cc: Likewise.
16693         * tests/test-string-c++.cc: Likewise.
16694         * tests/test-sys_ioctl-c++.cc: Likewise.
16695         * tests/test-sys_select-c++.cc: Likewise.
16696         * tests/test-sys_socket-c++.cc: Likewise.
16697         * tests/test-sys_stat-c++.cc: Likewise.
16698         * tests/test-sys_time-c++.cc: Likewise.
16699         * tests/test-time-c++.cc: Likewise.
16700         * tests/test-unistd-c++.cc: Likewise.
16701         * tests/test-wchar-c++.cc: Likewise.
16702         * tests/uninorm/test-u8-nfc.c: Likewise.
16703         * tests/uninorm/test-u8-nfd.c: Likewise.
16704         * tests/uninorm/test-u8-nfkc.c: Likewise.
16705         * tests/uninorm/test-u8-nfkd.c: Likewise.
16706         * tests/uninorm/test-u16-nfc.c: Likewise.
16707         * tests/uninorm/test-u16-nfd.c: Likewise.
16708         * tests/uninorm/test-u16-nfkc.c: Likewise.
16709         * tests/uninorm/test-u16-nfkd.c: Likewise.
16710         * tests/uninorm/test-u32-nfc.c: Likewise.
16711         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16712         * tests/uninorm/test-u32-nfd.c: Likewise.
16713         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16714         * tests/uninorm/test-u32-nfkc.c: Likewise.
16715         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16716         * tests/uninorm/test-u32-nfkd.c: Likewise.
16717         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16718         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16719
16720 2010-03-27  Bruno Haible  <bruno@clisp.org>
16721
16722         Distinguish two kinds of module indicators.
16723         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16724         gl_MODULE_INDICATOR.
16725         (gl_MODULE_INDICATOR): New macro.
16726         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16727         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16728         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16729         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16730         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16731         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16732         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16733         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16734         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16735         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16736         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16737         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16739         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16740         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16741         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16742         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16743         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16744         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16745         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16746         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16747         * modules/cloexec (configure.ac): Likewise.
16748         * modules/getopt-gnu (configure.ac): Likewise.
16749         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16750         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16751         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16752         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16753
16754 2010-03-27  Bruno Haible  <bruno@clisp.org>
16755
16756         New module description field 'Comment'.
16757         * gnulib-tool: New option --extract-comment.
16758         (func_usage): Document it.
16759         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16760         (func_get_comment): New function.
16761         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16762
16763 2010-03-27  Bruno Haible  <bruno@clisp.org>
16764
16765         Addendum to 2010-02-07 commit.
16766         * gnulib-tool (func_usage): Document --extract-applicability option.
16767
16768 2010-03-27  Bruno Haible  <bruno@clisp.org>
16769
16770         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16771         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16772         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16773         rather than link errors.
16774
16775 2010-03-27  Bruno Haible  <bruno@clisp.org>
16776
16777         Avoid side effects from tests-related modules on the compilation of lib.
16778         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16779         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16780         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16781         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16782         macro.
16783         (func_import): Define a witness macro. Assign it a value that depends
16784         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16785         tests-related modules.
16786         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16787         Reported by Jim Meyering.
16788
16789 2010-03-27  Bruno Haible  <bruno@clisp.org>
16790
16791         Factorize common .m4 code.
16792         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16793         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16794         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16795         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16796         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16797         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16798         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16799         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16800         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16801         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16802         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16803         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16804         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16805         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16806         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16807         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16808         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16809         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16810         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16811         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16812         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16813         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16814         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16816         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16817         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16818         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16819         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16820         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16821         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16822         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16823         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16824
16825 2010-03-27  Bruno Haible  <bruno@clisp.org>
16826
16827         Fix a compilation error on Cygwin with g++ >= 4.3.
16828         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16829         if it is undefined or if we alias it to chmod.
16830         (lstat): Don't warn about the use of this function if it is undefined
16831         or if we alias it to stat.
16832         Reported by Simon Josefsson.
16833
16834 2010-03-27  Bruno Haible  <bruno@clisp.org>
16835
16836         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16837         * modules/getlogin (configure.ac): Update.
16838
16839         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16840         * modules/getlogin_r (configure.ac): Update.
16841
16842         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16843         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16844         * modules/inet_ntop (configure.ac): Update.
16845
16846         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16847         * modules/inet_pton (configure.ac): Update.
16848
16849         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16850         * modules/mbslen (configure.ac): Update.
16851
16852         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16853         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16854         * modules/forkpty (configure.ac): Update.
16855         * modules/openpty (configure.ac): Update.
16856
16857 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16858
16859         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16860         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16861
16862 2010-03-25  Eric Blake  <eblake@redhat.com>
16863
16864         maint: use pragma consistently across replacement headers
16865         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16866         * lib/dirent.in.h (system_header): Likewise.
16867         * lib/errno.in.h (system_header): Likewise.
16868         * lib/float.in.h (system_header): Likewise.
16869         * lib/getopt.in.h (system_header): Likewise.
16870         * lib/iconv.in.h (system_header): Likewise.
16871         * lib/inttypes.in.h (system_header): Likewise.
16872         * lib/langinfo.in.h (system_header): Likewise.
16873         * lib/locale.in.h (system_header): Likewise.
16874         * lib/math.in.h (system_header): Likewise.
16875         * lib/netdb.in.h (system_header): Likewise.
16876         * lib/netinet_in.in.h (system_header): Likewise.
16877         * lib/pty.in.h (system_header): Likewise.
16878         * lib/sched.in.h (system_header): Likewise.
16879         * lib/se-selinux.in.h (system_header): Likewise.
16880         * lib/search.in.h (system_header): Likewise.
16881         * lib/spawn.in.h (system_header): Likewise.
16882         * lib/stdarg.in.h (system_header): Likewise.
16883         * lib/stdint.in.h (system_header): Likewise.
16884         * lib/string.in.h (system_header): Likewise.
16885         * lib/strings.in.h (system_header): Likewise.
16886         * lib/sys_file.in.h (system_header): Likewise.
16887         * lib/sys_ioctl.in.h (system_header): Likewise.
16888         * lib/sys_socket.in.h (system_header): Likewise.
16889         * lib/sys_times.in.h (system_header): Likewise.
16890         * lib/sys_utsname.in.h (system_header): Likewise.
16891         * lib/sys_wait.in.h (system_header): Likewise.
16892         * lib/sysexits.in.h (system_header): Likewise.
16893         * lib/unistd.in.h (system_header): Likewise.
16894         * lib/wctype.in.h (system_header): Likewise.
16895
16896         arpa/inet: fix mingw compilation warning
16897         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16898         Reported by Matthew Bolte.
16899
16900 2010-03-25  Bruno Haible  <bruno@clisp.org>
16901
16902         Avoid collision between gnulib wrapper and libintl wrapper.
16903         * lib/printf.c (printf): Don't define if a printf wrapper is already
16904         defined in intl/printf.c.
16905         Reported by Michel Boaventura <michel@michelboaventura.com>.
16906
16907 2010-03-25  Bruno Haible  <bruno@clisp.org>
16908
16909         Use ANSI C.
16910         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16911
16912 2010-03-25  Bruno Haible  <bruno@clisp.org>
16913
16914         Minor formatting changes.
16915         * lib/acosl.c: Insert space before function argument list.
16916         * lib/argz.c: Likewise.
16917         * lib/asinl.c: Likewise.
16918         * lib/expl.c: Likewise.
16919         * lib/gen-uni-tables.c: Likewise.
16920         * lib/gettext.h: Likewise.
16921         * lib/glthread/lock.h: Likewise.
16922         * lib/tanl.c: Likewise.
16923         * lib/uniname/uniname.c: Likewise.
16924         * tests/test-idpriv-drop.c: Likewise.
16925         * tests/test-idpriv-droptemp.c: Likewise.
16926         * tests/test-lock.c: Likewise.
16927         * tests/test-tls.c: Likewise.
16928         * lib/argp-help.c: Insert space before function-like macro argument
16929         list.
16930         * lib/memcmp.c: Likewise.
16931         * tests/test-base64.c: Likewise.
16932         * lib/localename.c: Insert space before sizeof's argument list.
16933         * lib/safe-alloc.h: Likewise.
16934         * lib/file-set.h: Insert space before macro argument list.
16935         * tests/test-argp.c: Likewise.
16936         * lib/argp-namefrob.h: Insert space before function parameter list.
16937         * lib/getaddrinfo.c: Likewise.
16938         * lib/netdb.in.h: Likewise.
16939         * lib/parse-duration.h: Likewise.
16940         * lib/parse-duration.c: Likewise.
16941         * lib/poll.c: Likewise.
16942         * lib/select.c: Likewise.
16943         * lib/trim.h: Likewise.
16944         * tests/test-usleep.c: Likewise.
16945         * lib/ldexpl.c: Insert space before function parameter list and before
16946         function argument list.
16947         * lib/logl.c: Likewise.
16948         * lib/sqrtl.c: Likewise.
16949         * lib/trim.c: Likewise.
16950         * lib/cosl.c: Use GNU style indentation. Insert space before function
16951         argument list.
16952         * lib/sinl.c: Likewise.
16953         * lib/tsearch.c: Insert space after 'for'.
16954         Reported by Jim Meyering.
16955
16956 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16957
16958         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16959         config header before grepping, as it's not present before
16960         autoreconf/configure are run.  Reported by Simon Josefsson.
16961
16962 2010-03-23  Bruno Haible  <bruno@clisp.org>
16963
16964         pt_chown: Make it work with automake < 1.11.
16965         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16966         Reported by Simon Josefsson.
16967
16968 2010-03-23  Bruno Haible  <bruno@clisp.org>
16969
16970         pt_chown: Don't depend on GPLed modules.
16971         * lib/pt_chown.c: Don't include idpriv.h.
16972         (main): Don't drop privileges.
16973         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16974         Reported by Simon Josefsson.
16975
16976 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16977
16978         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16979         suggestions from karl@freefriends.org (Karl Berry).
16980
16981 2010-03-22  Eric Blake  <eblake@redhat.com>
16982
16983         gethostname: further tweaks
16984         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16985         are overriding gethostname.
16986         Suggested by Bruno Haible.
16987
16988 2010-03-21  Bruno Haible  <bruno@clisp.org>
16989
16990         Fix comments.
16991         * lib/forkpty.c (rpl_forkpty): Fix comment.
16992         * lib/openpty.c (rpl_openpty): Likewise.
16993         Reported by Eric Blake.
16994
16995 2010-03-22  Eric Blake  <eblake@redhat.com>
16996
16997         gethostname: fix build on mingw
16998         * lib/unistd.in.h (includes): Work around fact that mingw
16999         <winsock2.h> re-includes <unistd.h>, by avoiding any
17000         redeclarations if we are being included by <winsock2.h>.
17001         Reported by Matthias Bolte.
17002
17003 2010-03-21  Bruno Haible  <bruno@clisp.org>
17004
17005         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17006         * lib/forkpty.c (forkpty): New replacement function, from glibc with
17007         modifications.
17008         * lib/pty.in.h (forkpty): Update declaration. Add comments.
17009         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
17010         provide the replacement.
17011         * modules/forkpty (Depends-on): Add openpty, login_tty.
17012         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
17013         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
17014         * doc/glibc-functions/forkpty.texi: More supported platforms.
17015         * config/srclist.txt: Add forkpty.c (commented).
17016
17017 2010-03-21  Bruno Haible  <bruno@clisp.org>
17018
17019         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
17020         (Makefile.am): Verify that PTY_LIB is defined.
17021
17022         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
17023
17024 2010-03-21  Bruno Haible  <bruno@clisp.org>
17025
17026         Tests for module 'login_tty'.
17027         * modules/login_tty-tests: New file.
17028         * tests/test-login_tty.c: New file.
17029
17030         New module 'login_tty'.
17031         * lib/login_tty.c: New file.
17032         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
17033         * modules/login_tty: New file.
17034         * doc/glibc-functions/login_tty.texi: Mention the new module.
17035
17036 2010-03-21  Bruno Haible  <bruno@clisp.org>
17037
17038         login_tty: Documentation.
17039         * doc/glibc-functions/login_tty.texi: New file.
17040         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
17041
17042 2010-03-21  Bruno Haible  <bruno@clisp.org>
17043
17044         pty: Consistent macro naming.
17045         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
17046         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
17047         * modules/pty (configure.ac): Update.
17048
17049 2010-03-21  Bruno Haible  <bruno@clisp.org>
17050
17051         Tests for openpty: Make stricter.
17052         * tests/test-openpty.c (main): Add test of canonical processing and
17053         erase.
17054         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
17055
17056         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
17057         * lib/openpty.c (openpty): New replacement function.
17058         * lib/pty.in.h: Include <termios.h>.
17059         (openpty): Update declaration. Add comments.
17060         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
17061         is not declared, arrange to provide the replacement. Check for _getpty
17062         and posix_openpt.
17063         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
17064         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
17065         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
17066         * modules/pty-tests (test_pty_c___LDADD): New variable.
17067         * doc/glibc-functions/openpty.texi: More supported platforms.
17068
17069 2010-03-21  Bruno Haible  <bruno@clisp.org>
17070
17071         setenv: Tweaks.
17072         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
17073         the test program.
17074         * doc/posix-functions/setenv.texi: Update platforms list.
17075
17076 2010-03-21  Bruno Haible  <bruno@clisp.org>
17077
17078         New module 'unlockpt'.
17079         * lib/unlockpt.c: New file, from glibc with modifications.
17080         * m4/unlockpt.m4: New file.
17081         * modules/unlockpt: New file.
17082         * lib/stdlib.in.h (unlockpt): New declaration.
17083         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
17084         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
17085         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
17086         HAVE_UNLOCKPT.
17087         * doc/posix-functions/unlockpt.texi: Mention the new module.
17088         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
17089         * config/srclist.txt: Add unlockpt.c (commented).
17090
17091 2010-03-21  Jim Meyering  <meyering@redhat.com>
17092
17093         maint.mk: prohibit inclusion of "intprops.h" without use
17094         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
17095
17096 2010-03-21  Bruno Haible  <bruno@clisp.org>
17097
17098         New module 'grantpt'.
17099         * lib/grantpt.c: New file, from glibc with modifications.
17100         * m4/grantpt.m4: New file.
17101         * modules/grantpt: New file.
17102         * lib/stdlib.in.h (grantpt): New declaration.
17103         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
17104         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
17105         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
17106         HAVE_GRANTPT.
17107         * doc/posix-functions/grantpt.texi: Mention the new module.
17108         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
17109         * config/srclist.txt: Add grantpt.c (commented).
17110
17111 2010-03-21  Bruno Haible  <bruno@clisp.org>
17112
17113         New module 'pt_chown'.
17114         * lib/pt_chown.c: New file, from glibc with modifications.
17115         * lib/pty-private.h: New file, from glibc with modifications.
17116         * modules/pt_chown: New file.
17117         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
17118
17119 2010-03-21  Bruno Haible  <bruno@clisp.org>
17120
17121         Tests for module 'ptsname'.
17122         * modules/ptsname-tests: New file.
17123         * tests/test-ptsname.c: New file.
17124
17125         New module 'ptsname'.
17126         * lib/ptsname.c: New file, from glibc with modifications.
17127         * m4/ptsname.m4: New file.
17128         * modules/ptsname: New file.
17129         * lib/stdlib.in.h (ptsname): New declaration.
17130         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
17131         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
17132         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
17133         HAVE_PTSNAME.
17134         * doc/posix-functions/ptsname.texi: Mention the new module.
17135         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
17136         * config/srclist.txt: Add ptsname.c (commented).
17137
17138 2010-03-21  Bruno Haible  <bruno@clisp.org>
17139
17140         Tests for module 'ttyname_r'.
17141         * modules/ttyname_r-tests: New file.
17142         * tests/test-ttyname_r.c: New file.
17143
17144         New module 'ttyname_r'.
17145         * lib/ttyname_r.c: New file.
17146         * m4/ttyname_r.m4: New file.
17147         * modules/ttyname_r: New file.
17148         * lib/unistd.in.h (ttyname_r): New declaration.
17149         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
17150         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
17151         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
17152         HAVE_TTYNAME_R.
17153         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
17154         * doc/posix-functions/ttyname_r.texi: Mention the new module.
17155
17156 2010-03-20  Bruno Haible  <bruno@clisp.org>
17157
17158         signal: Undefine macro definitions in C++ mode.
17159         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
17160         sigfillset): Undefine macro definitions from the system header in C++
17161         mode.
17162         Reported by John W. Eaton <jwe@gnu.org>.
17163
17164 2010-03-20  Bruno Haible  <bruno@clisp.org>
17165
17166         Ensure no #include statements inside extern "C" { ... }.
17167         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
17168         contain #include statements.
17169         * lib/time.in.h: Likewise.
17170
17171 2010-03-20  Bruno Haible  <bruno@clisp.org>
17172
17173         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
17174         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
17175         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
17176         Reported by John W. Eaton <jwe@gnu.org>.
17177
17178 2010-03-20  Bruno Haible  <bruno@clisp.org>
17179
17180         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
17181         Reported by Jim Meyering.
17182
17183 2010-03-20  Bruno Haible  <bruno@clisp.org>
17184
17185         pipe: Set errno upon failure.
17186         * lib/pipe.h: Specify that when -1 is returned, errno is set.
17187         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
17188         errno value in error message.
17189
17190 2010-03-20  Bruno Haible  <bruno@clisp.org>
17191             Jim Meyering  <meyering@redhat.com>
17192
17193         lchown: Avoid "unused variable" warning.
17194         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
17195
17196 2010-03-20  Bruno Haible  <bruno@clisp.org>
17197
17198         Work around unlink() bug on MacOS X 10.5.6.
17199         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
17200         attempting to unlink a parent directory.
17201         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
17202         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
17203         activate for the replacement function.
17204         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
17205
17206 2010-03-20  Bruno Haible  <bruno@clisp.org>
17207
17208         Fix link errors on Solaris 8.
17209         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
17210         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
17211
17212 2010-03-19  Jim Meyering  <meyering@redhat.com>
17213
17214         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17215         The _LIBC implementation of build_range_exp correctly honors the
17216         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17217         However, the non-_LIBC implementation would ignore that syntax-bit
17218         flag and return REG_ERANGE unconditionally.
17219         This change makes it honor that flag.
17220         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17221         Make two pointer parameters "const".
17222         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17223         (parse_bracket_exp): Update caller.
17224
17225         regex.m4: correct the reversed range endpoint ([b-a]) test
17226         * m4/regex.m4: When requiring that [b-a] evoke failure,
17227         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17228         test pass once again for x86-based systems.
17229
17230 2010-03-19  Bruno Haible  <bruno@clisp.org>
17231
17232         scandir: Fix link error on Solaris 8.
17233         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17234         macros.
17235
17236 2010-03-19  Bruno Haible  <bruno@clisp.org>
17237
17238         getusershell: Fix documentation.
17239         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17240         module.
17241         * doc/glibc-functions/setusershell.texi: Likewise.
17242
17243         getusershell: Provide declaration, missing on Solaris 9.
17244         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17245         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17246         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17247         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17249         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17250         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17251         HAVE_GETUSERSHELL.
17252         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17253
17254 2010-03-19  Bruno Haible  <bruno@clisp.org>
17255
17256         wctype: Provide iswblank function.
17257         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17258         exists and is fine.
17259         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17260         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17261         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17262         * doc/posix-functions/iswblank.texi: Update.
17263
17264 2010-03-19  Bruno Haible  <bruno@clisp.org>
17265
17266         Tests of module 'pty' in C++ mode.
17267         * modules/pty-tests: New file.
17268         * tests/test-pty-c++.cc: New file.
17269         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17270
17271 2010-03-19  Eric Blake  <eblake@redhat.com>
17272
17273         logb: fix documentation
17274         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17275         1.5 declaration bug.
17276
17277         forkpty, openpty: prefer glibc's const-safe prototype
17278         * lib/forkpty.c (rpl_forkpty): New file.
17279         * lib/openpty.c (rpl_openpty): Likewise.
17280         * modules/forkpty (Files): Distribute it.
17281         * modules/openpty (Files): Likewise.
17282         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17283         check...
17284         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17285         replacement for for non-const BSD signature.
17286         * modules/pty (Makefile.am): Substitute witnesses.
17287         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17288         * tests/test-forkpty.c: Update signature check.
17289         * tests/test-openpty.c: Likewise.
17290         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17291         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17292
17293         forkpty, openpty: split functions into new modules
17294         * modules/pty (Makefile.am): Substitute new witnesses.
17295         (Libraries): Move library detection...
17296         * modules/forkpty: ...into new module.
17297         * modules/openpty: Another new module.
17298         * modules/pty-tests: Rename and split...
17299         * modules/forkpty-tests: ...to this...
17300         * modules/openpty-tests: ...and this.
17301         * tests/test-pty.c: Rename and split...
17302         * tests/test-forkpty.c: ...to this...
17303         * tests/test-openpty.c: ...and this.
17304         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17305         (gl_PTY): Split library searching...
17306         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17307         (gl_FORKPTY, gl_OPENPTY): New macros.
17308         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17309         * NEWS: Mention the split.
17310         * MODULES.html.sh (Misc): Document the modules.
17311         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17312         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17313
17314         pty: improve replacement header
17315         * lib/pty.in.h: New file.
17316         * modules/pty (Files): Ship it.
17317         (Makefile.am): Always build replacement.
17318         * m4/pty.m4: Rename...
17319         * m4/pty_h.m4: ...to this.
17320         (gl_PTY): Modernize setting of witness macros; update check of
17321         forkpty to take proper advantage of cache.
17322         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17323
17324         getopt: avoid compiler warning
17325         * lib/getopt.c (attribute_hidden): Remove unused macro.
17326
17327 2010-03-18  Bruno Haible  <bruno@clisp.org>
17328
17329         Fix link errors on Solaris 8.
17330         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17331         * modules/search-tests (test_search_c___LDADD): Likewise.
17332         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17333         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17334         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17335         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17336         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17337         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17338         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17339
17340 2010-03-18  Bruno Haible  <bruno@clisp.org>
17341
17342         Fix bug introduced on 2010-03-14.
17343         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17344         (gl_SPAWN_H): Require it.
17345         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17346         Reported by Simon Josefsson.
17347
17348 2010-03-18  Bruno Haible  <bruno@clisp.org>
17349
17350         Fix typo introduced on 2009-12-31.
17351         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17352         posix_spawn_file_actions_adddup2.
17353
17354 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17355         and Eric Blake  <eblake@redhat.com>
17356
17357         test-vc-list-files-git: make more robust
17358         * tests/test-vc-list-files-git.sh: Unset problematic environment
17359         variables.  Chain commands together.
17360
17361 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17362
17363         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17364         `AC_CHECK_DECL' invocation.
17365
17366 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17367
17368         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17369         appears before executable statements. Suggested by Petr Sumbera
17370         <Petr.Sumbera@Sun.COM>.
17371
17372 2010-03-14  Bruno Haible  <bruno@clisp.org>
17373
17374         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17375         portability problems. Instead use a simpler test.
17376         (main): Check that invalid arguments are rejected only on Linux.
17377
17378 2010-03-14  Bruno Haible  <bruno@clisp.org>
17379
17380         Fix bug introduced on 2009-12-31.
17381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17382         gl_PREREQ_SYS_H_WINSOCK2 always.
17383         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17384         SYS_SOCKET_H variable.
17385         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17386         Update comments.
17387         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17388         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17389         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17390         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17391         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17392
17393 2010-03-14  Bruno Haible  <bruno@clisp.org>
17394
17395         Fix values returned by sinl, cosl.
17396         * lib/trigl.h: Add specification comments.
17397         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17398         that combines the values from the precomputed table with the values of
17399         the Chebyshev polynomials.
17400
17401 2010-03-14  Bruno Haible  <bruno@clisp.org>
17402
17403         Fix compilation error when modules 'posix_spawn[p]' are not used.
17404         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17405         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17406
17407 2010-03-14  Bruno Haible  <bruno@clisp.org>
17408
17409         Fix compilation error on mingw when module 'time_r' is not used.
17410         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17411         is 1.
17412         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17413         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17414         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17415         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17416
17417 2010-03-14  Bruno Haible  <bruno@clisp.org>
17418
17419         Fix compilation error with Sun C.
17420         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17421         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17422         instead of GCC specific ULONG_LONG_MAX.
17423         * lib/xstrtoll.c: Likewise.
17424         * lib/xstrtoull.c: Likewise.
17425
17426 2010-03-13  Bruno Haible  <bruno@clisp.org>
17427
17428         Allow the user to disable C++ code and tests.
17429         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17430         (gl_PROG_ANSI_CXX): Require it.
17431
17432 2010-03-13  Bruno Haible  <bruno@clisp.org>
17433
17434         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17435         cases.
17436
17437 2010-03-13  Bruno Haible  <bruno@clisp.org>
17438
17439         Test that gnulib does not break the standard C++ headers.
17440         * tests/test-locale-c++2.cc: New file.
17441         * modules/locale-tests (Files): Add it.
17442         (Makefile.am): Compile it for test-locale-c++.
17443         * tests/test-math-c++2.cc: New file.
17444         * modules/math-tests (Files): Add it.
17445         (Makefile.am): Compile it for test-math-c++.
17446         * tests/test-signal-c++2.cc: New file.
17447         * modules/signal-tests (Files): Add it.
17448         (Makefile.am): Compile it for test-signal-c++.
17449         * tests/test-stdio-c++2.cc: New file.
17450         * modules/stdio-tests (Files): Add it.
17451         (Makefile.am): Compile it for test-stdio-c++.
17452         * tests/test-stdlib-c++2.cc: New file.
17453         * modules/stdlib-tests (Files): Add it.
17454         (Makefile.am): Compile it for test-stdlib-c++.
17455         * tests/test-string-c++2.cc: New file.
17456         * modules/string-tests (Files): Add it.
17457         (Makefile.am): Compile it for test-string-c++.
17458         * tests/test-time-c++2.cc: New file.
17459         * modules/time-tests (Files): Add it.
17460         (Makefile.am): Compile it for test-time-c++.
17461         Reported by John W. Eaton <jwe@gnu.org>.
17462
17463 2010-03-13  Bruno Haible  <bruno@clisp.org>
17464
17465         * gnulib-tool (func_usage): Clarify which options are available for
17466         --create-testdir and --create-megatestdir.
17467
17468 2010-03-13  Bruno Haible  <bruno@clisp.org>
17469
17470         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17471         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17472         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17473         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17474         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17475         when appropriate.
17476         Reported by Jim Meyering.
17477
17478 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17479
17480         * gnulib-tool (func_import): Explain origin of code.
17481
17482 2010-03-12  Bruno Haible  <bruno@clisp.org>
17483
17484         Fix problem with automake's definition of CXXLINK.
17485         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17486         Reported by Simon Josefsson and Ludovic Courtès.
17487
17488 2010-03-12  Bruno Haible  <bruno@clisp.org>
17489
17490         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17491         stable releases.
17492
17493 2010-03-11  Bruno Haible  <bruno@clisp.org>
17494
17495         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17496         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17497         whether the system provides one variant or multiple variants of the
17498         function.
17499         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17500         C++ compilers.
17501         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17502         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17503         Reported by Jim Meyering.
17504
17505 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17506
17507         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17508
17509 2010-03-08  Bruno Haible  <bruno@clisp.org>
17510
17511         gnulib-tool: Add support for --libtool in --create-testdir.
17512         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17513         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17514
17515 2010-03-08  Eric Blake  <eblake@redhat.com>
17516
17517         gnulib-tool.texi: mention possibility of git submodule
17518         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17519         submodules.
17520         * doc/.gitignore: Ignore another generated file.
17521
17522 2010-03-08  Karl Berry  <karl@gnu.org>
17523
17524         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17525         of committing gnulib files while skipping others.
17526
17527 2010-03-07  Bruno Haible  <bruno@clisp.org>
17528
17529         Tests of module 'wctype' in C++ mode.
17530         * tests/test-wctype-c++.cc: New file.
17531         * modules/wctype-tests (Files): Add it and tests/signature.h.
17532         (Depends-on): Add ansi-c++-opt.
17533         (Makefile.am): Arrange to compile and run test-wctype-c++.
17534
17535         Tests of module 'wchar' in C++ mode.
17536         * tests/test-wchar-c++.cc: New file.
17537         * modules/wchar-tests (Files): Add it and tests/signature.h.
17538         (Depends-on): Add ansi-c++-opt.
17539         (Makefile.am): Arrange to compile and run test-wchar-c++.
17540         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17541         gl_MODULE_INDICATOR.
17542
17543         Tests of module 'unistd' in C++ mode.
17544         * tests/test-unistd-c++.cc: New file.
17545         * modules/unistd-tests (Files): Add it and tests/signature.h.
17546         (Depends-on): Add ansi-c++-opt.
17547         (Makefile.am): Arrange to compile and run test-unistd-c++.
17548         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17549         gl_MODULE_INDICATOR.
17550
17551         Tests of module 'time' in C++ mode.
17552         * tests/test-time-c++.cc: New file.
17553         * modules/time-tests (Files): Add it and tests/signature.h.
17554         (Depends-on): Add ansi-c++-opt.
17555         (Makefile.am): Arrange to compile and run test-time-c++.
17556         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17557
17558         Tests of module 'sys_time' in C++ mode.
17559         * tests/test-sys_time-c++.cc: New file.
17560         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17561         (Depends-on): Add ansi-c++-opt.
17562         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17563         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17564         gl_MODULE_INDICATOR.
17565
17566         Tests of module 'sys_stat' in C++ mode.
17567         * tests/test-sys_stat-c++.cc: New file.
17568         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17569         (Depends-on): Add ansi-c++-opt.
17570         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17571         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17572         gl_MODULE_INDICATOR.
17573
17574         Tests of module 'sys_socket' in C++ mode.
17575         * tests/test-sys_socket-c++.cc: New file.
17576         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17577         (Depends-on): Add ansi-c++-opt.
17578         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17579         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17580         gl_MODULE_INDICATOR.
17581
17582         Tests of module 'sys_select' in C++ mode.
17583         * tests/test-sys_select-c++.cc: New file.
17584         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17585         (Depends-on): Add ansi-c++-opt.
17586         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17587         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17588         gl_MODULE_INDICATOR.
17589
17590         Tests of module 'sys_ioctl' in C++ mode.
17591         * tests/test-sys_ioctl-c++.cc: New file.
17592         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17593         (Depends-on): Add ansi-c++-opt.
17594         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17595         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17596         gl_MODULE_INDICATOR.
17597
17598         Tests of module 'string' in C++ mode.
17599         * tests/test-string-c++.cc: New file.
17600         * modules/string-tests (Files): Add it and tests/signature.h.
17601         (Depends-on): Add ansi-c++-opt.
17602         (Makefile.am): Arrange to compile and run test-string-c++.
17603         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17604         gl_MODULE_INDICATOR.
17605
17606         Tests of module 'stdlib' in C++ mode.
17607         * tests/test-stdlib-c++.cc: New file.
17608         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17609         (Depends-on): Add ansi-c++-opt.
17610         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17611         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17612         gl_MODULE_INDICATOR.
17613
17614         Tests of module 'stdio' in C++ mode.
17615         * tests/test-stdio-c++.cc: New file.
17616         * modules/stdio-tests (Files): Add it and tests/signature.h.
17617         (Depends-on): Add ansi-c++-opt.
17618         (Makefile.am): Arrange to compile and run test-stdio-c++.
17619         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17620         gl_MODULE_INDICATOR.
17621
17622         Tests of module 'spawn' in C++ mode.
17623         * tests/test-spawn-c++.cc: New file.
17624         * modules/spawn-tests (Files): Add it and tests/signature.h.
17625         (Depends-on): Add ansi-c++-opt.
17626         (Makefile.am): Arrange to compile and run test-spawn-c++.
17627         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17628         gl_MODULE_INDICATOR.
17629
17630         Tests of module 'signal' in C++ mode.
17631         * tests/test-signal-c++.cc: New file.
17632         * modules/signal-tests (Files): Add it and tests/signature.h.
17633         (Depends-on): Add ansi-c++-opt.
17634         (Makefile.am): Arrange to compile and run test-signal-c++.
17635         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17636         gl_MODULE_INDICATOR.
17637
17638         Tests of module 'search' in C++ mode.
17639         * tests/test-search-c++.cc: New file.
17640         * modules/search-tests (Files): Add it and tests/signature.h.
17641         (Depends-on): Add ansi-c++-opt.
17642         (Makefile.am): Arrange to compile and run test-search-c++.
17643         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17644         gl_MODULE_INDICATOR.
17645
17646         Tests of module 'math' in C++ mode.
17647         * tests/test-math-c++.cc: New file.
17648         * modules/math-tests (Files): Add it and tests/signature.h.
17649         (Depends-on): Add ansi-c++-opt.
17650         (Makefile.am): Arrange to compile and run test-math-c++.
17651         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17652
17653         Tests of module 'locale' in C++ mode.
17654         * tests/test-locale-c++.cc: New file.
17655         * modules/locale-tests (Files): Add it and tests/signature.h.
17656         (Depends-on): Add ansi-c++-opt.
17657         (Makefile.am): Arrange to compile and run test-locale-c++.
17658         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17659         gl_MODULE_INDICATOR.
17660
17661         Tests of module 'langinfo' in C++ mode.
17662         * tests/test-langinfo-c++.cc: New file.
17663         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17664         (Depends-on): Add ansi-c++-opt.
17665         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17666         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17667         gl_MODULE_INDICATOR.
17668
17669         Tests of module 'iconv-h' in C++ mode.
17670         * tests/test-iconv-h-c++.cc: New file.
17671         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17672         (Depends-on): Add ansi-c++-opt.
17673         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17674
17675         Tests of module 'glob' in C++ mode.
17676         * tests/test-glob-c++.cc: New file.
17677         * modules/glob-tests (Files): Add it.
17678         (Depends-on): Add ansi-c++-opt.
17679         (Makefile.am): Arrange to compile and run test-glob-c++.
17680
17681         Tests of module 'fcntl-h' in C++ mode.
17682         * tests/test-fcntl-h-c++.cc: New file.
17683         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17684         (Depends-on): Add ansi-c++-opt.
17685         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17686         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17687         gl_MODULE_INDICATOR.
17688
17689         Tests of module 'dirent' in C++ mode.
17690         * tests/test-dirent-c++.cc: New file.
17691         * modules/dirent-tests (Files): Add it and tests/signature.h.
17692         (Depends-on): Add ansi-c++-opt.
17693         (Makefile.am): Arrange to compile and run test-dirent-c++.
17694         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17695         gl_MODULE_INDICATOR.
17696
17697         New module 'ansi-c++-opt'.
17698         * modules/ansi-c++-opt: New file.
17699         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17700
17701         Document C++ namespace mode.
17702         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17703
17704         wctype: Avoid #define replacements in C++ mode.
17705         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17706         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17707         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17708         In C++, define a namespaced alias symbol.
17709         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17710         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17711         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17712         rule.
17713
17714         wchar: Avoid #define replacements in C++ mode.
17715         * lib/wchar.in.h: Include c++defs.h.
17716         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17717         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17718         symbol.
17719         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17720         * modules/wchar (Depends-on): Add c++defs.
17721         (Makefile.am): Update wchar.h rule.
17722
17723         unistd: Avoid #define replacements in C++ mode.
17724         * lib/unistd.in.h: Include c++defs.h.
17725         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17726         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17727         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17728         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17729         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17730         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17731         symbol.
17732         (environ): Update.
17733         * modules/unistd (Depends-on): Add c++defs.
17734         (Makefile.am): Update unistd.h rule.
17735
17736         time: Avoid #define replacements in C++ mode.
17737         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17738         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17739         define a namespaced alias symbol.
17740         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17741         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17742         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17743         * modules/time (Depends-on): Add c++defs, warn-on-use.
17744         (Makefile.am): Update time.h rule.
17745         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17746         * modules/nanosleep (configure.ac): Likewise.
17747         * modules/strptime (configure.ac): Likewise.
17748         * modules/timegm (configure.ac): Likewise.
17749
17750         sys_time: Avoid #define replacements in C++ mode.
17751         * lib/sys_time.in.h: Include c++defs.h.
17752         (gettimeofday): In C++, define a namespaced alias symbol.
17753         * modules/sys_time (Depends-on): Add c++defs.
17754         (Makefile.am): Update sys/time.h rule.
17755
17756         sys_stat: Avoid #define replacements in C++ mode.
17757         * lib/sys_stat.in.h: Include c++defs.h.
17758         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17759         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17760         namespaced alias symbol.
17761         In C++, define a namespaced alias symbol.
17762         * modules/sys_stat (Depends-on): Add c++defs.
17763         (Makefile.am): Update sys/stat.h rule.
17764
17765         sys_socket: Avoid #define replacements in C++ mode.
17766         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17767         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17768         definitions also when the system has a <sys/socket.h>.
17769         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17770         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17771         In C++, define a namespaced alias symbol.
17772         * modules/sys_socket (Depends-on): Add c++defs.
17773         (Makefile.am): Update sys/socket.h rule.
17774
17775         sys_select: Avoid #define replacements in C++ mode.
17776         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17777         definitions also when the system has a <sys/select.h>.
17778         (select): In C++, define a namespaced alias symbol.
17779         * modules/sys_select (Depends-on): Add c++defs.
17780         (Makefile.am): Update sys/select.h rule.
17781
17782         sys_ioctl: Avoid #define replacements in C++ mode.
17783         * lib/sys_ioctl.in.h: Include c++defs.h.
17784         (ioctl): In C++, define a namespaced alias symbol.
17785         * modules/sys_ioctl (Depends-on): Add c++defs.
17786         (Makefile.am): Update sys/ioctl.h rule.
17787
17788         string: Avoid #define replacements in C++ mode.
17789         * lib/string.in.h: Include c++defs.h.
17790         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17791         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17792         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17793         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17794         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17795         * modules/string (Depends-on): Add c++defs.
17796         (Makefile.am): Update string.h rule.
17797
17798         stdlib: Avoid #define replacements in C++ mode.
17799         * lib/stdlib.in.h: Include c++defs.h.
17800         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17801         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17802         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17803         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17804         symbol.
17805         * modules/stdlib (Depends-on): Add c++defs.
17806         (Makefile.am): Update stdlib.h rule.
17807
17808         stdio: Avoid #define replacements in C++ mode.
17809         * lib/stdio.in.h: Include c++defs.h.
17810         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17811         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17812         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17813         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17814         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17815         namespaced alias symbol.
17816         * modules/stdio (Depends-on): Add c++defs.
17817         (Makefile.am): Update stdio.h rule.
17818
17819         spawn: Avoid #define replacements in C++ mode.
17820         * lib/spawn.in.h: Include c++defs.h.
17821         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17822         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17823         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17824         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17825         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17826         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17827         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17828         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17829         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17830         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17831         In C++, define a namespaced alias symbol.
17832         * modules/spawn (Depends-on): Add c++defs.
17833         (Makefile.am): Update spawn.h rule.
17834
17835         signal: Avoid #define replacements in C++ mode.
17836         * lib/signal.in.h: Include c++defs.h.
17837         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17838         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17839         namespaced alias symbol.
17840         * modules/signal (Depends-on): Add c++defs.
17841         (Makefile.am): Update signal.h rule.
17842
17843         search: Avoid #define replacements in C++ mode.
17844         * lib/search.in.h: Include c++defs.h.
17845         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17846         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17847         symbol.
17848         * modules/search (Depends-on): Add c++defs.
17849         (Makefile.am): Update search.h rule.
17850
17851         math: Avoid #define replacements in C++ mode.
17852         * lib/math.in.h: Include c++defs.h.
17853         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17854         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17855         trunc, truncl): In C++, define a namespaced alias symbol.
17856         * modules/math (Depends-on): Add c++defs.
17857         (Makefile.am): Update math.h rule.
17858
17859         locale: Avoid #define replacements in C++ mode.
17860         * lib/locale.in.h: Include c++defs.h.
17861         (duplocale): In C++, define a namespaced alias symbol.
17862         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17863         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17864         * modules/locale (Depends-on): Add c++defs.
17865         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17866
17867         langinfo: Avoid #define replacements in C++ mode.
17868         * lib/langinfo.in.h: Include c++defs.h.
17869         (nl_langinfo): In C++, define a namespaced alias symbol.
17870         * modules/langinfo (Depends-on): Add c++defs.
17871         (Makefile.am): Update langinfo.h rule.
17872
17873         iconv-h: Avoid #define replacements in C++ mode.
17874         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17875         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17876         symbol.
17877         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17878         whenever iconv is present.
17879         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17880         (Makefile.am): Update iconv.h rule.
17881
17882         glob: Avoid #define replacements in C++ mode.
17883         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17884         (_gl_glob_errfunc_fn): New type.
17885         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17886         symbol.
17887         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17888         (Makefile.am): Update glob.h rule.
17889
17890         fcntl-h: Avoid #define replacements in C++ mode.
17891         * lib/fcntl.in.h: Include c++defs.h.
17892         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17893         * modules/fcntl-h (Depends-on): Add c++defs.
17894         (Makefile.am): Update fcntl.h rule.
17895
17896         dirent: Avoid #define replacements in C++ mode.
17897         * lib/dirent.in.h: Include c++defs.h.
17898         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17899         namespaced alias symbol.
17900         (dirfd): Update declaration.
17901         * modules/dirent (Depends-on): Add c++defs.
17902         (Makefile.am): Update dirent.h rule.
17903
17904         ctype: Make it usable in C++ code.
17905         * lib/ctype.in.h: Include c++defs.h.
17906         (isblank): Declare as extern "C".
17907         * modules/ctype (Depends-on): Add c++defs.
17908         (Makefile.am): Update ctype.h rule.
17909
17910         New module 'c++defs'.
17911         * modules/c++defs: New file.
17912         * build-aux/c++defs.h: New file.
17913         Reported by John W. Eaton <jwe@gnu.org>.
17914
17915 2010-03-07  Bruno Haible  <bruno@clisp.org>
17916
17917         logb: Provide missing declaration for Cygwin.
17918         * lib/math.in.h (logb): New declaration.
17919         * m4/logb.m4: New file.
17920         * modules/logb (Files): Add m4/logb.m4.
17921         (Depends-on): Add math.
17922         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17923         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17925         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17926         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17927
17928 2010-03-07  Bruno Haible  <bruno@clisp.org>
17929
17930         Fix test-cond link error.
17931         * tests/test-cond.c: Include <stdio.h>.
17932
17933 2010-03-07  Bruno Haible  <bruno@clisp.org>
17934
17935         Fix test-dirent-safer link error.
17936         * modules/dirent-safer-tests (Makefile.am): Define
17937         test_dirent_safer_LDADD.
17938
17939 2010-03-07  Bruno Haible  <bruno@clisp.org>
17940
17941         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17942         among default module list.
17943
17944 2010-03-07  Bruno Haible  <bruno@clisp.org>
17945
17946         Fix link error on platforms with GNU libiconv.
17947         * modules/unistr/u8-strcoll-tests (Makefile): Define
17948         test_u8_strcoll_LDADD.
17949         * modules/unistr/u16-strcoll-tests (Makefile): Define
17950         test_u16_strcoll_LDADD.
17951         * modules/unistr/u32-strcoll-tests (Makefile): Define
17952         test_u32_strcoll_LDADD.
17953
17954 2010-03-07  Bruno Haible  <bruno@clisp.org>
17955
17956         Use POSIX declarations for socket functions.
17957         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17958         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17959         rpl_sendto): Change declaration to match POSIX.
17960         * lib/connect.c (rpl_connect): Likewise.
17961         * lib/accept.c (rpl_accept): Likewise.
17962         * lib/bind.c (rpl_bind): Likewise.
17963         * lib/getpeername.c (rpl_getpeername): Likewise.
17964         * lib/getsockname.c (rpl_getsockname): Likewise.
17965         * lib/recv.c (rpl_recv): Likewise.
17966         * lib/send.c (rpl_send): Likewise.
17967         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17968         * lib/sendto.c (rpl_sendto): Likewise.
17969
17970 2010-03-06  Bruno Haible  <bruno@clisp.org>
17971
17972         Clarify access, euidaccess, faccessat.
17973         * doc/posix-functions/faccessat.texi: Mention security problem under
17974         "Other problems", not "Portability problems".
17975         * doc/posix-functions/access.texi: Likewise. Mention a related security
17976         problem.
17977         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17978         * lib/euidaccess.c: Add comments about platforms.
17979         * lib/unistd.in.h (access, euidaccess): Add warnings.
17980
17981 2010-03-07  Bruno Haible  <bruno@clisp.org>
17982
17983         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17984         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17985         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17986         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17987         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17988         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17989         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17990         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17991         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17992         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17993         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17994         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17995         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17996         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17997         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17998         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17999         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
18000         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
18001         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
18002         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
18003         Likewise.
18004         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
18005         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
18006         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
18007         Likewise.
18008         * tests/test-spawn.c (main): Make it work when
18009         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
18010
18011 2010-03-07  Bruno Haible  <bruno@clisp.org>
18012
18013         Fix incorrect Makefile.am generation in German locale.
18014         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18015         Execute sed command with character range in C locale.
18016
18017 2010-03-06  Bruno Haible  <bruno@clisp.org>
18018
18019         Tests for module 'iconv-h'.
18020         * modules/iconv-h-tests: New file.
18021         * tests/test-iconv-h.c: New file.
18022
18023         New module 'iconv-h'.
18024         * modules/iconv-h: New file.
18025         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
18026         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
18027         (configure.ac): Remove gl_ICONV_H.
18028         (Makefile.am): Remove rule for iconv.h.
18029
18030 2010-03-06  Bruno Haible  <bruno@clisp.org>
18031
18032         More consistent naming of *.m4 files.
18033         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
18034         * modules/wctype (Files): Update.
18035
18036         More consistent naming of *.m4 files.
18037         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
18038         * modules/wchar (Files): Update.
18039
18040 2010-03-06  Jim Meyering  <meyering@redhat.com>
18041
18042         euidaccess: relax license to LGPLv2+
18043         * modules/euidaccess (License): Relax to LGPLv2+.
18044
18045 2010-03-06  Bruno Haible  <bruno@clisp.org>
18046
18047         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
18048         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
18049         (Makefile.am): Augment lib_SOURCES instead.
18050
18051 2010-03-04  Jim Meyering  <meyering@redhat.com>
18052
18053         utime: remove obsolete module
18054         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
18055         unnecessary for years, and has been marked as obsolete for 10 months.
18056         * modules/utime: Remove file.
18057         * lib/utime.c: Remove file.
18058         * m4/utime.m4: Remove file.
18059         * m4/utimes-null.m4: Remove file.
18060         * doc/posix-functions/utime.texi (utime): Remove reference to
18061         the module.  Move the sole "fixed by gnulib" item into the
18062         "problems not fixed by Gnulib" list.
18063         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
18064
18065 2010-03-05  Simon Josefsson  <simon@josefsson.org>
18066
18067         * modules/exit (License): Relax license to LGPLv2+.
18068         (Status): Mark as obsolete.
18069         * NEWS: Mention deprecated 'exit' module.
18070         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
18071         of now obsolete 'exit'.
18072
18073 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18074
18075         fts-lgpl: remove unused module
18076         * modules/fts-lgpl: Remove.
18077         * MODULES.html.sh (func_all_modules): Adjust.
18078         * check-module (find_included_lib_files): Adjust.
18079         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
18080
18081 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
18082
18083         copy-acl: enhance Solaris ACL error handling
18084         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
18085         * lib/set-mode-acl.c (qset_acl): Likewise.
18086
18087 2010-03-02  Bruno Haible  <bruno@clisp.org>
18088
18089         spawn: Don't override the system defined values on FreeBSD 8.
18090         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
18091         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
18092         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
18093         if HAVE_POSIX_SPAWN is 1.
18094         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
18095
18096 2010-03-01  Bruno Haible  <bruno@clisp.org>
18097
18098         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
18099         regarding Automake.
18100
18101 2010-02-25  Bruno Haible  <bruno@clisp.org>
18102
18103         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
18104         * gnulib-tool: Define 'echo' as a function only before the ksh alias
18105         setting, not afterwards.
18106         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
18107
18108 2010-02-24  Eric Blake  <eblake@redhat.com>
18109
18110         bootstrap, git-version-gen: use timestamp
18111         * build-aux/git-version-gen (scriptversion): Force UTC.
18112         * build-aux/bootstrap (scriptversion): New variable.
18113
18114         bootstrap: allow older git
18115         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
18116         older than 1.6.4.  Requested by the libvirt project.
18117
18118 2010-02-23  Eric Blake  <eblake@redhat.com>
18119
18120         warn-on-use: work with old autoconf
18121         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
18122         AS_VAR semantics of autoconf 2.60.
18123         Reported by Bruno Haible.
18124
18125         bootstrap: improve some comments
18126         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
18127         clarification comments.
18128
18129         gettimeofday: provide correct function
18130         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
18131         when replacement is declared, otherwise provide gettimeofday.
18132         Reported by Michael Goffioul.
18133
18134 2010-02-23  Jim Meyering  <meyering@redhat.com>
18135
18136         lib-ignore: relax license to "unlimited", not LGPLv2+
18137         * modules/lib-ignore (License): Relax to "unlimited".
18138
18139 2010-02-23  Jim Meyering  <meyering@redhat.com>
18140
18141         lib-ignore: relax license to LGPLv2+
18142         * modules/lib-ignore (License): Relax to LGPLv2+.
18143
18144 2010-02-22  Eric Blake  <eblake@redhat.com>
18145
18146         lseek: avoid bash 3.2 broken pipe bug
18147         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
18148         warning from bash 3.2.
18149         Reported by Ben Pfaff, with analysis from Bruno Haible.
18150
18151         bootstrap: support non-FSF copyright holder
18152         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
18153         bootstrap.conf override of COPYRIGHT_HOLDER.
18154         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
18155
18156         bootstrap: interoperate with gettext 0.14.1
18157         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
18158
18159         bootstrap: allow for alternate submodule location
18160         * build-aux/bootstrap (gnulib_path): New variable; use instead of
18161         hardcoding submodule location.
18162         (gnulib_mk): Allow direct use of Makefile.am.
18163
18164         bootstrap: use GNULIB_SRCDIR to reduce disk usage
18165         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
18166         rather than reconfiguring where the submodule points.
18167
18168         gettimeofday: restore support for platforms that lack function
18169         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
18170         replacement if function is missing.
18171         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
18172         * modules/sys_time (Makefile.am): Substitute it.
18173         * lib/sys_time.in.h (gettimeofday): Check it.
18174         Reported by Michael Goffioul.
18175
18176 2010-02-21  Bruno Haible  <bruno@clisp.org>
18177
18178         * lib/stdio.in.h (obstack_printf): Fix typo.
18179
18180 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
18181
18182         vc-list-files: use bzr ls's -R option
18183         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
18184         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
18185
18186 2010-02-21  Jim Meyering  <meyering@redhat.com>
18187
18188         init.sh: fix EXEEXT shims to work also for names like test-prog
18189         * tests/init.sh: Re-exec a better shell, when needed.
18190         If the current shell lacks support for posix $(...), an init.sh-using
18191         test will now try to find a shell that supports that.  If EXEEXT is
18192         nonempty, we also require support for hyphen-in-alias-name and shell
18193         substitutions like ${var#glob}.  Failure to find such a shell results
18194         in a skipped test.
18195
18196 2010-02-21  Bruno Haible  <bruno@clisp.org>
18197
18198         Really work around around "broken pipe" error message from bash 3.2.
18199         * gnulib-tool (func_reset_sigpipe): Remove function.
18200         (echo): In bash 3.2, define to a function that uses printf.
18201         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
18202
18203 2010-02-20  Bruno Haible  <bruno@clisp.org>
18204
18205         Restore support for automake 1.9.6 with autoconf 2.61.
18206         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
18207         Reported by James Youngman <jay@gnu.org>.
18208
18209 2010-02-20  Bruno Haible  <bruno@clisp.org>
18210
18211         Improve *printf warning condition.
18212         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
18213         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18214         and the function is overridden due to SIGPIPE emulation.
18215
18216 2010-02-20  Bruno Haible  <bruno@clisp.org>
18217
18218         * lib/stdio.in.h: Tweak comments.
18219
18220 2010-02-19  Bruno Haible  <bruno@clisp.org>
18221
18222         Make it easier to find modules. New gnulib-tool option '--find'.
18223         * gnulib-tool: New option --find.
18224         (func_usage): Document it.
18225         (func_sanitize_modulelist): New function, extracted from
18226         func_all_modules.
18227         (func_all_modules): Invoke it.
18228         * doc/gnulib-tool.texi (Which modules?): New node.
18229
18230 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18231
18232         * lib/sys_select.in.h: Provide select replacement even if
18233         sys/select.h exists on a system, for Interix.
18234
18235 2010-02-18  Jim Meyering  <meyering@redhat.com>
18236
18237         init.sh: don't use $(...) just yet
18238         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18239         to accommodate e.g., Solaris' /bin/sh.
18240
18241 2010-02-17  Bruno Haible  <bruno@clisp.org>
18242
18243         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18244         Reported by Ludovic Courtès <ludo@gnu.org>.
18245
18246 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18247
18248         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18249         linking with -lintl.
18250
18251 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18252
18253         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18254         if not provided by the system's netdb.h.  Reported by
18255         ludo@gnu.org (Ludovic Courtès).
18256
18257 2010-02-15  Jim Meyering  <meyering@redhat.com>
18258
18259         init.sh: improve portability and efficiency
18260         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18261         "dummy" in a for loop.
18262         Use '!', not '^' to select the complement of a character set used
18263         in a "case" statement.
18264         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18265         Suggestions from Eric Blake.
18266
18267         init.sh: automatically accommodate programs with the .exe suffix
18268         Automatically arrange for an invocation of "prog" to execute the
18269         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18270         may use the simpler "prog", yet still work when built on a system
18271         that requires specifying the added suffix.
18272         Do this by constructing a function named "prog" that invokes
18273         "prog.exe" for each .exe file in selected directories.
18274         * tests/init.sh (find_exe_basenames_): New function.
18275         (create_exe_shim_functions_): New function.
18276         (path_prepend_): Use it.
18277
18278         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18279         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18280         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18281
18282 2010-02-14  Jim Meyering  <meyering@redhat.com>
18283
18284         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18285         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18286         (sc_prohibit_hash_pjw_without_use): New rule.
18287
18288         maint.mk: allow the default upload destination dir to be overridden
18289         * top/maint.mk (upload_dest_dir_): Define with a default that
18290         preserves the status quo.
18291         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18292         Reported by Peter Simons.
18293
18294         maint.mk: prohibit inclusion of "hash.h" without_use
18295         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18296
18297 2010-02-10  Jim Meyering  <meyering@redhat.com>
18298
18299         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18300         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18301
18302 2010-02-09  Eric Blake  <ebb9@byu.net>
18303         and Bruno Haible  <bruno@clisp.org>
18304
18305         obstack-printf-posix: ensure declaration
18306         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18307         extracted from gl_FUNC_OBSTACK_PRINTF.
18308         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18309         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18310         Likewise.
18311         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18312         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18313         0.
18314
18315 2010-02-08  Bruno Haible  <bruno@clisp.org>
18316
18317         gnulib-tool: Fix typo in 2010-02-07 commit.
18318         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18319         Reported by Eric Blake.
18320
18321 2010-02-07  Bruno Haible  <bruno@clisp.org>
18322
18323         gnulib-tool: Fix up caching patches.
18324         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18325         option --no-cache. Use associative arrays when supported by the shell.
18326         (sed_comments): New variable.
18327         (modcache): Renamed from do_cache.
18328         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18329         abbreviate unnecessarily.
18330         (have_associative): New variable.
18331         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18332         way also for ksh and zsh.
18333         (func_init_sed_convert_to_cache_statements): New function, extracted
18334         from func_cache_lookup_module. Add support for associative arrays.
18335         Don't set the c_MODULE_cached variable here. Ignore all lines before
18336         the first field header. Remove only the final newline, not all trailing
18337         newlines. Support empty fields correctly. Limit the use of 'eval' to
18338         assignments.
18339         (func_get_description, func_get_status, func_get_notice,
18340         func_get_applicability, func_get_filelist, func_get_dependencies,
18341         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18342         func_get_automake_snippet, func_get_include_directive,
18343         func_get_link_directive, func_get_license, func_get_maintainer):
18344         Update documentation. List the unoptimized code first. Add support for
18345         associative arrays. Limit the use of 'eval' to assignments.
18346         (func_get_applicability): Undo stylistic pessimisations.
18347         (func_get_automake_snippet, func_get_include_directive): Reduce code
18348         duplication.
18349         (func_modules_transitive_closure, func_modules_add_dummy,
18350         func_modules_notice, func_modules_to_filelist, func_add_file,
18351         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18352         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18353         func_create_testdir, func_create_megatestdir): Update documentation.
18354
18355 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18356
18357         * gnulib-tool (func_cache_lookup_module): Store the module name
18358         belonging to the cache variable; error out if two different
18359         module names map to the same cache variable name.
18360
18361 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18362
18363         gnulib-tool: Make caching optional.
18364         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18365         Update matching short versions of --no-changelog.
18366         (func_usage): Update.
18367         (sed_extract_cache_prog): Renamed from ...
18368         (sed_extract_prog): ... this; revert to old extraction script.
18369         (func_get_description, func_get_status)
18370         (func_get_notice, func_get_applicability, func_get_filelist)
18371         (func_get_dependencies, func_get_autoconf_early_snippet)
18372         (func_get_autoconf_snippet, func_get_automake_snippet)
18373         (func_get_include_directive, func_get_link_directive)
18374         (func_get_license, func_get_maintainer): If $do_cache is false,
18375         use old, non-caching extraction scripts.
18376         Suggestion by Bruno Haible.
18377
18378 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18379
18380         gnulib-tool: cache module metainformation.
18381         * gnulib-tool (sed_extract_prog): Match newline before each
18382         header, and rewrite header to a shell variable suffix.
18383         (func_cache_var, func_cache_lookup_module): New functions,
18384         to turn a module name into a cache variable prefix, and to
18385         look up and cache module metainformation.
18386         (func_get_description, func_get_status)
18387         (func_get_notice, func_get_applicability, func_get_filelist)
18388         (func_get_dependencies, func_get_autoconf_early_snippet)
18389         (func_get_autoconf_snippet, func_get_automake_snippet)
18390         (func_get_include_directive, func_get_link_directive)
18391         (func_get_license, func_get_maintainer): Use
18392         func_cache_lookup_module.
18393
18394 2010-02-07  Bruno Haible  <bruno@clisp.org>
18395
18396         fnctl: Fix missing dependency.
18397         * modules/fcntl (Depends-on): Add getdtablesize.
18398         Reported by John W. Eaton <jwe@gnu.org>.
18399
18400 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18401
18402         Argp: fix recognition of short alias options.
18403
18404         * lib/argp-parse.c (convert_options): Fix improper use of
18405         `|' between character values.
18406         * tests/test-argp.c (group1_option): New alias option
18407         --read (-r).
18408         (group1_parser): Special handling for 'r'.
18409         (test15): New test case.
18410         (test_fun): Add test15.
18411         * tests/test-argp-2.sh: Update expected --help and --usage
18412         outputs.
18413
18414 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18415
18416         * tests/test-argp.c: Fix indentation.
18417
18418 2010-02-04  Eric Blake  <ebb9@byu.net>
18419
18420         gettimeofday: expose type of second argument
18421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18422         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18423         * tests/test-gettimeofday.c: Use it to silence warning.
18424         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18425         the issue.
18426
18427 2010-02-03  Jim Meyering  <meyering@redhat.com>
18428
18429         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18430         * lib/regcomp.c (TYPE_SIGNED): Define.
18431         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18432
18433         regcomp.c: avoid a new -Wshadow warning
18434         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18435
18436 2010-02-01  Jim Meyering  <meyering@redhat.com>
18437
18438         removing useless parentheses in cpp #define directives
18439         For motivation, see commit c0221df4, "define STREQ(a,b)
18440         consistently, removing useless parentheses"
18441         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18442         * lib/mountlist.c (MNT_IGNORE): Likewise.
18443         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18444
18445 2010-02-01  Eric Blake  <ebb9@byu.net>
18446
18447         sys_time: use link-warning
18448         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18449         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18450         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18451         * modules/sys_time (Depends-on): Add warn-on-use.
18452         (Makefile.am): Always build replacement.
18453         (configure.ac): Update substitutions.
18454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18455         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18456         bother with SYS_TIME_H.
18457         * modules/gettimeofday (configure.ac): Declare indicator.
18458         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18459         in use.
18460
18461         closein-tests: silence compiler warning
18462         * tests/test-closein.c (main): Ignore fread result.
18463         * modules/closein-tests (Depends-on): Add ignore-value.
18464
18465         tests: silence warning about system return
18466         * tests/test-areadlink-with-size.c (main): Ignore system result.
18467         * tests/test-areadlink.c (main): Likewise.
18468         * tests/test-areadlinkat-with-size.c (main): Likewise.
18469         * tests/test-areadlinkat.c (main): Likewise.
18470         * tests/test-canonicalize-lgpl.c (main): Likewise.
18471         * tests/test-canonicalize.c (main): Likewise.
18472         * tests/test-chown.c (main): Likewise.
18473         * tests/test-fchownat.c (main): Likewise.
18474         * tests/test-fdutimensat.c (main): Likewise.
18475         * tests/test-fstatat.c (main): Likewise.
18476         * tests/test-futimens.c (main): Likewise.
18477         * tests/test-lchown.c (main): Likewise.
18478         * tests/test-link.c (main): Likewise.
18479         * tests/test-linkat.c (main): Likewise.
18480         * tests/test-lstat.c (main): Likewise.
18481         * tests/test-mkdir.c (main): Likewise.
18482         * tests/test-mkdirat.c (main): Likewise.
18483         * tests/test-mkfifo.c (main): Likewise.
18484         * tests/test-mkfifoat.c (main): Likewise.
18485         * tests/test-mknod.c (main): Likewise.
18486         * tests/test-readlink.c (main): Likewise.
18487         * tests/test-remove.c (main): Likewise.
18488         * tests/test-rename.c (main): Likewise.
18489         * tests/test-renameat.c (main): Likewise.
18490         * tests/test-rmdir.c (main): Likewise.
18491         * tests/test-symlink.c (main): Likewise.
18492         * tests/test-symlinkat.c (main): Likewise.
18493         * tests/test-unlink.c (main): Likewise.
18494         * tests/test-unlinkat.c (main): Likewise.
18495         * tests/test-utimens.c (main): Likewise.
18496         * tests/test-utimensat.c (main): Likewise.
18497         * modules/areadlink-tests (Depends-on): Add ignore-value.
18498         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18499         * modules/areadlinkat-tests (Depends-on): Likewise.
18500         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18501         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18502         * modules/canonicalize-tests (Depends-on): Likewise.
18503         * modules/chown-tests (Depends-on): Likewise.
18504         * modules/fdutimensat-tests (Depends-on): Likewise.
18505         * modules/futimens-tests (Depends-on): Likewise.
18506         * modules/lchown-tests (Depends-on): Likewise.
18507         * modules/link-tests (Depends-on): Likewise.
18508         * modules/linkat-tests (Depends-on): Likewise.
18509         * modules/lstat-tests (Depends-on): Likewise.
18510         * modules/mkdir-tests (Depends-on): Likewise.
18511         * modules/mkfifo-tests (Depends-on): Likewise.
18512         * modules/mkfifoat-tests (Depends-on): Likewise.
18513         * modules/mknod-tests (Depends-on): Likewise.
18514         * modules/openat-tests (Depends-on): Likewise.
18515         * modules/readlink-tests (Depends-on): Likewise.
18516         * modules/remove-tests (Depends-on): Likewise.
18517         * modules/rename-tests (Depends-on): Likewise.
18518         * modules/renameat-tests (Depends-on): Likewise.
18519         * modules/rmdir-tests (Depends-on): Likewise.
18520         * modules/symlink-tests (Depends-on): Likewise.
18521         * modules/symlinkat-tests (Depends-on): Likewise.
18522         * modules/unlink-tests (Depends-on): Likewise.
18523         * modules/utimens-tests (Depends-on): Likewise.
18524         * modules/utimensat-tests (Depends-on): Likewise.
18525
18526 2010-01-31  Bruno Haible  <bruno@clisp.org>
18527
18528         Perform the same test for many <math.h> functions.
18529         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18530         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18531         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18532         of gl_MATHFUNC.
18533         * modules/acos (configure.ac): Likewise.
18534         * modules/asin (configure.ac): Likewise.
18535         * modules/atan (configure.ac): Likewise.
18536         * modules/atan2 (configure.ac): Likewise.
18537         * modules/cbrt (configure.ac): Likewise.
18538         * modules/copysign (configure.ac): Likewise.
18539         * modules/cos (configure.ac): Likewise.
18540         * modules/cosh (configure.ac): Likewise.
18541         * modules/erf (configure.ac): Likewise.
18542         * modules/erfc (configure.ac): Likewise.
18543         * modules/exp (configure.ac): Likewise.
18544         * modules/fmod (configure.ac): Likewise.
18545         * modules/hypot (configure.ac): Likewise.
18546         * modules/j0 (configure.ac): Likewise.
18547         * modules/j1 (configure.ac): Likewise.
18548         * modules/jn (configure.ac): Likewise.
18549         * modules/lgamma (configure.ac): Likewise.
18550         * modules/log (configure.ac): Likewise.
18551         * modules/log10 (configure.ac): Likewise.
18552         * modules/log1p (configure.ac): Likewise.
18553         * modules/pow (configure.ac): Likewise.
18554         * modules/remainder (configure.ac): Likewise.
18555         * modules/sin (configure.ac): Likewise.
18556         * modules/sinh (configure.ac): Likewise.
18557         * modules/tan (configure.ac): Likewise.
18558         * modules/tanh (configure.ac): Likewise.
18559         * modules/y0 (configure.ac): Likewise.
18560         * modules/y1 (configure.ac): Likewise.
18561         * modules/yn (configure.ac): Likewise.
18562         Suggested by Paolo Bonzini.
18563
18564 2010-01-31  Bruno Haible  <bruno@clisp.org>
18565
18566         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18567
18568 2010-01-31  Bruno Haible  <bruno@clisp.org>
18569
18570         Work around getdelim() bug on FreeBSD 8.0.
18571         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18572         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18573         not work.
18574         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18575         is 1.
18576         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18577         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18578         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18579         a non-zero size.
18580         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18581
18582 2010-01-31  Bruno Haible  <bruno@clisp.org>
18583
18584         Work around getline() bug on FreeBSD 8.0.
18585         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18586         and a non-zero size.
18587         * tests/test-getline.c (main): Likewise.
18588         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18589         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18590
18591 2010-01-28  Eric Blake  <ebb9@byu.net>
18592
18593         regex: fix build failure
18594         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18595         platforms.
18596
18597 2010-01-28  Jim Meyering  <meyering@redhat.com>
18598
18599         regex: do not ignore memory allocation failure
18600         * lib/regex_internal.c (create_cd_newstate): Detect
18601         re_node_set_init_copy failure.   Extracted from glibc commit
18602         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18603
18604         regex: sync more white-space changes from libc
18605         * lib/regex_internal.c: White-space only changes.
18606         * lib/regexec.c: Likewise.
18607
18608         regex: add many uses of __attribute_warn_unused_result__
18609         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18610         * lib/regexec.c: Likewise.
18611         Extracted from a messy glibc commit.
18612
18613         regcomp.c: spelling and merge-artifact from glibc
18614         * lib/regcomp.c: Merge remainder of glibc's
18615         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18616
18617         regcomp.c: sync white-space changes from glibc
18618         * lib/regcomp.c: Merge to accommodate white space
18619         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18620
18621         regcomp.c: do not ignore internal return values
18622         * lib/regcomp.c: Do not ignore internal return values.
18623         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18624         but without its white-space changes and spelling fixes.
18625
18626         regex_internal.h: define __attribute_warn_unused_result__
18627         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18628
18629         maint: add a syntax-check rule to check for vulnerable Makefile.in
18630         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18631
18632 2010-01-27  Jim Meyering  <meyering@redhat.com>
18633
18634         ncftpput-ftp: clean up spaces
18635         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18636         Remove trailing blanks.
18637
18638 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18639
18640         * build-aux/git-version-gen: Fix copyright statement.
18641         * build-aux/gnupload: Likewise.
18642         * tests/test-arcfour.c: Likewise.
18643         * tests/test-arctwo.c: Likewise.
18644         * tests/test-count-one-bits.c: Likewise.
18645         * tests/test-crc.c: Likewise.
18646         * tests/test-des.c: Likewise.
18647         * tests/test-gc-arcfour.c: Likewise.
18648         * tests/test-gc-arctwo.c: Likewise.
18649         * tests/test-gc-des.c: Likewise.
18650         * tests/test-gc-hmac-md5.c: Likewise.
18651         * tests/test-gc-hmac-sha1.c: Likewise.
18652         * tests/test-gc-md2.c: Likewise.
18653         * tests/test-gc-md4.c: Likewise.
18654         * tests/test-gc-md5.c: Likewise.
18655         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18656         * tests/test-gc-rijndael.c: Likewise.
18657         * tests/test-gc-sha1.c: Likewise.
18658         * tests/test-gc.c: Likewise.
18659         * tests/test-gethostname.c: Likewise.
18660         * tests/test-gettimeofday.c: Likewise.
18661         * tests/test-hash.c: Likewise.
18662         * tests/test-hmac-md5.c: Likewise.
18663         * tests/test-hmac-sha1.c: Likewise.
18664         * tests/test-md2.c: Likewise.
18665         * tests/test-md4.c: Likewise.
18666         * tests/test-md5.c: Likewise.
18667         * tests/test-memchr.c: Likewise.
18668         * tests/test-memchr2.c: Likewise.
18669         * tests/test-memcmp.c: Likewise.
18670         * tests/test-memmem.c: Likewise.
18671         * tests/test-memrchr.c: Likewise.
18672         * tests/test-rawmemchr.c: Likewise.
18673         * tests/test-read-file.c: Likewise.
18674         * tests/test-rijndael.c: Likewise.
18675         * tests/test-sockets.c: Likewise.
18676         * tests/test-strchrnul.c: Likewise.
18677         * tests/test-strstr.c: Likewise.
18678         * tests/test-strtod.c: Likewise.
18679         * build-aux/ncftpput-ftp: Likewise.
18680
18681 2010-01-26  Eric Blake  <ebb9@byu.net>
18682
18683         ignore-value: update recommended header name
18684         * modules/ignore-value (Include): Only use <> for headers that
18685         exist in glibc.
18686
18687 2010-01-26  Jim Meyering  <meyering@redhat.com>
18688
18689         test-userspec.c: avoid compiler warnings
18690         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18691         and "initialization discards qualifiers..." warnings.
18692         Put the first "uid" in its own scope, and make char* members "const".
18693
18694 2010-01-25  Bruno Haible  <bruno@clisp.org>
18695
18696         gnulib-tool: Make warning diagnostics consistent.
18697         * gnulib-tool (func_warning): New function.
18698         Use it everywhere where gnulib-tool produces output to stderr and it is
18699         not a fatal error.
18700
18701 2010-01-25  Bruno Haible  <bruno@clisp.org>
18702
18703         Fix test dependencies.
18704         * modules/xstrtol-tests (Depends-on): Add inttypes.
18705         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18706
18707 2010-01-25 Pádraig Brady <P@draigBrady.com>
18708
18709         syntax-check: detect incorrect boolean macro values in config.h
18710         * modules/maintainer-makefile (configure.ac): Parameterize the location
18711         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18712         The logic is from Eric Blake and the location indicated by Jim Meyering.
18713         Note the more natural CONFIG_HEADER name is prohibited by automake
18714         for backwards compatibility reasons.
18715         * top/maint.mk (sc_Wundef_boolean): New rule.
18716
18717 2010-01-25  Jim Meyering  <meyering@redhat.com>
18718
18719         bootstrap: detect MacOS 10.6's shasum, too
18720         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18721         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18722
18723 2010-01-23  Jim Meyering  <meyering@redhat.com>
18724
18725         xstrtoll: new module
18726         * modules/xstrtoll: New file.
18727         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18728         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18729         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18730         ./configure fails if you use this module and lack "long long".
18731         * modules/xstrtoll-tests: New module.
18732         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18733         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18734         new init.sh-based test framework.
18735
18736 2010-01-24  Bruno Haible  <bruno@clisp.org>
18737
18738         Tests for module 'yn'.
18739         * modules/yn-tests: New file.
18740         * tests/test-yn.c: New file.
18741
18742         Tests for module 'y1'.
18743         * modules/y1-tests: New file.
18744         * tests/test-y1.c: New file.
18745
18746         Tests for module 'y0'.
18747         * modules/y0-tests: New file.
18748         * tests/test-y0.c: New file.
18749
18750         Tests for module 'tanh'.
18751         * modules/tanh-tests: New file.
18752         * tests/test-tanh.c: New file.
18753
18754         Tests for module 'tan'.
18755         * modules/tan-tests: New file.
18756         * tests/test-tan.c: New file.
18757
18758         Tests for module 'sqrt'.
18759         * modules/sqrt-tests: New file.
18760         * tests/test-sqrt.c: New file.
18761
18762         Tests for module 'sinh'.
18763         * modules/sinh-tests: New file.
18764         * tests/test-sinh.c: New file.
18765
18766         Tests for module 'sin'.
18767         * modules/sin-tests: New file.
18768         * tests/test-sin.c: New file.
18769
18770         Tests for module 'rint'.
18771         * modules/rint-tests: New file.
18772         * tests/test-rint.c: New file.
18773
18774         Tests for module 'remainder'.
18775         * modules/remainder-tests: New file.
18776         * tests/test-remainder.c: New file.
18777
18778         Tests for module 'pow'.
18779         * modules/pow-tests: New file.
18780         * tests/test-pow.c: New file.
18781
18782         Tests for module 'nextafter'.
18783         * modules/nextafter-tests: New file.
18784         * tests/test-nextafter.c: New file.
18785
18786         Tests for module 'modf'.
18787         * modules/modf-tests: New file.
18788         * tests/test-modf.c: New file.
18789
18790         Tests for module 'logb'.
18791         * modules/logb-tests: New file.
18792         * tests/test-logb.c: New file.
18793
18794         Tests for module 'log1p'.
18795         * modules/log1p-tests: New file.
18796         * tests/test-log1p.c: New file.
18797
18798         Tests for module 'log10'.
18799         * modules/log10-tests: New file.
18800         * tests/test-log10.c: New file.
18801
18802         Tests for module 'log'.
18803         * modules/log-tests: New file.
18804         * tests/test-log.c: New file.
18805
18806         Tests for module 'lgamma'.
18807         * modules/lgamma-tests: New file.
18808         * tests/test-lgamma.c: New file.
18809
18810         Tests for module 'ldexp'.
18811         * modules/ldexp-tests: New file.
18812         * tests/test-ldexp.c: New file.
18813
18814         Tests for module 'jn'.
18815         * modules/jn-tests: New file.
18816         * tests/test-jn.c: New file.
18817
18818         Tests for module 'j1'.
18819         * modules/j1-tests: New file.
18820         * tests/test-j1.c: New file.
18821
18822         Tests for module 'j0'.
18823         * modules/j0-tests: New file.
18824         * tests/test-j0.c: New file.
18825
18826         Tests for module 'hypot'.
18827         * modules/hypot-tests: New file.
18828         * tests/test-hypot.c: New file.
18829
18830         Tests for module 'fmod'.
18831         * modules/fmod-tests: New file.
18832         * tests/test-fmod.c: New file.
18833
18834         Tests for module 'fabs'.
18835         * modules/fabs-tests: New file.
18836         * tests/test-fabs.c: New file.
18837
18838         Tests for module 'exp'.
18839         * modules/exp-tests: New file.
18840         * tests/test-exp.c: New file.
18841
18842         Tests for module 'erfc'.
18843         * modules/erfc-tests: New file.
18844         * tests/test-erfc.c: New file.
18845
18846         Tests for module 'erf'.
18847         * modules/erf-tests: New file.
18848         * tests/test-erf.c: New file.
18849
18850         Tests for module 'cosh'.
18851         * modules/cosh-tests: New file.
18852         * tests/test-cosh.c: New file.
18853
18854         Tests for module 'cos'.
18855         * modules/cos-tests: New file.
18856         * tests/test-cos.c: New file.
18857
18858         Tests for module 'copysign'.
18859         * modules/copysign-tests: New file.
18860         * tests/test-copysign.c: New file.
18861
18862         Tests for module 'cbrt'.
18863         * modules/cbrt-tests: New file.
18864         * tests/test-cbrt.c: New file.
18865
18866         Tests for module 'atan2'.
18867         * modules/atan2-tests: New file.
18868         * tests/test-atan2.c: New file.
18869
18870         Tests for module 'atan'.
18871         * modules/atan-tests: New file.
18872         * tests/test-atan.c: New file.
18873
18874         Tests for module 'asin'.
18875         * modules/asin-tests: New file.
18876         * tests/test-asin.c: New file.
18877
18878         Tests for module 'acos'.
18879         * modules/acos-tests: New file.
18880         * tests/test-acos.c: New file.
18881
18882 2010-01-24  Bruno Haible  <bruno@clisp.org>
18883
18884         Fix tests for common <math.h> functions.
18885         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18886         code snippet that references the function pointer, rather than merely
18887         calling the function. Substitute the FUNC_LIBM variable.
18888         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18889         * modules/acos (configure.ac): Likewise.
18890         * modules/asin (configure.ac): Likewise.
18891         * modules/atan (configure.ac): Likewise.
18892         * modules/atan2 (configure.ac): Likewise.
18893         * modules/cbrt (configure.ac): Likewise.
18894         * modules/copysign (configure.ac): Likewise.
18895         * modules/cos (configure.ac): Likewise.
18896         * modules/cosh (configure.ac): Likewise.
18897         * modules/erf (configure.ac): Likewise.
18898         * modules/erfc (configure.ac): Likewise.
18899         * modules/exp (configure.ac): Likewise.
18900         * modules/fabs (configure.ac): Likewise.
18901         * modules/fmod (configure.ac): Likewise.
18902         * modules/hypot (configure.ac): Likewise.
18903         * modules/j0 (configure.ac): Likewise.
18904         * modules/j1 (configure.ac): Likewise.
18905         * modules/jn (configure.ac): Likewise.
18906         * modules/ldexp (configure.ac): Likewise.
18907         * modules/lgamma (configure.ac): Likewise.
18908         * modules/log (configure.ac): Likewise.
18909         * modules/log10 (configure.ac): Likewise.
18910         * modules/log1p (configure.ac): Likewise.
18911         * modules/logb (configure.ac): Likewise.
18912         * modules/modf (configure.ac): Likewise.
18913         * modules/nextafter (configure.ac): Likewise.
18914         * modules/pow (configure.ac): Likewise.
18915         * modules/remainder (configure.ac): Likewise.
18916         * modules/rint (configure.ac): Likewise.
18917         * modules/sin (configure.ac): Likewise.
18918         * modules/sinh (configure.ac): Likewise.
18919         * modules/tan (configure.ac): Likewise.
18920         * modules/tanh (configure.ac): Likewise.
18921         * modules/y0 (configure.ac): Likewise.
18922         * modules/y1 (configure.ac): Likewise.
18923         * modules/yn (configure.ac): Likewise.
18924
18925 2010-01-24  Bruno Haible  <bruno@clisp.org>
18926
18927         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18928         * tests/test-acosl.c (x): New variable.
18929         (main): Store argument in x and fetch it from x.
18930         * tests/test-asinl.c (x): New variable.
18931         (main): Store argument in x and fetch it from x.
18932         * tests/test-atanl.c (x): New variable.
18933         (main): Store argument in x and fetch it from x.
18934         * tests/test-cosl.c (x): New variable.
18935         (main): Store argument in x and fetch it from x.
18936         * tests/test-expl.c (x): New variable.
18937         (main): Store argument in x and fetch it from x.
18938         * tests/test-logl.c (x): New variable.
18939         (main): Store argument in x and fetch it from x.
18940         * tests/test-sinl.c (x): New variable.
18941         (main): Store argument in x and fetch it from x.
18942         * tests/test-sqrtl.c (x): New variable.
18943         (main): Store argument in x and fetch it from x.
18944         * tests/test-tanl.c (x): New variable.
18945         (main): Store argument in x and fetch it from x.
18946
18947 2010-01-24  Bruno Haible  <bruno@clisp.org>
18948
18949         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18950         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18951         assignments to the initial TESTS_ENVIRONMENT.
18952         * doc/gnulib.texi (Unit test modules): Document it.
18953         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18954         TESTS_ENVIRONMENT.
18955         * modules/btowc-tests (Makefile.am): Likewise.
18956         * modules/c-stack-tests (Makefile.am): Likewise.
18957         * modules/c-strcase-tests (Makefile.am): Likewise.
18958         * modules/copy-file-tests (Makefile.am): Likewise.
18959         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18960         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18961         * modules/mbrtowc-tests (Makefile.am): Likewise.
18962         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18963         * modules/mbscasestr-tests (Makefile.am): Likewise.
18964         * modules/mbschr-tests (Makefile.am): Likewise.
18965         * modules/mbscspn-tests (Makefile.am): Likewise.
18966         * modules/mbsinit-tests (Makefile.am): Likewise.
18967         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18968         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18969         * modules/mbspbrk-tests (Makefile.am): Likewise.
18970         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18971         * modules/mbsrchr-tests (Makefile.am): Likewise.
18972         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18973         * modules/mbsspn-tests (Makefile.am): Likewise.
18974         * modules/mbsstr-tests (Makefile.am): Likewise.
18975         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18976         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18977         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18978         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18979         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18980         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18981         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18982         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18983         * modules/wcrtomb-tests (Makefile.am): Likewise.
18984         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18985         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18986         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18987         assignments from TESTS_ENVIRONMENT.
18988         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18989         augmentation.
18990         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18991         * modules/atexit-tests (Makefile.am): Likewise.
18992         * modules/binary-io-tests (Makefile.am): Likewise.
18993         * modules/closein-tests (Makefile.am): Likewise.
18994         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18995         * modules/exclude-tests (Makefile.am): Likewise.
18996         * modules/fflush-tests (Makefile.am): Likewise.
18997         * modules/fpending-tests (Makefile.am): Likewise.
18998         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18999         * modules/freadahead-tests (Makefile.am): Likewise.
19000         * modules/freadptr-tests (Makefile.am): Likewise.
19001         * modules/freadseek-tests (Makefile.am): Likewise.
19002         * modules/fseek-tests (Makefile.am): Likewise.
19003         * modules/fseeko-tests (Makefile.am): Likewise.
19004         * modules/ftell-tests (Makefile.am): Likewise.
19005         * modules/ftello-tests (Makefile.am): Likewise.
19006         * modules/idpriv-drop-tests (Makefile.am): Likewise.
19007         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
19008         * modules/lseek-tests (Makefile.am): Likewise.
19009         * modules/parse-duration-tests (Makefile.am): Likewise.
19010         * modules/perror-tests (Makefile.am): Likewise.
19011         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
19012         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
19013         * modules/pipe-tests (Makefile.am): Likewise.
19014         * modules/pread-tests (Makefile.am): Likewise.
19015         * modules/printf-posix-tests (Makefile.am): Likewise.
19016         * modules/select-tests (Makefile.am): Likewise.
19017         * modules/sigpipe-tests (Makefile.am): Likewise.
19018         * modules/tsearch-tests (Makefile.am): Likewise.
19019         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
19020         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
19021         * modules/uniname/uniname-tests (Makefile.am): Likewise.
19022         * modules/uniwidth/width-tests (Makefile.am): Likewise.
19023         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
19024         * modules/version-etc-tests (Makefile.am): Likewise.
19025         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
19026         * modules/vprintf-posix-tests (Makefile.am): Likewise.
19027         * modules/xalloc-die-tests (Makefile.am): Likewise.
19028         * modules/xprintf-posix-tests (Makefile.am): Likewise.
19029         * modules/xstrtoimax-tests (Makefile.am): Likewise.
19030         * modules/xstrtol-tests (Makefile.am): Likewise.
19031         * modules/xstrtoumax-tests (Makefile.am): Likewise.
19032         * modules/yesno-tests (Makefile.am): Likewise.
19033         Suggested by Jim Meyering.
19034
19035 2010-01-24  Bruno Haible  <bruno@clisp.org>
19036
19037         More documentation.
19038         * doc/gnulib.texi (Writing modules): New chapter.
19039         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
19040         the new chapter.
19041
19042 2010-01-24  Jim Meyering  <meyering@redhat.com>
19043
19044         maint.mk: do not prepend "./" after filtering
19045         * top/maint.mk (_prepend_srcdir_prefix): New variable
19046         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
19047         "./" when $(srcdir) is ".".
19048
19049         define STREQ(a,b) consistently, removing useless parentheses
19050         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
19051         since the only risk is that "a" or "b" contains an unparenthesized
19052         comma, but if either did that, STREQ would have 3 or more arguments.
19053         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
19054         * lib/fts.c (STREQ): Remove unnecessary parentheses.
19055         * lib/hash-triple.c (STREQ): Likewise.
19056         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
19057         * lib/getugroups.c (STREQ): Likewise.
19058
19059 2010-01-23  Jim Meyering  <meyering@redhat.com>
19060
19061         maint.mk: fix syntax-check in a non-srcdir build directory
19062         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
19063         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
19064
19065 2010-01-22  Jim Meyering  <meyering@redhat.com>
19066
19067         userspec: add unit tests
19068         * tests/test-userspec.c: New file.
19069         * modules/userspec-tests: Likewise.
19070
19071 2010-01-21  Jim Meyering  <meyering@redhat.com>
19072
19073         maint.mk: handle source file names containing "." robustly
19074         * top/maint.mk (_dot_escaped_srcdir): Define.
19075         (VC_LIST): Use it in LHS of sed substitution.
19076
19077 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
19078
19079         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
19080         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
19081         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
19082         from a non-srcdir build.
19083
19084 2010-01-20  Eric Blake  <ebb9@byu.net>
19085
19086         warn-on-use: use instead of link-warning
19087         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
19088         * modules/unistd (Depends-on, Makefile.am): Likewise.
19089         * modules/arpa_inet (Depends-on): Replace link-warning with
19090         warn-on-use.
19091         (Makefile.am): Update rules accordingly.
19092         * modules/ctype (Depends-on, Makefile.am): Likewise.
19093         * modules/dirent (Depends-on, Makefile.am): Likewise.
19094         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
19095         * modules/inttypes (Depends-on, Makefile.am): Likewise.
19096         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19097         * modules/locale (Depends-on, Makefile.am): Likewise.
19098         * modules/math (Depends-on, Makefile.am): Likewise.
19099         * modules/search (Depends-on, Makefile.am): Likewise.
19100         * modules/signal (Depends-on, Makefile.am): Likewise.
19101         * modules/spawn (Depends-on, Makefile.am): Likewise.
19102         * modules/stdlib (Depends-on, Makefile.am): Likewise.
19103         * modules/string (Depends-on, Makefile.am): Likewise.
19104         * modules/strings (Depends-on, Makefile.am): Likewise.
19105         * modules/sys_file (Depends-on, Makefile.am): Likewise.
19106         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
19107         * modules/sys_select (Depends-on, Makefile.am): Likewise.
19108         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
19109         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
19110         * modules/sys_times (Depends-on, Makefile.am): Likewise.
19111         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19112         * modules/wchar (Depends-on, Makefile.am): Likewise.
19113         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
19114         should be poisoned.
19115         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
19116         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
19117         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
19118         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19119         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19120         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19121         * m4/math_h.m4 (gl_MATH_H): Likewise.
19122         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19123         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
19124         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19125         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
19126         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19127         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
19128         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
19129         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
19130         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19132         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19133         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
19134         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19135         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19136         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19137         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19138         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
19139         GL_LINK_WARNING.
19140         * lib/ctype.in.h: Likewise.
19141         * lib/dirent.in.h: Likewise.
19142         * lib/fcntl.in.h: Likewise.
19143         * lib/inttypes.in.h: Likewise.
19144         * lib/langinfo.in.h: Likewise.
19145         * lib/locale.in.h: Likewise.
19146         * lib/math.in.h: Likewise.
19147         * lib/search.in.h: Likewise.
19148         * lib/signal.in.h: Likewise.
19149         * lib/spawn.in.h: Likewise.
19150         * lib/stdio.in.h: Likewise.
19151         * lib/stdlib.in.h: Likewise.
19152         * lib/string.in.h: Likewise.
19153         * lib/strings.in.h: Likewise.
19154         * lib/sys_file.in.h: Likewise.
19155         * lib/sys_ioctl.in.h: Likewise.
19156         * lib/sys_select.in.h: Likewise.
19157         * lib/sys_socket.in.h: Likewise.
19158         * lib/sys_stat.in.h: Likewise.
19159         * lib/sys_times.in.h: Likewise.
19160         * lib/sys_utsname.in.h: Likewise.
19161         * lib/unistd.in.h: Likewise.
19162         * lib/wchar.in.h: Likewise.
19163
19164 2010-01-20  Bruno Haible  <bruno@clisp.org>
19165
19166         Avoid duplicate -lm.
19167         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
19168         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
19169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
19170         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
19171         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
19172         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
19173         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
19174         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
19175         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
19176         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
19177         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
19178         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19179         Reported by Paolo Bonzini.
19180
19181 2010-01-19  Bruno Haible  <bruno@clisp.org>
19182
19183         langinfo, nl_langinfo: Relicense under LGPLv2+.
19184         * modules/langinfo (License): Change to LGPLv2+.
19185         * modules/nl_langinfo (License): Likewise.
19186         Patch by David Lutterkort <lutter@redhat.com>.
19187
19188 2010-01-19  Bruno Haible  <bruno@clisp.org>
19189
19190         Avoid compilation error with cc on OSF/1 5.1.
19191         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
19192         statement, not before.
19193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19194
19195 2010-01-18  Bruno Haible  <bruno@clisp.org>
19196
19197         Avoid a link error due to the __printf__ symbol.
19198         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
19199         and 2.6.x.
19200         (__format__, __printf__): Remove definitions.
19201         * lib/argp-fmtstream.h: Likewise.
19202         * lib/argp.h: Likewise.
19203         * lib/error.h: Likewise.
19204         * lib/vasnprintf.h: Likewise.
19205         * lib/xprintf.h: Likewise.
19206         * lib/xvasprintf.h: Likewise.
19207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19208
19209 2010-01-18  Bruno Haible  <bruno@clisp.org>
19210
19211         Tests for module 'tanl'.
19212         * modules/tanl-tests: New file.
19213         * tests/test-tanl.c: New file.
19214
19215         Tests for module 'sqrtl'.
19216         * modules/sqrtl-tests: New file.
19217         * tests/test-sqrtl.c: New file.
19218
19219         Tests for module 'sinl'.
19220         * modules/sinl-tests: New file.
19221         * tests/test-sinl.c: New file.
19222
19223         Tests for module 'logl'.
19224         * modules/logl-tests: New file.
19225         * tests/test-logl.c: New file.
19226
19227         Tests for module 'expl'.
19228         * modules/expl-tests: New file.
19229         * tests/test-expl.c: New file.
19230
19231         Tests for module 'cosl'.
19232         * modules/cosl-tests: New file.
19233         * tests/test-cosl.c: New file.
19234
19235         Tests for module 'atanl'.
19236         * modules/atanl-tests: New file.
19237         * tests/test-atanl.c: New file.
19238
19239         Tests for module 'asinl'.
19240         * modules/asinl-tests: New file.
19241         * tests/test-asinl.c: New file.
19242
19243         Tests for module 'acosl'.
19244         * modules/acosl-tests: New file.
19245         * tests/test-acosl.c: New file.
19246
19247         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19248         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19249         tanl): Use the standard gnulib idiom.
19250         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19251         * lib/sinl.c: Likewise.
19252         * lib/tanl.c: Don't include trigl.c.
19253         (kernel_tanl): Make static.
19254         * lib/sincosl.c: Include trigl.h first.
19255         * lib/trigl.c: Likewise.
19256         * m4/acosl.m4: New file.
19257         * m4/asinl.m4: New file.
19258         * m4/atanl.m4: New file.
19259         * m4/cosl.m4: New file.
19260         * m4/expl.m4: New file.
19261         * m4/logl.m4: New file.
19262         * m4/sinl.m4: New file.
19263         * m4/sqrtl.m4: New file.
19264         * m4/tanl.m4: New file.
19265         * m4/mathl.m4: Remove file.
19266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19267         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19268         Don't initialize GNULIB_MATHL.
19269         * modules/acosl: New file.
19270         * modules/asinl: New file.
19271         * modules/atanl: New file.
19272         * modules/cosl: New file.
19273         * modules/expl: New file.
19274         * modules/logl: New file.
19275         * modules/sinl: New file.
19276         * modules/sqrtl: New file.
19277         * modules/tanl: New file.
19278         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19279         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19280         substitute GNULIB_MATHL.
19281         * modules/mathl: Rewritten.
19282         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19283         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19284         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19285         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19286         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19287         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19288         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19289         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19290         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19291
19292 2010-01-18  Bruno Haible  <bruno@clisp.org>
19293
19294         sqrt: Make gl_FUNC_SQRT requirable.
19295         * m4/sqrt.m4: New file.
19296         * modules/sqrt (Files): Add it.
19297         (configure.ac): Invoke gl_FUNC_SQRT.
19298
19299 2010-01-18  Bruno Haible  <bruno@clisp.org>
19300
19301         New modules for common <math.h> functions.
19302         * m4/mathfunc.m4: New file.
19303         * modules/acos: New file.
19304         * modules/asin: New file.
19305         * modules/atan: New file.
19306         * modules/atan2: New file.
19307         * modules/cbrt: New file.
19308         * modules/copysign: New file.
19309         * modules/cos: New file.
19310         * modules/cosh: New file.
19311         * modules/erf: New file.
19312         * modules/erfc: New file.
19313         * modules/exp: New file.
19314         * modules/fabs: New file.
19315         * modules/fmod: New file.
19316         * modules/hypot: New file.
19317         * modules/j0: New file.
19318         * modules/j1: New file.
19319         * modules/jn: New file.
19320         * modules/ldexp: New file.
19321         * modules/lgamma: New file.
19322         * modules/log: New file.
19323         * modules/log10: New file.
19324         * modules/log1p: New file.
19325         * modules/logb: New file.
19326         * modules/modf: New file.
19327         * modules/nextafter: New file.
19328         * modules/pow: New file.
19329         * modules/remainder: New file.
19330         * modules/rint: New file.
19331         * modules/sin: New file.
19332         * modules/sinh: New file.
19333         * modules/sqrt: New file.
19334         * modules/tan: New file.
19335         * modules/tanh: New file.
19336         * modules/y0: New file.
19337         * modules/y1: New file.
19338         * modules/yn: New file.
19339         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19340         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19341         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19342         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19343         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19344         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19345         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19346         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19347         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19348         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19349         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19350         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19351         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19352         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19353         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19354         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19355         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19356         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19357         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19358         * doc/posix-functions/log.texi: Mention the 'log' module.
19359         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19360         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19361         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19362         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19363         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19364         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19365         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19366         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19367         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19368         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19369         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19370         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19371         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19372         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19373         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19374         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19375
19376 2010-01-18  Jim Meyering  <meyering@redhat.com>
19377
19378         ignore-value: relax license to LGPLv2+
19379         * modules/ignore-value (License): Relax to LGPLv2+.
19380
19381         getdate: don't leak when TZ contains two or more '"'s
19382         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19383         double quote in TZ after the first one.
19384
19385         readtokens: do not leak internal token_lengths buffer
19386         * lib/readtokens.c (readtokens): Free the local, lengths,
19387         when the supplied "token_lengths" parameter is NULL.
19388
19389 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19390
19391         Fix a couple of missing LIBTHREAD link failures on AIX.
19392         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19393         $(LIBTHREAD).
19394         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19395
19396         Link test-poll against INET_PTON_LIB.
19397         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19398         for inet_pton on Solaris 10.
19399
19400 2010-01-17  Bruno Haible  <bruno@clisp.org>
19401
19402         unistdio/*-sprintf: Fix typo in module description.
19403         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19404         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19405         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19406         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19407         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19408         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19409         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19410         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19411
19412 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19413
19414         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19415         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19416         variables in shell case patterns, for AIX and HP-UX ksh.
19417
19418         Split large sed scripts, for HP-UX sed.
19419         * modules/stdio: Split sed scripts around 50 sed commands,
19420         to avoid HP-UX limit of 99 commands, in the near future.
19421         * modules/string: Likewise.
19422         * modules/unistd: Likewise.
19423
19424         gnulib-tool: avoid writing in the current directory.
19425         * gnulib-tool (func_emit_lib_Makefile_am)
19426         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19427         not in the current directory, so concurrent gnulib-tool
19428         instances do not interfere.
19429
19430 2010-01-16  Jim Meyering  <meyering@redhat.com>
19431
19432         doc: update users.txt
19433         * users.txt: Add grep.
19434         (diffutils, gzip): Update URLs.
19435
19436 2010-01-12  Bruno Haible  <bruno@clisp.org>
19437
19438         posix_spawn: Avoid test failure on Cygwin.
19439         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19440         characters.
19441         Reported by Simon Josefsson.
19442
19443 2010-01-12  Bruno Haible  <bruno@clisp.org>
19444
19445         * tests/test-cond.c (main): When skipping the test, show the reason.
19446
19447 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19448
19449         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19450
19451 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19452
19453         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19454         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19455
19456 2010-01-12  Eric Blake  <ebb9@byu.net>
19457
19458         build: guarantee AS_VAR_IF
19459         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19460         (gl_AS_VAR_IF): Move...
19461         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19462         Reported by Simon Josefsson.
19463
19464 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19465
19466         * lib/stdio.in.h: Fix typo.
19467
19468 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19469
19470         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19471         libgpg-error.
19472
19473 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19474
19475         * tests/test-xalloc-die.sh: Use $EXEEXT.
19476
19477 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19478             Bruno Haible  <bruno@clisp.org>
19479
19480         getlogin, getlogin_r: Avoid test failure.
19481         * tests/test-getlogin.c: Include <stdio.h>.
19482         (main): Skip the test when the function fails because stdin is not a
19483         tty.
19484         * tests/test-getlogin_r.c: Include <stdio.h>.
19485         (main): Skip the test when the function fails because stdin is not a
19486         tty.
19487
19488 2010-01-11  Eric Blake  <ebb9@byu.net>
19489
19490         tests: avoid more large file warnings
19491         * tests/test-fflush.c: Avoid warning about ftell use.
19492         * tests/test-fseek.c: Avoid warning about fseek use.
19493
19494 2010-01-10  Bruno Haible  <bruno@clisp.org>
19495
19496         nproc: Work better on Linux when /proc and /sys are not mounted.
19497         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19498         as lower bound when, on glibc/Linux systems,
19499         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19500         Suggested by Pádraig Brady <P@draigbrady.com>.
19501         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19502
19503         nproc: Refactor.
19504         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19505         extracted from num_processors.
19506         (num_processors): Call it.
19507
19508 2010-01-11  Jim Meyering  <meyering@redhat.com>
19509
19510         utimecmp: avoid new warning from upcoming gcc-4.5.0
19511         * lib/utimecmp.c (BILLION): Define using #define rather than an
19512         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19513
19514 2010-01-11  Eric Blake  <ebb9@byu.net>
19515
19516         math: add portability warnings for classification macros
19517         * modules/math (Depends-on): Add warn-on-use.
19518         (Makefile.am): Provide new substitutions.
19519         * m4/math_h.m4 (gl_MATH_H): Require inline.
19520         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19521         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19522         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19523         implement warnings.
19524
19525         unistd: warn on use of environ without module
19526         * modules/unistd (Depends-on): Add warn-on-use.
19527         (Makefile.am): Provide new substitutions.
19528         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19529         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19530
19531         stdio: warn on suspicious uses
19532         * modules/stdio (Depends-on): Add warn-on-use.
19533         (Makefile.am): Provide new substitutions.
19534         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19535         fseeko.
19536         * lib/stdio.in.h (gets): Always warn on use.
19537         (fseek, ftell): Adjust when warnings are issued, and honor
19538         _GL_NO_LARGE_FILES as a way to silence the warning.
19539         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19540         any warning about large file offsets.
19541         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19542         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19543         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19544         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19545         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19546         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19547         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19548         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19549
19550         warn-on-use: new module
19551         * modules/warn-on-use: New file.
19552         * build-aux/warn-on-use.h: Likewise.
19553         * m4/warn-on-use.m4: Likewise.
19554         * MODULES.html.sh (Support for building): Mention it.
19555
19556 2010-01-10  Bruno Haible  <bruno@clisp.org>
19557
19558         Tests for module 'unistr/u32-strdup'.
19559         * modules/unistr/u32-strdup-tests: New file.
19560         * tests/unistr/test-u32-strdup.c: New file.
19561
19562         Tests for module 'unistr/u16-strdup'.
19563         * modules/unistr/u16-strdup-tests: New file.
19564         * tests/unistr/test-u16-strdup.c: New file.
19565
19566         Tests for module 'unistr/u8-strdup'.
19567         * modules/unistr/u8-strdup-tests: New file.
19568         * tests/unistr/test-u8-strdup.c: New file.
19569         * tests/unistr/test-strdup.h: New file.
19570
19571         Tests for module 'unistr/u32-strncmp'.
19572         * modules/unistr/u32-strncmp-tests: New file.
19573         * tests/unistr/test-u32-strncmp.c: New file.
19574
19575         Tests for module 'unistr/u16-strncmp'.
19576         * modules/unistr/u16-strncmp-tests: New file.
19577         * tests/unistr/test-u16-strncmp.c: New file.
19578
19579         Tests for module 'unistr/u8-strncmp'.
19580         * modules/unistr/u8-strncmp-tests: New file.
19581         * tests/unistr/test-u8-strncmp.c: New file.
19582         * tests/unistr/test-strncmp.h: New file.
19583
19584         Tests for module 'unistr/u32-strcoll'.
19585         * modules/unistr/u32-strcoll-tests: New file.
19586         * tests/unistr/test-u32-strcoll.c: New file.
19587
19588         Tests for module 'unistr/u16-strcoll'.
19589         * modules/unistr/u16-strcoll-tests: New file.
19590         * tests/unistr/test-u16-strcoll.c: New file.
19591
19592         Tests for module 'unistr/u8-strcoll'.
19593         * modules/unistr/u8-strcoll-tests: New file.
19594         * tests/unistr/test-u8-strcoll.c: New file.
19595
19596         Tests for module 'unistr/u32-strcmp'.
19597         * modules/unistr/u32-strcmp-tests: New file.
19598         * tests/unistr/test-u32-strcmp.c: New file.
19599         * tests/unistr/test-u32-strcmp.h: New file.
19600
19601         Tests for module 'unistr/u16-strcmp'.
19602         * modules/unistr/u16-strcmp-tests: New file.
19603         * tests/unistr/test-u16-strcmp.c: New file.
19604         * tests/unistr/test-u16-strcmp.h: New file.
19605
19606         Tests for module 'unistr/u8-strcmp'.
19607         * modules/unistr/u8-strcmp-tests: New file.
19608         * tests/unistr/test-u8-strcmp.c: New file.
19609         * tests/unistr/test-u8-strcmp.h: New file.
19610         * tests/unistr/test-strcmp.h: New file.
19611
19612         Tests for module 'unistr/u32-strncat'.
19613         * modules/unistr/u32-strncat-tests: New file.
19614         * tests/unistr/test-u32-strncat.c: New file.
19615
19616         Tests for module 'unistr/u16-strncat'.
19617         * modules/unistr/u16-strncat-tests: New file.
19618         * tests/unistr/test-u16-strncat.c: New file.
19619
19620         Tests for module 'unistr/u8-strncat'.
19621         * modules/unistr/u8-strncat-tests: New file.
19622         * tests/unistr/test-u8-strncat.c: New file.
19623         * tests/unistr/test-strncat.h: New file.
19624
19625         Tests for module 'unistr/u32-strcat'.
19626         * modules/unistr/u32-strcat-tests: New file.
19627         * tests/unistr/test-u32-strcat.c: New file.
19628
19629         Tests for module 'unistr/u16-strcat'.
19630         * modules/unistr/u16-strcat-tests: New file.
19631         * tests/unistr/test-u16-strcat.c: New file.
19632
19633         Tests for module 'unistr/u8-strcat'.
19634         * modules/unistr/u8-strcat-tests: New file.
19635         * tests/unistr/test-u8-strcat.c: New file.
19636         * tests/unistr/test-strcat.h: New file.
19637
19638         Tests for module 'unistr/u32-stpncpy'.
19639         * modules/unistr/u32-stpncpy-tests: New file.
19640         * tests/unistr/test-u32-stpncpy.c: New file.
19641
19642         Tests for module 'unistr/u16-stpncpy'.
19643         * modules/unistr/u16-stpncpy-tests: New file.
19644         * tests/unistr/test-u16-stpncpy.c: New file.
19645
19646         Tests for module 'unistr/u8-stpncpy'.
19647         * modules/unistr/u8-stpncpy-tests: New file.
19648         * tests/unistr/test-u8-stpncpy.c: New file.
19649         * tests/unistr/test-stpncpy.h: New file.
19650
19651         Tests for module 'unistr/u32-strncpy'.
19652         * modules/unistr/u32-strncpy-tests: New file.
19653         * tests/unistr/test-u32-strncpy.c: New file.
19654
19655         Tests for module 'unistr/u16-strncpy'.
19656         * modules/unistr/u16-strncpy-tests: New file.
19657         * tests/unistr/test-u16-strncpy.c: New file.
19658
19659         Tests for module 'unistr/u8-strncpy'.
19660         * modules/unistr/u8-strncpy-tests: New file.
19661         * tests/unistr/test-u8-strncpy.c: New file.
19662         * tests/unistr/test-strncpy.h: New file.
19663
19664         Tests for module 'unistr/u32-stpcpy'.
19665         * modules/unistr/u32-stpcpy-tests: New file.
19666         * tests/unistr/test-u32-stpcpy.c: New file.
19667
19668         Tests for module 'unistr/u16-stpcpy'.
19669         * modules/unistr/u16-stpcpy-tests: New file.
19670         * tests/unistr/test-u16-stpcpy.c: New file.
19671
19672         Tests for module 'unistr/u8-stpcpy'.
19673         * modules/unistr/u8-stpcpy-tests: New file.
19674         * tests/unistr/test-u8-stpcpy.c: New file.
19675         * tests/unistr/test-stpcpy.h: New file.
19676
19677         Tests for module 'unistr/u32-strcpy'.
19678         * modules/unistr/u32-strcpy-tests: New file.
19679         * tests/unistr/test-u32-strcpy.c: New file.
19680
19681         Tests for module 'unistr/u16-strcpy'.
19682         * modules/unistr/u16-strcpy-tests: New file.
19683         * tests/unistr/test-u16-strcpy.c: New file.
19684
19685         Tests for module 'unistr/u8-strcpy'.
19686         * modules/unistr/u8-strcpy-tests: New file.
19687         * tests/unistr/test-u8-strcpy.c: New file.
19688         * tests/unistr/test-strcpy.h: New file.
19689
19690         Tests for module 'unistr/u32-strnlen'.
19691         * modules/unistr/u32-strnlen-tests: New file.
19692         * tests/unistr/test-u32-strnlen.c: New file.
19693
19694         Tests for module 'unistr/u16-strnlen'.
19695         * modules/unistr/u16-strnlen-tests: New file.
19696         * tests/unistr/test-u16-strnlen.c: New file.
19697
19698         Tests for module 'unistr/u8-strnlen'.
19699         * modules/unistr/u8-strnlen-tests: New file.
19700         * tests/unistr/test-u8-strnlen.c: New file.
19701         * tests/unistr/test-strnlen.h: New file.
19702
19703         Tests for module 'unistr/u32-strlen'.
19704         * modules/unistr/u32-strlen-tests: New file.
19705         * tests/unistr/test-u32-strlen.c: New file.
19706
19707         Tests for module 'unistr/u16-strlen'.
19708         * modules/unistr/u16-strlen-tests: New file.
19709         * tests/unistr/test-u16-strlen.c: New file.
19710
19711         Tests for module 'unistr/u8-strlen'.
19712         * modules/unistr/u8-strlen-tests: New file.
19713         * tests/unistr/test-u8-strlen.c: New file.
19714
19715         Tests for module 'unistr/u32-prev'.
19716         * modules/unistr/u32-prev-tests: New file.
19717         * tests/unistr/test-u32-prev.c: New file.
19718
19719         Tests for module 'unistr/u16-prev'.
19720         * modules/unistr/u16-prev-tests: New file.
19721         * tests/unistr/test-u16-prev.c: New file.
19722
19723         Tests for module 'unistr/u8-prev'.
19724         * modules/unistr/u8-prev-tests: New file.
19725         * tests/unistr/test-u8-prev.c: New file.
19726
19727         Tests for module 'unistr/u32-next'.
19728         * modules/unistr/u32-next-tests: New file.
19729         * tests/unistr/test-u32-next.c: New file.
19730
19731         Tests for module 'unistr/u16-next'.
19732         * modules/unistr/u16-next-tests: New file.
19733         * tests/unistr/test-u16-next.c: New file.
19734
19735         Tests for module 'unistr/u8-next'.
19736         * modules/unistr/u8-next-tests: New file.
19737         * tests/unistr/test-u8-next.c: New file.
19738
19739         Tests for module 'unistr/u32-strmbtouc'.
19740         * modules/unistr/u32-strmbtouc-tests: New file.
19741         * tests/unistr/test-u32-strmbtouc.c: New file.
19742
19743         Tests for module 'unistr/u16-strmbtouc'.
19744         * modules/unistr/u16-strmbtouc-tests: New file.
19745         * tests/unistr/test-u16-strmbtouc.c: New file.
19746
19747         Tests for module 'unistr/u8-strmbtouc'.
19748         * modules/unistr/u8-strmbtouc-tests: New file.
19749         * tests/unistr/test-u8-strmbtouc.c: New file.
19750
19751         Tests for module 'unistr/u32-strmblen'.
19752         * modules/unistr/u32-strmblen-tests: New file.
19753         * tests/unistr/test-u32-strmblen.c: New file.
19754
19755         Tests for module 'unistr/u16-strmblen'.
19756         * modules/unistr/u16-strmblen-tests: New file.
19757         * tests/unistr/test-u16-strmblen.c: New file.
19758
19759         Tests for module 'unistr/u8-strmblen'.
19760         * modules/unistr/u8-strmblen-tests: New file.
19761         * tests/unistr/test-u8-strmblen.c: New file.
19762
19763         Tests for module 'unistr/u32-cpy-alloc'.
19764         * modules/unistr/u32-cpy-alloc-tests: New file.
19765         * tests/unistr/test-u32-cpy-alloc.c: New file.
19766
19767         Tests for module 'unistr/u16-cpy-alloc'.
19768         * modules/unistr/u16-cpy-alloc-tests: New file.
19769         * tests/unistr/test-u16-cpy-alloc.c: New file.
19770
19771         Tests for module 'unistr/u8-cpy-alloc'.
19772         * modules/unistr/u8-cpy-alloc-tests: New file.
19773         * tests/unistr/test-u8-cpy-alloc.c: New file.
19774         * tests/unistr/test-cpy-alloc.h: New file.
19775
19776         Tests for module 'unistr/u32-mbsnlen'.
19777         * modules/unistr/u32-mbsnlen-tests: New file.
19778         * tests/unistr/test-u32-mbsnlen.c: New file.
19779
19780         Tests for module 'unistr/u16-mbsnlen'.
19781         * modules/unistr/u16-mbsnlen-tests: New file.
19782         * tests/unistr/test-u16-mbsnlen.c: New file.
19783
19784         Tests for module 'unistr/u8-mbsnlen'.
19785         * modules/unistr/u8-mbsnlen-tests: New file.
19786         * tests/unistr/test-u8-mbsnlen.c: New file.
19787
19788         Tests for module 'unistr/u32-chr'.
19789         * modules/unistr/u32-chr-tests: New file.
19790         * tests/unistr/test-u32-chr.c: New file.
19791
19792         Tests for module 'unistr/u16-chr'.
19793         * modules/unistr/u16-chr-tests: New file.
19794         * tests/unistr/test-u16-chr.c: New file.
19795
19796         Tests for module 'unistr/u8-chr'.
19797         * modules/unistr/u8-chr-tests: New file.
19798         * tests/unistr/test-u8-chr.c: New file.
19799         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19800
19801         Tests for module 'unistr/u32-cmp2'.
19802         * modules/unistr/u32-cmp2-tests: New file.
19803         * tests/unistr/test-u32-cmp2.c: New file.
19804
19805         Tests for module 'unistr/u16-cmp2'.
19806         * modules/unistr/u16-cmp2-tests: New file.
19807         * tests/unistr/test-u16-cmp2.c: New file.
19808
19809         Tests for module 'unistr/u8-cmp2'.
19810         * modules/unistr/u8-cmp2-tests: New file.
19811         * tests/unistr/test-u8-cmp2.c: New file.
19812         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19813
19814         Tests for module 'unistr/u32-cmp'.
19815         * modules/unistr/u32-cmp-tests: New file.
19816         * tests/unistr/test-u32-cmp.c: New file.
19817
19818         Tests for module 'unistr/u16-cmp'.
19819         * modules/unistr/u16-cmp-tests: New file.
19820         * tests/unistr/test-u16-cmp.c: New file.
19821
19822         Tests for module 'unistr/u8-cmp'.
19823         * modules/unistr/u8-cmp-tests: New file.
19824         * tests/unistr/test-u8-cmp.c: New file.
19825         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19826
19827         Tests for module 'unistr/u32-set'.
19828         * modules/unistr/u32-set-tests: New file.
19829         * tests/unistr/test-u32-set.c: New file.
19830
19831         Tests for module 'unistr/u16-set'.
19832         * modules/unistr/u16-set-tests: New file.
19833         * tests/unistr/test-u16-set.c: New file.
19834
19835         Tests for module 'unistr/u8-set'.
19836         * modules/unistr/u8-set-tests: New file.
19837         * tests/unistr/test-u8-set.c: New file.
19838         * tests/unistr/test-set.h: New file.
19839
19840         Tests for module 'unistr/u32-move'.
19841         * modules/unistr/u32-move-tests: New file.
19842         * tests/unistr/test-u32-move.c: New file.
19843
19844         Tests for module 'unistr/u16-move'.
19845         * modules/unistr/u16-move-tests: New file.
19846         * tests/unistr/test-u16-move.c: New file.
19847
19848         Tests for module 'unistr/u8-move'.
19849         * modules/unistr/u8-move-tests: New file.
19850         * tests/unistr/test-u8-move.c: New file.
19851         * tests/unistr/test-move.h: New file.
19852
19853         Tests for module 'unistr/u32-cpy'.
19854         * modules/unistr/u32-cpy-tests: New file.
19855         * tests/unistr/test-u32-cpy.c: New file.
19856
19857         Tests for module 'unistr/u16-cpy'.
19858         * modules/unistr/u16-cpy-tests: New file.
19859         * tests/unistr/test-u16-cpy.c: New file.
19860
19861         Tests for module 'unistr/u8-cpy'.
19862         * modules/unistr/u8-cpy-tests: New file.
19863         * tests/unistr/test-u8-cpy.c: New file.
19864         * tests/unistr/test-cpy.h: New file.
19865
19866 2010-01-09  Bruno Haible  <bruno@clisp.org>
19867
19868         Tests for module 'unistr/u32-uctomb'.
19869         * modules/unistr/u32-uctomb-tests: New file.
19870         * tests/unistr/test-u32-uctomb.c: New file.
19871
19872         Tests for module 'unistr/u16-uctomb'.
19873         * modules/unistr/u16-uctomb-tests: New file.
19874         * tests/unistr/test-u16-uctomb.c: New file.
19875
19876         Tests for module 'unistr/u8-uctomb'.
19877         * modules/unistr/u8-uctomb-tests: New file.
19878         * tests/unistr/test-u8-uctomb.c: New file.
19879
19880         Tests for module 'unistr/u32-mbtoucr'.
19881         * modules/unistr/u32-mbtoucr-tests: New file.
19882         * tests/unistr/test-u32-mbtoucr.c: New file.
19883
19884         Tests for module 'unistr/u16-mbtoucr'.
19885         * modules/unistr/u16-mbtoucr-tests: New file.
19886         * tests/unistr/test-u16-mbtoucr.c: New file.
19887
19888         Tests for module 'unistr/u8-mbtoucr'.
19889         * modules/unistr/u8-mbtoucr-tests: New file.
19890         * tests/unistr/test-u8-mbtoucr.c: New file.
19891
19892         Tests for module 'unistr/u32-mbtouc'.
19893         * modules/unistr/u32-mbtouc-tests: New file.
19894         * tests/unistr/test-u32-mbtouc.c: New file.
19895
19896         Tests for module 'unistr/u16-mbtouc'.
19897         * modules/unistr/u16-mbtouc-tests: New file.
19898         * tests/unistr/test-u16-mbtouc.c: New file.
19899
19900         Tests for module 'unistr/u8-mbtouc'.
19901         * modules/unistr/u8-mbtouc-tests: New file.
19902         * tests/unistr/test-u8-mbtouc.c: New file.
19903
19904         Tests for module 'unistr/u32-mbtouc-unsafe'.
19905         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19906         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19907         * tests/unistr/test-u32-mbtouc.h: New file.
19908
19909         Tests for module 'unistr/u16-mbtouc-unsafe'.
19910         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19911         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19912         * tests/unistr/test-u16-mbtouc.h: New file.
19913
19914         Tests for module 'unistr/u8-mbtouc-unsafe'.
19915         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19916         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19917         * tests/unistr/test-u8-mbtouc.h: New file.
19918
19919         Tests for module 'unistr/u32-mblen'.
19920         * modules/unistr/u32-mblen-tests: New file.
19921         * tests/unistr/test-u32-mblen.c: New file.
19922
19923         Tests for module 'unistr/u16-mblen'.
19924         * modules/unistr/u16-mblen-tests: New file.
19925         * tests/unistr/test-u16-mblen.c: New file.
19926
19927         Tests for module 'unistr/u8-mblen'.
19928         * modules/unistr/u8-mblen-tests: New file.
19929         * tests/unistr/test-u8-mblen.c: New file.
19930
19931         Tests for module 'unistr/u32-to-u16'.
19932         * modules/unistr/u32-to-u16-tests: New file.
19933         * tests/unistr/test-u32-to-u16.c: New file.
19934
19935         Tests for module 'unistr/u32-to-u8'.
19936         * modules/unistr/u32-to-u8-tests: New file.
19937         * tests/unistr/test-u32-to-u8.c: New file.
19938
19939         Tests for module 'unistr/u16-to-u32'.
19940         * modules/unistr/u16-to-u32-tests: New file.
19941         * tests/unistr/test-u16-to-u32.c: New file.
19942
19943         Tests for module 'unistr/u16-to-u8'.
19944         * modules/unistr/u16-to-u8-tests: New file.
19945         * tests/unistr/test-u16-to-u8.c: New file.
19946
19947         Tests for module 'unistr/u8-to-u32'.
19948         * modules/unistr/u8-to-u32-tests: New file.
19949         * tests/unistr/test-u8-to-u32.c: New file.
19950
19951         Tests for module 'unistr/u8-to-u16'.
19952         * modules/unistr/u8-to-u16-tests: New file.
19953         * tests/unistr/test-u8-to-u16.c: New file.
19954
19955         Tests for module 'unistr/u32-check'.
19956         * modules/unistr/u32-check-tests: New file.
19957         * tests/unistr/test-u32-check.c: New file.
19958
19959         Tests for module 'unistr/u16-check'.
19960         * modules/unistr/u16-check-tests: New file.
19961         * tests/unistr/test-u16-check.c: New file.
19962
19963         Tests for module 'unistr/u8-check'.
19964         * modules/unistr/u8-check-tests: New file.
19965         * tests/unistr/test-u8-check.c: New file.
19966
19967         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19968         (category_equals): New function.
19969         (main): Add more tests.
19970         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19971
19972         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19973
19974 2010-01-10  Bruno Haible  <bruno@clisp.org>
19975
19976         unistr/u*-strcoll: Try harder to distinguish different strings.
19977         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19978         compare s1 and s2 to see if they are different.
19979
19980 2010-01-10  Bruno Haible  <bruno@clisp.org>
19981
19982         unistr/u*-stpncpy: Fix the return value.
19983         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19984         description of the return value consistent with stpncpy in glibc.
19985         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19986         written non-NUL unit.
19987
19988 2010-01-10  Bruno Haible  <bruno@clisp.org>
19989
19990         unistr/u*-next: Add missing dependencies.
19991         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19992         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19993         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19994
19995 2010-01-10  Bruno Haible  <bruno@clisp.org>
19996
19997         unistr/u8-mbsnlen: Fix return value for incomplete character.
19998         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19999         u8_mblen.
20000         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
20001         Remove unistr/u8-mblen.
20002         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
20003         u16_mblen.
20004         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
20005         Remove unistr/u16-mblen.
20006
20007 2010-01-10  Bruno Haible  <bruno@clisp.org>
20008
20009         wchar: Fix compilation error when <wchar.h> is used from coreutils.
20010         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
20011         Reported by Brian Gough <bjg@gnu.org> and
20012         Chris Clayton <chris2553@googlemail.com> via
20013         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
20014
20015 2010-01-09  Bruno Haible  <bruno@clisp.org>
20016
20017         unistr/u16-to-u32: Reject invalid input.
20018         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
20019         u16_mbtouc.
20020         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
20021         Remove unistr/u16-mbtouc.
20022
20023         unistr/u16-to-u8: Reject invalid input.
20024         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
20025         u16_mbtouc.
20026         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
20027         Remove unistr/u16-mbtouc.
20028
20029         unistr/u8-to-u32: Reject invalid input.
20030         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
20031         u8_mbtouc.
20032         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
20033         Remove unistr/u8-mbtouc.
20034
20035         unistr/u8-to-u16: Reject invalid input.
20036         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
20037         u8_mbtouc.
20038         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
20039         Remove unistr/u8-mbtouc.
20040
20041 2010-01-09  Bruno Haible  <bruno@clisp.org>
20042
20043         Tests for module 'getlogin'.
20044         * modules/getlogin-tests: New file.
20045         * tests/test-getlogin.c: New file.
20046
20047         New module 'getlogin'.
20048         * lib/unistd.in.h (getlogin): New declaration.
20049         * lib/getlogin.c: New file.
20050         * m4/getlogin.m4: New file.
20051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
20052         HAVE_GETLOGIN.
20053         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
20054         HAVE_GETLOGIN.
20055         * modules/getlogin: New file.
20056         * doc/posix-functions/getlogin.texi: Mention the new module.
20057         Reported by John W. Eaton <jwe@gnu.org>.
20058
20059 2010-01-09  Bruno Haible  <bruno@clisp.org>
20060
20061         getlogin_r: Support for native Windows.
20062         * lib/getlogin_r.c: Include <windows.h>
20063         (getlogin_r): Implement for native Windows.
20064         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
20065         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
20066         via John W. Eaton <jwe@gnu.org>.
20067
20068 2010-01-09  Bruno Haible  <bruno@clisp.org>
20069
20070         getlogin_r: Small fixes.
20071         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
20072         succeeds.
20073         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
20074         before testing whether getlogin_r is declared. No need to set
20075         HAVE_DECL_GETLOGIN_R to 1.
20076         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
20077
20078 2010-01-09  Bruno Haible  <bruno@clisp.org>
20079
20080         * lib/unistd.in.h (getlogin_r): Add comment.
20081
20082 2010-01-09  Bruno Haible  <bruno@clisp.org>
20083
20084         Tests for module 'getlogin_r'.
20085         * modules/getlogin_r-tests: New file.
20086         * tests/test-getlogin_r.c: New file.
20087
20088 2010-01-09  Jim Meyering  <meyering@redhat.com>
20089
20090         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
20091         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
20092         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
20093
20094 2010-01-08  Simon Josefsson  <simon@josefsson.org>
20095
20096         * lib/dup2.c (rpl_dup2): Improve comment.
20097
20098 2010-01-08  Eric Blake  <ebb9@byu.net>
20099
20100         maint.mk: allow packages to add makefile @@ exceptions
20101         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
20102         (sc_makefile_check): Rename...
20103         (sc_makefile_at_at_check): ...to this, and use hook.
20104
20105         dup2: work around mingw bug
20106         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
20107         Reported by Simon Josefsson.
20108
20109 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
20110
20111         glob: Fix C++ compilation.
20112         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
20113         C++.
20114
20115 2010-01-07  Bruno Haible  <bruno@clisp.org>
20116
20117         Fix indentation of wctype.in.h, broken since 2007-01-06.
20118         * lib/wctype.in.h: Fix indentation of preprocessor directives.
20119
20120 2010-01-07  Bruno Haible  <bruno@clisp.org>
20121
20122         mbslen: Avoid collision with system function.
20123         * lib/string.in.h [MirBSD]: Include <wchar.h>.
20124         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
20125         * m4/mbslen.m4: New file.
20126         * modules/mbslen (Files): Add it.
20127         (configure.ac): Invoke gl_MBSLEN.
20128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
20129         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
20130         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
20131         via Ian Beckwith <ianb@erislabs.net>.
20132
20133 2010-01-07  Bruno Haible  <bruno@clisp.org>
20134
20135         dirent: Document the last fix.
20136         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
20137
20138 2010-01-07  Bruno Haible  <bruno@clisp.org>
20139
20140         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
20141         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
20142         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
20143         va_list are defined.
20144         * doc/posix-headers/stdio.texi: Document the bug of missing types.
20145         Reported by Eric Blake.
20146
20147 2010-01-07  Bruno Haible  <bruno@clisp.org>
20148
20149         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
20150         * modules/xlist (Depends-on): Add 'list',
20151         * modules/xoset (Depends-on): Add 'oset'.
20152         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20153
20154 2010-01-07  Bruno Haible  <bruno@clisp.org>
20155
20156         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
20157         * doc/posix-functions/strncasecmp.texi: Likewise.
20158
20159 2010-01-07  Bruno Haible  <bruno@clisp.org>
20160
20161         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
20162
20163 2010-01-07  John W. Eaton  <jwe@octave.org>
20164
20165         wctype: allow C++ use
20166         * lib/wctype.in.h: Add extern "C" block for C++.
20167
20168 2010-01-06  Eric Blake  <ebb9@byu.net>
20169
20170         maint.mk: detect incorrect GFDL usage
20171         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
20172
20173 2010-01-06  Jim Meyering  <meyering@redhat.com>
20174         and Eric Blake  <ebb9@byu.net>
20175
20176         maint.mk: ignore multi-line copyright in NEWS
20177         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
20178
20179 2010-01-06  Eric Blake  <ebb9@byu.net>
20180
20181         select: add missing dependency
20182         * modules/select-tests (Depends-on): Move sockets dependency...
20183         * modules/select (Depends-on): ...here.
20184         Reported by Ian Beckwith.
20185
20186         doc: regenerate INSTALL
20187         * doc/INSTALL: Reflect recent autoconf update.
20188         * doc/INSTALL.ISO: Likewise.
20189         * doc/INSTALL.UTF-8: Likewise.
20190
20191         pread: fix compilation on glibc
20192         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
20193         Reported by Ralf Wildenhues.
20194
20195         dirent: fix test failure
20196         * lib/dirent.in.h (includes): Guarantee ino_t.
20197         Reported by Ralf Wildenhues.
20198
20199 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
20200
20201         linkat, renameat: avoid bad free
20202         * lib/at-func2.c (at_func2): Fix typo.
20203         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
20204
20205 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20206
20207         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
20208         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
20209         to avoid failure of symlink test later.
20210
20211 2010-01-06  Eric Blake  <ebb9@byu.net>
20212
20213         stdio, unistd: guarantee ssize_t
20214         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20215         2008 are exposed when needed.
20216         * lib/stdio.in.h (includes): Likewise.
20217         Reported by Ralf Wildenhues.
20218
20219 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20220
20221         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20222         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20223         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20224
20225 2010-01-06  Jim Meyering  <meyering@redhat.com>
20226
20227         readtokens: this module *does* require xalloc.h
20228         It uses only functions that were omitted by the old syntax-check rule.
20229         * lib/readtokens.c: Include "xalloc.h" once again.
20230         * modules/readtokens (Depends-on): Add xalloc.
20231         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20232
20233 2010-01-05  Eric Blake  <ebb9@byu.net>
20234
20235         maint: support 'make announcement' from a VPATH build
20236         * top/maint.mk (announcement): Look for correct NEWS file.
20237
20238 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20239
20240         utimens (fdutimens): ignore a negative FD, per contract
20241         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20242         when we have a valid file descriptor.  Otherwise, using a brand
20243         new glibc (with just-patched futimens that now fails with EBADF)
20244         would cause this function to fail with ENOSYS.
20245         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20246         See also http://bugzilla.redhat.com/552320.
20247
20248 2010-01-05  Eric Blake  <ebb9@byu.net>
20249
20250         strcase: document what it provides
20251         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20252         gnulib module.
20253         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20254         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20255
20256 2010-01-05  Jim Meyering  <meyering@redhat.com>
20257
20258         maint: remove useless inclusions of "xalloc.h"
20259         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20260         * lib/readtokens.c: Likewise.
20261         * lib/same.c: Likewise.
20262         * modules/getloadavg (Depends-on): Remove xalloc.
20263         * modules/readtokens: Likewise.
20264         * modules/same: Likewise.
20265
20266         maint.mk: include 4 more function names in alloca.h-checking regexp
20267         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20268         regexp.  Before, we would give a false-positive (saying alloca.h
20269         is included unnecessarily) when the only uses involved omitted symbols.
20270
20271         xalloc.h: use consistent formatting
20272         * lib/xalloc.h: Move declarations to start in the first column.
20273
20274 2010-01-05  Eric Blake  <ebb9@byu.net>
20275
20276         mkdir: avoid xalloc
20277         * lib/mkdir.c (includes): Drop unused header.
20278         Reported by John W. Eaton.
20279
20280 2010-01-04  Jim Meyering  <meyering@redhat.com>
20281
20282         nl_langinfo: avoid configure-time syntax error
20283         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20284         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20285         the empty string.  Don't let that provoke a shell syntax error.
20286
20287         regcomp, regexec, fnmatch: avoid array bounds read error
20288         * lib/regcomp.c (build_equiv_class): From glibc:
20289         Use only the low 24 bits of a findidx return value as an index
20290         into the weights array.  Patch by Ulrich Drepper:
20291         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20292         * lib/regexec.c (check_node_accept_bytes): Likewise.
20293         * lib/fnmatch_loop.c (FCT): Likewise.
20294
20295         regcomp: skip collseq lookup when there are no rules
20296         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20297         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20298
20299         regcomp: recognize ill-formed { } expressions
20300         * lib/regcomp.c (parse_dup_op): From glibc:
20301         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20302
20303         regcomp: fix typo in comment
20304         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20305         s/satisfy/satisfies/.
20306
20307         regcomp: sync from glibc: remove dead store
20308         * lib/regcomp.c (duplicate_node_closure): Remove useless
20309         search_duplicated_node call and dead store.
20310
20311         regcomp: sync from glibc; always use nl_langinfo
20312         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20313         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20314         * modules/regex (Depends-on): Add nl_langinfo.
20315
20316 2010-01-04  Eric Blake  <ebb9@byu.net>
20317
20318         fdopendir: fix configure test
20319         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20320
20321 2010-01-01  Bruno Haible  <bruno@clisp.org>
20322
20323         wchar: Remove unused configure check.
20324         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20325
20326 2010-01-01  Eric Blake  <ebb9@byu.net>
20327
20328         headers: make check of system header explicit
20329         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20330         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20331         ourselves.
20332         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20334         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20335         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20336         internals.
20337         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20338         missing.
20339         Suggested by Bruno Haible.
20340
20341 2010-01-01  Jim Meyering  <meyering@redhat.com>
20342
20343         ChangeLog: tweak to eliminate unnecessary copyright line
20344         * ChangeLog: Remove a copyright line that was mistakenly updated
20345         by today's update-copyright run.  Reported by Eric Blake.
20346
20347         test-update-copyright: don't let envvar setting cause test failure
20348         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20349
20350 2010-01-01  Bruno Haible  <bruno@clisp.org>
20351
20352         localename: Avoid gcc warning.
20353         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20354         function if it is not used.
20355
20356 2010-01-01  Jim Meyering  <meyering@redhat.com>
20357
20358         update nearly all FSF copyright year lists to include 2010
20359         Use the same procedure as for 2009, outlined in
20360         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20361
20362         version-etc: set COPYRIGHT_YEAR to 2010
20363         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20364
20365 2009-12-31  Eric Blake  <ebb9@byu.net>
20366
20367         doc: correct availability of cygwin 1.5.x getopt
20368         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20369         variables.
20370         * doc/posix-functions/opterr.texi (opterr): Likewise.
20371         * doc/posix-functions/optind.texi (optind): Likewise.
20372         * doc/posix-functions/optopt.texi (optopt): Likewise.
20373         * doc/posix-functions/tzname.texi (tzname): Likewise.
20374
20375         openat: update maintainer
20376         * modules/openat (Maintainer): Add myself.
20377
20378         utimens: avoid shadowing warning
20379         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20380         buffers into one, to avoid shadowing, as well as avoiding a
20381         redundant stat.
20382         Reported by Jim Meyering.
20383
20384         test-dup2: avoid compiler warning
20385         * tests/test-dup2.c (is_inheritable): Only define if used.
20386
20387 2010-01-01  Bruno Haible  <bruno@clisp.org>
20388
20389         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20390         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20391         defined, use wctomb instead of wcrtomb.
20392
20393 2010-01-01  Bruno Haible  <bruno@clisp.org>
20394
20395         iconv: Reject native Solaris iconv.
20396         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20397         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20398
20399 2009-12-31  Bruno Haible  <bruno@clisp.org>
20400
20401         * tests/test-signal.c (main): Remove test of 'SIG'.
20402
20403 2009-12-31  Bruno Haible  <bruno@clisp.org>
20404
20405         spawn: Fix incomplete fix.
20406         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20407         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20408         warnings for GNULIB_POSIXCHECK again.
20409         Reported by Eric Blake.
20410
20411 2009-12-31  Bruno Haible  <bruno@clisp.org>
20412
20413         Avoid namespace pollution on glibc systems.
20414         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20415         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20416         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20417         glibc systems.
20418
20419 2009-12-31  Bruno Haible  <bruno@clisp.org>
20420
20421         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20422         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20423         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20424         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20425         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20426         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20427         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20428
20429 2009-12-31  Bruno Haible  <bruno@clisp.org>
20430
20431         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20432         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20433         afterwards.
20434
20435 2009-12-31  Bruno Haible  <bruno@clisp.org>
20436
20437         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20438         SYS_UTSNAME_H.
20439
20440 2009-12-31  Bruno Haible  <bruno@clisp.org>
20441
20442         spawn: Fix misapplied patch.
20443         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20444         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20445         warnings for GNULIB_POSIXCHECK.
20446
20447 2009-12-31  Bruno Haible  <bruno@clisp.org>
20448
20449         times: Update after sys_times changed.
20450         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20451         * modules/times (Files): Add it.
20452         (configure.ac): Invoke gl_FUNC_TIMES.
20453
20454 2009-12-31  Bruno Haible  <bruno@clisp.org>
20455
20456         Use AC_C_INLINE where necessary.
20457         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20458         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20460         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20461         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20462         * m4/mbiter.m4 (gl_MBITER): Likewise.
20463         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20464         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20465         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20466         * modules/u64 (configure.ac): Likewise.
20467
20468 2009-12-31  Bruno Haible  <bruno@clisp.org>
20469
20470         Use AC_C_INLINE instead of module 'inline' where possible.
20471         * modules/inline (Description): Clarify purpose.
20472         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20473         * modules/count-one-bits (Depends-on): Remove inline.
20474         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20475         * modules/openat (Depends-on): Remove inline.
20476         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20477         instead of depending on module 'inline'.
20478         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20479         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20480         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20481         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20482         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20483         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20484         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20485         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20486         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20487         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20488         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20489         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20490         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20491         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20492         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20493         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20494         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20495         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20496         Likewise.
20497         * modules/unictype/property-ascii-hex-digit (Depends-on,
20498         configure.ac): Likewise.
20499         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20500         configure.ac): Likewise.
20501         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20502         configure.ac): Likewise.
20503         * modules/unictype/property-bidi-block-separator (Depends-on,
20504         configure.ac): Likewise.
20505         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20506         configure.ac): Likewise.
20507         * modules/unictype/property-bidi-common-separator (Depends-on,
20508         configure.ac): Likewise.
20509         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20510         Likewise.
20511         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20512         configure.ac): Likewise.
20513         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20514         configure.ac): Likewise.
20515         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20516         configure.ac): Likewise.
20517         * modules/unictype/property-bidi-european-digit (Depends-on,
20518         configure.ac): Likewise.
20519         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20520         configure.ac): Likewise.
20521         * modules/unictype/property-bidi-left-to-right (Depends-on,
20522         configure.ac): Likewise.
20523         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20524         configure.ac): Likewise.
20525         * modules/unictype/property-bidi-other-neutral (Depends-on,
20526         configure.ac): Likewise.
20527         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20528         Likewise.
20529         * modules/unictype/property-bidi-segment-separator (Depends-on,
20530         configure.ac): Likewise.
20531         * modules/unictype/property-bidi-whitespace (Depends-on,
20532         configure.ac): Likewise.
20533         * modules/unictype/property-combining (Depends-on, configure.ac):
20534         Likewise.
20535         * modules/unictype/property-composite (Depends-on, configure.ac):
20536         Likewise.
20537         * modules/unictype/property-currency-symbol (Depends-on,
20538         configure.ac): Likewise.
20539         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20540         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20541         Likewise.
20542         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20543         configure.ac): Likewise.
20544         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20545         Likewise.
20546         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20547         Likewise.
20548         * modules/unictype/property-extender (Depends-on, configure.ac):
20549         Likewise.
20550         * modules/unictype/property-format-control (Depends-on, configure.ac):
20551         Likewise.
20552         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20553         Likewise.
20554         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20555         Likewise.
20556         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20557         Likewise.
20558         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20559         Likewise.
20560         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20561         Likewise.
20562         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20563         Likewise.
20564         * modules/unictype/property-id-start (Depends-on, configure.ac):
20565         Likewise.
20566         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20567         Likewise.
20568         * modules/unictype/property-ids-binary-operator (Depends-on,
20569         configure.ac): Likewise.
20570         * modules/unictype/property-ids-trinary-operator (Depends-on,
20571         configure.ac): Likewise.
20572         * modules/unictype/property-ignorable-control (Depends-on,
20573         configure.ac): Likewise.
20574         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20575         Likewise.
20576         * modules/unictype/property-join-control (Depends-on, configure.ac):
20577         Likewise.
20578         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20579         Likewise.
20580         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20581         Likewise.
20582         * modules/unictype/property-logical-order-exception (Depends-on,
20583         configure.ac): Likewise.
20584         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20585         Likewise.
20586         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20587         * modules/unictype/property-non-break (Depends-on, configure.ac):
20588         Likewise.
20589         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20590         Likewise.
20591         * modules/unictype/property-numeric (Depends-on, configure.ac):
20592         Likewise.
20593         * modules/unictype/property-other-alphabetic (Depends-on,
20594         configure.ac): Likewise.
20595         * modules/unictype/property-other-default-ignorable-code-point
20596         (Depends-on, configure.ac): Likewise.
20597         * modules/unictype/property-other-grapheme-extend (Depends-on,
20598         configure.ac): Likewise.
20599         * modules/unictype/property-other-id-continue (Depends-on,
20600         configure.ac): Likewise.
20601         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20602         Likewise.
20603         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20604         Likewise.
20605         * modules/unictype/property-other-math (Depends-on, configure.ac):
20606         Likewise.
20607         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20608         Likewise.
20609         * modules/unictype/property-paired-punctuation (Depends-on,
20610         configure.ac): Likewise.
20611         * modules/unictype/property-paragraph-separator (Depends-on,
20612         configure.ac): Likewise.
20613         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20614         Likewise.
20615         * modules/unictype/property-pattern-white-space (Depends-on,
20616         configure.ac): Likewise.
20617         * modules/unictype/property-private-use (Depends-on, configure.ac):
20618         Likewise.
20619         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20620         Likewise.
20621         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20622         Likewise.
20623         * modules/unictype/property-radical (Depends-on, configure.ac):
20624         Likewise.
20625         * modules/unictype/property-sentence-terminal (Depends-on,
20626         configure.ac): Likewise.
20627         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20628         Likewise.
20629         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20630         * modules/unictype/property-terminal-punctuation (Depends-on,
20631         configure.ac): Likewise.
20632         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20633         Likewise.
20634         * modules/unictype/property-unassigned-code-value (Depends-on,
20635         configure.ac): Likewise.
20636         * modules/unictype/property-unified-ideograph (Depends-on,
20637         configure.ac): Likewise.
20638         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20639         Likewise.
20640         * modules/unictype/property-variation-selector (Depends-on,
20641         configure.ac): Likewise.
20642         * modules/unictype/property-white-space (Depends-on, configure.ac):
20643         Likewise.
20644         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20645         Likewise.
20646         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20647         Likewise.
20648         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20649         Likewise.
20650         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20651         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20652         Likewise.
20653
20654 2009-12-31  Bruno Haible  <bruno@clisp.org>
20655
20656         Remove unnecessary AC_C_INLINE invocation.
20657         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20658         since 2009-08-21.
20659
20660 2009-12-31  Jim Meyering  <meyering@redhat.com>
20661
20662         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20663         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20664         With this change, we can all remove the gpg_key_ID = ... definition
20665         from our respective cfg.mk files.
20666
20667         maint.mk: create announcement template in ~/, not in /tmp
20668         * top/maint.mk (emit_upload_commands): Adjust.
20669         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20670         Remove temporary file, .ci-msg.
20671
20672 2009-12-31  Eric Blake  <ebb9@byu.net>
20673
20674         link-warning: always build headers with link warnings
20675         * modules/arpa_inet (Makefile.am): Always build replacement
20676         header.
20677         * modules/ctype (Makefile.am): Likewise.
20678         * modules/dirent (Makefile.am): Likewise.
20679         * modules/inttypes (Makefile.am): Likewise.
20680         * modules/langinfo (Makefile.am): Likewise.
20681         * modules/locale (Makefile.am): Likewise.
20682         * modules/spawn (Makefile.am): Likewise.
20683         * modules/sys_file (Makefile.am): Likewise.
20684         * modules/sys_ioctl (Makefile.am): Likewise.
20685         * modules/sys_select (Makefile.am): Likewise.
20686         * modules/sys_socket (Makefile.am): Likewise.
20687         * modules/sys_times (Makefile.am): Likewise.
20688         * modules/sys_utsname (Makefile.am): Likewise.
20689         * modules/sys_wait (Makefile.am): Likewise.
20690         * modules/wchar (Makefile.am): Likewise.
20691         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20692         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20693         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20694         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20695         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20696         Likewise.
20697         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20698         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20699         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20700         Likewise.
20701         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20702         Likewise.
20703         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20704         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20705         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20707         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20708         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20709         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20710         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20711         (gl_WCHAR_H_DEFAULTS): Likewise.
20712
20713 2009-12-31  Eric Blake  <ebb9@byu.net>
20714
20715         signal, spawn: use link warnings
20716         * lib/signal.in.h (sigset_t): Make unconditional.
20717         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20718         (sigpending, sigprocmask, sigaction): Add link warnings.
20719         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20720         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20721         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20722         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20723         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20724         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20725         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20726         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20727         (posix_spawn_file_actions_destroy)
20728         (posix_spawn_file_actions_addopen)
20729         (posix_spawn_file_actions_addclose)
20730         (posix_spawn_file_actions_adddup2): Likewise.
20731         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20732         * tests/test-signal.c (main): Enhance test.
20733
20734         spawn: improve wrapper support
20735         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20736         (gl_SPAWN_H_DEFAULTS): New defaults.
20737         * modules/spawn (Makefile.am): Substitute them.
20738         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20739         Only declare if missing or broken.
20740
20741         sys_times, sys_utsname: use include_next
20742         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20743         header.
20744         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20745         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20746         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20747         * modules/sys_times (Depends-on): Add include_next.
20748         (Makefile.am): Substitute additional values.
20749         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20750         * lib/sys_times.in.h (includes): Include native header, if
20751         available.
20752         * lib/sys_utsname.in.h (includes): Likewise.
20753         * tests/test-sys_times.c (main): Enhance test.
20754
20755         fdutimensat: revert prior patch
20756         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20757         utimens.h.
20758         Reported by Bruno Haible.
20759
20760 2009-12-30  Eric Blake  <ebb9@byu.net>
20761
20762         sys_wait: drop link-warning dependency
20763         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20764         link-warning efforts.
20765         * lib/sys_wait.in.h: Likewise.
20766
20767         fdutimensat: remove bogus dependency
20768         * modules/fdutimensat (Depends-on): Drop inline.
20769
20770         unistd: fix typo
20771         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20772
20773 2009-12-30  Bruno Haible  <bruno@clisp.org>
20774
20775         Fix compilation error with Solaris cc.
20776         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20777         * lib/unicase/u16-is-invariant.c: Likewise.
20778         * lib/unicase/u32-is-invariant.c: Likewise.
20779         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20780
20781 2009-12-30  Bruno Haible  <bruno@clisp.org>
20782
20783         Fix test crash.
20784         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20785         locales.
20786         Reported by Simon Josefsson <simon@josefsson.org>.
20787
20788 2009-12-30  Bruno Haible  <bruno@clisp.org>
20789
20790         Fix compilation error on most platforms.
20791         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20792         Reported by Simon Josefsson <simon@josefsson.org>
20793         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20794
20795 2009-12-30  Eric Blake  <ebb9@byu.net>
20796
20797         futimens, utimensat: work around ntfs-3g bug
20798         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20799         a ctime bug is present, and expand workaround to cover ntfs-3g.
20800         * lib/utimens.c (fdutimens, lutimens): Likewise.
20801         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20802         (validate_timespec): Adjust return value.
20803         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20804         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20805         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20806
20807 2009-12-29  Eric Blake  <ebb9@byu.net>
20808
20809         link-warning: make usage consistent
20810         * modules/ctype (Depends-on): Add link-warning.
20811         (Makefile.am): Update rules accordingly.
20812         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20813         * modules/locale (Depends-on, Makefile.am): Likewise.
20814         * modules/sys_file (Makefile.am): Likewise.
20815         * modules/getopt-posix (Makefile.am): Delete unused link warning
20816         efforts.
20817         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20818         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20819         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20820         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20821
20822         stdio: remove unused variables
20823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20824         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20825         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20826
20827         tests: test more substitute headers
20828         * modules/ctype-tests: New file.
20829         * modules/dirent-tests: Likewise.
20830         * modules/spawn-tests: Likewise.
20831         * modules/sys_file-tests: Likewise.
20832         * modules/sys_ioctl-tests: Likewise.
20833         * modules/sys_wait-tests: Likewise.
20834         * tests/test-ctype.c: Likewise.
20835         * tests/test-dirent.c: Likewise.
20836         * tests/test-spawn.c: Likewise.
20837         * tests/test-sys_file.c: Likewise.
20838         * tests/test-sys_ioctl.c: Likewise.
20839         * tests/test-sys_wait.c: Likewise.
20840         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20841         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20842         whether or not flock is in use.
20843
20844         tests: remove License section from module
20845         * modules/arpa_inet-tests: Remove unneeded section.
20846         * modules/byteswap-tests: Likewise.
20847         * modules/ceilf-tests: Likewise.
20848         * modules/ceill-tests: Likewise.
20849         * modules/crypto/des-tests: Likewise.
20850         * modules/crypto/gc-arcfour-tests: Likewise.
20851         * modules/crypto/gc-arctwo-tests: Likewise.
20852         * modules/crypto/gc-des-tests: Likewise.
20853         * modules/crypto/gc-hmac-md5-tests: Likewise.
20854         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20855         * modules/crypto/gc-md2-tests: Likewise.
20856         * modules/crypto/gc-md4-tests: Likewise.
20857         * modules/crypto/gc-md5-tests: Likewise.
20858         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20859         * modules/crypto/gc-rijndael-tests: Likewise.
20860         * modules/crypto/gc-sha1-tests: Likewise.
20861         * modules/crypto/gc-tests: Likewise.
20862         * modules/crypto/md2-tests: Likewise.
20863         * modules/crypto/md4-tests: Likewise.
20864         * modules/fcntl-h-tests: Likewise.
20865         * modules/floorf-tests: Likewise.
20866         * modules/floorl-tests: Likewise.
20867         * modules/frexp-nolibm-tests: Likewise.
20868         * modules/frexp-tests: Likewise.
20869         * modules/frexpl-nolibm-tests: Likewise.
20870         * modules/frexpl-tests: Likewise.
20871         * modules/getaddrinfo-tests: Likewise.
20872         * modules/inttypes-tests: Likewise.
20873         * modules/isfinite-tests: Likewise.
20874         * modules/isinf-tests: Likewise.
20875         * modules/ldexpl-tests: Likewise.
20876         * modules/locale-tests: Likewise.
20877         * modules/math-tests: Likewise.
20878         * modules/netdb-tests: Likewise.
20879         * modules/netinet_in-tests: Likewise.
20880         * modules/printf-frexp-tests: Likewise.
20881         * modules/printf-frexpl-tests: Likewise.
20882         * modules/priv-set-tests: Likewise.
20883         * modules/random_r-tests: Likewise.
20884         * modules/round-tests: Likewise.
20885         * modules/roundf-tests: Likewise.
20886         * modules/roundl-tests: Likewise.
20887         * modules/search-tests: Likewise.
20888         * modules/select-tests: Likewise.
20889         * modules/signal-tests: Likewise.
20890         * modules/stdbool-tests: Likewise.
20891         * modules/stddef-tests: Likewise.
20892         * modules/stdint-tests: Likewise.
20893         * modules/stdio-tests: Likewise.
20894         * modules/stdlib-tests: Likewise.
20895         * modules/string-tests: Likewise.
20896         * modules/strings-tests: Likewise.
20897         * modules/sys_select-tests: Likewise.
20898         * modules/sys_socket-tests: Likewise.
20899         * modules/sys_stat-tests: Likewise.
20900         * modules/sys_time-tests: Likewise.
20901         * modules/sys_utsname-tests: Likewise.
20902         * modules/sysexits-tests: Likewise.
20903         * modules/time-tests: Likewise.
20904         * modules/trunc-tests: Likewise.
20905         * modules/truncf-tests: Likewise.
20906         * modules/truncl-tests: Likewise.
20907         * modules/tsearch-tests: Likewise.
20908         * modules/unistd-tests: Likewise.
20909         * modules/wchar-tests: Likewise.
20910         * modules/wctype-tests: Likewise.
20911
20912         tests: fix license on several tests
20913         * tests/test-des.c: Update to GPLv3+.
20914         * tests/test-flock.c: Likewise.
20915         * tests/test-fsync.c: Likewise.
20916         * tests/test-futimens.h: Likewise.
20917         * tests/test-gc-arcfour.c: Likewise.
20918         * tests/test-gc-arctwo.c: Likewise.
20919         * tests/test-gc-des.c: Likewise.
20920         * tests/test-gc-hmac-md5.c: Likewise.
20921         * tests/test-gc-hmac-sha1.c: Likewise.
20922         * tests/test-gc-md2.c: Likewise.
20923         * tests/test-gc-md4.c: Likewise.
20924         * tests/test-gc-md5.c: Likewise.
20925         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20926         * tests/test-gc-rijndael.c: Likewise.
20927         * tests/test-gc-sha1.c: Likewise.
20928         * tests/test-gc.c: Likewise.
20929         * tests/test-getcwd.c: Likewise.
20930         * tests/test-link.c: Likewise.
20931         * tests/test-link.h: Likewise.
20932         * tests/test-lutimens.h: Likewise.
20933         * tests/test-md2.c: Likewise.
20934         * tests/test-md4.c: Likewise.
20935         * tests/test-mkdir.h: Likewise.
20936         * tests/test-rename.c: Likewise.
20937         * tests/test-rename.h: Likewise.
20938         * tests/test-safe-alloc.c: Likewise.
20939         * tests/test-utimens-common.h: Likewise.
20940         * tests/test-utimens.h: Likewise.
20941
20942         maint: sync license texts
20943         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20944         * doc/gpl-3.0.texi: Revert copyright year update.
20945         * doc/lgpl-3.0.texi: Likewise.
20946
20947 2009-12-29  Jim Meyering  <meyering@redhat.com>
20948
20949         update nearly all FSF copyright year lists to include 2009
20950         The files named by the following are exempted:
20951             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20952               test -f "$dst" && { echo "$dst"; continue; }
20953               test -d "$dst" || continue
20954               echo "$dst"/$(basename "$src")
20955             done > exempt
20956             git ls-files tests/unictype >> exempt
20957         In the remaining files, convert to all-interval notation if
20958         - there is already at least one year interval like 2000-2003
20959         - the file is maintained by me
20960         - the file is in lib/uni*/, where that style already prevails
20961         Otherwise, use update-copyright's default.
20962
20963 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20964         and Eric Blake  <ebb9@byu.net>
20965
20966         tests: don't require debug system() to pass
20967         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20968         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20969         * tests/test-unlink.h (test_unlink_func): Likewise.
20970         * tests/test-fstatat.c (main): ...into callers.
20971         * tests/test-lstat.c (main): Likewise.
20972         * tests/test-rmdir.c (main): Likewise.
20973         * tests/test-unlink.c (main): Likewise.
20974         * tests/test-unlinkat.c (main): Likewise.
20975         * tests/test-areadlink-with-size.c (main): Don't require a
20976         debug-only system call to pass, aiding cross-testing to mingw.
20977         * tests/test-areadlink.c (main): Likewise.
20978         * tests/test-areadlinkat-with-size.c (main): Likewise.
20979         * tests/test-areadlinkat.c (main): Likewise.
20980         * tests/test-canonicalize-lgpl.c (main): Likewise.
20981         * tests/test-canonicalize.c (main): Likewise.
20982         * tests/test-chown.c (main): Likewise.
20983         * tests/test-fchownat.c (main): Likewise.
20984         * tests/test-lchown.c (main): Likewise.
20985         * tests/test-fdutimensat.c (main): Likewise.
20986         * tests/test-futimens.c (main): Likewise.
20987         * tests/test-link.c (main): Likewise.
20988         * tests/test-linkat.c (main): Likewise.
20989         * tests/test-mkdir.c (main): Likewise.
20990         * tests/test-mkdirat.c (main): Likewise.
20991         * tests/test-mkfifo.c (main): Likewise.
20992         * tests/test-mkfifoat.c (main): Likewise.
20993         * tests/test-mknod.c (main): Likewise.
20994         * tests/test-readlink.c (main): Likewise.
20995         * tests/test-remove.c (main): Likewise.
20996         * tests/test-rename.c (main): Likewise.
20997         * tests/test-renameat.c (main): Likewise.
20998         * tests/test-symlink.c (main): Likewise.
20999         * tests/test-symlinkat.c (main): Likewise.
21000         * tests/test-utimens.c (main): Likewise.
21001         * tests/test-utimensat.c (main): Likewise.
21002
21003 2009-12-29  Simon Josefsson  <simon@josefsson.org>
21004
21005         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
21006         on $(UNUSED_PARAMETER_H) to avoid build failure.
21007
21008 2009-12-28  Jim Meyering  <meyering@redhat.com>
21009
21010         update-copyright: you may specify a max. line length other than 72
21011         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
21012
21013         maint: use consistent FSF copyright line syntax
21014         * lib/posixtm.c: Add missing comma in FSF copyright line.
21015         * lib/posixtm.h: Likewise.
21016         * lib/getugroups.c: Add missing ", Inc.".
21017
21018         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
21019         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
21020         FSF copyright line.  Remove trailing blanks.
21021
21022 2009-12-28  Eric Blake  <ebb9@byu.net>
21023
21024         test-dup2: reduce dependencies
21025         * modules/cloexec (Configure.ac): Set witness.
21026         * modules/dup2-tests (Depends-on): Drop cloexec.
21027         * tests/test-dup2.c (main): Skip portion of test if cloexec module
21028         not present.
21029         Suggested by Bruno Haible.
21030
21031 2009-12-26  Bruno Haible  <bruno@clisp.org>
21032
21033         Remove an unneeded dependency.
21034         * modules/fseterr (Depends-on): Remove dup2.
21035
21036 2009-12-26  Eric Blake  <ebb9@byu.net>
21037
21038         tests: use macros.h in more places
21039         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
21040         (ASSERT_STREAM): Provide default of stderr.
21041         * tests/test-dirent-safer.c: Include macros.h, using alternate
21042         stream for assertions.
21043         * tests/test-dup-safer.c: Likewise.
21044         * tests/test-freopen-safer.c: Likewise.
21045         * tests/test-getopt.c: Likewise.
21046         * tests/test-openat-safer.c: Likewise.
21047         * tests/test-pipe.c: Likewise.
21048         * tests/test-popen-safer.c: Likewise.
21049         * modules/dirent-safer-tests (Files): Include macros.h.
21050         * modules/unistd-safer-tests (Files): Likewise.
21051         * modules/freopen-safer-tests (Files): Likewise.
21052         * modules/getopt-posix-tests (Files): Likewise.
21053         * modules/openat-safer-tests (Files): Likewise.
21054         * modules/pipe-tests (Files): Likewise.
21055
21056 2009-12-26  Bruno Haible  <bruno@clisp.org>
21057
21058         javacomp: Portability fix.
21059         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
21060         that it also works on Solaris.
21061
21062 2009-12-26  Bruno Haible  <bruno@clisp.org>
21063
21064         localename: Fix storage allocation of gl_locale_name_thread's result.
21065         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
21066         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
21067         all platforms that have 'uselocale'.
21068         (gl_locale_name_thread_unsafe): New function, extracted from
21069         gl_locale_name_thread.
21070         (gl_locale_name_thread): Call struniq on all platforms that have
21071         'uselocale'.
21072         * tests/test-localename.c (test_locale_name_thread): Check that the
21073         resulting strings are permanently allocated.
21074         * modules/localename-tests (Depends-on): Add strdup.
21075
21076 2009-12-26  Bruno Haible  <bruno@clisp.org>
21077
21078         * tests/test-localename.c (categories): Fill in the strings.
21079
21080 2009-12-26  Jim Meyering  <meyering@redhat.com>
21081
21082         isdir: complete the removal of m4/isdir.m4
21083         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
21084
21085         isdir: clean up, since at least grep still uses it
21086         * lib/isdir.c: Include "isdir.h".
21087         (S_ISDIR): Remove now-unneeded definition.
21088         * modules/isdir (Files): Add lib/isdir.h.
21089         * lib/isdir.h: New file, with declaration.
21090         * m4/isdir.m4: Remove file -- unneeded.
21091
21092 2009-12-25  Bruno Haible  <bruno@clisp.org>
21093
21094         selinux-h: Make generated .h files standalone.
21095         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
21096         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
21097         * lib/se-selinux.in.h: Likewise.
21098         * modules/selinux-h (Depends-on): Add unused-parameter.
21099         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
21100         selinux/selinux.h and selinux/context.h.
21101         Suggested by Eric Blake.
21102
21103 2009-12-25  Bruno Haible  <bruno@clisp.org>
21104
21105         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
21106         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
21107         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
21108         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
21109         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
21110
21111 2009-12-24  Bruno Haible  <bruno@clisp.org>
21112
21113         openat: Fix warning.
21114         * lib/openat-proc.c: Include <unistd.h>.
21115
21116 2009-12-24  Bruno Haible  <bruno@clisp.org>
21117
21118         New module 'unused-parameter'.
21119         * build-aux/unused-parameter.h: New file, extracted from earlier
21120         gnulib-common.m4.
21121         * modules/unused-parameter: New file.
21122         * lib/unistr.h: Include unused-parameter.h.
21123         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
21124         _GL_UNUSED.
21125         * modules/unistr/base (Depends-on): Add unused-parameter.
21126
21127 2009-12-24  Bruno Haible  <bruno@clisp.org>
21128
21129         Add missing dependencies to 'extensions' module.
21130         * m4/extensions.m4: Add comment.
21131         * modules/accept4 (Depends-on): Add extensions.
21132         * modules/dup3 (Depends-on): Likewise.
21133         * modules/fcntl (Depends-on): Likewise.
21134         * modules/futimens (Depends-on): Likewise.
21135         * modules/mknod (Depends-on): Likewise.
21136         * modules/pipe2 (Depends-on): Likewise.
21137         * modules/stat-time (Depends-on): Likewise.
21138         * modules/strcasestr-simple (Depends-on): Likewise.
21139         * modules/strsignal (Depends-on): Likewise.
21140         * modules/utimensat (Depends-on): Likewise.
21141         * modules/localcharset (Depends-on): Likewise. Needed because of
21142         gl_FCNTL_O_FLAGS.
21143         * modules/wcrtomb (Depends-on): Likewise. Needed because of
21144         AC_TYPE_MBSTATE_T.
21145         * modules/wcsnrtombs (Depends-on): Likewise.
21146         * modules/wcsrtombs (Depends-on): Likewise.
21147
21148 2009-12-24  Bruno Haible  <bruno@clisp.org>
21149
21150         binary-io: Avoid gcc warning due to SET_BINARY.
21151         * lib/binary-io.h (SET_BINARY): Cast the result to void.
21152         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
21153
21154 2009-12-24  Bruno Haible  <bruno@clisp.org>
21155
21156         Avoid future namespace pollution on glibc systems.
21157         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
21158         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
21159         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
21160         glibc systems.
21161
21162 2009-12-24  Bruno Haible  <bruno@clisp.org>
21163
21164         Refactor common macros used in tests.
21165         * tests/macros.h: New file.
21166         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
21167         and/or <stdlib.h>, if appropriate.
21168         (ASSERT, SIZEOF): Remove macros.
21169         * tests/test-areadlink-with-size.c: Likewise.
21170         * tests/test-areadlinkat.c: Likewise.
21171         * tests/test-areadlinkat-with-size.c: Likewise.
21172         * tests/test-argmatch.c: Likewise.
21173         * tests/test-argv-iter.c: Likewise.
21174         * tests/test-array-mergesort.c: Likewise.
21175         * tests/test-array_list.c: Likewise.
21176         * tests/test-array_oset.c: Likewise.
21177         * tests/test-avltree_list.c: Likewise.
21178         * tests/test-avltree_oset.c: Likewise.
21179         * tests/test-avltreehash_list.c: Likewise.
21180         * tests/test-base64.c: Likewise.
21181         * tests/test-binary-io.c: Likewise.
21182         * tests/test-bitrotate.c: Likewise.
21183         * tests/test-btowc.c: Likewise.
21184         * tests/test-byteswap.c: Likewise.
21185         * tests/test-c-ctype.c: Likewise.
21186         * tests/test-c-stack.c: Likewise.
21187         * tests/test-c-strcasecmp.c: Likewise.
21188         * tests/test-c-strcasestr.c: Likewise.
21189         * tests/test-c-strncasecmp.c: Likewise.
21190         * tests/test-c-strstr.c: Likewise.
21191         * tests/test-canonicalize-lgpl.c: Likewise.
21192         * tests/test-canonicalize.c: Likewise.
21193         * tests/test-carray_list.c: Likewise.
21194         * tests/test-ceilf1.c: Likewise.
21195         * tests/test-ceilf2.c: Likewise.
21196         * tests/test-ceill.c: Likewise.
21197         * tests/test-chown.c: Likewise.
21198         * tests/test-cloexec.c: Likewise.
21199         * tests/test-copy-acl.c: Likewise.
21200         * tests/test-copy-file.c: Likewise.
21201         * tests/test-count-one-bits.c: Likewise.
21202         * tests/test-dprintf-posix.c: Likewise.
21203         * tests/test-dup2.c: Likewise.
21204         * tests/test-dup3.c: Likewise.
21205         * tests/test-duplocale.c: Likewise.
21206         * tests/test-fbufmode.c: Likewise.
21207         * tests/test-fchdir.c: Likewise.
21208         * tests/test-fchownat.c: Likewise.
21209         * tests/test-fcntl-safer.c: Likewise.
21210         * tests/test-fcntl.c: Likewise.
21211         * tests/test-fdopendir.c: Likewise.
21212         * tests/test-fdutimensat.c: Likewise.
21213         * tests/test-fflush2.c: Likewise.
21214         * tests/test-file-has-acl.c: Likewise.
21215         * tests/test-filevercmp.c: Likewise.
21216         * tests/test-flock.c: Likewise.
21217         * tests/test-floorf1.c: Likewise.
21218         * tests/test-floorf2.c: Likewise.
21219         * tests/test-floorl.c: Likewise.
21220         * tests/test-fnmatch.c: Likewise.
21221         * tests/test-fopen.h: Likewise.
21222         * tests/test-fpending.c: Likewise.
21223         * tests/test-fprintf-posix.c: Likewise.
21224         * tests/test-fpurge.c: Likewise.
21225         * tests/test-freadable.c: Likewise.
21226         * tests/test-freadahead.c: Likewise.
21227         * tests/test-freading.c: Likewise.
21228         * tests/test-freadptr.c: Likewise.
21229         * tests/test-freadptr2.c: Likewise.
21230         * tests/test-freadseek.c: Likewise.
21231         * tests/test-freopen.c: Likewise.
21232         * tests/test-frexp.c: Likewise.
21233         * tests/test-frexpl.c: Likewise.
21234         * tests/test-fseek.c: Likewise.
21235         * tests/test-fseeko.c: Likewise.
21236         * tests/test-fstatat.c: Likewise.
21237         * tests/test-fstrcmp.c: Likewise.
21238         * tests/test-fsync.c: Likewise.
21239         * tests/test-ftell.c: Likewise.
21240         * tests/test-ftello.c: Likewise.
21241         * tests/test-func.c: Likewise.
21242         * tests/test-futimens.c: Likewise.
21243         * tests/test-fwritable.c: Likewise.
21244         * tests/test-fwriting.c: Likewise.
21245         * tests/test-getcwd.c: Likewise.
21246         * tests/test-getdate.c: Likewise.
21247         * tests/test-getdelim.c: Likewise.
21248         * tests/test-getdtablesize.c: Likewise.
21249         * tests/test-getgroups.c: Likewise.
21250         * tests/test-getline.c: Likewise.
21251         * tests/test-getndelim2.c: Likewise.
21252         * tests/test-glob.c: Likewise.
21253         * tests/test-hash.c: Likewise.
21254         * tests/test-i-ring.c: Likewise.
21255         * tests/test-iconv-utf.c: Likewise.
21256         * tests/test-iconv.c: Likewise.
21257         * tests/test-idpriv-drop.c: Likewise.
21258         * tests/test-idpriv-droptemp.c: Likewise.
21259         * tests/test-inet_ntop.c: Likewise.
21260         * tests/test-inet_pton.c: Likewise.
21261         * tests/test-isblank.c: Likewise.
21262         * tests/test-isfinite.c: Likewise.
21263         * tests/test-isinf.c: Likewise.
21264         * tests/test-isnan.c: Likewise.
21265         * tests/test-isnand.h: Likewise.
21266         * tests/test-isnanf.h: Likewise.
21267         * tests/test-isnanl.h: Likewise.
21268         * tests/test-lchown.c: Likewise.
21269         * tests/test-ldexpl.c: Likewise.
21270         * tests/test-link.c: Likewise.
21271         * tests/test-linkat.c: Likewise.
21272         * tests/test-linked_list.c: Likewise.
21273         * tests/test-linkedhash_list.c: Likewise.
21274         * tests/test-localename.c: Likewise.
21275         * tests/test-lseek.c: Likewise.
21276         * tests/test-lstat.c: Likewise.
21277         * tests/test-mbmemcasecmp.c: Likewise.
21278         * tests/test-mbmemcasecoll.c: Likewise.
21279         * tests/test-mbrtowc.c: Likewise.
21280         * tests/test-mbscasecmp.c: Likewise.
21281         * tests/test-mbscasestr1.c: Likewise.
21282         * tests/test-mbscasestr2.c: Likewise.
21283         * tests/test-mbscasestr3.c: Likewise.
21284         * tests/test-mbscasestr4.c: Likewise.
21285         * tests/test-mbschr.c: Likewise.
21286         * tests/test-mbscspn.c: Likewise.
21287         * tests/test-mbsinit.c: Likewise.
21288         * tests/test-mbsncasecmp.c: Likewise.
21289         * tests/test-mbsnrtowcs.c: Likewise.
21290         * tests/test-mbspbrk.c: Likewise.
21291         * tests/test-mbspcasecmp.c: Likewise.
21292         * tests/test-mbsrchr.c: Likewise.
21293         * tests/test-mbsrtowcs.c: Likewise.
21294         * tests/test-mbsspn.c: Likewise.
21295         * tests/test-mbsstr1.c: Likewise.
21296         * tests/test-mbsstr2.c: Likewise.
21297         * tests/test-mbsstr3.c: Likewise.
21298         * tests/test-memchr.c: Likewise.
21299         * tests/test-memchr2.c: Likewise.
21300         * tests/test-memcmp.c: Likewise.
21301         * tests/test-memmem.c: Likewise.
21302         * tests/test-memrchr.c: Likewise.
21303         * tests/test-mkdir.c: Likewise.
21304         * tests/test-mkdirat.c: Likewise.
21305         * tests/test-mkfifo.c: Likewise.
21306         * tests/test-mkfifoat.c: Likewise.
21307         * tests/test-mknod.c: Likewise.
21308         * tests/test-nanosleep.c: Likewise.
21309         * tests/test-nl_langinfo.c: Likewise.
21310         * tests/test-obstack-printf.c: Likewise.
21311         * tests/test-open.c: Likewise.
21312         * tests/test-openat.c: Likewise.
21313         * tests/test-pipe-filter-gi1.c: Likewise.
21314         * tests/test-pipe-filter-gi2-main.c: Likewise.
21315         * tests/test-pipe-filter-ii1.c: Likewise.
21316         * tests/test-pipe-filter-ii2-main.c: Likewise.
21317         * tests/test-pipe2.c: Likewise.
21318         * tests/test-popen.h: Likewise.
21319         * tests/test-posixtm.c: Likewise.
21320         * tests/test-pread.c: Likewise.
21321         * tests/test-printf-frexp.c: Likewise.
21322         * tests/test-printf-frexpl.c: Likewise.
21323         * tests/test-printf-posix.c: Likewise.
21324         * tests/test-priv-set.c: Likewise.
21325         * tests/test-quotearg.c: Likewise.
21326         * tests/test-random_r.c: Likewise.
21327         * tests/test-rawmemchr.c: Likewise.
21328         * tests/test-rbtree_list.c: Likewise.
21329         * tests/test-rbtree_oset.c: Likewise.
21330         * tests/test-rbtreehash_list.c: Likewise.
21331         * tests/test-readlink.c: Likewise.
21332         * tests/test-remove.c: Likewise.
21333         * tests/test-rename.c: Likewise.
21334         * tests/test-renameat.c: Likewise.
21335         * tests/test-rmdir.c: Likewise.
21336         * tests/test-round1.c: Likewise.
21337         * tests/test-roundf1.c: Likewise.
21338         * tests/test-roundl.c: Likewise.
21339         * tests/test-safe-alloc.c: Likewise.
21340         * tests/test-sameacls.c: Likewise.
21341         * tests/test-set-mode-acl.c: Likewise.
21342         * tests/test-setenv.c: Likewise.
21343         * tests/test-sigaction.c: Likewise.
21344         * tests/test-signbit.c: Likewise.
21345         * tests/test-sleep.c: Likewise.
21346         * tests/test-snprintf-posix.c: Likewise.
21347         * tests/test-snprintf.c: Likewise.
21348         * tests/test-sprintf-posix.c: Likewise.
21349         * tests/test-stat-time.c: Likewise.
21350         * tests/test-stat.c: Likewise.
21351         * tests/test-strcasestr.c: Likewise.
21352         * tests/test-strchrnul.c: Likewise.
21353         * tests/test-strerror.c: Likewise.
21354         * tests/test-striconv.c: Likewise.
21355         * tests/test-striconveh.c: Likewise.
21356         * tests/test-striconveha.c: Likewise.
21357         * tests/test-strsignal.c: Likewise.
21358         * tests/test-strstr.c: Likewise.
21359         * tests/test-strtod.c: Likewise.
21360         * tests/test-strverscmp.c: Likewise.
21361         * tests/test-symlink.c: Likewise.
21362         * tests/test-symlinkat.c: Likewise.
21363         * tests/test-trunc1.c: Likewise.
21364         * tests/test-trunc2.c: Likewise.
21365         * tests/test-truncf1.c: Likewise.
21366         * tests/test-truncf2.c: Likewise.
21367         * tests/test-truncl.c: Likewise.
21368         * tests/test-uname.c: Likewise.
21369         * tests/test-unlink.c: Likewise.
21370         * tests/test-unlinkat.c: Likewise.
21371         * tests/test-unsetenv.c: Likewise.
21372         * tests/test-usleep.c: Likewise.
21373         * tests/test-utimens.c: Likewise.
21374         * tests/test-utimensat.c: Likewise.
21375         * tests/test-vasnprintf-posix.c: Likewise.
21376         * tests/test-vasnprintf-posix2.c: Likewise.
21377         * tests/test-vasnprintf.c: Likewise.
21378         * tests/test-vasprintf-posix.c: Likewise.
21379         * tests/test-vasprintf.c: Likewise.
21380         * tests/test-vdprintf-posix.c: Likewise.
21381         * tests/test-vfprintf-posix.c: Likewise.
21382         * tests/test-vprintf-posix.c: Likewise.
21383         * tests/test-vsnprintf-posix.c: Likewise.
21384         * tests/test-vsnprintf.c: Likewise.
21385         * tests/test-vsprintf-posix.c: Likewise.
21386         * tests/test-wcrtomb.c: Likewise.
21387         * tests/test-wcsnrtombs.c: Likewise.
21388         * tests/test-wcsrtombs.c: Likewise.
21389         * tests/test-wctype.c: Likewise.
21390         * tests/test-wcwidth.c: Likewise.
21391         * tests/test-xfprintf-posix.c: Likewise.
21392         * tests/test-xmemdup0.c: Likewise.
21393         * tests/test-xprintf-posix.c: Likewise.
21394         * tests/test-xvasprintf.c: Likewise.
21395         * tests/unicase/test-locale-language.c: Likewise.
21396         * tests/unicase/test-mapping-part1.h: Likewise.
21397         * tests/unicase/test-predicate-part1.h: Likewise.
21398         * tests/unicase/test-u8-casecmp.c: Likewise.
21399         * tests/unicase/test-u8-casecoll.c: Likewise.
21400         * tests/unicase/test-u8-casefold.c: Likewise.
21401         * tests/unicase/test-u8-is-cased.c: Likewise.
21402         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21403         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21404         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21405         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21406         * tests/unicase/test-u8-tolower.c: Likewise.
21407         * tests/unicase/test-u8-totitle.c: Likewise.
21408         * tests/unicase/test-u8-toupper.c: Likewise.
21409         * tests/unicase/test-u16-casecmp.c: Likewise.
21410         * tests/unicase/test-u16-casecoll.c: Likewise.
21411         * tests/unicase/test-u16-casefold.c: Likewise.
21412         * tests/unicase/test-u16-is-cased.c: Likewise.
21413         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21414         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21415         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21416         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21417         * tests/unicase/test-u16-tolower.c: Likewise.
21418         * tests/unicase/test-u16-totitle.c: Likewise.
21419         * tests/unicase/test-u16-toupper.c: Likewise.
21420         * tests/unicase/test-u32-casecmp.c: Likewise.
21421         * tests/unicase/test-u32-casecoll.c: Likewise.
21422         * tests/unicase/test-u32-casefold.c: Likewise.
21423         * tests/unicase/test-u32-is-cased.c: Likewise.
21424         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21425         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21426         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21427         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21428         * tests/unicase/test-u32-tolower.c: Likewise.
21429         * tests/unicase/test-u32-totitle.c: Likewise.
21430         * tests/unicase/test-u32-toupper.c: Likewise.
21431         * tests/unicase/test-ulc-casecmp.c: Likewise.
21432         * tests/unicase/test-ulc-casecoll.c: Likewise.
21433         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21434         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21435         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21436         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21437         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21438         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21439         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21440         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21441         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21442         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21443         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21444         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21445         * tests/unictype/test-bidi_byname.c: Likewise.
21446         * tests/unictype/test-bidi_name.c: Likewise.
21447         * tests/unictype/test-bidi_of.c: Likewise.
21448         * tests/unictype/test-bidi_test.c: Likewise.
21449         * tests/unictype/test-block_list.c: Likewise.
21450         * tests/unictype/test-block_of.c: Likewise.
21451         * tests/unictype/test-block_test.c: Likewise.
21452         * tests/unictype/test-categ_and.c: Likewise.
21453         * tests/unictype/test-categ_and_not.c: Likewise.
21454         * tests/unictype/test-categ_byname.c: Likewise.
21455         * tests/unictype/test-categ_name.c: Likewise.
21456         * tests/unictype/test-categ_none.c: Likewise.
21457         * tests/unictype/test-categ_of.c: Likewise.
21458         * tests/unictype/test-categ_or.c: Likewise.
21459         * tests/unictype/test-categ_test_withtable.c: Likewise.
21460         * tests/unictype/test-combining.c: Likewise.
21461         * tests/unictype/test-decdigit.c: Likewise.
21462         * tests/unictype/test-digit.c: Likewise.
21463         * tests/unictype/test-mirror.c: Likewise.
21464         * tests/unictype/test-numeric.c: Likewise.
21465         * tests/unictype/test-pr_byname.c: Likewise.
21466         * tests/unictype/test-pr_test.c: Likewise.
21467         * tests/unictype/test-predicate-part1.h: Likewise.
21468         * tests/unictype/test-scripts.c: Likewise.
21469         * tests/unictype/test-sy_c_ident.c: Likewise.
21470         * tests/unictype/test-sy_java_ident.c: Likewise.
21471         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21472         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21473         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21474         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21475         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21476         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21477         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21478         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21479         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21480         * tests/uninorm/test-compat-decomposition.c: Likewise.
21481         * tests/uninorm/test-composition.c: Likewise.
21482         * tests/uninorm/test-decomposing-form.c: Likewise.
21483         * tests/uninorm/test-decomposition.c: Likewise.
21484         * tests/uninorm/test-u8-nfc.c: Likewise.
21485         * tests/uninorm/test-u8-nfd.c: Likewise.
21486         * tests/uninorm/test-u8-nfkc.c: Likewise.
21487         * tests/uninorm/test-u8-nfkd.c: Likewise.
21488         * tests/uninorm/test-u8-normcmp.c: Likewise.
21489         * tests/uninorm/test-u8-normcoll.c: Likewise.
21490         * tests/uninorm/test-u16-nfc.c: Likewise.
21491         * tests/uninorm/test-u16-nfd.c: Likewise.
21492         * tests/uninorm/test-u16-nfkc.c: Likewise.
21493         * tests/uninorm/test-u16-nfkd.c: Likewise.
21494         * tests/uninorm/test-u16-normcmp.c: Likewise.
21495         * tests/uninorm/test-u16-normcoll.c: Likewise.
21496         * tests/uninorm/test-u32-nfc.c: Likewise.
21497         * tests/uninorm/test-u32-nfd.c: Likewise.
21498         * tests/uninorm/test-u32-nfkc.c: Likewise.
21499         * tests/uninorm/test-u32-nfkd.c: Likewise.
21500         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21501         * tests/uninorm/test-u32-normcmp.c: Likewise.
21502         * tests/uninorm/test-u32-normcoll.c: Likewise.
21503         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21504         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21505         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21506         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21507         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21508         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21509         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21510         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21511         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21512         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21513         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21514         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21515         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21516         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21517         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21518         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21519         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21520         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21521         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21522         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21523         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21524         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21525         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21526         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21527         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21528         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21529         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21530         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21531         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21532         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21533         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21534         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21535         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21536         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21537         * tests/uniwidth/test-u8-width.c: Likewise.
21538         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21539         * tests/uniwidth/test-u16-width.c: Likewise.
21540         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21541         * tests/uniwidth/test-u32-width.c: Likewise.
21542         * tests/uniwidth/test-uc_width.c: Likewise.
21543         * tests/uniwidth/test-uc_width2.c: Likewise.
21544         * modules/acl-tests (Files): Add tests/macros.h.
21545         * modules/areadlink-tests (Files): Likewise.
21546         * modules/areadlink-with-size-tests (Files): Likewise.
21547         * modules/areadlinkat-tests (Files): Likewise.
21548         * modules/areadlinkat-with-size-tests (Files): Likewise.
21549         * modules/argmatch-tests (Files): Likewise.
21550         * modules/argv-iter-tests (Files): Likewise.
21551         * modules/array-list-tests (Files): Likewise.
21552         * modules/array-mergesort-tests (Files): Likewise.
21553         * modules/array-oset-tests (Files): Likewise.
21554         * modules/avltree-list-tests (Files): Likewise.
21555         * modules/avltree-oset-tests (Files): Likewise.
21556         * modules/avltreehash-list-tests (Files): Likewise.
21557         * modules/base64-tests (Files): Likewise.
21558         * modules/binary-io-tests (Files): Likewise.
21559         * modules/bitrotate-tests (Files): Likewise.
21560         * modules/btowc-tests (Files): Likewise.
21561         * modules/byteswap-tests (Files): Likewise.
21562         * modules/c-ctype-tests (Files): Likewise.
21563         * modules/c-stack-tests (Files): Likewise.
21564         * modules/c-strcase-tests (Files): Likewise.
21565         * modules/c-strcasestr-tests (Files): Likewise.
21566         * modules/c-strstr-tests (Files): Likewise.
21567         * modules/canonicalize-lgpl-tests (Files): Likewise.
21568         * modules/canonicalize-tests (Files): Likewise.
21569         * modules/carray-list-tests (Files): Likewise.
21570         * modules/ceilf-tests (Files): Likewise.
21571         * modules/ceill-tests (Files): Likewise.
21572         * modules/chown-tests (Files): Likewise.
21573         * modules/cloexec-tests (Files): Likewise.
21574         * modules/copy-file-tests (Files): Likewise.
21575         * modules/count-one-bits-tests (Files): Likewise.
21576         * modules/dprintf-posix-tests (Files): Likewise.
21577         * modules/dup2-tests (Files): Likewise.
21578         * modules/dup3-tests (Files): Likewise.
21579         * modules/duplocale-tests (Files): Likewise.
21580         * modules/fbufmode-tests (Files): Likewise.
21581         * modules/fchdir-tests (Files): Likewise.
21582         * modules/fcntl-safer-tests (Files): Likewise.
21583         * modules/fcntl-tests (Files): Likewise.
21584         * modules/fdopendir-tests (Files): Likewise.
21585         * modules/fdutimensat-tests (Files): Likewise.
21586         * modules/fflush-tests (Files): Likewise.
21587         * modules/filevercmp-tests (Files): Likewise.
21588         * modules/flock-tests (Files): Likewise.
21589         * modules/floorf-tests (Files): Likewise.
21590         * modules/floorl-tests (Files): Likewise.
21591         * modules/fnmatch-tests (Files): Likewise.
21592         * modules/fopen-safer-tests (Files): Likewise.
21593         * modules/fopen-tests (Files): Likewise.
21594         * modules/fpending-tests (Files): Likewise.
21595         * modules/fprintf-posix-tests (Files): Likewise.
21596         * modules/fpurge-tests (Files): Likewise.
21597         * modules/freadable-tests (Files): Likewise.
21598         * modules/freadahead-tests (Files): Likewise.
21599         * modules/freading-tests (Files): Likewise.
21600         * modules/freadptr-tests (Files): Likewise.
21601         * modules/freadseek-tests (Files): Likewise.
21602         * modules/freopen-tests (Files): Likewise.
21603         * modules/frexp-nolibm-tests (Files): Likewise.
21604         * modules/frexp-tests (Files): Likewise.
21605         * modules/frexpl-nolibm-tests (Files): Likewise.
21606         * modules/frexpl-tests (Files): Likewise.
21607         * modules/fseek-tests (Files): Likewise.
21608         * modules/fseeko-tests (Files): Likewise.
21609         * modules/fstrcmp-tests (Files): Likewise.
21610         * modules/fsync-tests (Files): Likewise.
21611         * modules/ftell-tests (Files): Likewise.
21612         * modules/ftello-tests (Files): Likewise.
21613         * modules/func-tests (Files): Likewise.
21614         * modules/futimens-tests (Files): Likewise.
21615         * modules/fwritable-tests (Files): Likewise.
21616         * modules/fwriting-tests (Files): Likewise.
21617         * modules/getcwd-tests (Files): Likewise.
21618         * modules/getdate-tests (Files): Likewise.
21619         * modules/getdelim-tests (Files): Likewise.
21620         * modules/getdtablesize-tests (Files): Likewise.
21621         * modules/getgroups-tests (Files): Likewise.
21622         * modules/getline-tests (Files): Likewise.
21623         * modules/getndelim2-tests (Files): Likewise.
21624         * modules/glob-tests (Files): Likewise.
21625         * modules/hash-tests (Files): Likewise.
21626         * modules/i-ring-tests (Files): Likewise.
21627         * modules/iconv-tests (Files): Likewise.
21628         * modules/iconv_open-utf-tests (Files): Likewise.
21629         * modules/idpriv-drop-tests (Files): Likewise.
21630         * modules/idpriv-droptemp-tests (Files): Likewise.
21631         * modules/inet_ntop-tests (Files): Likewise.
21632         * modules/inet_pton-tests (Files): Likewise.
21633         * modules/isblank-tests (Files): Likewise.
21634         * modules/isfinite-tests (Files): Likewise.
21635         * modules/isinf-tests (Files): Likewise.
21636         * modules/isnan-tests (Files): Likewise.
21637         * modules/isnand-nolibm-tests (Files): Likewise.
21638         * modules/isnand-tests (Files): Likewise.
21639         * modules/isnanf-nolibm-tests (Files): Likewise.
21640         * modules/isnanf-tests (Files): Likewise.
21641         * modules/isnanl-nolibm-tests (Files): Likewise.
21642         * modules/isnanl-tests (Files): Likewise.
21643         * modules/lchown-tests (Files): Likewise.
21644         * modules/ldexpl-tests (Files): Likewise.
21645         * modules/link-tests (Files): Likewise.
21646         * modules/linkat-tests (Files): Likewise.
21647         * modules/linked-list-tests (Files): Likewise.
21648         * modules/linkedhash-list-tests (Files): Likewise.
21649         * modules/localename-tests (Files): Likewise.
21650         * modules/lseek-tests (Files): Likewise.
21651         * modules/lstat-tests (Files): Likewise.
21652         * modules/mbmemcasecmp-tests (Files): Likewise.
21653         * modules/mbmemcasecoll-tests (Files): Likewise.
21654         * modules/mbrtowc-tests (Files): Likewise.
21655         * modules/mbscasecmp-tests (Files): Likewise.
21656         * modules/mbscasestr-tests (Files): Likewise.
21657         * modules/mbschr-tests (Files): Likewise.
21658         * modules/mbscspn-tests (Files): Likewise.
21659         * modules/mbsinit-tests (Files): Likewise.
21660         * modules/mbsncasecmp-tests (Files): Likewise.
21661         * modules/mbsnrtowcs-tests (Files): Likewise.
21662         * modules/mbspbrk-tests (Files): Likewise.
21663         * modules/mbspcasecmp-tests (Files): Likewise.
21664         * modules/mbsrchr-tests (Files): Likewise.
21665         * modules/mbsrtowcs-tests (Files): Likewise.
21666         * modules/mbsspn-tests (Files): Likewise.
21667         * modules/mbsstr-tests (Files): Likewise.
21668         * modules/memchr-tests (Files): Likewise.
21669         * modules/memchr2-tests (Files): Likewise.
21670         * modules/memcmp-tests (Files): Likewise.
21671         * modules/memmem-tests (Files): Likewise.
21672         * modules/memrchr-tests (Files): Likewise.
21673         * modules/mkdir-tests (Files): Likewise.
21674         * modules/mkfifo-tests (Files): Likewise.
21675         * modules/mkfifoat-tests (Files): Likewise.
21676         * modules/mknod-tests (Files): Likewise.
21677         * modules/nanosleep-tests (Files): Likewise.
21678         * modules/nl_langinfo-tests (Files): Likewise.
21679         * modules/obstack-printf-tests (Files): Likewise.
21680         * modules/open-tests (Files): Likewise.
21681         * modules/openat-tests (Files): Likewise.
21682         * modules/pipe-filter-gi-tests (Files): Likewise.
21683         * modules/pipe-filter-ii-tests (Files): Likewise.
21684         * modules/pipe2-tests (Files): Likewise.
21685         * modules/popen-safer-tests (Files): Likewise.
21686         * modules/popen-tests (Files): Likewise.
21687         * modules/posixtm-tests (Files): Likewise.
21688         * modules/pread-tests (Files): Likewise.
21689         * modules/printf-frexp-tests (Files): Likewise.
21690         * modules/printf-frexpl-tests (Files): Likewise.
21691         * modules/printf-posix-tests (Files): Likewise.
21692         * modules/priv-set-tests (Files): Likewise.
21693         * modules/quotearg-tests (Files): Likewise.
21694         * modules/random_r-tests (Files): Likewise.
21695         * modules/rawmemchr-tests (Files): Likewise.
21696         * modules/rbtree-list-tests (Files): Likewise.
21697         * modules/rbtree-oset-tests (Files): Likewise.
21698         * modules/rbtreehash-list-tests (Files): Likewise.
21699         * modules/readlink-tests (Files): Likewise.
21700         * modules/remove-tests (Files): Likewise.
21701         * modules/rename-tests (Files): Likewise.
21702         * modules/renameat-tests (Files): Likewise.
21703         * modules/rmdir-tests (Files): Likewise.
21704         * modules/round-tests (Files): Likewise.
21705         * modules/roundf-tests (Files): Likewise.
21706         * modules/roundl-tests (Files): Likewise.
21707         * modules/safe-alloc-tests (Files): Likewise.
21708         * modules/setenv-tests (Files): Likewise.
21709         * modules/sigaction-tests (Files): Likewise.
21710         * modules/signbit-tests (Files): Likewise.
21711         * modules/sleep-tests (Files): Likewise.
21712         * modules/snprintf-posix-tests (Files): Likewise.
21713         * modules/snprintf-tests (Files): Likewise.
21714         * modules/sprintf-posix-tests (Files): Likewise.
21715         * modules/stat-tests (Files): Likewise.
21716         * modules/stat-time-tests (Files): Likewise.
21717         * modules/strcasestr-tests (Files): Likewise.
21718         * modules/strchrnul-tests (Files): Likewise.
21719         * modules/strerror-tests (Files): Likewise.
21720         * modules/striconv-tests (Files): Likewise.
21721         * modules/striconveh-tests (Files): Likewise.
21722         * modules/striconveha-tests (Files): Likewise.
21723         * modules/strsignal-tests (Files): Likewise.
21724         * modules/strstr-tests (Files): Likewise.
21725         * modules/strtod-tests (Files): Likewise.
21726         * modules/strverscmp-tests (Files): Likewise.
21727         * modules/symlink-tests (Files): Likewise.
21728         * modules/symlinkat-tests (Files): Likewise.
21729         * modules/trunc-tests (Files): Likewise.
21730         * modules/truncf-tests (Files): Likewise.
21731         * modules/truncl-tests (Files): Likewise.
21732         * modules/uname-tests (Files): Likewise.
21733         * modules/unicase/cased-tests (Files): Likewise.
21734         * modules/unicase/ignorable-tests (Files): Likewise.
21735         * modules/unicase/locale-language-tests (Files): Likewise.
21736         * modules/unicase/tolower-tests (Files): Likewise.
21737         * modules/unicase/totitle-tests (Files): Likewise.
21738         * modules/unicase/toupper-tests (Files): Likewise.
21739         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21740         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21741         * modules/unicase/u8-casefold-tests (Files): Likewise.
21742         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21743         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21744         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21745         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21746         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21747         * modules/unicase/u8-tolower-tests (Files): Likewise.
21748         * modules/unicase/u8-totitle-tests (Files): Likewise.
21749         * modules/unicase/u8-toupper-tests (Files): Likewise.
21750         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21751         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21752         * modules/unicase/u16-casefold-tests (Files): Likewise.
21753         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21754         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21755         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21756         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21757         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21758         * modules/unicase/u16-tolower-tests (Files): Likewise.
21759         * modules/unicase/u16-totitle-tests (Files): Likewise.
21760         * modules/unicase/u16-toupper-tests (Files): Likewise.
21761         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21762         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21763         * modules/unicase/u32-casefold-tests (Files): Likewise.
21764         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21765         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21766         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21767         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21768         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21769         * modules/unicase/u32-tolower-tests (Files): Likewise.
21770         * modules/unicase/u32-totitle-tests (Files): Likewise.
21771         * modules/unicase/u32-toupper-tests (Files): Likewise.
21772         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21773         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21774         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21775         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21776         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21777         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21778         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21779         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21780         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21781         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21782         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21783         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21784         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21785         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21786         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21787         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21788         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21789         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21790         * modules/unictype/block-list-tests (Files): Likewise.
21791         * modules/unictype/block-of-tests (Files): Likewise.
21792         * modules/unictype/block-test-tests (Files): Likewise.
21793         * modules/unictype/category-C-tests (Files): Likewise.
21794         * modules/unictype/category-Cc-tests (Files): Likewise.
21795         * modules/unictype/category-Cf-tests (Files): Likewise.
21796         * modules/unictype/category-Cn-tests (Files): Likewise.
21797         * modules/unictype/category-Co-tests (Files): Likewise.
21798         * modules/unictype/category-Cs-tests (Files): Likewise.
21799         * modules/unictype/category-L-tests (Files): Likewise.
21800         * modules/unictype/category-Ll-tests (Files): Likewise.
21801         * modules/unictype/category-Lm-tests (Files): Likewise.
21802         * modules/unictype/category-Lo-tests (Files): Likewise.
21803         * modules/unictype/category-Lt-tests (Files): Likewise.
21804         * modules/unictype/category-Lu-tests (Files): Likewise.
21805         * modules/unictype/category-M-tests (Files): Likewise.
21806         * modules/unictype/category-Mc-tests (Files): Likewise.
21807         * modules/unictype/category-Me-tests (Files): Likewise.
21808         * modules/unictype/category-Mn-tests (Files): Likewise.
21809         * modules/unictype/category-N-tests (Files): Likewise.
21810         * modules/unictype/category-Nd-tests (Files): Likewise.
21811         * modules/unictype/category-Nl-tests (Files): Likewise.
21812         * modules/unictype/category-No-tests (Files): Likewise.
21813         * modules/unictype/category-P-tests (Files): Likewise.
21814         * modules/unictype/category-Pc-tests (Files): Likewise.
21815         * modules/unictype/category-Pd-tests (Files): Likewise.
21816         * modules/unictype/category-Pe-tests (Files): Likewise.
21817         * modules/unictype/category-Pf-tests (Files): Likewise.
21818         * modules/unictype/category-Pi-tests (Files): Likewise.
21819         * modules/unictype/category-Po-tests (Files): Likewise.
21820         * modules/unictype/category-Ps-tests (Files): Likewise.
21821         * modules/unictype/category-S-tests (Files): Likewise.
21822         * modules/unictype/category-Sc-tests (Files): Likewise.
21823         * modules/unictype/category-Sk-tests (Files): Likewise.
21824         * modules/unictype/category-Sm-tests (Files): Likewise.
21825         * modules/unictype/category-So-tests (Files): Likewise.
21826         * modules/unictype/category-Z-tests (Files): Likewise.
21827         * modules/unictype/category-Zl-tests (Files): Likewise.
21828         * modules/unictype/category-Zp-tests (Files): Likewise.
21829         * modules/unictype/category-Zs-tests (Files): Likewise.
21830         * modules/unictype/category-and-not-tests (Files): Likewise.
21831         * modules/unictype/category-and-tests (Files): Likewise.
21832         * modules/unictype/category-byname-tests (Files): Likewise.
21833         * modules/unictype/category-name-tests (Files): Likewise.
21834         * modules/unictype/category-none-tests (Files): Likewise.
21835         * modules/unictype/category-of-tests (Files): Likewise.
21836         * modules/unictype/category-or-tests (Files): Likewise.
21837         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21838         * modules/unictype/combining-class-tests (Files): Likewise.
21839         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21840         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21841         * modules/unictype/ctype-blank-tests (Files): Likewise.
21842         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21843         * modules/unictype/ctype-digit-tests (Files): Likewise.
21844         * modules/unictype/ctype-graph-tests (Files): Likewise.
21845         * modules/unictype/ctype-lower-tests (Files): Likewise.
21846         * modules/unictype/ctype-print-tests (Files): Likewise.
21847         * modules/unictype/ctype-punct-tests (Files): Likewise.
21848         * modules/unictype/ctype-space-tests (Files): Likewise.
21849         * modules/unictype/ctype-upper-tests (Files): Likewise.
21850         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21851         * modules/unictype/decimal-digit-tests (Files): Likewise.
21852         * modules/unictype/digit-tests (Files): Likewise.
21853         * modules/unictype/mirror-tests (Files): Likewise.
21854         * modules/unictype/numeric-tests (Files): Likewise.
21855         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21856         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21857         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21858         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21859         Likewise.
21860         * modules/unictype/property-bidi-block-separator-tests (Files):
21861         Likewise.
21862         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21863         Likewise.
21864         * modules/unictype/property-bidi-common-separator-tests (Files):
21865         Likewise.
21866         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21867         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21868         Likewise.
21869         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21870         Likewise.
21871         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21872         Likewise.
21873         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21874         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21875         Likewise.
21876         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21877         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21878         Likewise.
21879         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21880         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21881         * modules/unictype/property-bidi-segment-separator-tests (Files):
21882         Likewise.
21883         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21884         * modules/unictype/property-byname-tests (Files): Likewise.
21885         * modules/unictype/property-combining-tests (Files): Likewise.
21886         * modules/unictype/property-composite-tests (Files): Likewise.
21887         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21888         * modules/unictype/property-dash-tests (Files): Likewise.
21889         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21890         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21891         Likewise.
21892         * modules/unictype/property-deprecated-tests (Files): Likewise.
21893         * modules/unictype/property-diacritic-tests (Files): Likewise.
21894         * modules/unictype/property-extender-tests (Files): Likewise.
21895         * modules/unictype/property-format-control-tests (Files): Likewise.
21896         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21897         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21898         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21899         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21900         * modules/unictype/property-hyphen-tests (Files): Likewise.
21901         * modules/unictype/property-id-continue-tests (Files): Likewise.
21902         * modules/unictype/property-id-start-tests (Files): Likewise.
21903         * modules/unictype/property-ideographic-tests (Files): Likewise.
21904         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21905         * modules/unictype/property-ids-trinary-operator-tests (Files):
21906         Likewise.
21907         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21908         * modules/unictype/property-iso-control-tests (Files): Likewise.
21909         * modules/unictype/property-join-control-tests (Files): Likewise.
21910         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21911         * modules/unictype/property-line-separator-tests (Files): Likewise.
21912         * modules/unictype/property-logical-order-exception-tests (Files):
21913         Likewise.
21914         * modules/unictype/property-lowercase-tests (Files): Likewise.
21915         * modules/unictype/property-math-tests (Files): Likewise.
21916         * modules/unictype/property-non-break-tests (Files): Likewise.
21917         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21918         * modules/unictype/property-numeric-tests (Files): Likewise.
21919         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21920         * modules/unictype/property-other-default-ignorable-code-point-tests
21921         (Files): Likewise.
21922         * modules/unictype/property-other-grapheme-extend-tests (Files):
21923         Likewise.
21924         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21925         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21926         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21927         * modules/unictype/property-other-math-tests (Files): Likewise.
21928         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21929         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21930         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21931         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21932         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21933         * modules/unictype/property-private-use-tests (Files): Likewise.
21934         * modules/unictype/property-punctuation-tests (Files): Likewise.
21935         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21936         * modules/unictype/property-radical-tests (Files): Likewise.
21937         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21938         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21939         * modules/unictype/property-space-tests (Files): Likewise.
21940         * modules/unictype/property-terminal-punctuation-tests (Files):
21941         Likewise.
21942         * modules/unictype/property-test-tests (Files): Likewise.
21943         * modules/unictype/property-titlecase-tests (Files): Likewise.
21944         * modules/unictype/property-unassigned-code-value-tests (Files):
21945         Likewise.
21946         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21947         * modules/unictype/property-uppercase-tests (Files): Likewise.
21948         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21949         * modules/unictype/property-white-space-tests (Files): Likewise.
21950         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21951         * modules/unictype/property-xid-start-tests (Files): Likewise.
21952         * modules/unictype/property-zero-width-tests (Files): Likewise.
21953         * modules/unictype/scripts-tests (Files): Likewise.
21954         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21955         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21956         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21957         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21958         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21959         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21960         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21961         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21962         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21963         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21964         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21965         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21966         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21967         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21968         * modules/uninorm/composition-tests (Files): Likewise.
21969         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21970         * modules/uninorm/decomposition-tests (Files): Likewise.
21971         * modules/uninorm/filter-tests (Files): Likewise.
21972         * modules/uninorm/nfc-tests (Files): Likewise.
21973         * modules/uninorm/nfd-tests (Files): Likewise.
21974         * modules/uninorm/nfkc-tests (Files): Likewise.
21975         * modules/uninorm/nfkd-tests (Files): Likewise.
21976         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21977         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21978         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21979         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21980         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21981         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21982         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21983         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21984         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21985         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21986         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21987         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21988         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21989         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21990         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21991         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21992         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21993         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21994         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21995         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21996         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21997         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21998         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21999         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
22000         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
22001         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
22002         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
22003         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
22004         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
22005         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
22006         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
22007         * modules/uniwidth/u8-width-tests (Files): Likewise.
22008         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
22009         * modules/uniwidth/u16-width-tests (Files): Likewise.
22010         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
22011         * modules/uniwidth/u32-width-tests (Files): Likewise.
22012         * modules/uniwidth/width-tests (Files): Likewise.
22013         * modules/unlink-tests (Files): Likewise.
22014         * modules/unsetenv-tests (Files): Likewise.
22015         * modules/usleep-tests (Files): Likewise.
22016         * modules/utimens-tests (Files): Likewise.
22017         * modules/utimensat-tests (Files): Likewise.
22018         * modules/vasnprintf-posix-tests (Files): Likewise.
22019         * modules/vasnprintf-tests (Files): Likewise.
22020         * modules/vasprintf-posix-tests (Files): Likewise.
22021         * modules/vasprintf-tests (Files): Likewise.
22022         * modules/vdprintf-posix-tests (Files): Likewise.
22023         * modules/vfprintf-posix-tests (Files): Likewise.
22024         * modules/vprintf-posix-tests (Files): Likewise.
22025         * modules/vsnprintf-posix-tests (Files): Likewise.
22026         * modules/vsnprintf-tests (Files): Likewise.
22027         * modules/vsprintf-posix-tests (Files): Likewise.
22028         * modules/wcrtomb-tests (Files): Likewise.
22029         * modules/wcsnrtombs-tests (Files): Likewise.
22030         * modules/wcsrtombs-tests (Files): Likewise.
22031         * modules/wctype-tests (Files): Likewise.
22032         * modules/wcwidth-tests (Files): Likewise.
22033         * modules/xmemdup0-tests (Files): Likewise.
22034         * modules/xprintf-posix-tests (Files): Likewise.
22035         * modules/xvasprintf-tests (Files): Likewise.
22036
22037 2009-12-24  Eric Blake  <ebb9@byu.net>
22038
22039         test-nanosleep: fix typo
22040         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
22041         patch.
22042         Reported by Bruno Haible.
22043
22044 2009-12-24  Bruno Haible  <bruno@clisp.org>
22045
22046         Reduce namespace pollution on glibc systems.
22047         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
22048         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
22049         systems.
22050         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
22051         <getopt.h> on glibc systems.
22052         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
22053         systems.
22054         * lib/fcntl.c: Include <unistd.h> here instead.
22055
22056 2009-12-24  Bruno Haible  <bruno@clisp.org>
22057
22058         * lib/stdlib.in.h (includes): Fix typo in today's commit.
22059
22060 2009-12-24  Eric Blake  <ebb9@byu.net>
22061
22062         tests: add signature checks
22063         * tests/signature.h (SIGNATURE_CHECK): New file.
22064         * modules/atexit-tests (Files): Use it.
22065         * modules/btowc-tests (Files): Likewise.
22066         * modules/canonicalize-lgpl-tests (Files): Likewise.
22067         * modules/ceilf-tests (Files): Likewise.
22068         * modules/ceill-tests (Files): Likewise.
22069         * modules/chown-tests (Files): Likewise.
22070         * modules/dprintf-posix-tests (Files): Likewise.
22071         * modules/dup2-tests (Files): Likewise.
22072         * modules/dup3-tests (Files): Likewise.
22073         * modules/duplocale-tests (Files): Likewise.
22074         * modules/fchdir-tests (Files): Likewise.
22075         * modules/fcntl-tests (Files): Likewise.
22076         * modules/fdopendir-tests (Files): Likewise.
22077         * modules/fflush-tests (Files): Likewise.
22078         * modules/flock-tests (Files): Likewise.
22079         * modules/floorf-tests (Files): Likewise.
22080         * modules/floorl-tests (Files): Likewise.
22081         * modules/fnmatch-tests (Files): Likewise.
22082         * modules/fopen-tests (Files): Likewise.
22083         * modules/fprintf-posix-tests (Files): Likewise.
22084         * modules/freopen-tests (Files): Likewise.
22085         * modules/frexp-nolibm-tests (Files): Likewise.
22086         * modules/frexp-tests (Files): Likewise.
22087         * modules/frexpl-nolibm-tests (Files): Likewise.
22088         * modules/frexpl-tests (Files): Likewise.
22089         * modules/fseek-tests (Files): Likewise.
22090         * modules/fseeko-tests (Files): Likewise.
22091         * modules/fsync-tests (Files): Likewise.
22092         * modules/ftell-tests (Files): Likewise.
22093         * modules/ftello-tests (Files): Likewise.
22094         * modules/futimens-tests (Files): Likewise.
22095         * modules/getaddrinfo-tests (Files): Likewise.
22096         * modules/getcwd-tests (Files): Likewise.
22097         * modules/getdelim-tests (Files): Likewise.
22098         * modules/getdtablesize-tests (Files): Likewise.
22099         * modules/getgroups-tests (Files): Likewise.
22100         * modules/gethostname-tests (Files): Likewise.
22101         * modules/getline-tests (Files): Likewise.
22102         * modules/getopt-posix-tests (Files): Likewise.
22103         * modules/gettimeofday-tests (Files): Likewise.
22104         * modules/glob-tests (Files): Likewise.
22105         * modules/iconv-tests (Files): Likewise.
22106         * modules/inet_ntop-tests (Files): Likewise.
22107         * modules/inet_pton-tests (Files): Likewise.
22108         * modules/isblank-tests (Files): Likewise.
22109         * modules/lchown-tests (Files): Likewise.
22110         * modules/ldexpl-tests (Files): Likewise.
22111         * modules/link-tests (Files): Likewise.
22112         * modules/linkat-tests (Files): Likewise.
22113         * modules/lseek-tests (Files): Likewise.
22114         * modules/lstat-tests (Files): Likewise.
22115         * modules/mbrtowc-tests (Files): Likewise.
22116         * modules/mbsinit-tests (Files): Likewise.
22117         * modules/mbsnrtowcs-tests (Files): Likewise.
22118         * modules/mbsrtowcs-tests (Files): Likewise.
22119         * modules/memchr-tests (Files): Likewise.
22120         * modules/memcmp-tests (Files): Likewise.
22121         * modules/memmem-tests (Files): Likewise.
22122         * modules/memrchr-tests (Files): Likewise.
22123         * modules/mkdir-tests (Files): Likewise.
22124         * modules/mkfifo-tests (Files): Likewise.
22125         * modules/mkfifoat-tests (Files): Likewise.
22126         * modules/mknod-tests (Files): Likewise.
22127         * modules/nanosleep-tests (Files): Likewise.
22128         * modules/nl_langinfo-tests (Files): Likewise.
22129         * modules/obstack-printf-tests (Files): Likewise.
22130         * modules/open-tests (Files): Likewise.
22131         * modules/openat-tests (Files): Likewise.
22132         * modules/perror-tests (Files): Likewise.
22133         * modules/pipe2-tests (Files): Likewise.
22134         * modules/poll-tests (Files): Likewise.
22135         * modules/popen-tests (Files): Likewise.
22136         * modules/posix_spawn-tests (Files): Likewise.
22137         * modules/posix_spawnp-tests (Files): Likewise.
22138         * modules/pread-tests (Files): Likewise.
22139         * modules/printf-posix-tests (Files): Likewise.
22140         * modules/pty-tests (Files): Likewise.
22141         * modules/random_r-tests (Files): Likewise.
22142         * modules/rawmemchr-tests (Files): Likewise.
22143         * modules/readlink-tests (Files): Likewise.
22144         * modules/remove-tests (Files): Likewise.
22145         * modules/rename-tests (Files): Likewise.
22146         * modules/renameat-tests (Files): Likewise.
22147         * modules/rmdir-tests (Files): Likewise.
22148         * modules/round-tests (Files): Likewise.
22149         * modules/roundf-tests (Files): Likewise.
22150         * modules/roundl-tests (Files): Likewise.
22151         * modules/select-tests (Files): Likewise.
22152         * modules/setenv-tests (Files): Likewise.
22153         * modules/sigaction-tests (Files): Likewise.
22154         * modules/sleep-tests (Files): Likewise.
22155         * modules/snprintf-posix-tests (Files): Likewise.
22156         * modules/snprintf-tests (Files): Likewise.
22157         * modules/sprintf-posix-tests (Files): Likewise.
22158         * modules/stat-tests (Files): Likewise.
22159         * modules/strcasestr-tests (Files): Likewise.
22160         * modules/strchrnul-tests (Files): Likewise.
22161         * modules/strerror-tests (Files): Likewise.
22162         * modules/strsignal-tests (Files): Likewise.
22163         * modules/strstr-tests (Files): Likewise.
22164         * modules/strtod-tests (Files): Likewise.
22165         * modules/strverscmp-tests (Files): Likewise.
22166         * modules/symlink-tests (Files): Likewise.
22167         * modules/symlinkat-tests (Files): Likewise.
22168         * modules/times-tests (Files): Likewise.
22169         * modules/trunc-tests (Files): Likewise.
22170         * modules/truncf-tests (Files): Likewise.
22171         * modules/truncl-tests (Files): Likewise.
22172         * modules/tsearch-tests (Files): Likewise.
22173         * modules/uname-tests (Files): Likewise.
22174         * modules/unlink-tests (Files): Likewise.
22175         * modules/unsetenv-tests (Files): Likewise.
22176         * modules/usleep-tests (Files): Likewise.
22177         * modules/utimensat-tests (Files): Likewise.
22178         * modules/vasprintf-tests (Files): Likewise.
22179         * modules/vdprintf-posix-tests (Files): Likewise.
22180         * modules/vfprintf-posix-tests (Files): Likewise.
22181         * modules/vprintf-posix-tests (Files): Likewise.
22182         * modules/vsnprintf-posix-tests (Files): Likewise.
22183         * modules/vsnprintf-tests (Files): Likewise.
22184         * modules/vsprintf-posix-tests (Files): Likewise.
22185         * modules/wcrtomb-tests (Files): Likewise.
22186         * modules/wcsnrtombs-tests (Files): Likewise.
22187         * modules/wcsrtombs-tests (Files): Likewise.
22188         * modules/wcwidth-tests (Files): Likewise.
22189         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
22190         * tests/test-isinf.c (isinf): Likewise.
22191         * tests/test-isnan.c (isnan): Likewise.
22192         * tests/test-signbit.c (signbit): Likewise.
22193         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
22194         declaration, either as macro or with correct signature.
22195         (select): Ensure function under test is declared with correct
22196         signature in correct header.
22197         * tests/test-atexit.c (atexit): Likewise.
22198         * tests/test-btowc.c (btowc): Likewise.
22199         * tests/test-canonicalize-lgpl.c (realpath)
22200         (canonicalize_file_name): Likewise.
22201         * tests/test-ceilf1.c (ceilf): Likewise.
22202         * tests/test-ceill.c (ceill): Likewise.
22203         * tests/test-chown.c (chown): Likewise.
22204         * tests/test-dprintf-posix.c (dprintf): Likewise.
22205         * tests/test-dup2.c (dup2): Likewise.
22206         * tests/test-dup3.c (dup3): Likewise.
22207         * tests/test-duplocale.c (duplocale): Likewise.
22208         * tests/test-fchdir.c (fchdir): Likewise.
22209         * tests/test-fchownat.c (fchownat): Likewise.
22210         * tests/test-fcntl.c (fcntl): Likewise.
22211         * tests/test-fdopendir.c (fdopendir): Likewise.
22212         * tests/test-fflush.c (fflush): Likewise.
22213         * tests/test-flock.c (flock): Likewise.
22214         * tests/test-floorf1.c (floorf): Likewise.
22215         * tests/test-floorl.c (floorl): Likewise.
22216         * tests/test-fnmatch.c (fnmatch): Likewise.
22217         * tests/test-fopen.c (fopen): Likewise.
22218         * tests/test-fprintf-posix.c (fprintf): Likewise.
22219         * tests/test-freopen.c (freopen): Likewise.
22220         * tests/test-frexp.c (frexp): Likewise.
22221         * tests/test-frexpl.c (frexpl): Likewise.
22222         * tests/test-fseek.c (fseek): Likewise.
22223         * tests/test-fseeko.c (fseeko): Likewise.
22224         * tests/test-fstatat.c (fstatat): Likewise.
22225         * tests/test-fsync.c (fsync): Likewise.
22226         * tests/test-ftell.c (ftell): Likewise.
22227         * tests/test-ftello.c (ftello): Likewise.
22228         * tests/test-futimens.c (futimens): Likewise.
22229         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22230         (gai_strerror): Likewise.
22231         * tests/test-getcwd.c (getcwd): Likewise.
22232         * tests/test-getdelim.c (getdelim): Likewise.
22233         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22234         * tests/test-getgroups.c (getgroups): Likewise.
22235         * tests/test-gethostname.c (gethostname): Likewise.
22236         * tests/test-getline.c (getline): Likewise.
22237         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22238         Likewise.
22239         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22240         * tests/test-glob.c (glob, globfree): Likewise.
22241         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22242         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22243         * tests/test-inet_pton.c (inet_pton): Likewise.
22244         * tests/test-isblank.c (isblank): Likewise.
22245         * tests/test-lchown.c (lchown): Likewise.
22246         * tests/test-ldexpl.c (ldexpl): Likewise.
22247         * tests/test-link.c (link): Likewise.
22248         * tests/test-linkat.c (linkat): Likewise.
22249         * tests/test-lseek.c (lseek): Likewise.
22250         * tests/test-lstat.c (lstat): Likewise.
22251         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22252         * tests/test-mbsinit.c (mbsinit): Likewise.
22253         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22254         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22255         * tests/test-memchr.c (memchr): Likewise.
22256         * tests/test-memcmp.c (memcmp): Likewise.
22257         * tests/test-memmem.c (memmem): Likewise.
22258         * tests/test-memrchr.c (memrchr): Likewise.
22259         * tests/test-mkdir.c (mkdir): Likewise.
22260         * tests/test-mkdirat.c (mkdirat): Likewise.
22261         * tests/test-mkfifo.c (mkfifo): Likewise.
22262         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22263         * tests/test-mknod.c (mknod): Likewise.
22264         * tests/test-nanosleep.c (nanosleep): Likewise.
22265         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22266         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22267         Likewise.
22268         * tests/test-open.c (open): Likewise.
22269         * tests/test-openat.c (openat): Likewise.
22270         * tests/test-perror.c (perror): Likewise.
22271         * tests/test-pipe2.c (pipe2): Likewise.
22272         * tests/test-poll.c (poll): Likewise.
22273         * tests/test-popen.c (popen, pclose): Likewise.
22274         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22275         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22276         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22277         (posix_spawn_file_actions_destroy)
22278         (posix_spawn_file_actions_addclose)
22279         (posix_spawn_file_actions_addopen)
22280         (posix_spawn_file_actions_adddup2): Likewise.
22281         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22282         * tests/test-pread.c (pread): Likewise.
22283         * tests/test-printf-posix.c (printf): Likewise.
22284         * tests/test-pty.c (openpty, forkpty): Likewise.
22285         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22286         (random_r): Likewise.
22287         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22288         * tests/test-readlink.c (readlink): Likewise.
22289         * tests/test-remove.c (remove): Likewise.
22290         * tests/test-rename.c (rename): Likewise.
22291         * tests/test-renameat.c (renameat): Likewise.
22292         * tests/test-rmdir.c (rmdir): Likewise.
22293         * tests/test-round1.c (round): Likewise.
22294         * tests/test-roundf1.c (roundf): Likewise.
22295         * tests/test-roundl.c (roundl): Likewise.
22296         * tests/test-setenv.c (setenv): Likewise.
22297         * tests/test-sigaction.c (sigaction): Likewise.
22298         * tests/test-sleep.c (sleep): Likewise.
22299         * tests/test-snprintf.c (snprintf): Likewise.
22300         * tests/test-sprintf-posix.c (sprintf): Likewise.
22301         * tests/test-stat.c (stat): Likewise.
22302         * tests/test-stpncpy.c (stpncpy): Likewise.
22303         * tests/test-strcasestr.c (strcasestr): Likewise.
22304         * tests/test-strchrnul.c (strchrnul): Likewise.
22305         * tests/test-strerror.c (strerror): Likewise.
22306         * tests/test-strsignal.c (strsignal): Likewise.
22307         * tests/test-strstr.c (strstr): Likewise.
22308         * tests/test-strtod.c (strtod): Likewise.
22309         * tests/test-strverscmp.c (strverscmp): Likewise.
22310         * tests/test-symlink.c (symlink): Likewise.
22311         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22312         * tests/test-times.c (times): Likewise.
22313         * tests/test-trunc1.c (trunc): Likewise.
22314         * tests/test-truncf1.c (truncf): Likewise.
22315         * tests/test-truncl.c (truncl): Likewise.
22316         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22317         Likewise.
22318         * tests/test-uname.c (uname): Likewise.
22319         * tests/test-unlink.c (unlink): Likewise.
22320         * tests/test-unlinkat.c (unlinkat): Likewise.
22321         * tests/test-unsetenv.c (unsetenv): Likewise.
22322         * tests/test-usleep.c (usleep): Likewise.
22323         * tests/test-utimensat.c (utimensat): Likewise.
22324         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22325         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22326         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22327         * tests/test-vprintf-posix.c (vprintf): Likewise.
22328         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22329         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22330         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22331         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22332         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22333         * tests/test-wcwidth.c (wcwidth): Likewise.
22334
22335         build: pull in conditional headers during GNULIB_POSIXCHECK
22336         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22337         definitions from any conditionally-included headers.
22338         * lib/stdlib.in.h (includes): Likewise.
22339         * lib/unistd.in.h (includes): Likewise.
22340
22341 2009-12-24  Bruno Haible  <bruno@clisp.org>
22342
22343         * tests/test-argv-iter.c: Include header file being tested immediately
22344         after config.h.
22345         * tests/test-base64.c: Likewise.
22346         * tests/test-flock.c: Likewise.
22347         * tests/test-fsync.c: Likewise.
22348         * tests/test-getdate.c: Likewise.
22349         * tests/test-getndelim2.c: Likewise.
22350         * tests/test-isfinite.c: Likewise.
22351         * tests/test-isinf.c: Likewise.
22352         * tests/test-strerror.c: Likewise.
22353         * tests/test-strsignal.c: Likewise.
22354
22355 2009-12-23  Eric Blake  <ebb9@byu.net>
22356
22357         unistd: work around cygwin bug
22358         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22359         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22360         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22361
22362 2009-12-23  Bruno Haible  <bruno@clisp.org>
22363
22364         localename: More tests.
22365         * tests/test-localename.c (SIZEOF): New macro.
22366         (categories): New variable.
22367         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22368         test_locale_name_default): Add test w.r.t. thread locale.
22369         (test_locale_name_thread): New function.
22370         (main): Invoke it.
22371
22372         localename: Make aware of thread locale.
22373         * lib/localename.h (gl_locale_name_thread): New declaration.
22374         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22375         behaviour with respect to thread locale.
22376         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22377         <langinfo.h>, glthread/lock.h.
22378         (SIZE_BITS): New macro.
22379         (string_hash): New function.
22380         (struct hash_node): New type.
22381         (HASH_TABLE_SIZE): New macro.
22382         (struniq_hash_table, struniq_lock): New variables.
22383         (struniq): New function.
22384         (gl_locale_name_thread): New function.
22385         (gl_locale_name): Invoke it.
22386         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22387         * modules/localename (Depends-on): Add lock.
22388         Reported by Mike Gran <spk121@yahoo.com>.
22389
22390 2009-12-23  Eric Blake  <ebb9@byu.net>
22391
22392         va-args: new module
22393         * modules/va-args: New file.
22394         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22395         * MODULES.html.sh (Core language properties): Mention it.
22396
22397         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22398         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22399         named alias for __attribute__((__unused__)).
22400         * lib/chown.c: Update client.
22401         * lib/fchmodat.c: Likewise.
22402         * lib/fts.c: Likewise.
22403         * lib/getdate.y: Likewise.
22404         * lib/getgroups.c: Likewise.
22405         * lib/getopt.c: Likewise.
22406         * lib/getugroups.c: Likewise.
22407         * lib/mkdir.c: Likewise.
22408         * lib/mkfifo.c: Likewise.
22409         * lib/mkfifoat.c: Likewise.
22410         * lib/mknod.c: Likewise.
22411         * lib/mknodat.c: Likewise.
22412         * lib/readlink.c: Likewise.
22413         * lib/se-context.in.h: Likewise.
22414         * lib/se-selinux.in.h: Likewise.
22415         * lib/sockets.c: Likewise.
22416         * lib/symlink.c: Likewise.
22417         * lib/symlinkat.c: Likewise.
22418         * lib/unicodeio.c: Likewise.
22419         * lib/unistr.h: Likewise.
22420         * tests/test-areadlink.c: Likewise.
22421         * tests/test-areadlinkat.c: Likewise.
22422         * tests/test-filenamecat.c: Likewise.
22423         * tests/test-fseeko.c: Likewise.
22424         * tests/test-ftello.c: Likewise.
22425         * tests/test-getdate.c: Likewise.
22426         * tests/test-getgroups.c: Likewise.
22427         * tests/test-gethostname.c: Likewise.
22428         * tests/test-quotearg.c: Likewise.
22429         * tests/test-version-etc.c: Likewise.
22430         * tests/test-xalloc-die.c: Likewise.
22431         * tests/test-xfprintf-posix.c: Likewise.
22432         * tests/test-xprintf-posix.c: Likewise.
22433         * tests/test-xvasprintf.c: Likewise.
22434
22435         tests: avoid compiler warnings
22436         * tests/test-fcntl.c (main): Delete unused parameters.
22437         * tests/test-freopen-safer.c (main): Likewise.
22438         * tests/test-xalloc-die.c (main): Mark unused parameters.
22439         * tests/test-fseeko.c (main): Likewise.
22440         * tests/test-ftello.c (main): Likewise.
22441         * tests/test-nanosleep.c (main): Avoid declaration warning.
22442         * tests/test-sleep.c (main): Likewise.
22443         * tests/test-unsetenv.c (main): Silence warning about string
22444         literal.
22445         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22446
22447 2009-12-23  Bruno Haible  <bruno@clisp.org>
22448
22449         * tests/test-localename.c (test_locale_name): New function, extracted
22450         from main. Also test mixed situations.
22451         (test_locale_name_posix, test_locale_name_environ,
22452         test_locale_name_default): New functions.
22453         (main): Invoke them all.
22454         * modules/localename-tests (configure.ac): Test for newlocale.
22455
22456 2009-12-23  Bruno Haible  <bruno@clisp.org>
22457
22458         unistd: Ensure getcwd gets declared before being overridden.
22459         * lib/unistd.in.h: Conditionally include <io.h>.
22460
22461 2009-12-22  Bruno Haible  <bruno@clisp.org>
22462
22463         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22464         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22465         (gl_WCHAR_H): Invoke it.
22466         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22467         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22468         Reported by Karl Berry <karl@freefriends.org>.
22469
22470 2009-12-22  Eric Blake  <ebb9@byu.net>
22471
22472         math, unistd: avoid redundant includes
22473         * lib/math.in.h (isnan): No need to re-include <math.h>.
22474         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22475
22476         getsubopt: work around cygwin bug
22477         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22478         avoid conflicting with system getsubopt.
22479         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22480         bug.
22481
22482         getopt: synchronize from glibc
22483         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22484         parameter order.  Adjust all callers.
22485         (_getopt_internal_r, main): Adjust quoting in error messages.
22486         Drop considerations for outdated POSIX 1003.2 error message.
22487         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22488         callers.
22489         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22490
22491         test-getopt: test stderr behavior
22492         * modules/getopt-posix-tests (Depends-on): Add dup2.
22493         * tests/test-getopt.c (ASSERT): Avoid stderr.
22494         (main): Move stderr to a temporary file.
22495         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22496         Instead, add parameter to inform caller if output occurred.
22497         (test_getopt): Adjust all existing tests to expect silence, and
22498         add new tests of leading ":".
22499         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22500         glibc shortcomings with leading "-:" or "+:" in optstring.
22501         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22502         Likewise.
22503         * doc/posix-functions/getopt.texi (getopt): Likewise.
22504
22505         test-getopt: enhance test
22506         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22507         supports optind=0.
22508         * tests/test-getopt.c (OPTIND_MIN): Move...
22509         * tests/test-getopt.h (OPTIND_MIN): ...here.
22510         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22511         Require that optind=0 works, since modern BSD supports it in
22512         addition to optreset, and since coreutils expects it.
22513         (test_getopt_long_only): New test.
22514         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22515         glibc shortcomings with 'W;', and enforcement of optind=0.
22516         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22517         Likewise.
22518
22519 2009-12-21  Bruno Haible  <bruno@clisp.org>
22520
22521         localename: Improvements for MacOS X and Cygwin.
22522         * lib/localename.h (gl_locale_name_environ): New declaration.
22523         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22524         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22525         (gl_locale_name_posix): Invoke it.
22526         (gl_locale_name_default): Add comments. Use Windows native API also on
22527         Cygwin.
22528
22529 2009-12-21  Bruno Haible  <bruno@clisp.org>
22530
22531         Update list of Win32 locale ids.
22532         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22533         (LANG_SAMI): Renamed from LANG_SAAMI.
22534         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22535         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22536         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22537         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22538         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22539         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22540         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22541         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22542         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22543         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22544         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22545         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22546         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22547         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22548         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22549         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22550         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22551         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22552         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22553         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22554         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22555         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22556         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22557         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22558         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22559         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22560         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22561         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22562         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22563         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22564         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22565         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22566         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22567         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22568         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22569         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22570         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22571         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22572         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22573         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22574         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22575         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22576         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22577         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22578         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22579         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22580         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22581         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22582         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22583         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22584         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22585         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22586         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22587         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22588         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22589         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22590         Add more languages and countries for Sami, Sorbian. Add more countries
22591         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22592         for Pashto. Change country for Syriac, Tswana.
22593
22594 2009-12-21  Eric Blake  <ebb9@byu.net>
22595
22596         test-utimens: avoid spurious failure
22597         * tests/test-chown.h (nap): Factor...
22598         * tests/nap.h: ...into new file.
22599         * tests/test-lchown.h (nap): Avoid duplication.
22600         * tests/test-utimens-common.h (nap): Use shared implementation,
22601         necessary on file systems with 1-second resolution.
22602         * modules/chown-tests (Files): Include new file.
22603         * modules/fdutimensat-tests (Files): Likewise.
22604         * modules/futimens-tests (Files): Likewise.
22605         * modules/lchown-tests (Files): Likewise.
22606         * modules/openat-tests (Files): Likewise.
22607         * modules/utimens-tests (Files): Likewise.
22608         * modules/utimensat-tests (Files): Likewise.
22609
22610 2009-12-19  Eric Blake  <ebb9@byu.net>
22611
22612         futimens, utimensat: work around Linux bug
22613         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22614         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22615         * lib/utimensat.c (rpl_utimensat): Work around it.
22616         * lib/futimens.c (rpl_futimens): Adjust comment.
22617
22618         utimens: work around Linux ctime bug
22619         * lib/utimens.c (detect_ctime_bug): New helper function.
22620         (update_timespec): Differentiate between workaround needed for
22621         this bug vs. what is needed for systems that lack utimensat.
22622         (fdutimens, lutimens): Work around bug.
22623
22624         utimens: check for ctime update
22625         * tests/test-utimens-common.h (check_ctime): Define.
22626         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22627         * tests/test-futimens.h (test_futimens): Likewise.
22628         * tests/test-lutimens.h (test_lutimens): Likewise.
22629         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22630         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22631
22632 2009-12-19  Bruno Haible  <bruno@clisp.org>
22633
22634         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22635         * tests/test-dprintf-posix2.sh: New file.
22636         * tests/test-dprintf-posix2.c: New file.
22637         * modules/dprintf-posix-tests (Files): Add them.
22638         (configure.ac): Check for getrlimit and setrlimit.
22639         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22640
22641 2009-12-19  Bruno Haible  <bruno@clisp.org>
22642
22643         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22644         * tests/test-fprintf-posix3.sh: New file.
22645         * tests/test-fprintf-posix3.c: New file.
22646         * modules/fprintf-posix-tests (Files): Add them.
22647         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22648
22649 2009-12-19  Eric Blake  <ebb9@byu.net>
22650
22651         dirfd: fix prototype
22652         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22653         * lib/dirfd.c (dirfd): Likewise.
22654
22655         canonicalize: reduce memory usage
22656         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22657         allocation to size.
22658         Reported by Solar Designer <solar@openwall.com>.
22659
22660 2009-12-19  Bruno Haible  <bruno@clisp.org>
22661
22662         New module attribute 'Applicability'.
22663         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22664         * gnulib-tool: New option --extract-applicability.
22665         (func_usage): Document it.
22666         (sed_extract_prog): Recognize it.
22667         (func_get_applicability): New function.
22668         (func_import): Generalize handling of 'link-warning' module.
22669         * modules/link-warning (Applicability): New section.
22670         * modules/arg-nonnull (Applicability): New section.
22671         Repoted by Simon Josefsson <simon@josefsson.org>.
22672
22673 2009-12-19  Bruno Haible  <bruno@clisp.org>
22674
22675         fflush: tweak
22676         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22677         * lib/fseeko.c (rpl_fseeko): Likewise.
22678
22679 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22680
22681         * lib/gl_list.h: Fix typo in comment.
22682
22683 2009-12-16  Eric Blake  <ebb9@byu.net>
22684
22685         fcntl: use to simplify other modules
22686         * modules/cloexec (Depends-on): Add fcntl.
22687         * modules/fchdir (Depends-on): Likewise.
22688         * modules/fd-safer-flag (Depends-on): Likewise.
22689         * modules/unistd-safer (Depends-on): Likewise.
22690         * modules/dup3 (configure.ac): Set module indicator.
22691         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22692         missing.
22693         * lib/fchdir.c (_gl_register_dup): Fix comment.
22694         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22695         * lib/dup-safer.c (dup_safer): Likewise.
22696         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22697         * lib/dup3.c (dup3): Likewise.
22698         * tests/test-fchdir.c (main): Enhance test.
22699         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22700
22701         fcntl: port portions of fcntl to mingw
22702         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22703         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22704         replacement for mingw.
22705         * modules/fcntl (Description): Update.
22706         (Depends-on): Add dup2.
22707         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22708         * modules/fcntl-h (Makefile.am): Substitute it.
22709         * lib/fcntl.in.h (fcntl): Update declaration.
22710         (F_DUPFD, F_GETFD): New macros, when needed.
22711         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22712         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22713         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22714         we now guarantee.
22715
22716         fcntl: work around cygwin bug in F_DUPFD
22717         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22718         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22719         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22720         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22721         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22722
22723         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22724         * modules/fcntl (Files): List new files.
22725         (configure.ac): Run a test.
22726         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22727         * lib/fcntl.c (rpl_fcntl): Likewise.
22728         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22729         (gl_FCNTL_H): Always replace fcntl.h.
22730         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22731         * lib/fcntl.in.h (fcntl): Declare replacement.
22732         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22733         needed, plus a witness.
22734         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22735         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22736         * tests/test-fcntl.c: New file.
22737         * modules/fcntl-tests: Likewise.
22738
22739         binary-io: avoid potential compilation warning
22740         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22741         directives.
22742
22743         fflush: avoid compilation error on NetBSD
22744         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22745         between off_t and fpos_t, since the latter is sometimes a struct.
22746         * lib/fseeko.c (rpl_fseeko): Likewise.
22747         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22748
22749 2009-12-15  Eric Blake  <ebb9@byu.net>
22750
22751         fcntl-h, stdio, sys_ioctl: fix declarations
22752         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22753         function must not take arguments.
22754         * lib/sys_ioctl.in.h (ioctl): Likewise.
22755         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22756         (open): Add a link warning.
22757
22758 2009-12-15  Jim Meyering  <meyering@redhat.com>
22759
22760         areadlink, areadlink-with-size: relax license to LGPLv2+
22761         * modules/areadlink (License): Relax to LGPLv2+.
22762         * modules/areadlink-with-size (License): Likewise.
22763
22764 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22765             Bruno Haible  <bruno@clisp.org>
22766
22767         *printf: Fix memory leak.
22768         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22769         * lib/vfprintf.c (vfprintf): Likewise.
22770         * lib/dprintf.c (dprintf): Likewise.
22771         * lib/vdprintf.c (vdprintf): Likewise.
22772
22773 2009-12-14  Eric Blake  <ebb9@byu.net>
22774
22775         accept4: adjust module dependencies
22776         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22777
22778         utimens: one more try at avoiding compiler warning
22779         * lib/utimens.c (lutimens): Lower scope of result.
22780
22781 2009-12-13  Bruno Haible  <bruno@clisp.org>
22782
22783         Move the malloc checking from module 'list' to new module 'xlist'.
22784         * modules/xlist: New file.
22785         * lib/gl_xlist.h: New file.
22786         * lib/gl_xlist.c: New file.
22787         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22788         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22789         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22790         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22791         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22792         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22793         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22794         gl_sortedlist_nx_add): New declarations.
22795         (struct gl_list_implementation): Rename and change methods accordingly.
22796         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22797         (gl_list_nx_create): Renamed from gl_list_create.
22798         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22799         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22800         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22801         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22802         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22803         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22804         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22805         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22806         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22807         gl_list_create_empty.
22808         (gl_list_nx_create): Renamed from gl_list_create.
22809         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22810         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22811         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22812         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22813         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22814         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22815         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22816         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22817         * lib/gl_array_list.c: Don't include xalloc.h.
22818         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22819         NULL upon out-of-memory.
22820         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22821         out-of-memory.
22822         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22823         Change return type to 'int'.
22824         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22825         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22826         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22827         upon out-of-memory.
22828         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22829         upon out-of-memory.
22830         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22831         upon out-of-memory.
22832         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22833         upon out-of-memory.
22834         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22835         out-of-memory.
22836         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22837         Update.
22838         (gl_array_list_implementation): Update.
22839         * lib/gl_carray_list.c: Don't include xalloc.h.
22840         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22841         Return NULL upon out-of-memory.
22842         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22843         out-of-memory.
22844         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22845         Change return type to 'int'.
22846         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22847         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22848         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22849         upon out-of-memory.
22850         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22851         upon out-of-memory.
22852         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22853         out-of-memory.
22854         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22855         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22856         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22857         Update.
22858         (gl_carray_list_implementation): Update.
22859         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22860         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22861         gl_linked_create_empty. Return NULL upon out-of-memory.
22862         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22863         out-of-memory.
22864         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22865         Change return type to 'int'. Return -1 upon out-of-memory.
22866         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22867         out-of-memory.
22868         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22869         upon out-of-memory.
22870         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22871         upon out-of-memory.
22872         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22873         NULL upon out-of-memory.
22874         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22875         upon out-of-memory.
22876         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22877         out-of-memory.
22878         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22879         Update.
22880         * lib/gl_linked_list.c: Don't include xalloc.h.
22881         (gl_linked_list_implementation): Update.
22882         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22883         (add_to_bucket): Change return type to 'int'.
22884         (gl_linkedhash_list_implementation): Update.
22885         * lib/gl_anytree_list1.h (free_subtree): New function.
22886         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22887         gl_tree_create_empty. Return NULL upon out-of-memory.
22888         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22889         Change return type to 'int'. Return -1 upon out-of-memory.
22890         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22891         out-of-memory.
22892         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22893         (gl_tree_remove_node): New function, moved here from
22894         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22895         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22896         Update.
22897         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22898         malloc, not xmalloc. Return NULL upon out-of-memory.
22899         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22900         out-of-memory.
22901         (gl_tree_remove_node_from_tree): New function, extracted from
22902         gl_tree_remove_node.
22903         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22904         upon out-of-memory.
22905         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22906         out-of-memory.
22907         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22908         upon out-of-memory.
22909         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22910         upon out-of-memory.
22911         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22912         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22913         not xmalloc. Return NULL upon out-of-memory.
22914         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22915         out-of-memory.
22916         (gl_tree_remove_node_from_tree): New function, extracted from
22917         gl_tree_remove_node.
22918         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22919         upon out-of-memory.
22920         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22921         out-of-memory.
22922         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22923         upon out-of-memory.
22924         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22925         upon out-of-memory.
22926         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22927         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22928         gl_anytree_list1.h before gl_anyavltree_list2.h.
22929         (gl_avltree_list_implementation): Update.
22930         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22931         gl_anytree_list1.h before gl_anyavltree_list2.h.
22932         (gl_rbtree_list_implementation): Update.
22933         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22934         Change return type to 'int'. Return -1 upon out-of-memory. Use
22935         __builtin_expect.
22936         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22937         (gl_avltreehash_list_implementation): Update.
22938         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22939         (gl_rbtreehash_list_implementation): Update.
22940         * modules/array-list (Depends-on): Remove xalloc.
22941         * modules/carray-list (Depends-on): Likewise.
22942         * modules/linked-list (Depends-on): Likewise.
22943         * modules/linkedhash-list (Depends-on): Likewise.
22944         * modules/avltree-list (Depends-on): Likewise.
22945         * modules/rbtree-list (Depends-on): Likewise.
22946         * modules/avltreehash-list (Depends-on): Likewise.
22947         * modules/rbtreehash-list (Depends-on): Likewise.
22948
22949         * modules/xsublist: New file.
22950         * lib/gl_xsublist.h: New file.
22951         * lib/gl_xsublist.c: New file.
22952         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22953         (gl_sublist_nx_create): New declaration.
22954         * lib/gl_sublist.c: Don't include xalloc.h.
22955         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22956         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22957         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22958         Change return type to 'int'. Return -1 upon out-of-memory.
22959         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22960         upon out-of-memory.
22961         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22962         NULL upon out-of-memory.
22963         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22964         upon out-of-memory.
22965         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22966         NULL upon out-of-memory.
22967         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22968         NULL upon out-of-memory.
22969         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22970         upon out-of-memory.
22971         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22972         (gl_sublist_list_implementation): Update.
22973         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22974         upon out-of-memory.
22975         * modules/sublist (Depends-on): Remove xalloc.
22976
22977         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22978         * tests/test-carray_list.c: Likewise.
22979         * tests/test-linked_list.c: Likewise.
22980         * tests/test-linkedhash_list.c: Likewise.
22981         * tests/test-avltree_list.c: Likewise.
22982         * tests/test-rbtree_list.c: Likewise.
22983         * tests/test-avltreehash_list.c: Likewise.
22984         * tests/test-rbtreehash_list.c: Likewise.
22985         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22986         * modules/carray-list-tests (Makefile.am): Likewise.
22987         * modules/linked-list-tests (Makefile.am): Likewise.
22988         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22989         * modules/avltree-list-tests (Makefile.am): Likewise.
22990         * modules/rbtree-list-tests (Makefile.am): Likewise.
22991         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22992         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22993
22994         * NEWS: Mention the changes.
22995
22996         * lib/clean-temp.c: Include gl_xlist.h.
22997         * modules/clean-temp (Depends-on): Add xlist.
22998
22999         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
23000         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
23001
23002         * tests/test-array_oset.c: Include gl_xlist.h.
23003         * modules/array-oset-tests (Depends-on): Add xlist.
23004
23005         Reported by José E. Marchesi <jemarch@gnu.org>.
23006
23007 2009-12-13  Bruno Haible  <bruno@clisp.org>
23008
23009         Move the malloc checking from module 'oset' to new module 'xoset'.
23010         * modules/xoset: New file.
23011         * lib/gl_xoset.h: New file.
23012         * lib/gl_xoset.c: New file.
23013         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
23014         declarations.
23015         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
23016         (struct gl_oset_implementation): Rename and change methods accordingly.
23017         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
23018         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23019         'int'. Mark as __warn_unused_result__.
23020         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
23021         gl_oset_create_empty.
23022         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
23023         'int'.
23024         * lib/gl_array_oset.c: Don't include xalloc.h.
23025         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
23026         malloc, not xmalloc.
23027         (grow): Change return type to 'int'. Don't call xalloc_die.
23028         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
23029         to 'int'.
23030         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
23031         'int'.
23032         (gl_array_oset_implementation): Update.
23033         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
23034         gl_tree_create_empty.
23035         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
23036         'int'.
23037         * lib/gl_avltree_oset.c: Don't include xalloc.h.
23038         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23039         xmalloc.
23040         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23041         not xmalloc.
23042         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23043         xmalloc.
23044         (gl_avltree_oset_implementation): Update.
23045         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
23046         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
23047         xmalloc.
23048         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
23049         not xmalloc.
23050         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
23051         xmalloc.
23052         (gl_rbtree_oset_implementation): Update.
23053         * modules/array-oset (Depends-on): Remove xalloc.
23054         * modules/avltree-oset (Depends-on): Likewise.
23055         * modules/rbtree-oset (Depends-on): Likewise.
23056         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
23057         * tests/test-avltree_oset.c: Likewise.
23058         * tests/test-rbtree_oset.c: Likewise.
23059         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
23060         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
23061         * modules/rbtree-oset-tests (Makefile.am): Likewise.
23062         * NEWS: Mention the change.
23063
23064 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
23065
23066         maint.mk: allow a project to override release-prep commands
23067         * top/maint.mk (alpha, beta, stable): Move release-preparatory
23068         commands into a new rule.
23069         (release-prep): New rule.
23070         (release-prep-hook): New overridable variable.
23071
23072 2009-12-13  Bruno Haible  <bruno@clisp.org>
23073
23074         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
23075
23076 2009-12-13  Jim Meyering  <meyering@redhat.com>
23077
23078         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
23079         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
23080
23081 2009-12-12  Bruno Haible  <bruno@clisp.org>
23082
23083         duplocale: Tweak.
23084         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
23085
23086 2009-12-12  Karl Berry  <karl@gnu.org>
23087
23088         * config/srclist.txt (strtoll.c): tab changes, no more sync.
23089
23090 2009-12-12  Bruno Haible  <bruno@clisp.org>
23091
23092         * m4/po.m4: Undo incorrect untabification.
23093
23094 2009-12-12  Bruno Haible  <bruno@clisp.org>
23095
23096         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
23097         * modules/c-strtod (Depends-on): Add locale.
23098         * modules/c-strtold (Depends-on): Likewise.
23099
23100 2009-12-12  Bruno Haible  <bruno@clisp.org>
23101
23102         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
23103
23104 2009-12-11  Eric Blake  <ebb9@byu.net>
23105
23106         setenv: relax requirement in light of POSIX ruling
23107         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
23108         not NULL.
23109         * tests/test-setenv.c (main): Relax test.
23110         * tests/test-unsetenv.c (main): Likewise.
23111         * doc/posix-functions/setenv.texi (setenv): Document this.
23112         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23113
23114 2009-12-11  Bruno Haible  <bruno@clisp.org>
23115
23116         New module 'fd-safer-flag'.
23117         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
23118         * lib/dup-safer.c (dup_safer_flag): Remove function.
23119         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
23120         * lib/fd-safer.c (fd_safer_flag): Remove function.
23121         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
23122         * modules/cloexec (configure.ac): Drop indicator macro.
23123         * modules/fd-safer-flag: New file.
23124         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
23125         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
23126         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
23127
23128 2009-12-11  Bruno Haible  <bruno@clisp.org>
23129
23130         Tests for module 'nl_langinfo'.
23131         * modules/nl_langinfo-tests: New file.
23132         * tests/test-nl_langinfo.sh: New file.
23133         * tests/test-nl_langinfo.c: New file.
23134
23135         New module 'nl_langinfo'.
23136         * lib/nl_langinfo.c: New file.
23137         * m4/nl_langinfo.m4: New file.
23138         * modules/nl_langinfo: New file.
23139         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
23140
23141 2009-12-11  Bruno Haible  <bruno@clisp.org>
23142
23143         Tests for module 'langinfo'.
23144         * modules/langinfo-tests: New file.
23145         * tests/test-langinfo.c: New file.
23146
23147         New module 'langinfo'.
23148         * lib/langinfo.in.h: New file.
23149         * m4/langinfo_h.m4: New file.
23150         * modules/langinfo: New file.
23151         * doc/posix-headers/langinfo.texi: Mention the new module.
23152
23153 2009-12-11  Bruno Haible  <bruno@clisp.org>
23154
23155         * lib/config.charset: Untabify.
23156
23157 2009-12-11  Bruno Haible  <bruno@clisp.org>
23158
23159         * modules/unistd-safer (configure.ac): Drop indicator macro.
23160
23161 2009-12-11  Bruno Haible  <bruno@clisp.org>
23162
23163         Move pipe2-safer code to its own file.
23164         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
23165         * lib/pipe-safer.c (pipe2_safer): Remove function.
23166         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
23167         (Makefile.am): Add it to lib_SOURCES.
23168
23169 2009-12-10  Bruno Haible  <bruno@clisp.org>
23170
23171         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
23172
23173 2009-12-10  Bruno Haible  <bruno@clisp.org>
23174
23175         Declare which arguments expect non-NULL values, for GCC and clang.
23176         * build-aux/arg-nonnull.h: New file.
23177         * modules/arg-nonnull: New file.
23178         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
23179         (inet_ntop, inet_pton): Use it.
23180         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
23181         (closedir, dirfd, opendir, scandir, alphasort): Use it.
23182         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
23183         (open, openat): Use it.
23184         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
23185         (fnmatch): Use it.
23186         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
23187         (getopt, getopt_long, getopt_long_only): Use it.
23188         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
23189         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
23190         Use it.
23191         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
23192         (iconv_open): Use it.
23193         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
23194         (strtoimax, strtoumax): Use it.
23195         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
23196         (duplocale): Use it.
23197         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
23198         (frexp, frexpl): Use it.
23199         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
23200         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
23201         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
23202         (tsearch, tfind, tdelete, twalk): Use it.
23203         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
23204         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23205         sigpending): Use it.
23206         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
23207         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23208         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23209         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23210         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23211         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23212         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23213         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23214         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23215         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23216         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23217         Use it.
23218         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23219         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23220         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23221         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23222         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23223         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23224         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23225         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23226         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23227         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23228         strtoull, unsetenv): Use it.
23229         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23230         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23231         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23232         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23233         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23234         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23235         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23236         (strcasecmp, strncasecmp): Use it.
23237         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23238         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23239         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23240         rpl_setsockopt): Use it.
23241         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23242         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23243         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23244         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23245         (gettimeofday): Use it.
23246         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23247         (times): Use it.
23248         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23249         (uname): Use it.
23250         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23251         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23252         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23253         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23254         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23255         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23256         unlinkat, write): Use it.
23257         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23258         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23259         * lib/argv-iter.h: Include arg-nonnull.h.
23260         (_ATTRIBUTE_NONNULL_): Remove macro.
23261         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23262         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23263         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23264         optimization.
23265         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23266         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23267         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23268         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23269         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23270         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23271         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23272         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23273         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23274         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23275         * modules/dirent (Depends-on): Add arg-nonnull.
23276         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23277         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23278         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23279         * modules/fnmatch (Depends-on): Add arg-nonnull.
23280         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23281         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23282         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23283         * modules/glob (Depends-on): Add arg-nonnull.
23284         (Makefile.am): Insert arg-nonnull.h into glob.h.
23285         * modules/iconv_open (Depends-on): Add arg-nonnull.
23286         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23287         * modules/inttypes (Depends-on): Add arg-nonnull.
23288         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23289         * modules/locale (Depends-on): Add arg-nonnull.
23290         (Makefile.am): Insert arg-nonnull.h into locale.h.
23291         * modules/math (Depends-on): Add arg-nonnull.
23292         (Makefile.am): Insert arg-nonnull.h into math.h.
23293         * modules/netdb (Depends-on): Add arg-nonnull.
23294         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23295         * modules/search (Depends-on): Add arg-nonnull.
23296         (Makefile.am): Insert arg-nonnull.h into search.h.
23297         * modules/signal (Depends-on): Add arg-nonnull.
23298         (Makefile.am): Insert arg-nonnull.h into signal.h.
23299         * modules/spawn (Depends-on): Add arg-nonnull.
23300         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23301         * modules/stdio (Depends-on): Add arg-nonnull.
23302         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23303         * modules/stdlib (Depends-on): Add arg-nonnull.
23304         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23305         * modules/string (Depends-on): Add arg-nonnull.
23306         (Makefile.am): Insert arg-nonnull.h into string.h.
23307         * modules/strings (Depends-on): Add arg-nonnull.
23308         (Makefile.am): Insert arg-nonnull.h into strings.h.
23309         * modules/sys_socket (Depends-on): Add arg-nonnull.
23310         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23311         * modules/sys_stat (Depends-on): Add arg-nonnull.
23312         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23313         * modules/sys_time (Depends-on): Add arg-nonnull.
23314         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23315         * modules/sys_times (Depends-on): Add arg-nonnull.
23316         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23317         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23318         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23319         * modules/time (Depends-on): Add arg-nonnull.
23320         (Makefile.am): Insert arg-nonnull.h into time.h.
23321         * modules/unistd (Depends-on): Add arg-nonnull.
23322         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23323         * modules/wchar (Depends-on): Add arg-nonnull.
23324         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23325         * modules/argv-iter (Depends-on): Add arg-nonnull.
23326         * tests/test-canonicalize.c (null_ptr): New function.
23327         (main): Use it.
23328         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23329         (main): Use it.
23330         * tests/test-memmem.c (null_ptr): New function.
23331         (main): Use it.
23332         Reported by Jim Meyering.
23333
23334 2009-12-10  Bruno Haible  <bruno@clisp.org>
23335
23336         Use spaces for indentation, not tabs.
23337         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23338         * m4/*.m4: Untabify.
23339         * build-aux/*.h: Untabify.
23340         * tests/**/*.[hc]: Untabify.
23341         * README: New section "Indent with spaces, not TABs", based on
23342         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23343         * NEWS: Mention the change.
23344
23345 2009-12-10  Bruno Haible  <bruno@clisp.org>
23346
23347         pty test: Fix link error.
23348         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23349         test_pty_LDADD.
23350
23351 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23352
23353         * modules/pty: New file.
23354         * modules/pty-tests: New file.
23355         * m4/pty.m4: New file.
23356         * tests/test-pty.c: New file.
23357         * doc/glibc-headers/pty.texi: Modified.
23358         * doc/glibc-functions/forkpty.texi: Modified.
23359         * doc/glibc-functions/openpty.texi: Modified.
23360
23361 2009-12-10  Bruno Haible  <bruno@clisp.org>
23362
23363         Avoid syntax error in C++ mode.
23364         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23365
23366 2009-12-10  Bruno Haible  <bruno@clisp.org>
23367
23368         Use sed with option -e.
23369         * gnulib-tool (func_version, func_emit_copyright_notice,
23370         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23371         option -e to sed.
23372         * modules/link-warning (Makefile.am): Likewise.
23373
23374 2009-12-10  Jim Meyering  <meyering@redhat.com>
23375
23376         mgetgroups: do not write bytes beyond end of malloc'd buffer
23377         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23378         username, we call getgroups with a one-element-shorter buffer,
23379         but still told it the length was original, max_n_groups.
23380
23381 2009-12-09  Eric Blake  <ebb9@byu.net>
23382
23383         cloexec: relax license
23384         * modules/cloexec (Maintainer): Add myself.
23385         (License): Use LGPL, not GPL.
23386
23387         link-warning: optimize generation
23388         * modules/link-warning (Makefile.am): Reduce process usage.
23389
23390 2009-12-09  Bruno Haible  <bruno@clisp.org>
23391
23392         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23393         workaround was added on 2009-11-17.
23394
23395 2009-12-09  Jim Meyering  <meyering@redhat.com>
23396             Bruno Haible  <bruno@clisp.org>
23397
23398         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23399         * modules/link-warning (Makefile.am): Make the comment-removing sed
23400         command more robust in the face of bootstrap-prepended comment lines.
23401
23402 2009-12-09  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23405         most one group.
23406
23407 2009-12-09  Simon Josefsson <simon@josefsson.org>
23408             Bruno Haible  <bruno@clisp.org>
23409
23410         * build-aux/link-warning.h: Add copyright notice.
23411         * modules/link-warning (Makefile.am): Generate link-warning.h from
23412         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23413         * NEWS: Mention change in link-warning module.
23414         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23415         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23416         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23417         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23418         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23419         * modules/math (Makefile.am): Add dependency to math.h.
23420         * modules/search (Makefile.am): Add dependency to search.h.
23421         * modules/signal (Makefile.am): Add dependency to signal.h.
23422         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23423         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23424         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23425         * modules/string (Makefile.am): Add dependency to string.h.
23426         * modules/strings (Makefile.am): Add dependency to strings.h.
23427         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23428         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23429         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23430         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23431         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23432         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23433         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23434         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23435         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23436
23437 2009-12-09  Bruno Haible  <bruno@clisp.org>
23438
23439         fchdir: Optimize away rpl_fstat when possible.
23440         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23441         REPLACE_OPEN_DIRECTORY.
23442         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23443
23444 2009-12-09  Bruno Haible  <bruno@clisp.org>
23445
23446         * lib/fchdir.c: Update comment.
23447
23448 2009-12-09  Bruno Haible  <bruno@clisp.org>
23449
23450         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23451
23452 2009-12-08  Eric Blake  <ebb9@byu.net>
23453
23454         fchdir: avoid memory leak on re-registration.
23455         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23456
23457 2009-12-08  Jim Meyering  <meyering@redhat.com>
23458
23459         init.sh: avoid Solaris 10 /bin/sh portability problem
23460         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23461         sourced script:
23462           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23463           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23464           bar
23465         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23466         and two tests used that idiom.
23467         * tests/init.sh: Update suggested usage comments.
23468         (path_prepend_): New function, to be used in place
23469         of the --src-path=DIR option.
23470         (setup_): Move PATH-prepending code into path_prepend_.
23471         * tests/test-pread.sh: Adapt to new usage.
23472         * tests/test-xalloc-die.sh: Likewise.
23473
23474 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23475
23476         * doc/gnulib.texi (Glibc pty.h): Add.
23477         * doc/glibc-functions/forkpty.texi: Add.
23478         * doc/glibc-functions/openpty.texi: Add.
23479         Suggested by Bruno Haible.
23480
23481 2009-12-08  Eric Blake  <ebb9@byu.net>
23482
23483         fchdir: fix logic bugs
23484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23485         * tests/test-fchdir.c (main): Enhance test.
23486         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23487         is in use.
23488
23489         dup2: fix logic bugs
23490         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23491         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23492         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23493         exists.
23494         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23495
23496 2009-12-07  Eric Blake  <ebb9@byu.net>
23497
23498         unlink: fix m4 detection
23499         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23500
23501         unistd-safer: add unit test
23502         * modules/unistd-safer-tests: New file.
23503         * tests/test-dup-safer.c: Likewise.
23504         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23505         * tests/test-dup2.c (setmode): Likewise.
23506         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23507
23508         cloexec: preserve text vs. binary across dup_cloexec
23509         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23510         mode.
23511         * modules/dup2-tests (Depends-on): Add binary-io.
23512         * modules/cloexec-tests (Depends-on): Likewise.
23513         * tests/test-dup2.c (setmode, is_mode): New helpers.
23514         (main): Add tests that translation mode is preserved.
23515         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23516         Reported by Bruno Haible.
23517
23518         mgetgroups: reduce duplicate listings
23519         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23520         resulting array.
23521         * tests/test-chown.h (test_chown): Simplify client.
23522         * tests/test-lchown.h (test_lchown): Likewise.
23523
23524 2009-12-06  Bruno Haible  <bruno@clisp.org>
23525
23526         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23527         value.
23528
23529 2009-12-06  Bruno Haible  <bruno@clisp.org>
23530
23531         * lib/progname.c: Include stdio.h, stdlib.h.
23532         (set_program_name): Reject a NULL argument.
23533
23534 2009-12-05  Eric Blake  <ebb9@byu.net>
23535
23536         pipe2-safer: new module
23537         * modules/pipe2-safer: New file.
23538         * lib/unistd-safer.h (pipe2_safer): New prototype.
23539         * lib/unistd--.h (pipe2): New wrapper.
23540         * lib/pipe-safer.c (pipe2_safer): New function.
23541         * modules/pipe (Depends-on): Add pipe2-safer.
23542         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23543
23544         stdlib-safer: preserve cloexec flag for mkostemp[s]
23545         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23546         fd_safer_flag.
23547
23548         unistd-safer: allow preservation of cloexec status via flag
23549         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23550         prototypes.
23551         * lib/dup-safer.c (dup_safer_flag): New function.
23552         * lib/fd-safer.c (fd_safer_flag): Likewise.
23553         * modules/cloexec (configure.ac): Set witness.
23554
23555         test-dup2: enhance test
23556         * modules/dup2-tests (Depends-on): Add cloexec.
23557         * tests/test-dup2.c (main): Enhance test.
23558
23559         cloexec: add dup_cloexec
23560         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23561         header and comments.
23562         * lib/cloexec.c (set_cloexec_flag): Add comments.
23563         (dup_cloexec): New function, with mingw implementation borrowed
23564         from...
23565         * lib/w32spawn.h (dup_noinherit): ...here.
23566         * modules/execute (Depends-on): Add cloexec.
23567         * modules/pipe (Depends-on): Likewise.
23568         * modules/cloexec (Depends-on): Add dup2.
23569         * modules/cloexec-tests (Files): New file.
23570         * tests/test-cloexec.c: Likewise.
23571
23572         test-xalloc-die: fix test for mingw
23573         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23574         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23575         directory and .exe suffix off argv[0] output.
23576
23577         test-fseeko: fix test for mingw
23578         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23579         than undefining fseek, so test will pass on mingw.
23580
23581 2009-12-05  Bruno Haible  <bruno@clisp.org>
23582
23583         * lib/progname.h (set_program_name): Clarify specification.
23584         * lib/progname.c (set_program_name): Likewise.
23585         Reported by Jim Meyering.
23586
23587 2009-12-05  Jim Meyering  <meyering@redhat.com>
23588
23589         maint.mk: backslash-escape parens in default regexp
23590         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23591         backslash-escape the literal parentheses.
23592
23593         maint.mk: news-date-check: use grep -E
23594         * top/maint.mk (today): Define a Make variable, not a...
23595         (news-date-check): ...shell variable.
23596         (news-date-regexp): Use the Make variable.
23597         Use grep's -E option.  Change the failing diagnostic to mention
23598         the variable, $(news-date-regexp).
23599
23600 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23601
23602         maintainer-makefile: allow customization of NEWS entry format
23603         * top/maint.mk (news-date-regexp): New overridable variable.
23604         (news-date-check): Use it.
23605
23606 2009-12-04  Eric Blake  <ebb9@byu.net>
23607
23608         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23609         * lib/mgetgroups.h (xgetgroups): New prototype.
23610         * lib/mgetgroups.c (xgetgroups): New wrapper.
23611         (mgetgroups): Handle ENOSYS.
23612         * modules/mgetgroups (Depends-on): Add realloc.
23613         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23614
23615         mgetgroups: avoid argument promotion issues with -1
23616         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23617         for invalid gid_t.
23618         * tests/test-chown.h (getegid, test_chown): Likewise.
23619         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23620
23621 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23622
23623         exclude: Fix header file problems.
23624         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23625
23626 2009-12-01  Jim Meyering  <meyering@redhat.com>
23627
23628         fts: fts_open: do not let an empty string cause immediate failure
23629         This is required in support of GNU rm, for which the command
23630         "rm A '' B" must process and remove both A and B, in spite of
23631         the empty string argument.
23632         * lib/fts.c (fts_open): Do not let the presence of an empty string
23633         cause fts_open to fail immediately.  Most fts-using tools must be
23634         able to process all arguments, in order, and can be expected to
23635         diagnose such arguments themselves.
23636
23637 2009-11-30  Eric Blake  <ebb9@byu.net>
23638
23639         utimens: fix compilation error
23640         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23641         Declare variable at right scope.
23642
23643 2009-11-29  Jim Meyering  <meyering@redhat.com>
23644
23645         bootstrap: handle perl-5.11's changed --version output
23646         * build-aux/bootstrap (get_version): Handle perl separately,
23647         since perl-5.11's --version output is different.
23648
23649 2009-11-28  Jim Meyering  <meyering@redhat.com>
23650
23651         userspec: depend on the inttostr module, too
23652         * modules/userspec (Depends-on): Add inttostr.
23653
23654         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23655         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23656         number of MAXUID when it evaluates to (uid_t) -1.
23657         Likewise for group ID.  Reported by Matt McCutchen in
23658         <http://savannah.gnu.org/bugs/?28113>
23659
23660         userspec: reformat to use spaces, not TABs
23661         * lib/userspec.c: Expand TABs to spaces.
23662         Add Emacs' "indent-tabs-mode: nil" hint.
23663
23664 2009-11-27  Eric Blake  <ebb9@byu.net>
23665
23666         getopt-gnu: flush out another BSD bug
23667         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23668         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23669         flush out BSD bug.
23670         * tests/test-getopt.h (test_getopt): End lists with NULL.
23671         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23672         (test_getopt_long_posix): Enhance test.
23673         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23674         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23675         getopt-gnu.
23676         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23677         Likewise.
23678
23679 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23680
23681         * modules/idpriv-droptemp-tests (Notice): Fix text.
23682
23683 2009-11-27  Jim Meyering  <meyering@redhat.com>
23684
23685         test-xalloc-die: avoid spurious failure due to libtool argv difference
23686         In a libtool-enabled project, this test would fail due to a difference
23687         in the emitted program name, e.g.,
23688         -test-xalloc-die: memory exhausted
23689         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23690         Use program to avoid that.
23691         * modules/xalloc-die-tests (Depends-on): Add progname.
23692         * tests/test-xalloc-die.c: Include progname.h".
23693         (program_name): Remove decl.
23694         (main): Call set_program_name.
23695         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23696
23697 2009-11-26  Richard Jones  <rjones@redhat.com>
23698
23699         w32sock: leave win32 error in place.
23700         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23701
23702 2009-11-26  Eric Blake  <ebb9@byu.net>
23703
23704         init.sh: suggest to use skip_ and fail_ functions in comments
23705         * tests/init.sh: Add a sentence.
23706
23707 2009-11-25  Bruno Haible  <bruno@clisp.org>
23708
23709         init.sh: add documentation in comments
23710         * tests/init.sh: Add some developer and user documentation.
23711
23712 2009-11-26  Jim Meyering  <meyering@redhat.com>
23713
23714         init.sh: accommodate even those who specify bogus srcdir manually
23715         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23716         configure-time tests to be sanitized, so that there is no need to
23717         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23718         (with no double quotes) suffices.  However, since tests may be
23719         invoked manually, and since you may explicitly set srcdir to the
23720         name of a directory containing spaces, do quote its uses here.
23721         * tests/test-pread.sh: Likewise.
23722         Suggested by Bruno Haible.
23723
23724         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23725         * tests/test-pread.sh: Write no data into the pipe, because
23726         test-pread actually reads none.  This avoids a diagnostic,
23727         "bash: echo: write error: Broken pipe", that arises in the unusual
23728         event something is ignoring SIGPIPE, and might be interpreted
23729         as some sort of failure.  Reported by Bruno Haible.
23730
23731 2009-11-25  Jim Meyering  <meyering@redhat.com>
23732
23733         test-pread: cover failure with ESPIPE and EINVAL
23734         * tests/test-pread.c (main): Test for failure, too.
23735         * tests/test-pread.sh: Invoke with stdin on a pipe.
23736         Suggested by Eric Blake.
23737
23738         pread: improvement and fix
23739         * modules/pread (Depends-on): Depend on lseek, for portability to
23740         e.g., mingw.  Suggested by Eric Blake.
23741         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23742
23743         unistd.in.h: correct declaration of pread
23744         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23745         Reported by Richard W.M. Jones.
23746
23747         test-pread.sh: distribute the test script
23748         * modules/pread-tests (Files): Include test-pread.sh.
23749
23750         test-pread.sh: clean up
23751         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23752         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23753         That is unnecessary, since it's always ".".
23754         Suggestion from Eric Blake.
23755
23756         test-pread.sh: make executable
23757         * tests/test-pread.sh: Set executable bit.
23758         Reported by Eric Blake.
23759
23760         correct typo in test-pread.sh
23761         * tests/test-pread.sh: Add #! line.
23762
23763         test pread
23764         * tests/test-pread.c: New file.
23765         * tests/test-pread.sh: Likewise.
23766         * modules/pread-tests: Likewise.
23767
23768         pread: new module
23769         * modules/pread: New file.
23770         * lib/unistd.in.h (pread): Define/declare.
23771         * lib/pread.c (pread): New file.
23772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23773         * modules/unistd (Makefile.am): Substitute witnesses.
23774         * doc/posix-functions/pread.texi (pread): Update.
23775         * MODULES.html.sh: Add pread.
23776
23777 2009-11-25  Jim Meyering  <meyering@redhat.com>
23778
23779         tests/init.sh: new file to be used via most *.sh tests
23780         * tests/init.sh: New file.
23781
23782 2009-11-25  Eric Blake  <ebb9@byu.net>
23783
23784         utimens: work around older Linux failure with symlinks
23785         * lib/utimens.c (lutimensat_works_really): New variable.
23786         (fdutimens, lutimens): Use it to manage kernels that support
23787         nanosecond times on files, but not on symlinks.
23788         Reported by OndÅ™ej Vašík.
23789
23790         utimes: fix configure grammar
23791         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23792
23793 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23794
23795         regex: Fix fastmap for multibyte character ranges.
23796         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23797         characters when a multibyte character range is included.
23798
23799 2009-11-22  Andy Wingo  <wingo@pobox.com>
23800
23801         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23802         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23803
23804 2009-11-24  Bruno Haible  <bruno@clisp.org>
23805
23806         doc: Most *_l functions exist in MacOS X 10.5.
23807         * doc/posix-functions/duplocale.texi: Update platforms list.
23808         * doc/posix-functions/freelocale.texi: Likewise.
23809         * doc/posix-functions/newlocale.texi: Likewise.
23810         * doc/posix-functions/uselocale.texi: Likewise.
23811         * doc/posix-functions/isalnum_l.texi: Likewise.
23812         * doc/posix-functions/isalpha_l.texi: Likewise.
23813         * doc/posix-functions/isblank_l.texi: Likewise.
23814         * doc/posix-functions/iscntrl_l.texi: Likewise.
23815         * doc/posix-functions/isdigit_l.texi: Likewise.
23816         * doc/posix-functions/isgraph_l.texi: Likewise.
23817         * doc/posix-functions/islower_l.texi: Likewise.
23818         * doc/posix-functions/isprint_l.texi: Likewise.
23819         * doc/posix-functions/ispunct_l.texi: Likewise.
23820         * doc/posix-functions/isspace_l.texi: Likewise.
23821         * doc/posix-functions/isupper_l.texi: Likewise.
23822         * doc/posix-functions/iswalnum_l.texi: Likewise.
23823         * doc/posix-functions/iswalpha_l.texi: Likewise.
23824         * doc/posix-functions/iswblank_l.texi: Likewise.
23825         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23826         * doc/posix-functions/iswctype_l.texi: Likewise.
23827         * doc/posix-functions/iswdigit_l.texi: Likewise.
23828         * doc/posix-functions/iswgraph_l.texi: Likewise.
23829         * doc/posix-functions/iswlower_l.texi: Likewise.
23830         * doc/posix-functions/iswprint_l.texi: Likewise.
23831         * doc/posix-functions/iswpunct_l.texi: Likewise.
23832         * doc/posix-functions/iswspace_l.texi: Likewise.
23833         * doc/posix-functions/iswupper_l.texi: Likewise.
23834         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23835         * doc/posix-functions/isxdigit_l.texi: Likewise.
23836         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23837         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23838         * doc/posix-functions/strcoll_l.texi: Likewise.
23839         * doc/posix-functions/strfmon_l.texi: Likewise.
23840         * doc/posix-functions/strftime_l.texi: Likewise.
23841         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23842         * doc/posix-functions/strxfrm_l.texi: Likewise.
23843         * doc/posix-functions/tolower_l.texi: Likewise.
23844         * doc/posix-functions/toupper_l.texi: Likewise.
23845         * doc/posix-functions/towctrans_l.texi: Likewise.
23846         * doc/posix-functions/towlower_l.texi: Likewise.
23847         * doc/posix-functions/towupper_l.texi: Likewise.
23848         * doc/posix-functions/wcscoll_l.texi: Likewise.
23849         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23850         * doc/posix-functions/wctrans_l.texi: Likewise.
23851         * doc/posix-functions/wctype_l.texi: Likewise.
23852         * doc/glibc-functions/strptime_l.texi: Likewise.
23853         * doc/glibc-functions/strtod_l.texi: Likewise.
23854         * doc/glibc-functions/strtof_l.texi: Likewise.
23855         * doc/glibc-functions/strtol_l.texi: Likewise.
23856         * doc/glibc-functions/strtold_l.texi: Likewise.
23857         * doc/glibc-functions/strtoll_l.texi: Likewise.
23858         * doc/glibc-functions/strtoul_l.texi: Likewise.
23859         * doc/glibc-functions/strtoull_l.texi: Likewise.
23860         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23861         * doc/glibc-functions/wcstod_l.texi: Likewise.
23862         * doc/glibc-functions/wcstof_l.texi: Likewise.
23863         * doc/glibc-functions/wcstol_l.texi: Likewise.
23864         * doc/glibc-functions/wcstold_l.texi: Likewise.
23865         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23866         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23867         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23868
23869 2009-11-24  Bruno Haible  <bruno@clisp.org>
23870
23871         duplocale: Fix logic bug.
23872         * lib/duplocale.c: Don't include <langinfo.h>.
23873         (_NL_LOCALE_NAME): Remove macro.
23874         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23875         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23876
23877 2009-11-23  Jim Meyering  <meyering@redhat.com>
23878
23879         test-update-copyright: don't hard-code /usr/bin/perl
23880         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23881         perl to print the current year.  Gilles Espinasse reported that
23882         the replaced use of perl was hard-coded as /usr/bin/perl.
23883
23884 2009-11-23  Bruno Haible  <bruno@clisp.org>
23885
23886         duplocale: Add support for glibc 2.3.x.
23887         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23888
23889 2009-11-22  Bruno Haible  <bruno@clisp.org>
23890
23891         vasnprintf: Tiny optimization.
23892         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23893         MacOS X.
23894
23895 2009-11-22  Bruno Haible  <bruno@clisp.org>
23896
23897         Tests for module 'duplocale'.
23898         * modules/duplocale-tests: New file.
23899         * tests/test-duplocale.c: New file.
23900
23901         New module 'duplocale'.
23902         * m4/duplocale.m4: New file.
23903         * lib/locale.in.h (duplocale): New declaration.
23904         * lib/duplocale.c: New file.
23905         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23906         gl_LOCALE_H_DEFAULTS): New macros.
23907         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23908         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23909         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23910         REPLACE_DUPLOCALE.
23911         * modules/duplocale: New file.
23912         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23913
23914 2009-11-22  Bruno Haible  <bruno@clisp.org>
23915
23916         * modules/locale-tests (configure.ac): Test for newlocale function.
23917         * tests/test-locale.c: When the system has extended locale functions,
23918         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23919
23920         locale: Make locale_t available when possible.
23921         * lib/locale.in.h: Include <xlocale.h> when it exists.
23922         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23923         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23924         * modules/locale (Depends-on): Add extensions.
23925         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23926         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23927
23928 2009-11-22  Bruno Haible  <bruno@clisp.org>
23929
23930         Add comments.
23931         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23932         invocation.
23933         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23934         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23935         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23936
23937 2009-11-22  Bruno Haible  <bruno@clisp.org>
23938
23939         error: account for the possibility of freopen (stdout).
23940         * lib/error.c: Include <unistd.h>.
23941         (flush_stdout): New function, extracted from error and error_at_line.
23942         Determine stdout's fd dynamically.
23943         (error, error_at_line): Invoke flush_stdout.
23944         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23945         * modules/error (Depends-on): Add unistd.
23946
23947 2009-11-22  Bruno Haible  <bruno@clisp.org>
23948
23949         diffseq: Add comment.
23950         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23951
23952 2009-11-22  Jim Meyering  <meyering@redhat.com>
23953
23954         c-stack: avoid defining an unused static function
23955         * lib/c-stack.c (find_stack_direction): Do not define this function
23956         when it will not be used.
23957
23958         diffseq: avoid spurious gcc warnings
23959         * lib/diffseq.h (IF_LINT2): Define.
23960         (compareseq): Use it to initialize two members of "part".
23961         This avoids two used-uninitialized warnings.
23962
23963 2009-11-21  Jim Meyering  <meyering@redhat.com>
23964
23965         c-stack: avoid "ignoring return value of `write'" warning
23966         * lib/c-stack.c: Include "ignore-value.h".
23967         (die): Explicitly ignore each write return value.
23968         * modules/c-stack (Depends-on): Add ignore-value.
23969
23970 2009-11-21  Bruno Haible  <bruno@clisp.org>
23971
23972         diffseq: reduce scope of variable 'best'.
23973         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23974         variable, earlier used for two different purposes.
23975
23976 2009-11-21  Jim Meyering  <meyering@redhat.com>
23977
23978         diffseq: remove useless assignment to "best"
23979         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23980         assignment.  At that point "best" is already guaranteed to be zero.
23981
23982 2009-11-20  Eric Blake  <ebb9@byu.net>
23983
23984         build: mention ftp redirector in release announcements
23985         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23986         values that used to come from cfg.mk; mention FTP redirect URL.
23987         * build-aux/announce-gen: Mention the mirror list.
23988         Suggested by Karl Berry.
23989
23990         nanosleep: improve port to mingw
23991         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23993         LIB_NANOSLEEP, but only when needed.
23994         * modules/select (Link): Document LIBSOCKET.
23995         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23996         enough.
23997
23998         nanosleep: work around cygwin bug
23999         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
24000         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
24001         bug.
24002         (getnow): Delete, not needed.
24003         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
24004         LIB_CLOCK_GETTIME.
24005         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
24006         clock-time, gettime.
24007         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
24008         bug.
24009         * modules/nanosleep-tests: New test.
24010         * tests/test-nanosleep.c: New file.
24011
24012         sleep: work around cygwin bug
24013         * lib/sleep.c (rpl_sleep): Work around the bug.
24014         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
24015         (gl_PREREQ_SLEEP): Delete unused macro.
24016         * modules/sleep (Depends-on): Add verify.
24017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24018         * modules/unistd (Makefile.am): Substitute witness.
24019         * lib/unistd.in.h (sleep): Update prototype.
24020         * doc/posix-functions/sleep.texi (sleep): Document the bug.
24021         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
24022         * modules/sleep-tests (Depends-on): Check for alarm.
24023
24024 2009-11-20  Jim Meyering  <meyering@redhat.com>
24025
24026         maint.mk: improve sc_prohibit_magic_number_exit
24027         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
24028         so it does not match uses like System.exit(1).
24029         Add comments showing how to correct all offenders.
24030
24031 2009-11-19  Eric Blake  <ebb9@byu.net>
24032
24033         xalloc-die-tests: add missing library
24034         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
24035
24036         test-xvasprintf: silence compiler warnings
24037         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
24038         empty string from gcc.
24039
24040 2009-11-19  Jim Meyering  <meyering@redhat.com>
24041
24042         xfreopen: new module, from coreutils
24043         * modules/xfreopen: New module.
24044         * lib/xfreopen.c: New file.
24045         * lib/xfreopen.h: New file.
24046         * MODULES.html.sh (File stream based Input/Output"): Add it.
24047
24048 2009-11-19  Eric Blake  <ebb9@byu.net>
24049
24050         manywarnings: depend on warnings
24051         * modules/manywarnings (Depends-on): Add warnings.
24052
24053         build: avoid compiler warnings
24054         * lib/select.c (rpl_select): Delete unused variable.
24055         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
24056
24057 2009-11-18  Eric Blake  <ebb9@byu.net>
24058
24059         tests: avoid false negative with --with-packager
24060         * tests/test-version-etc.sh: Discard packager information.
24061         * tests/test-argp-version-etc-1.sh: Likewise.
24062         Reported by Mike Frysinger.
24063
24064         utimens: fix regression on Solaris
24065         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
24066         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
24067         can only change fd timestamps via futimesat.  Instead, use an
24068         additional witness macro to avoid BSD bug.
24069         Reported by Jim Meyering.
24070
24071 2009-11-17  Eric Blake  <ebb9@byu.net>
24072
24073         usleep: use it to simplify tests
24074         * modules/stat-time-tests (Depends-on): Add usleep.
24075         (configure.ac): Drop usleep check.
24076         * modules/chown-tests (Depends-on, configure.ac): Likewise.
24077         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
24078         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
24079         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
24080         * modules/openat-tests (Depends-on, configure.ac): Likewise.
24081         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
24082         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
24083         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
24084         Likewise.
24085         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
24086         * tests/test-lchown.h (nap): Likewise.
24087         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
24088         * tests/test-stat-time.c (nap): Likewise.
24089         * tests/test-utimens-common.h (nap): Update comments.
24090
24091         usleep: new module
24092         * modules/usleep: New file.
24093         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
24094         * lib/usleep.c (usleep): Likewise.
24095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24096         * modules/unistd (Makefile.am): Substitute witnesses.
24097         * lib/unistd.in.h (usleep): Add declaration.
24098         * doc/pastposix-functions/usleep.texi (usleep): Document this.
24099         * MODULES.html.sh (Date and time): Likewise.
24100         * modules/usleep-tests (Depends-on): New test.
24101         * tests/test-usleep.c: New file.
24102
24103         chown: work around OpenBSD bug
24104         * lib/chown.c (rpl_chown): Work around the bug.
24105         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
24106         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
24107         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
24108         * modules/chown (Depends-on): Add stdbool.
24109         * modules/lchown (Depends-on): Likewise.
24110         * doc/posix-functions/chown.texi (chown): Document the bug.
24111         * doc/posix-functions/lchown.texi (lchown): Likewise.
24112         * tests/test-lchown.h (test_chown): Relax test.
24113
24114         mkstemp: avoid conflict with C++ keyword template
24115         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
24116         * lib/mkostemp.c (mkostemp): Likewise.
24117         * lib/mkostemps.c (mkostemps): Likewise.
24118         * lib/mkstemp.c (mkstemp): Likewise.
24119         * lib/mkstemps.c (mkstemps): Likewise.
24120
24121         xalloc-die-tests: optimize
24122         * tests/test-xalloc-die.sh: Reduce number of processes.
24123
24124 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24125
24126         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
24127         patch from ludo@gnu.org (Ludovic Courtès).
24128
24129 2009-11-17  Jim Meyering  <meyering@redhat.com>
24130
24131         version-etc: use proper license string
24132         * modules/version-etc (License): Use LGPL, not LGPLv3+.
24133         * modules/version-etc-fsf: Likewise.
24134
24135 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24136
24137         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
24138         printed to stdout.  Deal with EOL differences.
24139
24140 2009-11-17  Eric Blake  <ebb9@byu.net>
24141
24142         unsetenv: work around Solaris bug
24143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
24144         * lib/unsetenv.c (rpl_unsetenv): Work around it.
24145         Reported by Jim Meyering.
24146
24147         vasnprintf: avoid compiler warnings
24148         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
24149         variables.
24150         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
24151
24152 2009-11-17  Simon Josefsson  <simon@josefsson.org>
24153
24154         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
24155         settings since xalloc-die is no longer the self test,
24156         xalloc-die.sh is.
24157
24158 2009-11-17  Jim Meyering  <meyering@redhat.com>
24159
24160         test-xalloc-die.sh: make the code agree with the commit log
24161         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
24162         at the end, just in case you happen to have a test-xalloc-die
24163         program in some other PATH directory.
24164
24165         test-xalloc-die.sh: fix a portability bug
24166         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
24167         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
24168         Otherwise, argv[0] (as often seen in diagnostics) would be too
24169         system-dependent, sometimes with, and sometimes without the leading "./".
24170
24171         version-etc-fsf: relax license to LGPLv3+
24172         * modules/version-etc-fsf (License): Relax license.
24173
24174 2009-11-16  Eric Blake  <ebb9@byu.net>
24175
24176         xalloc-die-tests: avoid printing null pointer
24177         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
24178         shell script.
24179         * tests/test-xalloc-die.c (program_name): Declare.
24180         * tests/test-xalloc-die.sh (tmpfiles): New file.
24181
24182         setenv, unsetenv: work around various bugs
24183         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
24184         (setenv) [HAVE_SETENV]: Work around bugs.
24185         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
24186         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
24187         for bugs.
24188         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
24189         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
24190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
24191         * modules/stdlib (Makefile.am): Update substitutions.
24192         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
24193         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
24194         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
24195         * modules/setenv-tests: New test.
24196         * modules/unsetenv-tests: Likewise.
24197         * tests/test-setenv.c: New file.
24198         * tests/test-unsetenv.c: Likewise.
24199
24200 2009-11-16  Jim Meyering  <meyering@redhat.com>
24201
24202         version-etc: relax license to LGPLv3+
24203         * modules/version-etc (License): Relax license.
24204
24205         better AC_REQUIRE expanded-before-required-warning avoidance
24206         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
24207         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
24208         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
24209         which is no longer needed.
24210
24211 2009-11-16  Eric Blake  <ebb9@byu.net>
24212
24213         test-freading: clean up temporary file
24214         * tests/test-freading.c (main): Remove file on success, and use
24215         ASSERT more liberally.
24216         Reported by Jim Meyering.
24217
24218 2009-11-16  Jim Meyering  <meyering@redhat.com>
24219
24220         avoid new AC_REQUIRE expanded-before-required warnings
24221         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24222         merely using it.
24223         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24224         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24225
24226 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24227
24228         * tests/test-xalloc-die.c: New file.
24229         * modules/xalloc-die-tests: New file.
24230         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24231         XFAIL_TESTS so it can be appended by modules.
24232
24233 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24234
24235         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24236         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24237
24238 2009-11-14  Eric Blake  <ebb9@byu.net>
24239
24240         fnmatch: avoid compiler warning
24241         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24242         to silence compiler warning about mismatch signedness in ?:.
24243         Reported by Robert Millan.
24244
24245         intprops: add double-inclusion guard
24246         * lib/intprops.h: Allow idempotent includes.
24247         Suggested by Bruce Korb.
24248
24249         openat: detect Solaris fchownat bug
24250         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24251         penalizing glibc chownat when only lchownat is broken.
24252         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24253         trailing slash bugs.
24254         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24255         * modules/openat-tests (Files): Include more files.
24256         (Depends-on): Add mgetgroups, sleep, stat-time.
24257         (configure.ac): Add additional checks.
24258         (Makefile.am): Build new test.
24259         * tests/test-fchownat.c: New file.
24260
24261         lchown: detect Solaris and FreeBSD bug
24262         * lib/lchown.c (rpl_lchown): Work around bug.
24263         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24265         * modules/unistd (Makefile.am): Populate it.
24266         * lib/unistd.in.h (lchown): Update declaration.
24267         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24268         * modules/lchown-tests: New file.
24269         * tests/test-lchown.h (test_lchown): Likewise.
24270         * tests/test-lchown.c (main): Likewise.
24271
24272         chown: detect Solaris and FreeBSD bug
24273         * lib/chown.c (rpl_chown): Work around bug.
24274         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24275         (gl_PREREQ_CHOWN): Delete.
24276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24277         * modules/unistd (Makefile.am): Populate it.
24278         * lib/unistd.in.h (chown): Update declaration.
24279         * lib/lchown.c (chown): Update client.
24280         * modules/lchown (Depends-on): Add lstat.
24281         * doc/posix-functions/chown.texi (chown): Document the bug.
24282         * doc/posix-functions/getgroups.texi (getgroups): Document
24283         getgroups pitfall.
24284         * modules/chown-tests: New file.
24285         * tests/test-chown.h (test_chown): Likewise.
24286         * tests/test-chown.c (main): Likewise.
24287
24288 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24289
24290         gnulib-tool: correctly detect absence of m4 directories
24291         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24292
24293 2009-11-14  Jim Meyering  <meyering@redhat.com>
24294
24295         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24296         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24297
24298 2009-11-14  John W. Eaton  <jwe@gnu.org>
24299
24300         strftime.h: wrap funtion declaration in extern "C" block
24301         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24302
24303 2009-11-13  Eric Blake  <ebb9@byu.net>
24304
24305         getgroups: avoid compiler warning
24306         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24307
24308         getgroups: work around FreeBSD bug
24309         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24310         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24311         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24312         * tests/test-getgroups.c (main): Fix buffer overrun.
24313
24314         getgroups: avoid compilation failure
24315         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24316         * modules/getgroups (Depends-on): Add stdint.
24317
24318 2009-11-13  Jim Meyering  <meyering@redhat.com>
24319
24320         test-getgroups: avoid compilation failure
24321         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24322
24323 2009-11-13  Eric Blake  <ebb9@byu.net>
24324
24325         mgetgroups: new module, taken from coreutils
24326         * modules/mgetgroups: New file.
24327         * lib/mgetgroups.h: Likewise.
24328         * lib/mgetgroups.c (mgetgroups): Likewise.
24329         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24330         * MODULES.html.sh (Users and groups): Mention it.
24331
24332         getgroups: don't expose GETGROUPS_T to user
24333         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24334         an element at a time if GETGROUPS_T is wrong size.
24335         * lib/getugroups.h (getugroups): Change signature.
24336         * lib/unistd.in.h (getgroups): Likewise.
24337         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24338         signature needs fixing.
24339         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24340         AC_TYPE_GETGROUPS.
24341         * modules/group-member (Depends-on): Add getgroups.
24342         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24343         (group_member): Rely on getgroups replacement.
24344         * lib/getugroups.c (getugroups): Use gid_t.
24345         * tests/test-getgroups.c (main): Likewise.
24346         * NEWS: Mention the signature change.
24347         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24348         problem with signature.
24349         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24350         GETGROUPS_T is still useful for setgroups.
24351
24352         getgroups, getugroups: provide stubs for mingw
24353         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24354         * lib/getugroups.c (getugroups): Likewise.
24355         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24356         function.  Modernize replacement scheme.
24357         (gl_PREREQ_GETGROUPS): Delete.
24358         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24359         * modules/getgroups (configure.ac): Declare witness.
24360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24361         * modules/unistd (Depends-on): Substitute witness.
24362         * lib/unistd.in.h (getgroups): Declare replacement.
24363
24364         getgroups: avoid calling exit
24365         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24366         drop xalloc.
24367         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24368         dependencies.
24369         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24370         exiting, in the rare case of malloc failure.
24371
24372         getgroups: fix logic error
24373         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24374         has more than 20 groups.
24375         * modules/getgroups-tests: New test.
24376         * tests/test-getgroups.c: New file.
24377
24378 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24379
24380         * tests/test-base64.c: Improve.
24381
24382 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24383
24384         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24385         Blake <ebb9@byu.net>.
24386
24387 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24388
24389         * tests/test-xvasprintf.c: Add %s%s related checks.
24390
24391 2009-11-12  Eric Blake  <ebb9@byu.net>
24392
24393         version-etc: match standards.texi style
24394         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24395         and use <> only for URLs.
24396
24397 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24398
24399         fts: do not fail on a submount during traversal
24400         * lib/fts.c (fts_build): Read the stat info again after opening
24401         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24402         Original report at http://bugzilla.redhat.com/501848.
24403
24404 2009-11-12  Jim Meyering  <meyering@redhat.com>
24405
24406         bootstrap: sync from coreutils
24407         * build-aux/bootstrap (bootstrap_epilogue): New function.
24408         Use git_modules_config in one more place.  This make bootstrap's
24409         --gnulib-srcdir option more useful for testing.
24410
24411         bootstrap: generalize autoheader check
24412         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24413         AC_CONFIG_HEADERS.
24414
24415 2009-11-11  Eric Blake  <ebb9@byu.net>
24416
24417         mkfifoat: use new modules for Solaris and BSD bugs
24418         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24419         * lib/mkfifoat.c (mknodat): Split...
24420         * lib/mknodat.c (mknodat): ...into new file.
24421         * modules/mkfifoat (Files): Ship new file.
24422         (Depends-on): Add mkfifo, mknod.
24423         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24424         (Depends-on): Add symlink.
24425         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24426         redundant with test_mkfifo.h.
24427         (do_mkfifoat, do_mknodat): New helpers.
24428
24429         mknod: new module
24430         * modules/mknod: New file.
24431         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24432         * lib/mknod.c (mknod): Likewise.
24433         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24434         defaults.
24435         * modules/sys_stat (Makefile.am): Substitute them.
24436         * lib/sys_stat.in.h (mknod): Declare replacement.
24437         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24438         Document it.
24439         * doc/posix-functions/mknod.texi (mknod): Likewise.
24440         * modules/mknod-tests: New test.
24441         * tests/test-mknod.c: Likewise.
24442
24443         mkfifo: new module
24444         * modules/mkfifo: New file.
24445         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24446         * lib/mkfifo.c (mkfifo): Likewise.
24447         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24448         defaults.
24449         * modules/sys_stat (Makefile.am): Substitute them.
24450         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24451         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24452         Document it.
24453         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24454         * modules/mkfifo-tests: New test.
24455         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24456         from test-mkfifoat.c.
24457         * tests/test-mkfifo.c: New file.
24458
24459         readlink: detect FreeBSD bug
24460         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24461         slash on symlink.
24462         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24463         * tests/test-readlink.h (test_readlink): Enhance test.
24464
24465         symlink: detect FreeBSD bug
24466         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24467         slash on symlink.
24468         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24469         * tests/test-symlink.h (test_symlink): Enhance test.
24470
24471 2009-11-10  Eric Blake  <ebb9@byu.net>
24472
24473         link: detect FreeBSD bug
24474         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24475         symlink.
24476         * doc/posix-functions/link.texi (link): Document the bug.
24477         * tests/test-link.h (test_link): Enhance test.
24478         * tests/test-linkat.c (main): Update caller.
24479
24480         unlink, remove: detect FreeBSD bug
24481         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24482         slash on symlink.
24483         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24484         * doc/posix-functions/remove.texi (remove): Likewise.
24485         * tests/test-unlink.h (test_unlink): Enhance test.
24486         * tests/test-remove.c (main): Likewise.
24487
24488 2009-11-09  Eric Blake  <ebb9@byu.net>
24489
24490         rename: detect FreeBSD bug
24491         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24492         slash on symlink.
24493         * modules/renameat-tests (Depends-on): Add filenamecat.
24494         * tests/test-rename.h (test_rename): Allow one more errno.
24495         * tests/test-renameat.c (main): Likewise.
24496         * doc/posix-functions/rename.texi (rename): Document the bug.
24497
24498         open: detect FreeBSD bug
24499         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24500         symlink.
24501         * doc/posix-functions/open.texi (open): Document the bug.
24502         * doc/posix-functions/utimes.texi (utimes): Likewise.
24503         * tests/test-open.h (test_open): Add parameters, and test symlink
24504         handling.
24505         * tests/test-open.c (main): Adjust caller.
24506         * tests/test-fcntl-safer.c (main): Likewise.
24507         * modules/open-tests (Depends-on): Add stdbool, symlink.
24508         * modules/fcntl-safer-tests (Depends-on): Likewise.
24509         * tests/test-openat.c (main): Add test-open tests.
24510
24511         stat: detect FreeBSD bug
24512         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24513         symlink.
24514         * doc/posix-functions/stat.texi (stat): Document the bug.
24515         * tests/test-stat.h (test_stat_func): Add argument.
24516         * tests/test-stat.c (main): Adjust caller.
24517         * tests/test-fstatat.c (main): Likewise.
24518         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24519         Reported by Jim Meyering.
24520
24521 2009-11-09  James Youngman  <jay@gnu.org>
24522
24523         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24524         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24525
24526 2009-11-08  Jim Meyering  <meyering@redhat.com>
24527
24528         utimens: remove invalid futimesat call
24529         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24530         It used the file descriptor of the target file as the DIR_FD
24531         parameter and NULL as the file name.  That caused failure with
24532         errno == EFAULT on FreeBSD-8.0-rc2
24533
24534 2009-11-07  Eric Blake  <ebb9@byu.net>
24535
24536         fflush, freadseek: use fseeko, not fseek
24537         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24538         (clear_ungetc_buffer): Avoid potential problems on large files.
24539         * lib/freadseek.c (freadseek): Likewise.
24540         * modules/freadseek (Depends-on): Add fseeko.
24541         * modules/fseek (configure.ac): Set a witness.
24542         * tests/test-fflush.c (main): Use fseeko.
24543         * tests/test-fpurge.c (fseek): Disable link warning.
24544         * tests/test-freadable.c (fseek): Likewise.
24545         * tests/test-freading.c (fseek): Likewise.
24546         * tests/test-fseeko.c (fseek): Likewise.
24547         * tests/test-ftell.c (fseek): Likewise.
24548         * tests/test-ftello.c (fseek): Likewise.
24549         * tests/test-fwritable.c (fseek): Likewise.
24550         * tests/test-fwriting.c (fseek): Likewise.
24551
24552 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24553
24554         * modules/memchr (Depends-on): Drop getpagesize dependency.
24555
24556 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24557
24558         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24559         Reported by Ludovic Courtès.
24560         * build-aux/pmccabe2html: Improve example usage.
24561         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24562
24563 2009-11-06  Jim Meyering  <meyering@redhat.com>
24564
24565         do-release-commit-and-tag: New module.
24566         Automate the release-commit and tag process.
24567         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24568         * modules/do-release-commit-and-tag: New file.
24569         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24570
24571 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24572
24573         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24574         because test-select.c uses inet_pton.
24575
24576 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24577
24578         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24579         GETADDRINFO_LIB.  Bump serial number.
24580         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24581         Suggested by Eric Blake <ebb9@byu.net>.
24582
24583 2009-11-05  Eric Blake  <ebb9@byu.net>
24584
24585         strtod: detect darwin bug
24586         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24587         Reported by Leo Davis.
24588
24589         freopen-safer: new module
24590         * modules/freopen-safer: New module.
24591         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24592         * lib/freopen-safer.c (freopen_safer): New file.
24593         * lib/stdio-safer.h (freopen_safer): New declaration.
24594         * lib/stdio--.h (freopen): New override.
24595         * MODULES.html.sh (File stream based Input/Output): Mention it.
24596         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24597         freopen-safer module.
24598         * doc/posix-functions/stderr.texi (stderr): Likewise.
24599         * doc/posix-functions/stdin.texi (stdin): Likewise.
24600         * doc/posix-functions/stdout.texi (stdout): Likewise.
24601         * modules/freopen-safer-tests: New test.
24602         * tests/test-reopen-safer.c: New file.
24603
24604 2009-11-05  Jim Meyering  <meyering@redhat.com>
24605
24606         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24607         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24608
24609 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24610
24611         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24612
24613 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24614
24615         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24616
24617 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24618
24619         Fix link error.
24620         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24621         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24622
24623 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24624
24625         * tests/test-func.c: Also test value of __func__.
24626
24627 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24628
24629         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24630         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24631
24632 2009-11-05  Bruno Haible  <bruno@clisp.org>
24633
24634         Fix link error.
24635         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24636         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24637         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24638
24639 2009-11-05  Bruno Haible  <bruno@clisp.org>
24640
24641         Tests for module 'inet_pton'.
24642         * modules/inet_pton-tests: New file.
24643         * tests/test-inet_pton.c: New file.
24644
24645 2009-11-05  Bruno Haible  <bruno@clisp.org>
24646
24647         Tests for module 'inet_ntop'.
24648         * modules/inet_ntop-tests: New file.
24649         * tests/test-inet_ntop.c: New file.
24650
24651 2009-11-04  Eric Blake  <ebb9@byu.net>
24652
24653         stdlib-safer: wrap all mkstemp variants
24654         * modules/mkostemp (configure.ac): Set witness.
24655         * modules/mkostemps (configure.ac): Likewise.
24656         * modules/mkstemps (configure.ac): Likewise.
24657         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24658         (mkstemps_safer): Wrap more functions.
24659         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24660         wrapping.
24661         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24662         (mkstemps_safer): Implement the wrappers.
24663
24664         mkstemps, mkostemps: new modules
24665         * modules/mkostemps: New module.
24666         * modules/mkstemps: Likewise.
24667         * lib/mkostemps.c (mkostemps): New file.
24668         * lib/mkstemps.c (mkstemps): Likewise.
24669         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24670         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24671         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24672         * modules/stdlib (Makefile.am): Substitute them.
24673         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24674         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24675         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24676         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24677         * MODULES.html.sh (File system functions): Mention them.
24678
24679         tempname: resync from glibc
24680         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24681         same values for __GT_FILE as glibc.  Abort even when assertions
24682         are disabled.
24683         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24684         match its value otherwise.  Allow idempotent inclusion.
24685         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24686         * lib/mkostemp.c (mkostemp): Likewise.
24687         * lib/mkstemp.c (mkstemp): Likewise.
24688         * lib/tmpfile.c (tmpfile): Likewise.
24689         * NEWS: Document this.
24690
24691         utimens: fix use of futimens on older Linux
24692         * lib/utimens.c (fdutimens): Use updated, rather than original,
24693         timespec to avoid bug in older Linux kernel.
24694         Reported by Simon Josefsson.
24695
24696 2009-11-04  Bruno Haible  <bruno@clisp.org>
24697
24698         Make num_processors more flexible and consistent.
24699         * lib/nproc.h (enum nproc_query): New type.
24700         (num_processors): Add a 'query' argument.
24701         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24702         (num_processors): Add a 'query' argument. Test the value of the
24703         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24704         mingw, count the number of CPUs available for the current process.
24705         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24706         Check for sched_getaffinity and sched_getaffinity_np.
24707         * modules/nproc (Depends-on): Add c-ctype, extensions.
24708         * NEWS: Mention the change.
24709
24710 2009-11-03  Bruno Haible  <bruno@clisp.org>
24711
24712         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24713
24714 2009-11-03  Jim Meyering  <meyering@redhat.com>
24715
24716         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24717         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24718         if it is defined.
24719
24720 2009-11-02  Eric Blake  <ebb9@byu.net>
24721
24722         mktime, timegm: share common declaration
24723         * lib/mktime-internal.h: New file.
24724         * lib/mktime.c: Use it rather than open-coding a declaration.
24725         * lib/timegm.c: Likewise.
24726         * modules/mktime (Files): Ship it.
24727         * modules/timegm (Files): Likewise.
24728         Suggested by Bruno Haible.
24729
24730         test-update-copyright: update test to match script changes
24731         * tests/test-update-copyright.sh: Avoid hard-coding perl
24732         location.  Don't update *.bak created by earlier runs.
24733
24734 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24735             Simon Josefsson  <simon@josefsson.org>
24736             Bruno Haible  <bruno@clisp.org>
24737
24738         Fix link error on Solaris 8.
24739         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24740         also in libnsl. Define also INET_PTON_LIB.
24741         * modules/inet_pton (Link): New section.
24742
24743 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24744             Bruno Haible  <bruno@clisp.org>
24745
24746         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24747         * modules/inet_ntop (Link): New section.
24748         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24749
24750 2009-11-02  Eric Blake  <ebb9@byu.net>
24751
24752         maint: avoid compiler warnings in m4 macros
24753         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24754         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24755
24756 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24757
24758         * m4/pmccabe2html.m4: Remove file.
24759         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24760         function.  Change maintainer.
24761         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24762         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24763         Courtès).
24764
24765 2009-10-31  Eric Blake  <ebb9@byu.net>
24766
24767         fseeko: fix m4 regression
24768         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24769         regression from 2009-10-27.
24770         Reported by Ralf Wildenhues.
24771
24772 2009-10-31  Jim Meyering  <meyering@redhat.com>
24773
24774         inttostr: aesthetics and improved (compile-time) safety
24775         Define inttype_is_signed rather than inttype_is_unsigned,
24776         since the sole use is via "#if inttype_is_signed".
24777         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24778         inttype_is_unsigned.
24779         * lib/offtostr.c (inttype_is_signed): Likewise.
24780         * lib/uinttostr.c (inttype_is_signed): Likewise.
24781         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24782         * lib/inttostr.c (inttostr): Use verify to cross-check the
24783         inttype_is_signed value and the signedness of the actual type.
24784         * modules/inttostr (Depends-on): Add verify.
24785
24786 2009-10-30  Eric Blake  <ebb9@byu.net>
24787
24788         build: avoid compiler warnings
24789         * lib/fchmodat.c (lchmod): Mark unused variables.
24790         * lib/getopt.c (_getopt_initialize): Likewise.
24791         * lib/mktime.c (__mktime_internal): Provide prototype.
24792         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24793         older gcc that do not understand #pragma GCC diagnostic.
24794         * lib/uinttostr.c (inttype_is_unsigned): Define.
24795         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24796
24797 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24798
24799         stat: fix compilation on AIX
24800         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24801         only see struct stat64.
24802
24803 2009-10-30  Eric Blake  <ebb9@byu.net>
24804
24805         exclude: make more robust
24806         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24807         rather than masking a coding bug.
24808         Suggested by Bruno Haible.
24809
24810 2009-10-30  Jim Meyering  <meyering@redhat.com>
24811
24812         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24813         Rather than putting #!/usr/bin/perl on the first line,
24814         start with a variant of what's recommended by "man perlrun" that
24815         invokes the first "perl" program from your shell's search path.
24816         * build-aux/gitlog-to-changelog: Replace #!... as above.
24817         Add a "Local Variables" perl mode setting.
24818         Prompted by a patch from Ludovic Courtès.
24819         Improved by Eric Blake.
24820         * build-aux/useless-if-before-free: Likewise.
24821         * build-aux/announce-gen: Likewise.
24822         * build-aux/update-copyright: Likewise.
24823
24824 2009-10-29  Eric Blake  <ebb9@byu.net>
24825
24826         filenamecat-lgpl: adjust clients
24827         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24828         filenamecat.
24829         * modules/renameat (Depends-on): Likewise.
24830
24831         filenamecat: split into filenamecat-lgpl
24832         * modules/filenamecat-lgpl: New module.
24833         * modules/filenamecat (Files): Move library-safe files into
24834         filenamecat-lgpl.
24835         (Depends-on): Add filenamecat-lgpl.
24836         (configure.ac): Declare witness.
24837         * lib/filenamecat.h (file_name_concat): Only declare when using
24838         GPL module.
24839         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24840         Move...
24841         * lib/filenamecat-lgpl.c: ...into new file.
24842         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24843         (gl_FILE_NAME_CONCAT): Use it.
24844         * MODULES.html.sh (File system functions): Mention new module.
24845
24846         argp: avoid memory leak
24847         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24848         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24849         base_name, since the latter malloc()s and can call exit().
24850         Leak introduced 2006-07-03.
24851
24852         dirname-lgpl: adjust clients that don't need full dirname
24853         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24854         * modules/filenamecat (Depends-on): Likewise.
24855         * modules/linkat (Depends-on): Likewise.
24856         * modules/mkancesdirs (Depends-on): Likewise.
24857         * modules/mkdir (Depends-on): Likewise.
24858         * modules/openat (Depends-on): Likewise.
24859         * modules/savewd (Depends-on): Likewise.
24860         * modules/rename (Depends-on): Likewise.
24861         (License): Relax license.
24862         * modules/mkdir-tests (Depends-on): Drop progname.
24863         (Makefile.am): Delete unneeded LDADD.
24864         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24865
24866         dirname: split into dirname-lgpl
24867         * modules/dirname-lgpl: New module.
24868         * modules/dirname (Files): Move library-safe files into
24869         dirname-lgpl.
24870         (Depends-on): Add dirname-lgpl.
24871         (configure.ac): Declare witness.
24872         * modules/double-slash-root (License): Relax license.
24873         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24874         module.
24875         * lib/dirname.c (dir_len, mdir_name): Move...
24876         * lib/dirname-lgpl.c: ...into new file.
24877         * lib/basename.c (last_component, base_len): Move...
24878         * lib/basename-lgpl.c: ...into new file.
24879         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24880         (gl_DIRNAME): Use it.
24881         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24882         Mention new module.
24883         * modules/dirname-tests (Depends-on): Add progname.
24884         * tests/test-dirname.c (program_name): Delete.
24885
24886         mkdir: make safe for libraries
24887         * modules/mkdir (Depends-on): Drop xalloc.
24888         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24889         exit.
24890
24891         tests: avoid some compiler warnings
24892         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24893         literals.
24894         * tests/test-memchr.c (main): Avoid type mismatch.
24895         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24896         * tests/test-base64.c (main): Likewise.
24897         * tests/test-getdelim.c (main): Likewise.
24898         * tests/test-gethostname.c (main): Likewise.
24899         * tests/test-getline.c (main): Likewise.
24900         * tests/test-netinet_in.c (main): Likewise.
24901         * tests/test-select.c (open_server_socket, main): Likewise.
24902         * tests/test-select-stdin.c (main): Likewise.
24903         * tests/test-sockets.c (main): Likewise.
24904         * tests/test-strsignal.c (main): Likewise.
24905         * tests/test-sys_select.c (main): Likewise.
24906         * tests/test-sys_socket.c (main): Likewise.
24907         * tests/test-u64.c (main): Likewise.
24908         * tests/test-xfprintf-posix.c (main): Likewise.
24909         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24910
24911         sockets: avoid compiler warning
24912         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24913
24914         maint: detect usage(1) and other suspicious exits
24915         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24916
24917 2009-10-29  Jim Meyering  <meyering@redhat.com>
24918
24919         timespec: long-to-int truncation could make timespec_cmp malfunction
24920         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24921         a multiple of 2^32 nanoseconds as no difference.
24922
24923 2009-10-28  Jim Meyering  <meyering@redhat.com>
24924
24925         fprintftime: wrap macro code argument in "do {...} while(0)"
24926         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24927         cpy macro must be a statement that can be followed by a semicolon.
24928         Now that the else clause contains a comment and is hence longer
24929         than one line, I require curly braces.  That in turn requires
24930         that we wrap this code block in the standard do...while(0).
24931
24932         fprintftime: remove stray semicolon from previous change
24933         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24934
24935         fprintftime: avoid a warning about ignored fwrite return value
24936         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24937         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24938         that is unsafe.
24939         * modules/fprintftime (Depends-on): Add ignore-value.
24940
24941         exclude: avoid an unwarranted warning
24942         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24943
24944 2009-10-27  Eric Blake  <ebb9@byu.net>
24945
24946         fseek: avoid compilation failure when fflush is replaced
24947         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24948         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24949         module is in use.
24950         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24951         module is not in use; since REPLACE_FSEEK worked otherwise.
24952         (GNULIB_FTELLO): Likewise for ftell.
24953         Reported by Ian Beckwith and others.
24954
24955 2009-10-27  Bruno Haible  <bruno@clisp.org>
24956
24957         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24958         Reported by Jim Meyering.
24959
24960 2009-10-27  Jim Meyering  <jim@meyering.net>
24961             Bruno Haible  <bruno@clisp.org>
24962
24963         Avoid warning despite dropping the return value of fwrite.
24964         * lib/unicodeio.c: Include ignore-value.h.
24965         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24966         * modules/unicodeio (Depends-on): Add ignore-value.
24967
24968 2009-10-26  Eric Blake  <ebb9@byu.net>
24969
24970         areadlinkat: fix fallback path
24971         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24972         pointer and zero.
24973
24974 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24975
24976         Use a better IO block size for modern systems
24977         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24978         * lib/md2.c: Likewise.
24979         * lib/md4.c: Likewise.
24980         * lib/md5.c: Likewise.
24981         * lib/sha1.c: Likewise.
24982         * lib/sha256.c: Likewise.
24983         * lib/sha512.c: Likewise.
24984
24985 2009-10-22  Eric Blake  <ebb9@byu.net>
24986
24987         tests: avoid several compiler warnings
24988         * tests/test-getcwd.c (main): Avoid buffer underflow.
24989         * tests/test-getdate.c (main): String literals are not safe with
24990         putenv, so use setenv.  Declare unused argument.
24991         * modules/getdate-tests (Depends-on): Add setenv.
24992         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24993         problems with string literals in char *.
24994         * tests/test-hash.c (main): Avoid shadowing declaration.
24995         (insert_new): Treat string literals as char const *.
24996         * tests/test-getopt.h (test_getopt): Likewise.
24997         (getopt_loop): Alter types to minimize casting elsewhere.
24998         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24999         (test_getopt_long_posix): Likewise.
25000         (do_getopt_long): Add wrapper to minimize casting.
25001         * tests/test-atexit.c (clear_temp_file): Use void.
25002         * tests/test-areadlink-with-size.c (main): Declare unused
25003         arguments.
25004         * tests/test-areadlink.c (main): Likewise.
25005         * tests/test-areadlinkat-with-size.c (main): Likewise.
25006         * tests/test-areadlinkat.c (main): Likewise.
25007         * tests/test-canonicalize-lgpl.c (main): Likewise.
25008         * tests/test-canonicalize.c (main): Likewise.
25009         * tests/test-dirent-safer.c (main): Likewise.
25010         * tests/test-dirname.c (main): Likewise.
25011         * tests/test-dup2.c (main): Likewise.
25012         * tests/test-fchdir.c (main): Likewise.
25013         * tests/test-fcntl-h.c (main): Likewise.
25014         * tests/test-fcntl-safer.c (main): Likewise.
25015         * tests/test-fdopendir.c (main): Likewise.
25016         * tests/test-fdutimensat.c (main): Likewise.
25017         * tests/test-fflush.c (main): Likewise.
25018         * tests/test-filenamecat.c (main): Likewise.
25019         * tests/test-filevercmp.c (main): Likewise.
25020         * tests/test-fopen-safer.c (main): Likewise.
25021         * tests/test-fopen.c (main): Likewise.
25022         * tests/test-fpending.c (main): Likewise.
25023         * tests/test-fpurge.c (main): Likewise.
25024         * tests/test-freading.c (main): Likewise.
25025         * tests/test-fstatat.c (main): Likewise.
25026         * tests/test-fsync.c (main): Likewise.
25027         * tests/test-futimens.c (main): Likewise.
25028         * tests/test-getndelim2.c (main): Likewise.
25029         * tests/test-gettimeofday.c (main): Likewise.
25030         * tests/test-getopt.c (main): Likewise.
25031         * tests/test-i-ring.c (main): Likewise.
25032         * tests/test-inttypes.c (main): Likewise.
25033         * tests/test-link.c (main): Likewise.
25034         * tests/test-lstat.c (main): Likewise.
25035         * tests/test-math.c (main): Likewise.
25036         * tests/test-md5.c (main): Likewise.
25037         * tests/test-memchr2.c (main): Likewise.
25038         * tests/test-memrchr.c (main): Likewise.
25039         * tests/test-mkdir.c (main): Likewise.
25040         * tests/test-mkdirat.c (main): Likewise.
25041         * tests/test-mkfifoat.c (main): Likewise.
25042         * tests/test-open.c (main): Likewise.
25043         * tests/test-openat-safer.c (main): Likewise.
25044         * tests/test-openat.c (main): Likewise.
25045         * tests/test-quotearg.c (main): Likewise.
25046         * tests/test-rawmemchr.c (main): Likewise.
25047         * tests/test-readlink.c (main): Likewise.
25048         * tests/test-remove.c (main): Likewise.
25049         * tests/test-rename.c (main): Likewise.
25050         * tests/test-renameat.c (main): Likewise.
25051         * tests/test-rmdir.c (main): Likewise.
25052         * tests/test-sha1.c (main): Likewise.
25053         * tests/test-signal.c (main): Likewise.
25054         * tests/test-sigaction.c (main): Likewise.
25055         * tests/test-stat.c (main): Likewise.
25056         * tests/test-stat-time.c (main): Likewise.
25057         * tests/test-stddef.c (main): Likewise.
25058         * tests/test-stdint.c (main): Likewise.
25059         * tests/test-stdio.c (main): Likewise.
25060         * tests/test-stdlib.c (main): Likewise.
25061         * tests/test-strchrnul.c (main): Likewise.
25062         * tests/test-strerror.c (main): Likewise.
25063         * tests/test-string.c (main): Likewise.
25064         * tests/test-strtod.c (main): Likewise.
25065         * tests/test-strverscmp.c (main): Likewise.
25066         * tests/test-symlink.c (main): Likewise.
25067         * tests/test-symlinkat.c (main): Likewise.
25068         * tests/test-sys_stat.c (main): Likewise.
25069         * tests/test-sys_time.c (main): Likewise.
25070         * tests/test-time.c (main): Likewise.
25071         * tests/test-unistd.c (main): Likewise.
25072         * tests/test-unlink.c (main): Likewise.
25073         * tests/test-unlinkat.c (main): Likewise.
25074         * tests/test-utimens.c (main): Likewise.
25075         * tests/test-utimensat.c (main): Likewise.
25076         * tests/test-version-etc.c (main): Likewise.
25077         * tests/test-wchar.c (main): Likewise.
25078         * tests/test-wctype.c (main): Likewise.
25079         * tests/test-xprintf-posix.c (main): Likewise.
25080         * tests/test-posixtm.c (main): Likewise.
25081         (STREQ): Delete unused macro.
25082         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
25083         shadowed variables.
25084         * tests/test-memchr.c (main): Likewise.
25085
25086 2009-10-21  Eric Blake  <ebb9@byu.net>
25087
25088         areadlinkat: avoid failure on older glibc
25089         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
25090         rather than mis-comparing 0 against FUNC_RESULT of char*.
25091
25092 2009-10-21  Bruno Haible  <bruno@clisp.org>
25093
25094         * modules/stpncpy (License): Relicense under LGPLv2+.
25095         Reported by David Lutterkort <lutter@redhat.com>.
25096
25097 2009-10-20  Eric Blake  <ebb9@byu.net>
25098
25099         utimensat: work around Solaris 9 bug
25100         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
25101         has trailing slash bugs.
25102         * tests/test-lutimens.h (test_lutimens): Enhance test.
25103         * tests/test-utimens.h (test_utimens): Likewise.
25104         * doc/posix-functions/utime.texi (utime): Enhance documentation.
25105         * doc/posix-functions/utimes.texi (utimes): Likewise.
25106         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25107         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
25108         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
25109         * doc/posix-functions/futimens.texi (futimens): Likewise.
25110
25111         fdutimensat: new module
25112         * modules/fdutimensat: New file.
25113         * lib/fdutimensat.c (fdutimensat): Likewise.
25114         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
25115         * MODULES.html.sh (File system functions): Mention module.
25116         * modules/fdutimensat-tests: New test.
25117         * tests/test-fdutimensat.c: Likewise.
25118
25119         doc: regenerate INSTALL
25120         * doc/INSTALL: Reflect recent autoconf update.
25121         * doc/INSTALL.ISO: Likewise.
25122         * doc/INSTALL.UTF-8: Likewise.
25123
25124 2009-10-20  Pádraig Brady  <P@draigBrady.com>
25125
25126         acl: warn if ACL support is not detected
25127         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
25128
25129 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
25130
25131         * lib/nproc.h: Add extern "C" block for C++.
25132
25133 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
25134             Bruno Haible  <bruno@clisp.org>
25135
25136         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
25137         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
25138         * doc/posix-functions/isalpha.texi: Likewise.
25139         * doc/posix-functions/isblank.texi: Likewise.
25140         * doc/posix-functions/iscntrl.texi: Likewise.
25141         * doc/posix-functions/isdigit.texi: Likewise.
25142         * doc/posix-functions/isgraph.texi: Likewise.
25143         * doc/posix-functions/islower.texi: Likewise.
25144         * doc/posix-functions/isprint.texi: Likewise.
25145         * doc/posix-functions/ispunct.texi: Likewise.
25146         * doc/posix-functions/isspace.texi: Likewise.
25147         * doc/posix-functions/isupper.texi: Likewise.
25148         * doc/posix-functions/isxdigit.texi: Likewise.
25149
25150 2009-10-18  Bruno Haible  <bruno@clisp.org>
25151
25152         Tests for module 'isblank'.
25153         * modules/isblank-tests: New file.
25154         * tests/test-isblank.c: New file.
25155
25156         New module 'isblank'.
25157         * lib/isblank.c: New file.
25158         * m4/isblank.m4: New file.
25159         * modules/isblank: New file.
25160         * doc/posix-functions/isblank.texi: Mention the new module.
25161
25162 2009-10-18  Bruno Haible  <bruno@clisp.org>
25163
25164         New module 'ctype'.
25165         * lib/ctype.in.h: New file.
25166         * m4/ctype.m4: New file.
25167         * modules/ctype: New file.
25168         * doc/posix-headers/ctype.texi: Mention the new module.
25169
25170 2009-10-18  Jim Meyering  <meyering@redhat.com>
25171
25172         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
25173         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
25174         right after its initialization, rather than farther down.
25175         Keeping these in close proximity makes it easier to ensure
25176         that each such variable is initialized.  E.g.,
25177
25178             LIB_CLOCK_GETTIME=
25179             AC_SUBST([LIB_CLOCK_GETTIME])
25180
25181         This change also increments these serial numbers.
25182         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
25183         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25185
25186 2009-10-18  Bruno Haible  <bruno@clisp.org>
25187
25188         Don't let environment variables perturb build.
25189         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
25190         (gl_PREREQ_GETHRXTIME): ... not here.
25191
25192 2009-10-18  Bruno Haible  <bruno@clisp.org>
25193
25194         Avoid symlink attack in localcharset module.
25195         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
25196         (O_NOFOLLOW): Define fallback.
25197         (get_charset_aliases): Don't open the file if it is a symbolic link.
25198         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
25199         gl_FCNTL_H.
25200         (gl_FCNTL_H): Require it.
25201         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
25202         * modules/localcharset (Files): Add m4/fcntl_h.m4.
25203         Reported by Fergal Glynn <fglynn@veracode.com>.
25204
25205 2009-10-18  Bruno Haible  <bruno@clisp.org>
25206
25207         Implement nproc for mingw.
25208         * lib/nproc.c: Include <windows.h>
25209         (num_processors): On native Windows platforms, try GetSystemInfo.
25210
25211 2009-10-18  Bruno Haible  <bruno@clisp.org>
25212
25213         Implement nproc for IRIX.
25214         * lib/nproc.c: Include <sys/sysmp.h>.
25215         (num_processors): On IRIX systems, try sysmp.
25216         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25217
25218 2009-10-18  Bruno Haible  <bruno@clisp.org>
25219
25220         Implement nproc for HP-UX.
25221         * lib/nproc.c: Include <sys/pstat.h>
25222         (num_processors): On HP-UX systems, try pstat_getdynamic.
25223         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25224         pstat_getdynamic.
25225
25226 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25227             Bruno Haible  <bruno@clisp.org>
25228
25229         Implement nproc for NetBSD, OpenBSD.
25230         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25231         (ARRAY_SIZE): New macro.
25232         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25233         * m4/nproc.m4: New file.
25234         * modules/nproc (Files): Add m4/nproc.m4.
25235         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25236         (Makefile.am): Instead, augment lib_SOURCES.
25237
25238 2009-10-18  Bruno Haible  <bruno@clisp.org>
25239
25240         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25241         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25242         sys/param.h.
25243
25244 2009-10-16  Eric Blake  <ebb9@byu.net>
25245
25246         utimensat: new module
25247         * modules/utimensat: New file.
25248         * lib/utimensat.c (utimensat): Likewise.
25249         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25250         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25251         so we can work around Linux bugs.
25252         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25253         * modules/sys_stat (Makefile.am): Substitute them.
25254         * lib/sys_stat.in.h (utimensat): Declare it.
25255         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25256         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25257         * modules/utimensat-tests: New test.
25258         * tests/test-utimensat.c: Likewise.
25259
25260         utimens: let lutimens work on non-symlinks
25261         * lib/utimens.c (lutimens): Fall back to utimens rather than
25262         failing with ENOSYS, when file is not a symlink.
25263         (utimens): Reduce redirection.
25264         * tests/test-lutimens.h (test_lutimens): Update test to cover
25265         non-symlinks.
25266         * tests/test-utimens.h (test_utimens): Update test to cover
25267         symlinks.
25268         * tests/test-utimens.c (main): Update caller.
25269
25270         utimens: cache whether utimensat syscall works
25271         * lib/utimens.c (utimensat_works_really): New cache variable.
25272         (fdutimens, lutimens): Use it to avoid failing syscall.
25273
25274         test-stat-time, test-utimens: improve portability
25275         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25276         ext4 on alpha, and for cygwin.
25277         * tests/test-utimens-common.h: New file.
25278         (nap): Factor delays into single function.
25279         * tests/test-lutimens.h (test_lutimens): Use new header.
25280         * tests/test-futimens.h (test_futimens): Likewise.
25281         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25282         timestamps to occur from same machine, as was done previously for
25283         test_utimens.
25284         * modules/utimens-tests (Files): Ship new file.
25285         * modules/futimens-tests (Files): Likewise.
25286         Reported in part by Jim Meyering.
25287
25288         sys_stat: sort replacement declarations
25289         * lib/sys_stat.in.h: Sort declarations.
25290         * lib/futimens.c (futimens): Fix typo.
25291
25292 2009-10-15  Jim Meyering  <meyering@redhat.com>
25293
25294         don't let environment settings perturb build
25295         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25296         could cause a configure-time and/or build-time malfunction.
25297         Typically, a configure-time function-in-library test is performed
25298         via code like this:
25299
25300           LIB_VAR=
25301           AC_SUBST([LIB_VAR])
25302           prefix_saved_LIBS=$LIBS
25303             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25304                        [test "$ac_cv_search_FUNC" = "none required" ||
25305                         LIB_VAR=$ac_cv_search_FUNC])
25306           LIBS=$prefix_saved_LIBS
25307
25308         However, in each of the files affected by this change, the LIB_VAR=
25309         initialization was omitted.  Thus, when set in the environment, its
25310         value would propagate into generated Makefiles when FUNC is not found
25311         in LIB_NAME.
25312         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25313         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25315
25316 2009-10-14  Eric Blake  <ebb9@byu.net>
25317
25318         fchdir: avoid infinite recursion in mingw
25319         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25320         recursing.
25321
25322         test-stat-time: port to mingw
25323         * tests/test-stat-time.c (force_unlink): Return a value.
25324         (test_ctime) [W32]: Fix compilation error.
25325         (nap): Don't call usleep with too large an argument.  Use
25326         force_unlink.
25327         * doc/pastposix-functions/usleep.texi (usleep): Document the
25328         portability issue.
25329
25330 2009-10-13  Jim Meyering  <meyering@redhat.com>
25331
25332         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25333         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25334         * modules/pipe-filter-ii: Likewise.
25335         * modules/sys_socket-tests: Likewise.
25336         * modules/tsearch-tests: Likewise.
25337         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25338         (check): Depend on it.
25339
25340 2009-10-12  Eric Blake  <ebb9@byu.net>
25341
25342         utimens-tests: port to NFS file systems
25343         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25344         comparisons to avoid spurious failures from timestamp drift
25345         between NFS machines.
25346
25347 2009-10-12  Eric Blake  <ebb9@byu.net>
25348
25349         stat-time-tests: minor cleanups
25350         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25351         * tests/test-stat-time.c (nap): Separate assignment from call.
25352         Suggested by Paolo Bonzini and Bruno Haible.
25353
25354         sys_stat: guarantee struct timespec
25355         * lib/sys_stat.in.h (includes): Always include <time.h>
25356         * modules/sys_stat (Depends-on): Add time.
25357         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25358         mode_t permission values.
25359         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25360         get at subsecond timestamps.
25361
25362 2009-10-10  Eric Blake  <ebb9@byu.net>
25363
25364         futimens: new module
25365         * modules/futimens: New file.
25366         * lib/futimens.c (futimens): Likewise.
25367         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25368         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25369         we can work around Linux bugs.
25370         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25371         * modules/sys_stat (Makefile.am): Substitute them.
25372         * lib/sys_stat.in.h (futimens): Declare it.
25373         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25374         * doc/posix-functions/futimens.texi (futimens): Likewise.
25375         * modules/futimens-tests: New test.
25376         * tests/test-futimens.c: Likewise.
25377
25378         utimens: introduce fdutimens
25379         * lib/utimens.h (fdutimens): New prototype.
25380         * lib/utimens.c (gl_futimens): Move guts...
25381         (fdutimens): ...to new interface.
25382         * tests/test-utimens.c (do_fdutimens): Use it.
25383
25384         utimens: add UTIME_NOW and UTIME_OMIT support
25385         * lib/utimens.c (validate_timespec, update_timespec): New helper
25386         functions.
25387         (gl_futimens, lutimens): Use them.
25388         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25389         stdbool, sys_stat.
25390         (Link): Mention resulting library dependency.
25391         * modules/utimecmp (Link): Likewise.
25392         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25393         (Makefile.am): Pick up library dependency.
25394         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25395         definition.
25396         * tests/test-sys_stat.c: Test the definitions.
25397         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25398         * NEWS: Document library dependency.
25399
25400         utimecmp: support symlink timestamps
25401         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25402         hashing when possible.  Use pathconf when available.
25403         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25404         * modules/utimecmp (Depends-on): Add lstat.
25405
25406         utimens: add lutimens interface
25407         * lib/utimens.c (lutimens): New function.
25408         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25409         * lib/utimens.h (lutimens): Declare new interface.
25410         * tests/test-utimens.c (main): Enhance test.
25411         * tests/test-lutimens.h (test_lutimens): New file.
25412         * modules/utimens-tests (Files): Distribute it.
25413         (Depends-on): Add symlink.
25414         (configure.ac): Check for usleep.
25415
25416         utimens: validate futimens usage
25417         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25418         fewer syscalls on failure later on.  Avoid compiler warning on
25419         mingw.
25420         * modules/utimens (Depends-on): Add dup2.
25421
25422         utimens: add test
25423         * modules/utimens-tests: New test.
25424         * tests/test-utimens.h: New file.
25425         * tests/test-futimens.h: Likewise.
25426         * tests/test-utimens.c: Likewise.
25427
25428         doc: mention timestamp portability issues
25429         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25430         instead.
25431         * doc/posix-functions/utime.texi (utime): Likewise.
25432         * doc/posix-functions/utimes.texi (utimes): Likewise.
25433         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25434         instead.
25435         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25436         module.
25437         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25438         Mention weakness with symlink timestamps.
25439         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25440         to utimensat/futimens instead.
25441         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25442
25443         test-dup2: enhance test
25444         * tests/test-dup2.c (main): Also check AT_FDCWD.
25445
25446         test-stat-time: avoid more spurious failures
25447         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25448         xfs; and avoid race if the two timestamps cross quantization edge.
25449
25450         relocatable: prefer 'file system' over 'filesystem'
25451         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25452         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25453         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25454         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25455         * lib/relocatable.c (compute_curr_prefix): Likewise.
25456
25457 2009-10-10  Jim Meyering  <meyering@redhat.com>
25458
25459         stat-time-tests: check for the usleep function
25460         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25461
25462 2009-10-10  Bruno Haible  <bruno@clisp.org>
25463
25464         * modules/xnanosleep: Put the Link section after the Include section.
25465
25466 2009-10-09  Eric Blake  <ebb9@byu.net>
25467
25468         dup2: work around FreeBSD 6.1 bug
25469         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25470         * doc/posix-functions/dup2.texi (dup2): Document it.
25471         Reported by Nelson H. F. Beebe and Jim Meyering.
25472
25473         test-stat-time: port to buggy NFS clients
25474         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25475         (test_ctime): Also skip test if mtime and ctime are skewed.
25476
25477         maint: prefer 'file system' over 'filesystem'
25478         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25479         * doc/posix-functions/lstat.texi (lstat): Likewise.
25480         * lib/file-has-acl.c (file_has_acl): Likewise.
25481         * lib/fwriteerror.c [TEST]: Likewise.
25482         * tests/test-areadlink.h (test_areadlink): Likewise.
25483         * tests/test-areadlinkat-with-size.c (main): Likewise.
25484         * tests/test-areadlinkat.c (main): Likewise.
25485         * tests/test-canonicalize-lgpl.c (main): Likewise.
25486         * tests/test-canonicalize.c (main): Likewise.
25487         * tests/test-fstatat.c (main): Likewise.
25488         * tests/test-linkat.c (main): Likewise.
25489         * tests/test-lstat.h (test_lstat_func): Likewise.
25490         * tests/test-mkdir.h (test_mkdir): Likewise.
25491         * tests/test-readlink.h (test_readlink): Likewise.
25492         * tests/test-remove.c (main): Likewise.
25493         * tests/test-rename.h (test_rename): Likewise.
25494         * tests/test-renameat.c (main): Likewise.
25495         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25496         * tests/test-symlink.h (test_symlink): Likewise.
25497         * tests/test-symlinkat.c (main): Likewise.
25498         * tests/test-unlink.h (test_unlink_func): Likewise.
25499         * tests/test-unlinkat.c (main): Likewise.
25500
25501         maint: make realtime library usage explicit
25502         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25503         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25504         * modules/settime (Link): Likewise.
25505         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25506
25507         test-stat-time: speed up execution
25508         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25509         warning on mingw.
25510         (nap): New helper function.
25511         (prepare_test): Use it to reduce sleep time.
25512         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25513         execution.
25514         * modules/stat-time-tests (configure.ac): Check for usleep.
25515
25516 2009-10-09  Jim Meyering  <meyering@redhat.com>
25517
25518         selinux-h: always use getfilecon wrappers
25519         * lib/getfilecon.c: New file.
25520         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25521         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25522         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25523         (fgetfilecon): Provide a stub.
25524         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25525         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25526         file unconditionally.
25527         When <selinux/selinux.h> is found, arrange to use wrappers.
25528         * modules/selinux-h (Files): Add getfilecon.c.
25529         (Makefile.am): Substitute include-next-related bits
25530         into the now-always-generated selinux/selinux.h file.
25531         * doc/glibc-functions/lgetfilecon.texi: New file.
25532         * doc/glibc-functions/fgetfilecon.texi: New file.
25533         * doc/glibc-functions/getfilecon.texi: New file.
25534         * doc/glibc-functions/getfilecon-desc.texi: New file.
25535         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25536         which to pull in the new files.
25537         * MODULES.html.sh (Misc): Add selinux-h.
25538
25539 2009-10-08  Jim Meyering  <meyering@redhat.com>
25540
25541         unistd: fix comment typo
25542         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25543
25544 2009-10-08  Eric Blake  <ebb9@byu.net>
25545
25546         areadlink: use SIZE_MAX consistently
25547         * modules/areadlink (Depends-on): Add stdint.
25548         * modules/areadlink-with-size (Depends-on): Likewise.
25549         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25550         gives NULL; drop sys/types, since unistd gives size_t; and add
25551         stdint for SIZE_MAX.
25552         (SIZE_MAX): Rely on headers.
25553         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25554         and add stdint.
25555         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25556         (SIZE_MAX): Likewise.
25557         (INITIAL_BUF_SIZE): Turn into enum.
25558         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25559
25560 2009-10-08  Jim Meyering  <meyering@redhat.com>
25561
25562         areadlinkat: avoid compilation failure
25563         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25564         Fix typo in comment.
25565
25566 2009-10-07  Eric Blake  <ebb9@byu.net>
25567
25568         areadlinkat-with-size: new module
25569         * modules/areadlinkat-with-size: New module.
25570         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25571         * lib/areadlink.h (areadlinkat): Declare it.
25572         * MODULES.html.sh (File system functions): Mention it.
25573         * modules/areadlinkat-with-size-tests: New test.
25574         * tests/test-areadlinkat-with-size.c: New file.
25575
25576         xreadlinkat: new module
25577         * modules/xreadlinkat: New module.
25578         * lib/xreadlinkat.c (xreadlinkat): New file.
25579         * lib/xreadlink.h (xreadlinkat): Declare it.
25580         * MODULES.html.sh (File system functions): Mention it.
25581
25582         areadlinkat: new module
25583         * lib/at-func.c (FUNC_FAIL): New define.
25584         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25585         * modules/areadlinkat: New module.
25586         * lib/linkat.c (areadlinkat): Move...
25587         * lib/areadlinkat.c (areadlinkat): ...to new file.
25588         * lib/areadlink.h (areadlinkat): Declare it.
25589         * modules/linkat (Depends-on): Add areadlinkat.
25590         * MODULES.html.sh (File system functions): Mention it.
25591         * modules/areadlinkat-tests: New test.
25592         * tests/test-areadlinkat.c: New file.
25593
25594         areadlink, areadlink-with-size: add tests
25595         * modules/areadlink-tests: New test.
25596         * modules/areadlink-with-size-tests: Likewise.
25597         * tests/test-areadlink.h: New file.
25598         * tests/test-areadlink.c: Likewise.
25599         * tests/test-areadlink-with-size.c: Likewise.
25600
25601         maint: minor cleanups
25602         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25603         _UNUSED_PARAMETER_ instead.
25604         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25605         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25606         * modules/linkat-tests (Files): Distribute test-link.h.
25607
25608         openat, utimens: whitespace cleanup
25609         * lib/openat.c: Prefer space throughout, rather than mix of 8
25610         spaces vs. tabs.
25611         * lib/at-func.c: Likewise.
25612         * lib/utimens.c: Likewise.
25613
25614         openat: avoid using wrong fd
25615         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25616         working directory chooses same fd.
25617         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25618
25619         mkdir, mkdirat: fix cygwin 1.5.x bug
25620         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25621         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25622         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25623         bug.
25624         (gl_PREREQ_MKDIR): Delete unused macro.
25625         * modules/mkdir (Files): Track file rename.
25626         (configure.ac): Update macro name.
25627         * modules/openat (Depends-on): Add mkdir.
25628         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25629
25630         mkdir, mkdirat: add tests
25631         * modules/mkdir-tests: New test.
25632         * tests/test-mkdir.h: New file.
25633         * tests/test-mkdir.c: Likewise.
25634         * tests/test-mkdirat.c: Likewise.
25635         * modules/openat-tests (Files): Add new files.
25636         (Makefile.am): Run new test.
25637
25638 2009-10-06  Eric Blake  <ebb9@byu.net>
25639
25640         doc: tweak *at function documentation
25641         * doc/posix-functions/faccessat.texi (faccessat): Mention
25642         known issue with replacement.
25643         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25644         * doc/posix-functions/linkat.texi (linkat): Likewise.
25645         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25646         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25647         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25648         * doc/posix-functions/renameat.texi (renameat): Likewise.
25649         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25650
25651         openat: fix GNU/Hurd bug in unlinkat
25652         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25653         broken.
25654         * doc/posix-functions/unlink.texi (unlink): Document this.
25655         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25656
25657         fdopendir: fix GNU/Hurd bug
25658         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25659         allowing non-directory fds.
25660         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25661         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25662         * modules/dirent (Makefile.am): Substitute it.
25663         * lib/dirent.in.h (fdopendir): Declare replacement.
25664         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25665         * tests/test-fdopendir.c (main): Test something other than
25666         /dev/null, since on Hurd that behaves like a directory.
25667
25668         test-symlink: port to GNU/Hurd
25669         * tests/test-symlink.h (test_symlink): Relax expected errno.
25670
25671         doc: tweak more cygwin information
25672         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25673         now compatible with glibc.
25674         * doc/posix-functions/getopt.texi (getopt): Likewise.
25675
25676         getopt-gnu: add another test
25677         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25678         guarantee behavior relied on by m4.
25679         * tests/test-getopt.c (main): Use it.
25680         * modules/getopt-posix-tests (Depends-on): Add setenv.
25681         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25682
25683         getopt: fix compilation on darwin
25684         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25685         include.
25686         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25687         Reported by Ludovic Courtès.
25688
25689 2009-10-06  Bruno Haible  <bruno@clisp.org>
25690
25691         * modules/size_max (Description): Discourage its use.
25692         Reported by Simon Josefsson.
25693
25694 2009-10-06  Jim Meyering  <meyering@redhat.com>
25695
25696         linkat: avoid compilation failure
25697         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25698
25699 2009-10-05  Eric Blake  <ebb9@byu.net>
25700
25701         linkat: support Linux 2.6.17
25702         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25703         linkat on Linux, but allow cache variable override.
25704         * lib/linkat.c (rpl_linkat): Define override.
25705         * modules/linkat (Depends-on): Add symlinkat.
25706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25707         * modules/unistd (Makefile.am): Substitute it.
25708         * lib/unistd.in.h (linkat): Declare replacement.
25709         Reported by Pádraig Brady.
25710
25711         quotearg: port test to systems with C.UTF-8 locale
25712         * tests/test-quotearg.c (struct result_strings): Add another
25713         member, differentiating between C.ASCII and C.UTF-8 handling.
25714         (compare_strings): Add parameter.
25715         (main): Adjust all callers.
25716
25717         getopt: avoid clash with FreeBSD _getopt_internal
25718         * lib/getopt.in.h (_getopt_internal): Override the name.
25719         * lib/getopt_int.h (includes): Pick up any overrides.
25720         Reported by Reuben Thomas.
25721
25722         hash: allow C89 compilation
25723         * lib/hash.c (check_tuning): Move declaration before statement.
25724         Reported by Reuben Thomas.
25725
25726 2009-10-05  Karl Berry  <karl@gnu.org>
25727
25728         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25729
25730 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25731             Bruno Haible  <bruno@clisp.org>
25732
25733         * lib/uname.c (uname): Use a table-driven algorithm to compute
25734         Windows NT versions.
25735
25736 2009-10-04  Bruno Haible  <bruno@clisp.org>
25737
25738         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25739         program_invocation_short_name.
25740         * modules/progname (configure.ac): Test for presence of
25741         program_invocation_short_name.
25742         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25743
25744 2009-10-04  Bruno Haible  <bruno@clisp.org>
25745
25746         * lib/progname.c (set_program_name): Fix comment.
25747         Reported by Jim Meyering.
25748
25749 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25750             Bruno Haible  <bruno@clisp.org>
25751
25752         * lib/uname.c: Include <string.h>.
25753         (uname): Do only one call to GetVersionEx in the common case.
25754
25755 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25756             Bruno Haible  <bruno@clisp.org>
25757
25758         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25759         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25760         (uname): Add support for Windows CE and various non-x86 CPU types.
25761
25762 2009-10-03  Bruno Haible  <bruno@clisp.org>
25763
25764         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25765         invocation to tests/configure.ac.
25766         Reported by Ian Beckwith <ianb@erislabs.net>.
25767
25768 2009-10-02  Eric Blake  <ebb9@byu.net>
25769
25770         fchdir: avoid compiler warning
25771         * lib/fchdir.c (canonicalize_file_name)
25772         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25773
25774         test-open: support mingw errno values
25775         * tests/test-open.h (test_open): Relax test.
25776         * tests/test-fopen.h (test_fopen): Likewise.
25777         * tests/test-openat-safer.c (main): Likewise.
25778
25779         open: fix opening directory on mingw
25780         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25781
25782         test-open: on GNU/Hurd, /dev/null is a directory
25783         * tests/test-fopen.h (main): Rename...
25784         (test_fopen): ...to this.  Use a guaranteed non-directory when
25785         confirming open behavior on trailing slash.
25786         * tests/test-openat-safer.c (main): Likewise.
25787         * tests/test-open.h (main): Likewise....
25788         (test_open): ...to this.
25789         * tests/test-fopen.c (main): Adjust caller.
25790         * tests/test-fopen-safer.c (main): Likewise.
25791         * tests/test-open.c (main): Likewise.
25792         * tests/test-fcntl-safer.c (main): Likewise.
25793         Reported by Samuel Thibault.
25794
25795         rename, fchdir: don't ignore chdir failure
25796         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25797         * lib/rename.c (rpl_rename) [W32]: Likewise.
25798         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25799         an empty destination directory if source cannot be renamed,
25800         although there is still possibility for failure.
25801         * doc/posix-functions/rename.texi (rename): Document the race.
25802         Reported by Jim Meyering.
25803
25804         maint: cleanup whitespace in recent commits
25805         * lib/rename.c (rpl_rename): Remove tabs.
25806         * tests/test-link.h (test_link): Likewise.
25807         * lib/fchdir.c (get_name): Likewise.
25808         Reported by Jim Meyering.
25809
25810 2009-10-02  Ben Pfaff  <blp@gnu.org>
25811
25812         relocatable-prog-wrapper: Add missing dependency on
25813         double-slash-root.
25814         * modules/relocatable-prog-wrapper: Add dependency.
25815         Reported by Ian Beckwith <ianb@erislabs.net>.
25816
25817 2009-10-02  Eric Blake  <ebb9@byu.net>
25818
25819         renameat: fix Solaris bugs
25820         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25821         needed fixing.
25822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25823         * modules/stdio (Makefile.am): Substitute it.
25824         * lib/stdio.in.h (renameat): Declare replacement.
25825         * lib/renameat.c (rpl_renameat): Implement fix.
25826
25827         renameat: new module
25828         * modules/renameat: New file.
25829         * lib/renameat.c (renameat): Likewise.
25830         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25832         * modules/stdio (Makefile.am): Substitute them.
25833         * lib/stdio.in.h (renameat): Declare it.
25834         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25835         * doc/posix-functions/renameat.texi (renameat): Likewise.
25836         * modules/renameat-tests: New test.
25837         * tests/test-renameat.c: Likewise.
25838
25839         rename: fix mingw bugs
25840         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25841         directory overwrite bugs.
25842
25843         rename: fix another cygwin 1.5 bug
25844         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25845         checks.
25846         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25847         unnecessary cygwin workarounds.  Also work around bug with moving
25848         full directory onto an empty one.
25849         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25850
25851         rename-dest-slash: merge into rename module
25852         * modules/rename-dest-slash (Status): Mark obsolete.
25853         (Depends-on): Add rename.
25854         (Files): Let rename do it all.
25855         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25856         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25857         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25858         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25859         * lib/rename.c (rpl_rename): Update comments.
25860
25861         rename: fix cygwin 1.5.x bugs
25862         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25863         * lib/rename.c (rpl_rename): Work around them.
25864         * modules/rename (Depends-on): Add same-inode.
25865
25866         rename: fix Solaris 10 bug
25867         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25868         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25869         was the only bug.
25870
25871         rename: fix Solaris 9 bug
25872         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25873         on non-directory.  Avoid calling exit.
25874         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25875         strdup.
25876         * modules/rename-tests (Depends-on): Drop lstat.
25877         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25878         (gl_PREREQ_RENAME): Delete unused macro.
25879
25880         rename-dest-slash: fix NetBSD bug
25881         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25882         links.
25883         * modules/rename-dest-slash (Depends-on): Add same-inode.
25884
25885         rename-tests: new test, exposes several platform bugs
25886         * modules/rename-tests: New file.
25887         * tests/test-rename.h: Likewise.
25888         * tests/test-rename.c: Likewise.
25889         * doc/posix-functions/rename.texi (rename): Improve documentation,
25890         including bugs that will eventually be fixed in gnulib.
25891
25892 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25893
25894         * lib/uname.c: Include <stdlib.h>
25895         (uname): Assume version info is available.
25896
25897 2009-10-02  Jim Meyering  <meyering@redhat.com>
25898
25899         gnu-web-doc-update: correct --help output
25900         * build-aux/gnu-web-doc-update: Make --help output relevant.
25901
25902         gnu-web-doc-update: add standard options
25903         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25904
25905         gnu-web-doc-update: New module.
25906         Use this script to automatically update the on-line web documentation
25907         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25908         * modules/gnu-web-doc-update: New file, from coreutils.
25909         * build-aux/gnu-web-doc-update: New script.
25910
25911 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25912
25913         link: LoadLibrary is not needed.
25914         * lib/link.c: Use GetModuleHandle.
25915
25916 2009-10-01  Eric Blake  <ebb9@byu.net>
25917
25918         getopt: bump serial number
25919         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25920         change.
25921
25922         tests: tighten link, rmdir, and remove tests
25923         * tests/test-link.h (includes): No need to use <config.h> here.
25924         Clean up if directory hard link was created, otherwise test for
25925         trailing '.'.
25926         * tests/test-linkat.c (main): Simplify.
25927         * tests/test-remove.c (main): Enhance test for trailing '.'.
25928         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25929
25930 2009-10-01  Jim Meyering  <meyering@redhat.com>
25931
25932         maint.mk: requiring "make major" was annoying, for a "minor" release.
25933         What is intended is "stable", to contrast with alpha and beta,
25934         so require "make stable", not "make major".
25935         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25936         (get_tool_versions): Likewise.
25937         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25938
25939 2009-09-30  Ben Pfaff  <blp@gnu.org>
25940
25941         Fix broken build of replacement for Windows tmpfile().
25942         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25943         flags argument added along with the 'mkostemp' module.
25944
25945 2009-09-28  Bruno Haible  <bruno@clisp.org>
25946
25947         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25948         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25949         to 'remove_elt'.
25950         (gl_list_remove): Update.
25951         * lib/gl_list.c (gl_list_remove): Update.
25952         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25953         to 'remove_elt'.
25954         (gl_oset_remove): Update.
25955         * lib/gl_list.c (gl_oset_remove): Update.
25956         Reported by Eric Blake.
25957
25958 2009-09-28  Eric Blake  <ebb9@byu.net>
25959
25960         doc: mention yet more cygwin 1.7 status
25961         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25962         cygwin.
25963         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25964         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25965
25966         argp: fix test failure
25967         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25968         that are not upper-case.  Pass correct range to tolower.
25969
25970 2009-09-27  Jim Meyering  <meyering@redhat.com>
25971
25972         test-yesno: work around sparc-dash here-document infelicity
25973         Without this change, the literal \177 byte in a here document
25974         would make dash 0.5.5.1-3 access uninitialized memory.
25975         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25976         Instead, use a marker, "@", and filter through tr to create the desired
25977         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25978
25979 2009-09-27  Bruno Haible  <bruno@clisp.org>
25980
25981         Disable untested support for new flavours of ACLs on AIX.
25982         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25983         progress.
25984         * lib/set-mode-acl.c (qset_acl): Likewise.
25985
25986 2008-12-07  Bruno Haible  <bruno@clisp.org>
25987
25988         Add support for new flavours of ACLs on AIX. (Untested.)
25989         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25990         (file_has_acl): Add support for newer AIX.
25991         * lib/set-mode-acl.c (qset_acl): Likewise.
25992         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25993         Rainer Tammer <tammer@tammer.net>.
25994
25995 2009-09-26  Eric Blake  <ebb9@byu.net>
25996
25997         argp: fix compilation of getopt
25998         * lib/getopt.in.h (includes): Use different guard than glibc.
25999         Reported by Sergey Poznyakoff.
26000
26001         doc: mention more cygwin 1.7 status
26002         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
26003         bug.
26004         * doc/posix-functions/execl.texi (execl): Likewise.
26005         * doc/posix-functions/execle.texi (execle): Likewise.
26006         * doc/posix-functions/execlp.texi (execlp): Likewise.
26007         * doc/posix-functions/execv.texi (execv): Likewise.
26008         * doc/posix-functions/execve.texi (execve): Likewise.
26009         * doc/posix-functions/execvp.texi (execvp): Likewise.
26010         * doc/glibc-functions/canonicalize_file_name.texi
26011         (canonicalize_file_name): Cygwin 1.7 now provides this.
26012         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
26013         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
26014         on AT_SYMLINK_NOFOLLOW.
26015
26016 2009-09-24  Eric Blake  <ebb9@byu.net>
26017
26018         test-linkat: make test more robust
26019         * tests/test-linkat.c (main): Avoid collision with EEXIST.
26020
26021         getopt: fix inclusion guards for cygwin
26022         * modules/getopt-posix (Depends-on): Add include-next.
26023         (Makefile.am): Substitute more items in replacement header.
26024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
26025         <getopt.h>.
26026         * lib/getopt.in.h (includes): Use split inclusion guard, and
26027         prefer <getopt.h> over include <unistd.h> when one is present.
26028         (option): Also override name of 'struct option'.
26029
26030         same-inode: revert prior change; it is not yet ready
26031         * NEWS: Undo mention of this change.
26032         * lib/same-inode.h (same-inode.h): Undo tri-state change.
26033         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26034         * lib/cycle-check.c (cycle_check): Likewise.
26035         * lib/same.c (same_name): Likewise.
26036         * lib/at-func2.c (at_func2): Likewise.
26037
26038 2009-09-23  Eric Blake  <ebb9@byu.net>
26039
26040         linkat: new module
26041         * modules/linkat: New file.
26042         * lib/at-func2.c (at_func2): Likewise.
26043         * lib/linkat.c (linkat): Likewise.
26044         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26045         * lib/openat-priv.h (at_func2): Add declaration.
26046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26047         * modules/unistd (Makefile.am): Substitute them.
26048         * lib/unistd.in.h (linkat): Declare it.
26049         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26050         * doc/posix-functions/linkat.texi (linkat): Likewise.
26051         * doc/posix-functions/link.texi (link): Tweak wording.
26052         * tests/test-link.c (main): Move guts...
26053         * tests/test-link.h (test_link): ...into new file.
26054         * modules/linkat-tests: New test.
26055         * tests/test-linkat.c: Likewise.
26056         * modules/link-tests (Files): Ship new file.
26057         (Depends-on): Add stdbool.
26058
26059         dirname: add library-safe mdir_name
26060         * lib/dirname.h (mdir_name): New prototype.
26061         * lib/dirname.c (dir_name): Move guts...
26062         (mdir_name): ...to new function that avoids xalloc_die.
26063
26064         fchdir: another mingw fix
26065         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
26066         * lib/fchdir.c (get_name): New helper method; skips canonicalize
26067         on mingw (where it has not yet been ported), and make it optional
26068         elsewhere.
26069         (_gl_register_fd): Use it.
26070
26071         same-inode: make SAME_INODE tri-state, to port to mingw
26072         * NEWS: Mention this change.
26073         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
26074         st_ino always being 0.
26075         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
26076         * lib/cycle-check.c (cycle_check): Likewise.
26077         * lib/same.c (same_name): Likewise.
26078
26079         lstat: avoid mingw compilation error
26080         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
26081         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
26082         lstat ourselves.
26083         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
26084         was adequate.
26085         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
26086         the checks for lstat.
26087         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
26088
26089         link: fix test failure on Solaris 9
26090         * lib/link.c (rpl_link): Don't assume link will catch bogus
26091         trailing slash on source.
26092
26093         test-symlinkat: enhance test
26094         * tests/test-readlink.c (main): Move guts...
26095         * tests/test-readlink.h (test_readlink): ...into new file.
26096         * tests/test-symlink.c (main): Move guts...
26097         * tests/test-symlink.h (test_symlink): ...into new file.
26098         * tests/test-symlinkat.c (main): Use new files for further
26099         coverage.
26100         (do_symlink, do_readlink): New helper functions.
26101         * modules/symlink-tests (Files): Ship new file.
26102         (Depends-on): Add stdbool.
26103         * modules/readlink-tests (Files): Ship new file.
26104         (Depends-on): Add stdbool.
26105         * modules/symlinkat-tests (Files): Use new files.
26106
26107 2009-09-23  Eric Blake  <ebb9@byu.net>
26108
26109         readlink: document portability issue with symlink length
26110         * doc/posix-functions/lstat.texi (lstat): Mention that some file
26111         systems have bogus st_size on symlinks, and mention the
26112         areadlink-with-size module.
26113         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
26114         * doc/posix-functions/readlink.texi (readlink): Mention the
26115         areadlink module, and ERANGE failure.
26116         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26117         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
26118
26119         readlink: fix Solaris 9 bug with trailing slash
26120         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
26121         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
26122         * doc/posix-functions/readlink.texi (readlink): Document this.
26123         * modules/readlink-tests: New test.
26124         * tests/test-readlink.c: Likewise.
26125
26126         readlink: fix cygwin 1.5.x bug with return type
26127         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
26128         * lib/unistd.in.h (readlink): Use ssize_t.
26129         * lib/readlink.c (readlink): Likewise.
26130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26131         * modules/unistd (Makefile.am): Substitute it.
26132         * lib/unistd.in.h (readlink): Declare replacement.
26133         * doc/posix-functions/readlink.texi (readlink): Document this.
26134
26135         symlink: use throughout gnulib
26136         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
26137         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
26138         symlink is not used.
26139         * modules/symlinkat (Depends-on): Add symlink.
26140         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26141         * modules/canonicalize-tests (Depends-on): Likewise.
26142         * modules/lstat-tests (Depends-on): Likewise.
26143         * modules/openat-tests (Depends-on): Likewise.
26144         * modules/remove-tests (Depends-on): Likewise.
26145         * modules/rmdir-tests (Depends-on): Likewise.
26146         * modules/unlink-tests (Depends-on): Likewise.
26147         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
26148         * tests/test-canonicalize.c (symlink): Likewise.
26149         * tests/test-fstatat.c (symlink): Likewise.
26150         * tests/test-lstat.c (symlink): Likewise.
26151         * tests/test-remove.c (symlink): Likewise.
26152         * tests/test-rmdir.c (symlink): Likewise.
26153         * tests/test-unlink.c (symlink): Likewise.
26154         * tests/test-unlinkat.c (symlink): Likewise.
26155
26156         symlink: new module, for Solaris 9 bug
26157         * modules/symlink: New file.
26158         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26159         * lib/symlink.c: Likewise.
26160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
26161         * modules/unistd (Makefile.am): Substitute them.
26162         * lib/unistd.in.h (symlink): Declare replacement.
26163         * MODULES.html.sh (File system functions): Mention it.
26164         * doc/posix-functions/symlink.texi (symlink): Likewise.
26165         * modules/symlink-tests: New test.
26166         * tests/test-symlink.c: Likewise.
26167
26168 2009-09-23  Bruno Haible  <bruno@clisp.org>
26169
26170         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
26171         when needed.
26172         Test case: gnulib-tool --import --with-tests atexit inttypes.
26173         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
26174
26175 2009-09-23  Bruno Haible  <bruno@clisp.org>
26176
26177         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
26178         subcommand, not in a subshell.
26179
26180 2009-09-22  Eric Blake  <ebb9@byu.net>
26181
26182         unistd: sort replacement declarations
26183         * lib/unistd.in.h: Sort declarations.
26184
26185         open, openat: minor optimization
26186         * lib/open.c (open): If open succeeded, len is non-zero.
26187         * lib/openat.c (rpl_openat): Likewise.
26188
26189         link-follow: ensure correct result
26190         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
26191         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
26192         distinguish between possible failures.
26193
26194 2009-09-21  Eric Blake  <ebb9@byu.net>
26195
26196         fts: avoid compiler warning
26197         * lib/fts.c (dirent_inode_sort_may_be_useful)
26198         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
26199
26200 2009-09-19  Bruno Haible  <bruno@clisp.org>
26201
26202         * lib/progreloc.c (canonicalize_file_name): New declaration.
26203
26204 2009-09-19  Eric Blake  <ebb9@byu.net>
26205
26206         link: fix quoting
26207         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
26208
26209         openat: fix openat bugs on Solaris 9
26210         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
26211         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
26212         * modules/openat (Depends-on): Add open.
26213         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26214         * modules/fcntl-h (Makefile.am): Substitute it.
26215         * lib/fcntl.in.h (openat): Declare replacement.
26216         * doc/posix-functions/openat.texi (openat): Document this.
26217
26218         openat: move fstatat and unlinkat into correct files
26219         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26220         compiled.
26221         * lib/openat.c (fstatat, unlinkat): Move...
26222         * lib/fstatat.c (fstatat): ...into correct files.
26223         * lib/unlinkat.c (unlinkat): Likewise.
26224
26225         openat: fix unlinkat bugs on Solaris 9
26226         * lib/unlinkat.c (unlinkat): New file.
26227         * modules/openat (Depends-on): Add unlink.
26228         (Files): Distribute it.
26229         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26230         trailing slash behavior is broken.
26231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26232         * modules/unistd (Makefile.am): Substitute it.
26233         * lib/unistd.in.h (unlinkat): Declare replacement.
26234         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26235
26236         openat: fix fstatat bugs on Solaris 9
26237         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26238         stat.
26239         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26240
26241         test-unlinkat: enhance test, to expose Solaris 9 bug
26242         * tests/test-unlink.c (main): Factor guts...
26243         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26244         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26245         * tests/test-rmdir.c (main): Adjust caller.
26246         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26247         (unlinker): New helper function.
26248         (rmdirat): Enhance check.
26249         * modules/rmdir-tests (Depends-on): Add stdbool.
26250         * modules/unlink-tests (Depends-on): Likewise.
26251         (Files): Add test-unlink.h.
26252         * modules/openat-tests (Files): Likewise.
26253         (Depends-on): Add unlinkdir.
26254
26255         test-fstatat: new test, to expose Solaris 9 bugs
26256         * tests/test-stat.c (main): Factor guts...
26257         * tests/test-stat.h (test_stat_func): ...into new file.
26258         * tests/test-lstat.c (main): Factor guts...
26259         * tests/test-lstat.h (test_lstat_func): ...into new file.
26260         * tests/test-fstatat.c: New file.
26261         * modules/stat-tests (Files): Add test-stat.h.
26262         * modules/lstat-tests (Files): Add test-lstat.h.
26263         (Depends-on): Add stdbool.
26264         * modules/openat-tests (Depends-on): Add pathmax.
26265         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26266         (Makefile.am): Run new test.
26267
26268         remove: new module, for mingw and Solaris 9 bugs
26269         * modules/remove: New file.
26270         * lib/remove.c: Likewise.
26271         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26273         * modules/stdio (Makefile.am): Use them.
26274         * lib/stdio.in.h (remove): Declare replacement.
26275         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26276         * doc/posix-functions/remove.texi (remove): Likewise.
26277         * modules/remove-tests: New test.
26278         * tests/test-remove.c: Likewise.
26279
26280         unlink: new module, for Solaris 9 bug
26281         * modules/unlink: New file.
26282         * lib/unlink.c: Likewise.
26283         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26285         * modules/unistd (Makefile.am): Use them.
26286         * lib/unistd.in.h (stat): Declare replacement.
26287         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26288         * doc/posix-functions/unlink.texi (unlink): Likewise.
26289         * modules/unlink-tests: New test.
26290         * tests/test-unlink.c: Likewise.
26291
26292         lstat: fix Solaris 9 bug
26293         * lib/lstat.c (lstat): Also check for trailing slash on
26294         non-symlink, non-directories.  Use stat module to simplify logic.
26295         * doc/posix-functions/lstat.texi (lstat): Document it.
26296         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26297         (configure.ac): Check for symlink.
26298         * tests/test-lstat.c (main): Add more tests.
26299
26300         stat: add as dependency to other modules
26301         * modules/chown (Depends-on): Add stat.
26302         * modules/euidaccess (Depends-on): Likewise.
26303         * modules/fchdir (Depends-on): Likewise.
26304         * modules/isdir (Depends-on): Likewise.
26305         * modules/link (Depends-on): Likewise.
26306         * modules/lstat (Depends-on): Likewise.
26307         * modules/mkdir-p (Depends-on): Likewise.
26308         * modules/modechange (Depends-on): Likewise.
26309         * modules/open (Depends-on): Likewise.
26310         * modules/readlink (Depends-on): Likewise.
26311         * modules/same (Depends-on): Likewise.
26312
26313         stat: fix Solaris 9 bug
26314         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26315         slash.
26316         * lib/stat.c (rpl_stat): Work around it.
26317         * doc/posix-functions/stat.texi (stat): Update documentation.
26318
26319         stat: new module, for mingw bug
26320         * modules/stat: New file.
26321         * lib/stat.c: Likewise.
26322         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26323         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26324         * modules/sys_stat (Makefile.am): Use them.
26325         * lib/sys_stat.in.h (stat): Declare replacement.
26326         * lib/openat.c (fstatat): Deal with lstat and stat being function
26327         macros.
26328         * modules/openat (Depends-on): Add inline.
26329         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26330         * doc/posix-functions/stat.texi (stat): Likewise.
26331         * modules/stat-tests: New test.
26332         * tests/test-stat.c: Likewise.
26333
26334 2009-09-19  Jim Meyering  <meyering@redhat.com>
26335
26336         syntax-check: detect unnecessary inclusion of canonicalize.h
26337         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26338
26339 2009-09-19  Eric Blake  <ebb9@byu.net>
26340
26341         canonicalize-lgpl: adjust clients to use correct header
26342         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26343         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26344         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26345         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26346         * lib/progreloc.c (includes): Likewise.
26347
26348 2009-09-19  Jim Meyering  <meyering@redhat.com>
26349
26350         test-posixtm.c: correct a comment
26351         * tests/test-posixtm.c: Correct first-line comment.
26352         Spotted by Eric Blake.
26353
26354 2009-09-16  Jim Meyering  <meyering@redhat.com>
26355
26356         posixtm-tests: make T const-correct; add a test case
26357         * tests/test-posixtm.c (T): Declare const.
26358         Add a test for -(2^31+1).
26359         Remove useless can-succeed-only-in-2002 test.
26360
26361         posixtm-tests: adjust the sole failing test
26362         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26363         expected output matches what mktime now produces.  Cross-checked via
26364         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26365
26366         posixtm: move #ifdef'd tests into a new module
26367         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26368         * tests/test-posixtm.c: ... this new file.
26369         * modules/posixtm-tests: New module.
26370
26371 2009-09-19  Eric Blake  <ebb9@byu.net>
26372
26373         openat: simplify use of at-func.c
26374         * lib/at-func.c (includes): Include prerequisites here, to
26375         simplify requirements on client files.
26376         * lib/openat-priv.h: Add double-inclusion guard.
26377         * lib/faccessat.c (includes): Simplify.
26378         * lib/fchmodat.c (includes): Likewise.
26379         * lib/fchownat.c (includes): Likewise.
26380         * lib/mkdirat.c (includes): Likewise.
26381         * lib/mkfifoat.c (includes): Likewise.
26382         * lib/symlinkat.c (includes): Likewise.
26383
26384         openat: allow return of fd 0
26385         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26386         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26387         unistd-safer.
26388         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26389         <fcntl.h>; this module does not leak fds.
26390         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26391         must be allowed to return 0, leaving openat_safer to add the
26392         safety.
26393         (openat_permissive): Avoid writing to just-opened fd 2 if
26394         restoring the current directory fails.
26395         * lib/openat-die.c (openat_restore_fail): Add comment.
26396         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26397         (save_cwd): Guarantee safe fd, but without use of open_safer.
26398         * tests/test-openat.c: New test.
26399         * modules/openat-tests (Files, Makefile.am): Distribute and build
26400         new file.
26401
26402         relocatable-prog-wrapper: fix build
26403         * modules/relocatable-prog-wrapper (Files): Update name of
26404         canonicalize m4 file, broken on 2009-09-17.
26405         Reported by emad hajjar <aleppos@hotmail.com>.
26406
26407 2009-09-19  Bruno Haible  <bruno@clisp.org>
26408
26409         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26410         * lib/safe-alloc.c: Likewise.
26411         Reported by Ian Beckwith <ianb@erislabs.net>.
26412
26413 2009-09-18  Bruno Haible  <bruno@clisp.org>
26414
26415         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26416         Reported by <erobles@sensacd.com.mx>.
26417
26418 2009-09-17  Eric Blake  <ebb9@byu.net>
26419
26420         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26421         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26422         slashes when checking if last component is missing.
26423         * tests/test-canonicalize.c (main): Test this.
26424
26425         canonicalize, canonicalize-lgpl: honor // if distinct from /
26426         * modules/canonicalize (Files): Add double-slash-root.m4.
26427         * modules/canonicalize-lgpl (Files): Likewise.
26428         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26429         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26430         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26431         fallback definition.
26432         (canonicalize_filename_mode): Use it to protect //.
26433         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26434         (__realpath): Likewise.
26435         * tests/test-canonicalize.c (main): Test this.
26436         * tests/test-canonicalize-lgpl.c (main): Likewise.
26437         * modules/canonicalize-tests (Depends-on): Add same-inode.
26438         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26439
26440         canonicalize-lgpl: fix glibc bug with trailing slash
26441         * m4/canonicalize-lgpl.m4: Move contents...
26442         * m4/canonicalize.m4: ...here.
26443         (gl_CANONICALIZE_LGPL): Factor realpath check...
26444         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26445         glibc 2.3.5 bug, fixed 2005-04-27.
26446         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26447         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26448         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26449         * modules/canonicalize-lgpl (Files): Manage file rename.
26450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26451         * modules/stdlib (Makefile.am): Substitute witness.
26452         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26453         is needed.
26454         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26455         replacement is required.
26456         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26457         * doc/glibc-functions/canonicalize_file_name.texi
26458         (canonicalize_file_name): Document this.
26459         * doc/posix-functions/realpath.texi (realpath): Likewise.
26460
26461         canonicalize-lgpl: reject non-directory with trailing slash
26462         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26463         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26464         catches failures in glibc 2.3.5.
26465         * tests/test-canonicalize.c (main): Likewise.
26466
26467         canonicalize-lgpl: use native realpath if it works
26468         * lib/canonicalize-lgpl.c (realpath): Guard with
26469         FUNC_REALPATH_WORKS.
26470         * lib/stdlib.in.h (realpath): Make declaration optional based on
26471         HAVE_REALPATH.
26472         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26473         native realpath works.
26474         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26475         * modules/stdlib (Makefile.am): Substitute witness.
26476
26477         canonicalize, canonicalize-lgpl: use <stdlib.h>
26478         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26479         (Include): Mention <stdlib.h>.
26480         (configure.ac): Mention functions we provide.
26481         * modules/canonicalize (configure.ac): Likewise.
26482         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26483         realpath if canonicalize_file_name is missing.
26484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26485         * modules/stdlib (Makefile.am): Substitute witnesses.
26486         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26487         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26488         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26489         * NEWS: Document this.
26490         * doc/glibc-functions/canonicalize_file_name.texi
26491         (canonicalize_file_name): Likewise.
26492         * doc/posix-functions/realpath.texi (realpath): Likewise.
26493         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26494
26495         test-canonicalize: consolidate into single C program
26496         * tests/test-canonicalize.sh: Delete; move setup into...
26497         * tests/test-canonicalize.c (main): ...the program, making it
26498         easier to run in debugger.  Add some tests.
26499         * modules/canonicalize-tests (Files): Remove unused file.
26500         (Depends-on): Add progname.
26501         (configure.ac, Makefile.am): Simplify.
26502
26503         test-canonicalize-lgpl: consolidate into single C program
26504         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26505         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26506         easier to run in debugger.  Add some tests.
26507         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26508         (configure.ac, Makefile.am): Simplify.
26509
26510         canonicalize: avoid resolvepath
26511         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26512         unnecessary checks.
26513         * lib/canonicalize.c (includes): Simplify.
26514         (canonicalize_file_name): Drop resolvepath implementation.
26515         * modules/canonicalize (Depends-on): Drop filenamecat.
26516
26517         canonicalize: don't lose errno
26518         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26519         over calls to free.
26520
26521         canonicalize: simplify errno handling
26522         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26523         assignment.
26524
26525         canonicalize, canonicalize-lgpl: update module dependencies
26526         * modules/canonicalize (Depends-on): Add extensions, lstat,
26527         pathmax, stdlib.
26528         (Files): Drop pathmax.h.
26529         (configure.ac): Adjust macro name.
26530         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26531         lstat, stdlib, sys_stat.
26532         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26533         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26534         extensions.
26535         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26536         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26537         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26538         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26539         declaration, if available.
26540         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26541         we can rely on the readlink module.
26542         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26543         (includes): Use <unistd.h> unconditionally.
26544
26545 2009-09-17  Eric Blake  <ebb9@byu.net>
26546
26547         maint: make Include sections of modules consistent
26548         * modules/alloca: Use only header name; no need to list #include.
26549         * modules/alloca-opt: Likewise.
26550         * modules/arpa_inet: Likewise.
26551         * modules/canon-host: Likewise.
26552         * modules/configmake: Likewise.
26553         * modules/dirent: Likewise.
26554         * modules/eealloc: Likewise.
26555         * modules/environ: Likewise.
26556         * modules/fchdir: Likewise.
26557         * modules/fcntl: Likewise.
26558         * modules/fcntl-h: Likewise.
26559         * modules/gethrxtime: Likewise.
26560         * modules/gettime: Likewise.
26561         * modules/ignore-value: Likewise.
26562         * modules/inet_ntop: Likewise.
26563         * modules/inet_pton: Likewise.
26564         * modules/inttypes: Likewise.
26565         * modules/isnand-nolibm: Likewise.
26566         * modules/isnanf-nolibm: Likewise.
26567         * modules/mbchar: Likewise.
26568         * modules/mbfile: Likewise.
26569         * modules/mbiter: Likewise.
26570         * modules/mbuiter: Likewise.
26571         * modules/netdb: Likewise.
26572         * modules/netinet_in: Likewise.
26573         * modules/nproc: Likewise.
26574         * modules/pagealign_alloc: Likewise.
26575         * modules/poll: Likewise.
26576         * modules/printf-frexp: Likewise.
26577         * modules/pthread: Likewise.
26578         * modules/putenv: Likewise.
26579         * modules/random_r: Likewise.
26580         * modules/relocatable-prog: Likewise.
26581         * modules/search: Likewise.
26582         * modules/select: Likewise.
26583         * modules/selinux-h: Likewise.
26584         * modules/settime: Likewise.
26585         * modules/signal: Likewise.
26586         * modules/size_max: Likewise.
26587         * modules/socklen: Likewise.
26588         * modules/ssize_t: Likewise.
26589         * modules/stdarg: Likewise.
26590         * modules/stdbool: Likewise.
26591         * modules/stddef: Likewise.
26592         * modules/stdint: Likewise.
26593         * modules/stdio: Likewise.
26594         * modules/stdlib: Likewise.
26595         * modules/string: Likewise.
26596         * modules/strings: Likewise.
26597         * modules/sys_file: Likewise.
26598         * modules/sys_ioctl: Likewise.
26599         * modules/sys_select: Likewise.
26600         * modules/sys_socket: Likewise.
26601         * modules/sys_stat: Likewise.
26602         * modules/sys_time: Likewise.
26603         * modules/sys_times: Likewise.
26604         * modules/sys_utsname: Likewise.
26605         * modules/sys_wait: Likewise.
26606         * modules/sysexits: Likewise.
26607         * modules/time: Likewise.
26608         * modules/times: Likewise.
26609         * modules/tmpfile: Likewise.
26610         * modules/trim: Likewise.
26611         * modules/unistd: Likewise.
26612         * modules/wchar: Likewise.
26613         * modules/wctype: Likewise.
26614
26615 2009-09-17  Bruno Haible  <bruno@clisp.org>
26616
26617         Make getdate.y compile on QNX and NetBSD 5 / i386.
26618         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26619         TIME_T_FITS_IN_LONG_INT.
26620         * lib/getdate.y (long_time_t): New type.
26621         (relative_time): Change type of 'seconds' field to long_time_t.
26622         (get_date): Update types of local variables. Check against overflow
26623         during conversion from long_time_t to time_t.
26624         Reported by Matt Kraai <kraai@ftbfs.org>
26625         and Hasso Tepper <hasso@netbsd.org>.
26626
26627 2009-09-17  Bruno Haible  <bruno@clisp.org>
26628
26629         * modules/COPYING: Update copyright years.
26630         * modules/README: Likeiwse.
26631         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26632         Reported by Ian Beckwith <ianb@erislabs.net>.
26633
26634 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26635
26636         * users.txt: Update references for gnuit package.
26637
26638 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26639
26640         * m4/getdelim.m4: Fix typo in copyright line.
26641
26642 2009-09-17  Bruno Haible  <bruno@clisp.org>
26643
26644         * lib/atoll.c: Use the standard header with GPL copyright.
26645         * lib/argz.in.h: Likewise.
26646         * lib/glob.c: Likewise.
26647         * lib/glob-libc.h: Likewise.
26648         * lib/random_r.c: Likewise.
26649         * lib/siglist.h: Likewise.
26650         * lib/strsignal.c: Likewise.
26651         Reported by Ian Beckwith <ianb@erislabs.net>.
26652
26653 2009-09-17  Eric Blake  <ebb9@byu.net>
26654
26655         rmdir: ensure correct dependency order
26656         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26657
26658 2009-09-17  Bruno Haible  <bruno@clisp.org>
26659
26660         Disable assertion that fails on NetBSD 5 / i386.
26661         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26662         Reported by Sam Steingold <sds@gnu.org>
26663         and Hasso Tepper <hasso@netbsd.org>.
26664
26665 2009-09-16  Eric Blake  <ebb9@byu.net>
26666
26667         unlinkdir: port to mingw
26668         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26669         on which no one can unlink a directory.
26670
26671         stdlib: sort witness names
26672         * modules/stdlib (Makefile.am): Sort replacements.
26673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26674         * lib/stdlib.in.h: Likewise.
26675
26676         parse-duration-tests: avoid link failure
26677         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26678         LIBINTL.
26679         Reported by Tom G. Christensen.
26680
26681         openat-tests: ensure unlinkat behaves like rmdir
26682         * tests/test-rmdir.c (main): Factor guts...
26683         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26684         * modules/rmdir-tests (Files): Ship new file.
26685         * modules/openat-tests: New test.
26686         * tests/test-unlinkat.c: Likewise.
26687
26688         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26689         * modules/rmdir-errno (Status, Notice): Now obsolete.
26690
26691         rmdir: work around cygwin 1.5.x and mingw bugs
26692         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26693         * lib/rmdir.c (rmdir): Work around it.
26694         * modules/rmdir (Status, Notice): No longer obsolete.
26695         (Files): Add dos.m4.
26696         (Depends-on): Add unistd.
26697         (configure.ac): Set witnesses.
26698         (License): Relax to LGPLv2+.
26699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26700         * modules/unistd (Makefile.am): Substitute witnesses.
26701         * lib/unistd.in.h (rmdir): Declare replacement.
26702         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26703         * modules/rmdir-tests: New tests.
26704         * tests/test-rmdir.c: Likewise.
26705
26706 2009-09-15  Eric Blake  <ebb9@byu.net>
26707
26708         fchdir: improve use of replacement functions
26709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26710         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26711         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26712         REPLACE_CLOSEDIR.
26713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26714         * modules/sys_stat (Makefile.am): Substitute correct witness.
26715         * modules/dirent (Makefile.am): Likewise.
26716         * modules/unistd (Makefile.am): Likewise.
26717         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26718         * lib/unistd.in.h (dup): Likewise.
26719         * lib/sys_stat.in.h (fstat): Likewise.
26720
26721         maint: ignore gnulib-tool temp files
26722         * .gitignore: Ignore files created during gnulib-tool --test.
26723
26724 2009-09-13  Jim Meyering  <meyering@redhat.com>
26725
26726         posixtm: don't reject a time that specify "60" as the number of seconds
26727         * lib/posixtm.c (posixtime): The code to reject invalid dates
26728         would also reject a time specified with the .60 suffix.
26729         But POSIX allows that, in order to accommodate leap seconds.
26730         So don't reject it.
26731         (main): Adjust tests accordingly.
26732         * modules/posixtm (Depends-on): Add stpcpy.
26733
26734 2009-09-11  Jim Meyering  <meyering@redhat.com>
26735
26736         announce-gen: include [$release_type] in emitted Subject:
26737         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26738         e.g., [stable] in the emitted Subject: line.
26739
26740 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26741
26742         Remove obsolete macros from several modules.
26743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26744         obsolete Autoconf macros with their modern counterparts.
26745         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26746         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26748         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26749         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26750         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26751         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26752         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26753         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26754         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26755         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26756         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26757         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26758         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26759         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26760         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26761         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26762         * m4/time_r.m4 (gl_TIME_R): Likewise.
26763         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26764         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26765         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26766
26767         Fix copyright header in build-aux scripts.
26768         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26769         recommendation.
26770         * build-aux/ncftpput-ftp: Likewise.
26771         * build-aux/update-copyright: Likewise.
26772
26773 2009-09-09  Eric Blake  <ebb9@byu.net>
26774
26775         test-link: allow Linux choice of errno
26776         * tests/test-link.c (main): Relax test for alternate error.
26777
26778         strndup: fix improper m4 caching
26779         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26780         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26781         (gl_PREREQ_STRNDUP): Delete.
26782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26783         * modules/string (Makefile.am): Substitute it.
26784         * lib/string.in.h (strndup): Modernize prototype.
26785
26786         getcwd: port to mingw
26787         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26788         different from the POSIX assumptions made throughout the getcwd
26789         module; fortunately, the mingw getcwd does not need replacement.
26790         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26791         * modules/getcwd-tests: New test.
26792         * tests/test-getcwd.c: Likewise.
26793
26794         link: fix platform bugs
26795         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26796         * lib/link.c (link): Work around them.  Fix related mingw bug.
26797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26798         * modules/unistd (Makefile.am): Substitute it.
26799         * lib/unistd.in.h (link): Declare replacement.
26800         * doc/posix-functions/link.texi (link): Document this.
26801         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26802
26803         test-link: consolidate into single C program, test more cases
26804         * tests/test-link.sh: Delete.
26805         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26806         at least Cygwin and Solaris.
26807         * modules/link-tests (Files): Remove unused file.
26808         (Depends-on): Add errno, sys_stat.
26809         (Makefile.am): Simplify.
26810
26811 2009-09-08  Bruno Haible  <bruno@clisp.org>
26812
26813         Work around towlower, towupper bug on mingw.
26814         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26815         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26816         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26817         * doc/posix-functions/towupper.texi: Likewise.
26818         Reported by Eric Blake.
26819
26820 2009-09-08  Jim Meyering  <meyering@redhat.com>
26821
26822         build: don't try to run autoheader if we don't use it
26823         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26824         is not used in configure.ac.
26825
26826 2009-09-08  Eric Blake  <ebb9@byu.net>
26827
26828         euidaccess: fix compilation error
26829         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26830
26831         rawmemchr: relax license
26832         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26833         okay.
26834         Reported by Jim Meyering.
26835
26836         mkfifoat: new module
26837         * modules/mkfifoat: New file.
26838         * lib/mkfifoat.c: Likewise.
26839         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26840         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26841         * modules/sys_stat (Makefile.am): Use them.
26842         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26843         * MODULES.html.sh (File system functions): Mention module.
26844         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26845         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26846         * modules/mkfifoat-tests: New test.
26847         * tests/test-mkfifoat.c: Likewise.
26848
26849         strchrnul: relax license
26850         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26851         okay.
26852         Reported by Jim Meyering.
26853
26854 2009-09-08  Eric Blake  <ebb9@byu.net>
26855
26856         fstatat: fix compilation on Solaris
26857         * lib/fstatat.c (includes): Add fcntl.h.
26858         Reported by Pádraig Brady.
26859
26860 2009-09-07  Eric Blake  <ebb9@byu.net>
26861
26862         rename: modernize replacement
26863         * modules/rename (Depends-on): Add stdio.
26864         (configure.ac): Declare witness.
26865         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26866         stdio take care of replacement.
26867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26868         * modules/stdio (Makefile.am): Substitute them.
26869         * lib/stdio.in.h (rename): Declare replacement.
26870         * lib/rename.c (includes): Allow cross-compilation to non-windows
26871         machines.
26872         * doc/posix-functions/rename.texi (rename): Improve
26873         documentation.
26874
26875         stdio: sort witness names
26876         * modules/stdio (Makefile.am): Sort replacements.
26877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26878         * lib/stdio.in.h: Likewise.
26879
26880         getcwd: minor cleanups
26881         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26882         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26883
26884         openat: provide more convenience names
26885         * modules/faccessat (configure.ac): Add C witness.
26886         * lib/unistd.in.h (readlinkat): Fix typo.
26887         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26888         convenience wrappers.
26889         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26890         wrappers in syntax checks.
26891
26892 2009-09-06  Eric Blake  <ebb9@byu.net>
26893
26894         doc: fix comments in recent patches
26895         * lib/faccessat.c: Mention correct function.
26896         * lib/fchmodat.c: Likewise.
26897         * lib/fchownat.c: Likewise.
26898         * lib/symlinkat.c: Likewise.
26899         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26900         constants.
26901
26902         faccessat, symlinkat: continue cleanup of previous patch
26903         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26904         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26905         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26907         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26908         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26909         set.
26910
26911 2009-09-06  Bruno Haible  <bruno@clisp.org>
26912
26913         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26914         (fstatat): Declare if GNULIB_FSTATAT is set.
26915         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26916         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26917         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26918         * modules/fcntl-h (Files): Remove m4/openat.m4.
26919         * modules/sys_stat (Files): Remove m4/openat.m4.
26920         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26921         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26922         * modules/unistd (Files): Remove m4/openat.m4.
26923         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26924         GNULIB_OPENAT.
26925         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26926         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26928         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26929         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26930         gl_OPENAT_DEFAULTS.
26931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26932         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26933         Don't require gl_OPENAT_DEFAULTS.
26934         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26935         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26936         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26937         (gl_OPENAT_DEFAULTS): Remove macro.
26938
26939 2009-09-06  Bruno Haible  <bruno@clisp.org>
26940
26941         * modules/openat (configure.ac): Remove unneeded witness.
26942
26943 2009-09-06  Bruno Haible  <bruno@clisp.org>
26944
26945         Set errno to ENOSYS when a function is entirely unsupported.
26946         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26947         EOPNOTSUPP.
26948         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26949         * modules/chown (Depends-on): Remove errno.
26950
26951 2009-09-06  Bruno Haible  <bruno@clisp.org>
26952
26953         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26954
26955 2009-09-06  Bruno Haible  <bruno@clisp.org>
26956
26957         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26958
26959 2009-09-06  Ben Pfaff  <blp@gnu.org>
26960             Bruno Haible  <bruno@clisp.org>
26961
26962         Work around a glibc bug in strtok_r.
26963         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26964         Undefine if UNDEFINE_STRTOK_R is set.
26965         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26967         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26968         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26969         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26970         UNDEFINE_STRTOK_R.
26971         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26972
26973 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26974
26975         exclude: minor fix
26976         * lib/exclude.c: Include wctype.h
26977
26978 2009-09-06  Akim Demaille  <demaille@gostai.com>
26979
26980         bootstrap: improve error message
26981         * build-aux/bootstrap (find_tool): Upon failure, report the list
26982         of candidates.
26983         Honor the initial value of the envvar.
26984
26985 2009-09-05  Eric Blake  <ebb9@byu.net>
26986
26987         symlinkat: new module
26988         * modules/symlinkat: New file.
26989         * lib/symlinkat.c: Likewise.
26990         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26992         * modules/unistd (Makefile.am): Use them.
26993         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26994         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26995         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26996         * MODULES.html.sh (File system functions): Mention module.
26997         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26998         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26999         * modules/symlinkat-tests: New test.
27000         * tests/test-symlinkat.c: Likewise.
27001
27002         test-openat-safer: add more checks
27003         * tests/test-openat-safer.c (main): Check more code paths.
27004
27005 2009-09-05  Jim Meyering  <meyering@redhat.com>
27006
27007         syntax-check: detect unnecessary inclusion of openat.h
27008         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
27009
27010 2009-09-05  Bruno Haible  <bruno@clisp.org>
27011
27012         Support towlower, towupper.
27013         * doc/posix-functions/towlower.texi: Mention module wctype.
27014         * doc/posix-functions/towupper.texi: Likewise.
27015         * lib/wctype.in.h (towlower, towupper): New functions.
27016         * tests/test-wctype.c: Include stdio.h, stdlib.h.
27017         (ASSERT): New macro.
27018         (e): New variable.
27019         (main): Test also towlower, towupper. Test WEOF argument.
27020         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
27021
27022 2009-09-05  Bruno Haible  <bruno@clisp.org>
27023
27024         Fix conversion behaviour when the input is invalid.
27025         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
27026         mark occurring in first pass of indirect conversion.
27027         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
27028         input.
27029         Found by clang's static analyzer.
27030
27031 2009-09-05  Bruno Haible  <bruno@clisp.org>
27032
27033         * tests/test-striconveh.c (main): Test indirect conversion on platforms
27034         where direct conversion is possible.
27035
27036 2009-09-04  Eric Blake  <ebb9@byu.net>
27037
27038         openat: fail with ENOENT on empty name
27039         * lib/openat-proc.c (openat_proc_name): Special-case the empty
27040         buffer.
27041
27042         link-follow: fix logic bug in prior patch
27043         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
27044         reversed sense of yes and no in prior patch.  Avoid confusing
27045         compilation failure with desired semantics.
27046
27047         link-follow: accomodate mingw and cross-compilation
27048         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
27049         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
27050         cross-compilation results to -1, to make linkat easier to
27051         implement when cross-compiling.  Trivially support mingw.
27052         * modules/link-follow (configure.ac): Call new name.
27053         * NEWS: Mention this.
27054
27055 2009-09-03  Eric Blake  <ebb9@byu.net>
27056
27057         faccessat: compile replacement
27058         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
27059         needed.
27060
27061         fts: fix compilation error
27062         * lib/fts.c (includes): Re-add "openat.h", for
27063         openat_needs_fchdir.
27064
27065         faccessat: new module
27066         * modules/faccessat: New file.
27067         * lib/faccessat.c: Likewise.
27068         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
27069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27070         * modules/unistd (Makefile.am): Use it.
27071         * lib/unistd.in.h (faccessat): Declare it.
27072         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
27073         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
27074         * MODULES.html.sh (File system functions): Mention it.
27075         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
27076         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27077
27078         euidaccess: prefer POSIX over non-standard implementation
27079         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
27080         * lib/euidaccess.c (euidaccess): Use it if available.
27081
27082         openat: make template easier to use
27083         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
27084         AT_FUNC_F2 to be undefined.
27085         (VALIDATE_FLAG): New macro; use it to reject bad flags.
27086         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
27087         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
27088         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
27089         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
27090         Likewise.
27091         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
27092         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
27093         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
27094         Likewise.
27095
27096         openat: declare in POSIX headers
27097         * NEWS: Mention this.
27098         * modules/openat (configure.ac): Declare witnesses.
27099         (Depends-on): Add fcntl-h, sys_stat, unistd.
27100         (Include): Mention correct headers.
27101         * modules/fcntl-h (Depends-on): Add link-warning.
27102         (Files): Add openat.m4.
27103         (Makefile.am): Substitute witnesses.
27104         * modules/sys_stat (Files, Makefile.am): Likewise.
27105         * modules/unistd (Files, Makefile.am): Likewise.
27106         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
27107         (gl_OPENAT_DEFAULTS): New macro.
27108         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
27109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
27110         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
27111         (SYS_STAT_H): Remove unused variable.
27112         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
27113         * lib/fcntl--.h (includes): Remove unneeded header.
27114         * lib/openat-safer.c (includes): Likewise.
27115         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
27116         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
27117         appropriate headers.
27118         (__OPENAT_PREFIX): Delete.
27119         * lib/fcntl.in.h (openat): Provide declaration.
27120         (AT_FDCWD): Fix Solaris bug.
27121         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
27122         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
27123         * lib/fchmodat.c (includes):  Adjust to find declaration.
27124         * lib/fchownat.c (includes): Likewise.
27125         * lib/mkdirat.c (includes): Likewise.
27126         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
27127         still visible.
27128
27129 2009-09-02  Eric Blake  <ebb9@byu.net>
27130
27131         errno: use consistently
27132         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
27133         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
27134         * lib/canonicalize.c (ELOOP): Likewise.
27135         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
27136         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
27137         * lib/lchown.c (EOPNOTSUPP): Likewise.
27138         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
27139         * lib/savewd.c (ESTALE): Likewise.
27140         * lib/settime.c (ENOSYS): Likewise.
27141         * lib/utimens.c (ENOSYS): Likewise.
27142         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
27143         * lib/chdir-safer.c (ELOOP): Likewise.
27144         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
27145         * modules/c-stack (Depends-on): Add errno.
27146         * modules/canonicalize (Depends-on): Likewise.
27147         * modules/chdir-safer (Depends-on): Likewise.
27148         * modules/fdopendir (Depends-on): Likewise.
27149         * modules/inet_ntop (Depends-on): Likewise.
27150         * modules/inet_pton (Depends-on): Likewise.
27151         * modules/lchown (Depends-on): Likewise.
27152         * modules/openat (Depends-on): Likewise.
27153         * modules/savewd (Depends-on): Likewise.
27154         * modules/settime (Depends-on): Likewise.
27155         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
27156
27157         fts: avoid leaking fds
27158         * modules/fts (Depends-on): Add cloexec.
27159         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
27160         flag.
27161
27162         fts: make directory fds more robust
27163         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
27164         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
27165
27166         backupfile, chdir-long, fts, savedir: make safer
27167         * lib/backupfile.c (includes): Use "dirent--.h", since
27168         numbered_backup can write to stderr during readdir.
27169         * lib/savedir.c (includes): Likewise.
27170         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
27171         emulation can write to stderr on failure.
27172         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
27173         * lib/getcwd.c: Document why opendir_safer is unused.
27174         * lib/glob.c: Likewise.
27175         * lib/scandir.c: Likewise.
27176         * lib/openat-proc.c: Likewise, for open_safer.
27177         * modules/backupfile (Depends-on): Add dirent-safer.
27178         * modules/savedir (Depends-on): Likewise.
27179         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
27180         * modules/chdir-long (Depends-on): Add openat-safer.
27181
27182         openat-safer: new module
27183         * modules/openat-safer: New file.
27184         * lib/openat-safer.c: Likewise.
27185         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
27186         * lib/fcntl-safer.h (openat_safer): Declare.
27187         * lib/fcntl--.h (openat): Override.
27188         * MODULES.html.sh (File descriptor based I/O): Mention it.
27189         * lib/openat.h: Add double-inclusion guards.
27190         * lib/openat.c (includes): Only include "fcntl-safer.h", not
27191         "fcntl--.h", so we can implement openat.
27192         * modules/openat-safer-tests: New test.
27193         * tests/test-openat-safer.c: New file.
27194
27195         dirent-safer: new module
27196         * modules/dirent-safer: New file.
27197         * lib/dirent--.h: Likewise.
27198         * lib/dirent-safer.h: Likewise.
27199         * lib/opendir-safer.c: Likewise.
27200         * m4/dirent-safer.m4: Likewise.
27201         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
27202         * modules/dirent-safer-tests: New test.
27203         * tests/test-dirent-safer.c: New file.
27204         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
27205
27206         fdopendir: optimize on mingw
27207         * lib/unistd.in.h (_gl_directory_name): New prototype.
27208         * lib/fchdir.c (_gl_directory_name): Implement it.
27209         (fchdir): Use it to simplify implementation.
27210         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
27211         fchdir, when available, to avoid calling [f]chdir().
27212
27213         fdopendir: split into its own module
27214         * lib/openat.c (fdopendir): Move...
27215         * lib/fdopendir.c: ...into new file.
27216         * modules/fdopendir: New module.
27217         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27218         * modules/openat (Depends-on): Add fdopendir.
27219         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27220         fdopendir here.
27221         * modules/savedir (Depends-on): Only need fdopendir, not full
27222         openat.
27223         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27224         * lib/openat.h (fdopendir): Drop prototype.
27225         * lib/dirent.in.h (fdopendir): Provide prototype.
27226         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27227         * modules/dirent (Makefile.am): Substitute them.
27228         * MODULES.html.sh (File system functions): Mention it.
27229         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27230         * modules/fdopendir-tests: New file.
27231         * tests/test-fdopendir.c: Likewise.
27232
27233         fchdir: use more consistent macro convention
27234         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27235         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27236         REPLACE_FCHDIR, rather than relying on config.h macros.
27237         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27238         inside a single make-time REPLACE_FCHDIR block, rather than using
27239         the config.h FCHDIR_REPLACEMENT.
27240         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27241         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27242         Manage fstat replacement.
27243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27244         REPLACE_FCHDIR.
27245         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27246         (Makefile.am): Substitute REPLACE_FCHDIR.
27247         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27248         FCHDIR_REPLACEMENT.
27249         * lib/dup-safer.c (dup_safer): Likewise.
27250         * lib/dup2.c (rpl_dup2): Likewise.
27251         * lib/dup3.c (rpl_dup3): Likewise.
27252         * lib/open.c (rpl_open): Likewise.
27253
27254         fchdir: simplify error handling, and support dup3
27255         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27256         stdbool, malloc-posix, realloc-posix.
27257         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27258         (ensure_dirs_slot): Return false on allocation failure.
27259         (rpl_dup2): Delete.
27260         (_gl_register_dup): New function.
27261         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27262         (_gl_register_fd): Close fd on allocation failure.
27263         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27264         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27265         prototype.
27266         (rpl_dup2_fchdir): Delete prototype.
27267         * lib/open.c (open): Update caller.
27268         * lib/dup2.c (dup2): Track fchdir metadata.
27269         * lib/dup3.c (dup3): Likewise.
27270         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27272
27273 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27274
27275         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27276         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27277         don't pass arguments to AC_OUTPUT.
27278
27279 2009-09-02  Bruno Haible  <bruno@clisp.org>
27280
27281         * modules/mkdtemp (License): Relicense under LGPLv2+.
27282         Reported by Paolo Bonzini.
27283
27284 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27285
27286         Replace uses of obsolete autoconf macros in Jim's modules.
27287         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27288         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27289         can evoke a warning from autoconf when run with -Wobsolete
27290         enabled.  They were declared obsolete for good reasons (see
27291         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27292         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27293         should not continue using the deprecated macros.
27294         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27295         obsolete Autoconf macros with modern counterparts.
27296         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27297         * m4/dos.m4 (gl_AC_DOS): Likewise.
27298         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27299         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27300         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27301         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27302         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27303         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27304         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27305         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27306         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27307         Likewise.
27308         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27309         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27310         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27311         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27312         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27313         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27314
27315 2009-09-01  Eric Blake  <ebb9@byu.net>
27316
27317         fchdir: fix off-by-one bug in previous patch
27318         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27319         (_gl_unregister_fd): Delete useless if.
27320
27321 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27322
27323         maint.mk: sort the list of syntax-check rules
27324         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27325         easier to get a sense of progress when the rules are run sequentially
27326         and take a long time.
27327
27328 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27329
27330         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27331         * modules/netinet_in: Likewise.
27332         * modules/sys_file: Likewise.
27333         * modules/sys_ioctl: Likewise.
27334         * modules/sys_select: Likewise.
27335         * modules/sys_socket: Likewise.
27336         * modules/sys_stat: Likewise.
27337         * modules/sys_time: Likewise.
27338         * modules/sys_times: Likewise.
27339         * modules/sys_utsname: Likewise.
27340         * modules/sys_wait: Likewise.
27341
27342 2009-09-01  Jim Meyering  <meyering@redhat.com>
27343
27344         fts: help ensure that return values are not ignored
27345         * lib/fts_.h (__GNUC_PREREQ): Define.
27346         (__attribute_warn_unused_result__): Define.
27347         (fts_children, fts_close, fts_open, fts_read): Declare with
27348         __attribute_warn_unused_result__.
27349
27350         fts: fts_close now fails also when closing a dir file descriptor fails
27351         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27352         and propagate to caller, along with errno.
27353
27354         announce-gen: correct formatting in --help output
27355         * build-aux/announce-gen (usage): Move the one-line description in
27356         --help output "up", to where it belongs, just after Usage:.
27357
27358 2009-08-31  Eric Blake  <ebb9@byu.net>
27359
27360         fchdir: port to mingw
27361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27362         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27363         opened, then use a substitute.
27364         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27365         replacement.
27366         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27367         (_gl_register_fd): No need to check stat if open already filters
27368         all directories.
27369         (fchdir): Fix error condition to match POSIX.
27370         * modules/fchdir (Depends-on): Add sys_stat.
27371         * doc/posix-functions/open.texi (open): Document the limitation.
27372         * modules/fchdir-tests: New file.
27373         * tests/test-fchdir.c: Likewise.
27374
27375         canonicalize: allow cross-testing from cygwin to mingw
27376         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27377         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27378         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27379         Likewise.
27380         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27381         target does not support symlinks.
27382         * tests/test-canonicalize-lgpl.sh: Likewise.
27383
27384         chown: avoid compilation warning on mingw
27385         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27386         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27387         mingw.
27388         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27389         * modules/chown (Depends-on): Add errno.
27390
27391 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27392
27393         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27394         command.
27395
27396 2009-08-31  Jim Meyering  <meyering@redhat.com>
27397
27398         canonicalize: remove useless initialization
27399         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27400         initialization of local, "end".
27401
27402 2009-08-30  Bruno Haible  <bruno@clisp.org>
27403
27404         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27405         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27406         ENOSYS.
27407
27408 2009-08-30  Bruno Haible  <bruno@clisp.org>
27409
27410         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27411         /usr/xpg4/bin/tr when it exists.
27412         * tests/test-pipe-filter-gi1.sh: Likewise.
27413
27414 2009-08-30  Bruno Haible  <bruno@clisp.org>
27415
27416         Work around deficient /usr/bin/id program on Solaris.
27417         * tests/test-file-has-acl.sh (ID): New variable.
27418         * tests/test-set-mode-acl.sh (ID): Likewise.
27419         * tests/test-copy-acl.sh (ID): Likewise.
27420         * tests/test-copy-file.sh (ID): Likewise.
27421
27422 2009-08-30  Bruno Haible  <bruno@clisp.org>
27423
27424         New module 'xstriconveh'.
27425         * lib/xstriconveh.h: New file.
27426         * lib/xstriconveh.c: New file.
27427         * modules/xstriconveh: New file.
27428
27429 2009-08-30  Bruno Haible  <bruno@clisp.org>
27430
27431         Make it easier to use mem_cd_iconveh.
27432         * lib/striconveh.h (iconveh_t): New type.
27433         (iconveh_open, iconveh_close): New declarations.
27434         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27435         with a single 'const iconveh_t *' argument.
27436         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27437         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27438         with a single 'const iconveh_t *' argument.
27439         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27440         * tests/test-striconveh.c (main): Update.
27441         * NEWS: Mention the change.
27442
27443 2009-08-30  Bruno Haible  <bruno@clisp.org>
27444
27445         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27446         problem.
27447
27448 2009-08-30  Bruno Haible  <bruno@clisp.org>
27449
27450         Work around iconv_open problem on Solaris.
27451         * lib/iconv_open-solaris.gperf: New file.
27452         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27453         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27454         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27455         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27456         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27457         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27458
27459 2009-08-29  Jim Meyering  <meyering@redhat.com>
27460
27461         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27462         * top/maint.mk (cvs-check): Remove target; it was just an alias
27463         to the better-named vc-diff-check.
27464         (maintainer-distcheck): Remove rule.  It was used only from
27465         the (alpha/beta/major) target, and all of its commands but one
27466         were coreutils-specific.
27467         (vc-dist): Remove rule.
27468         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27469         Run vc-diff-check, not vc-dist.
27470         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27471
27472 2009-08-27  Bruno Haible  <bruno@clisp.org>
27473
27474         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27475         of 0.
27476
27477 2009-08-27  Bruno Haible  <bruno@clisp.org>
27478
27479         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27480         compilers.
27481         * doc/func.texi: Document the SunPRO C bug.
27482
27483 2009-08-27  Bruno Haible  <bruno@clisp.org>
27484
27485         Fix link error on Solaris.
27486         * tests/test-parse-duration.c (xstrdup): Remove function.
27487
27488 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27489
27490         ignore-value: handle pointer types, too
27491         * lib/ignore-value.h (__attribute__): Remove definition.
27492         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27493         of a more concise and more-often effective "(void) i" statement.
27494         (ignore_ptr): New function to suppress warnings from functions that
27495         return pointers, and to make it explicit that one function doesn't
27496         handle all cases.
27497
27498 2009-08-25  Bruno Haible  <bruno@clisp.org>
27499
27500         dup2: work around a Linux bug.
27501         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27502         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27503         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27504         Reported by Simon Josefsson.
27505
27506 2009-08-25  Jim Meyering  <meyering@redhat.com>
27507
27508         libguestfs uses gnulib
27509         * users.txt: Add libguestfs.
27510
27511 2009-08-24  Eric Blake  <ebb9@byu.net>
27512
27513         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27514         * lib/pipe2.c (includes): Add binary-io.h.
27515         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27516
27517 2009-08-24  Bruno Haible  <bruno@clisp.org>
27518
27519         Tolerate declared but missing accept4 syscall.
27520         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27521         available.
27522         * lib/sys_socket.in.h (accept4): If the function is already present,
27523         override it.
27524         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27525         * modules/accept4 (Makefile.am): Compile accept4.c always.
27526         Reported by Paolo Bonzini and Eric Blake.
27527
27528 2009-08-23  Bruno Haible  <bruno@clisp.org>
27529
27530         New module 'accept4'.
27531         * lib/sys_socket.in.h (accept4): New declaration.
27532         * lib/accept4.c: New file.
27533         * m4/accept4.m4: New file.
27534         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27535         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27536         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27537         HAVE_ACCEPT4.
27538         * modules/accept4: New file.
27539         * doc/glibc-functions/accept4.texi: Mention the new module.
27540
27541 2009-08-24  Jim Meyering  <meyering@redhat.com>
27542
27543         progname: also set global program_invocation_name, when possible
27544         Before this change, a libtool-enabled program that calls glibc's
27545         error function would report the program name as
27546         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27547         * modules/progname (configure.ac): Check for a declaration of
27548         program_invocation_name.
27549         * lib/progname.c:  Include <errno.h>.
27550         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27551         Set program_invocation_name.
27552
27553 2009-08-23  Bruno Haible  <bruno@clisp.org>
27554
27555         * lib/dup3.c: Include <string.h>.
27556
27557 2009-08-23  Bruno Haible  <bruno@clisp.org>
27558
27559         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27560         * lib/pipe2.c (pipe2): Likewise.
27561         Suggested by Eric Blake.
27562
27563 2009-08-23  Bruno Haible  <bruno@clisp.org>
27564
27565         Tolerate declared but missing dup3 syscall.
27566         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27567         * lib/unistd.in.h (dup3): If the function is already present,
27568         override it.
27569         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27570         * modules/dup3 (Makefile.am): Compile dup3.c always.
27571         Reported by Paolo Bonzini.
27572
27573 2009-08-23  Bruno Haible  <bruno@clisp.org>
27574
27575         Tolerate declared but missing pipe2 syscall.
27576         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27577         available.
27578         * lib/unistd.in.h (pipe2): If the function is already present,
27579         override it.
27580         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27581         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27582         Reported by Paolo Bonzini.
27583
27584 2009-08-23  Bruno Haible  <bruno@clisp.org>
27585
27586         * lib/pipe2.c (pipe2): Move #ifs inside function.
27587
27588 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27589
27590         quotearg: document limitations of quote_these_too
27591         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27592         those limitations are created.
27593         * lib/quotearg.h (set_char_quoting): Document that digits and
27594         letters that are special after backslash are not permitted.
27595         (quotearg_char): Cross-reference set_char_quoting documentation.
27596
27597 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27598
27599         quotearg: implement custom_quoting_style
27600         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27601         right_quote fields.
27602         (set_custom_quoting): New public function.
27603         (quotearg_buffer_restyled): Add left_quote and right_quote
27604         arguments, handle them very much like locale quoting, and update
27605         all uses.
27606         (quotearg_n_custom): New public function.
27607         (quotearg_n_custom_mem): New public function.
27608         (quotearg_custom): New public function.
27609         (quotearg_custom_mem): New public function.
27610         * lib/quotearg.h: Prototype and document new public functions.
27611         (enum quoting_style): For escape_quoting_style and
27612         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27613         ignored even though they're otherwise like c_quoting_style.
27614         Add custom_quoting_style member and document with comparison to
27615         clocale_quoting_style.
27616         * tests/test-quotearg.c (custom_quotes): New array.
27617         (custom_results): New array.
27618         (main): Extend to test custom quoting.
27619
27620 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27621
27622         quotearg: fix right quote escaping when it's in quote_these_too
27623         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27624         quote, be sure to prepend only one backslash.
27625         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27626         (main): Test it.
27627
27628 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27629
27630         quotearg-tests: test escaping of embedded locale quotes
27631         * tests/test-quotearg.c (struct result_strings): Add member for
27632         new input.
27633         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27634         (inputs): Add new input.
27635         (results_g): Add expected results.
27636         (flag_results): Likewise.
27637         (locale_results): Likewise.
27638         (compare_strings): Check those.
27639
27640 2009-08-23  Bruno Haible  <bruno@clisp.org>
27641
27642         Tests for module 'dup3'.
27643         * modules/dup3-tests: New file.
27644         * tests/test-dup3.c: New file.
27645
27646         New module 'dup3'.
27647         * lib/unistd.in.h (dup3): New declaration.
27648         * lib/dup3.c: New file.
27649         * m4/dup3.m4: New file.
27650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27651         HAVE_DUP3.
27652         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27653         * modules/dup3: New file.
27654         * doc/glibc-functions/dup3.texi: Mention the new module.
27655
27656 2009-08-23  Bruno Haible  <bruno@clisp.org>
27657
27658         Tweak the dup2 test.
27659         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27660         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27661         the test file is still empty. Fix argument order of lseek.
27662
27663 2009-08-23  Bruno Haible  <bruno@clisp.org>
27664
27665         Avoid test link errors when the modules getopt-gnu, gettext are used.
27666         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27668
27669 2009-08-23  Bruno Haible  <bruno@clisp.org>
27670
27671         Fix getdtablesize() on mingw.
27672         * lib/getdtablesize.c (getdtablesize): Implement differently.
27673         * lib/unistd.in.h (getdtablesize): Improve comment.
27674
27675 2009-08-23  Bruno Haible  <bruno@clisp.org>
27676
27677         New module 'mkostemp'.
27678         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27679         * lib/stdlib.in.h (mksotemp): New declaration.
27680         * lib/mkostemp.c: New file, from glibc with modifications.
27681         * lib/tempname.h (GT_FILE): Remove outdated comment.
27682         (gen_tempname): Add flags argument.
27683         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27684         (__GT_FILE): Map to 1.
27685         (small_open, large_open): Remove macros.
27686         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27687         * lib/mkstemp.c (mkstemp): Update.
27688         * lib/mkdtemp.c (mkdtemp): Likewise.
27689         * m4/mkostemp.m4: New file.
27690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27691         HAVE_MKOSTEMP.
27692         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27693         HAVE_MKOSTEMP.
27694         * modules/mkostemp: New file, based on modules/mkstemp.
27695         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27696         * NEWS: Mention the change.
27697
27698 2009-08-23  Bruno Haible  <bruno@clisp.org>
27699
27700         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27701         Reported by Eric Blake.
27702
27703 2009-08-23  Bruno Haible  <bruno@clisp.org>
27704
27705         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27706         Reported by Eric Blake.
27707
27708 2009-08-23  Bruno Haible  <bruno@clisp.org>
27709
27710         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27711         * modules/pipe2 (Depends-on): Likewise.
27712
27713 2009-08-23  Eric Blake  <ebb9@byu.net>
27714
27715         fcntl-h: add O_TTY_INIT support
27716         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27717         * tests/test-fcntl-h.c (o): Test it.
27718         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27719
27720         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27721         * modules/fcntl: Move <fcntl.h> header replacement...
27722         * modules/fcntl-h: ...to new name, so as not to collide with
27723         like-named function.
27724         * tests/test-fcntl.c: Rename...
27725         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27726         * modules/fcntl-tests: Rename...
27727         * modules/fcntl-h-tests: ...to this.  Update test file name.
27728         * modules/chdir-long (Depends-on): Update clients.
27729         * modules/chdir-safer (Depends-on): Likewise.
27730         * modules/fcntl-safer (Depends-on): Likewise.
27731         * modules/fts (Depends-on): Likewise.
27732         * modules/mkancesdirs (Depends-on): Likewise.
27733         * modules/mkdir-p (Depends-on): Likewise.
27734         * modules/open (Depends-on): Likewise.
27735         * modules/savewd (Depends-on): Likewise.
27736         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27737         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27738
27739 2009-08-22  Bruno Haible  <bruno@clisp.org>
27740
27741         * modules/binary-io (License): Relicense under LGPL.
27742         * modules/pipe2 (License): Likewise.
27743
27744 2009-08-22  Bruno Haible  <bruno@clisp.org>
27745
27746         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27747         return value.
27748         * lib/pipe-filter-gi.c (filter_init): Likewise.
27749         Reported by Eric Blake.
27750
27751 2009-08-22  Bruno Haible  <bruno@clisp.org>
27752
27753         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27754         * modules/pipe (Depends-on): Add pipe2.
27755
27756 2009-08-22  Bruno Haible  <bruno@clisp.org>
27757
27758         Tests for module 'pipe2'.
27759         * modules/pipe2-tests: New file.
27760         * tests/test-pipe2.c: New file.
27761
27762         New module 'pipe2'.
27763         * lib/unistd.in.h (pipe2): New declaration.
27764         * lib/pipe2.c: New file.
27765         * m4/pipe2.m4: New file.
27766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27767         HAVE_PIPE2.
27768         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27769         * modules/pipe2: New file.
27770         * doc/glibc-functions/pipe2.texi: Mention the new module.
27771
27772 2009-08-22  Bruno Haible  <bruno@clisp.org>
27773
27774         Reference some new glibc functions.
27775         * doc/glibc-functions/accept4.texi: New file.
27776         * doc/glibc-functions/dup3.texi: New file.
27777         * doc/glibc-functions/mkostemp.texi: New file.
27778         * doc/glibc-functions/pipe2.texi: New file.
27779         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27780         (Glibc sys/socket.h): Refer to accept4.
27781         (Glibc unistd.h): Refer to dup3, pipe2.
27782         Reported by Eric Blake.
27783
27784 2009-08-22  Jim Meyering  <meyering@redhat.com>
27785             Bruno Haible  <bruno@clisp.org>
27786
27787         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27788         This makes it so packages using automake-1.11's silent-rules option
27789         can print e.g., a single "GEN    configmake.h" line, rather than
27790         the 30+ statements that perform the job.  If you want to see the
27791         actual commands, you can still run "make V=1".
27792         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27793         so that make output is abbreviated when those variables are defined
27794         appropriately.
27795         * modules/argz: Likewise.
27796         * modules/arpa_inet: Likewise.
27797         * modules/byteswap: Likewise.
27798         * modules/configmake: Likewise.
27799         * modules/dirent: Likewise.
27800         * modules/errno: Likewise.
27801         * modules/fcntl: Likewise.
27802         * modules/float: Likewise.
27803         * modules/fnmatch: Likewise.
27804         * modules/getopt-posix: Likewise.
27805         * modules/glob: Likewise.
27806         * modules/iconv_open: Likewise.
27807         * modules/inttypes: Likewise.
27808         * modules/localcharset: Likewise.
27809         * modules/locale: Likewise.
27810         * modules/math: Likewise.
27811         * modules/netdb: Likewise.
27812         * modules/netinet_in: Likewise.
27813         * modules/poll: Likewise.
27814         * modules/posix_spawnp-tests: Likewise.
27815         * modules/sched: Likewise.
27816         * modules/search: Likewise.
27817         * modules/selinux-h: Likewise.
27818         * modules/signal: Likewise.
27819         * modules/spawn: Likewise.
27820         * modules/stdarg: Likewise.
27821         * modules/stdbool: Likewise.
27822         * modules/stddef: Likewise.
27823         * modules/stdint: Likewise.
27824         * modules/stdio: Likewise.
27825         * modules/stdlib: Likewise.
27826         * modules/string: Likewise.
27827         * modules/strings: Likewise.
27828         * modules/sys_file: Likewise.
27829         * modules/sys_ioctl: Likewise.
27830         * modules/sys_select: Likewise.
27831         * modules/sys_socket: Likewise.
27832         * modules/sys_stat: Likewise.
27833         * modules/sys_time: Likewise.
27834         * modules/sys_times: Likewise.
27835         * modules/sys_utsname: Likewise.
27836         * modules/sys_wait: Likewise.
27837         * modules/sysexits: Likewise.
27838         * modules/time: Likewise.
27839         * modules/unistd: Likewise.
27840         * modules/wchar: Likewise.
27841         * modules/wctype: Likewise.
27842
27843 2009-08-22  Jim Meyering  <meyering@redhat.com>
27844
27845         announce-gen: detect write failure
27846         * build-aux/announce-gen: Add Coda at end.
27847         Remove equivalent-but-more-verbose block at top.
27848
27849 2009-08-19  Akim Demaille  <demaille@gostai.com>
27850
27851         bootstrap: --help to stdout.
27852         * bootstrap (usage): Don't send --help to stderr.
27853         Use a here doc instead of a long string.
27854
27855 2009-08-21  Eric Blake  <ebb9@byu.net>
27856
27857         test-popen-safer: split from test-popen
27858         * tests/test-popen.c (main): Move...
27859         * tests/test-popen.h: ...into new file.
27860         * tests/test-popen-safer2.c: New file.
27861         * modules/popen-tests (Files): Add test-popen.h.
27862         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27863         Suggested by Bruno Haible.
27864
27865         test-fcntl-safer: split from test-open
27866         * tests/test-open.c (main): Move...
27867         * tests/test-open.h: ...into new file.
27868         * tests/test-fcntl-safer.c: New file.
27869         * modules/open-tests (Files): Add test-open.h.
27870         * modules/fcntl-safer-tests: New file.
27871         Suggested by Bruno Haible.
27872
27873         test-fopen-safer: split from test-fopen
27874         * tests/test-fopen.c (main): Move...
27875         * tests/test-fopen.h: ...into new file.
27876         * tests/test-fopen-safer.c: New file.
27877         * modules/fopen-tests (Files): Add test-fopen.h.
27878         * modules/fopen-safer-tests: New file.
27879         Suggested by Bruno Haible.
27880
27881 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27882
27883         popen-safer: test O_CLOEXEC at run-time.
27884         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27885
27886 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27887
27888         fcntl: move more flags to the header
27889         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27890         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27891         * lib/fcntl.in.h: Do both things here.
27892
27893 2009-08-21  Jim Meyering  <meyering@redhat.com>
27894
27895         consistently remove $@-t before redirecting to it
27896         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27897         * modules/alloca-opt: Likewise.
27898         * modules/byteswap: Likewise.
27899         * modules/fnmatch: Likewise.
27900         * modules/getopt-posix: Likewise.
27901         * modules/glob: Likewise.
27902         * modules/poll: Likewise.
27903         * modules/posix_spawnp-tests: Likewise.
27904         * modules/sys_socket: Likewise.
27905         * modules/sysexits: Likewise.
27906
27907 2009-08-21  Eric Blake  <ebb9@byu.net>
27908
27909         popen: simplify access to original popen
27910         * lib/popen.c (rpl_popen): No need to worry about popen being a
27911         macro.
27912         Reported by Bruno Haible.
27913
27914 2009-08-20  Eric Blake  <ebb9@byu.net>
27915
27916         build: avoid some compiler warnings
27917         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27918         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27919         type.
27920         (new_exclude_segment, excluded_file_pattern_p)
27921         (excluded_file_name_p): Reduce scope.
27922         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27923         old-style declaration.
27924
27925 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27926
27927         * tests/test-exclude1.sh: Handle Windows EOL.
27928         * tests/test-exclude2.sh: Likewise.
27929         * tests/test-exclude3.sh: Likewise.
27930         * tests/test-exclude4.sh: Likewise.
27931         * tests/test-exclude5.sh: Likewise.
27932         * tests/test-exclude6.sh: Likewise.
27933         * tests/test-exclude7.sh: Likewise.
27934
27935 2009-08-19  Akim Demaille  <demaille@gostai.com>
27936
27937         bootstrap: find sha1sum when named gsha1sum.
27938         * bootstrap (find_tool): New.
27939         ($SHA1SUM): New.
27940         Use it.
27941
27942 2009-08-20  Jim Meyering  <meyering@redhat.com>
27943
27944         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27945         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27946         expression that converts "." in a file name to "\." in the resulting
27947         regexp.  Start with a dummy statement, so that prior shell variable
27948         definitions are expanded portably.  Reported by Simon Josefsson.
27949
27950 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27951
27952         Fix polling for writeability of a screen buffer.
27953         * lib/poll.c: Distinguish input and screen buffers for the
27954         Win32 implementation.
27955         * lib/select.c: Likewise.
27956
27957 2009-08-19  Eric Blake  <ebb9@byu.net>
27958
27959         popen-safer: prevent popen from clobbering std descriptors
27960         * modules/popen-safer: New file.
27961         * lib/popen-safer.c: Likewise.
27962         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27963         * lib/stdio--.h (popen): Provide override.
27964         * lib/stdio-safer.h (popen_safer): Provide declaration.
27965         * tests/test-popen.c (includes): Partially test this.
27966         * modules/popen-safer-tests: New file, for more tests.
27967         * tests/test-popen-safer.c: Likewise.
27968         * MODULES.html.sh (file stream based Input/Output): Mention it.
27969
27970         tests: test some of the *-safer modules
27971         * modules/fopen-safer (Depends-on): Add fopen.
27972         * modules/fcntl-safer (Depends-on): Add fcntl.
27973         * modules/stdlib-safer (Depends-on): Add stdlib.
27974         (configure.ac): Set indicator.
27975         * modules/unistd-safer (configure.ac): Likewise.
27976         * modules/tmpfile-safer (configure.ac): Likewise.
27977         (Depends-on): Add tmpfile.
27978         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27979         active.
27980         * tests/test-fopen.c (includes): Test safer versions when they are
27981         in use.
27982         * tests/test-open.c (includes): Likewise.
27983
27984         popen: fix cygwin 1.5 bug when stdin closed
27985         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27986         * modules/popen: New file.
27987         * modules/popen-tests: Likewise.
27988         * tests/test-popen.c: Likewise.
27989         * m4/popen.m4: Likewise.
27990         * lib/popen.c: Likewise.
27991         * lib/stdio.in.h (popen): New declaration.
27992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27993         * modules/stdio (Makefile.am): Likewise.
27994         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27995
27996 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27997
27998         maint.mk: give full control over update-copyright exclusions
27999         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
28000         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
28001         (update-copyright): Don't force inclusion of top-level
28002         ChangeLog.  Don't force exclusion of all COPYING files, but make
28003         them the default exclusion instead.
28004
28005 2009-08-16  Bruno Haible  <bruno@clisp.org>
28006
28007         Fix test failures on Solaris 10.
28008         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
28009         tests when Solaris iconv() is used.
28010         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
28011         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
28012         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
28013         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
28014         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
28015
28016 2009-08-16  Bruno Haible  <bruno@clisp.org>
28017
28018         Fix test failures on Solaris 10.
28019         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
28020         'tr' program and pass it as first argument.
28021         * tests/test-pipe-filter-gi1.sh: Likewise.
28022         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
28023         program as first argument.
28024         * tests/test-pipe-filter-gi1.c (main): Likewise.
28025
28026 2009-08-16  Eric Blake  <ebb9@byu.net>
28027
28028         fpurge: fix previous commits
28029         * modules/fpurge (Makefile.am): Make replacement conditional,
28030         partially reverting 2007-04-29 change; missed in previous
28031         attempt.
28032         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
28033         is missing.
28034
28035 2009-08-16  Bruno Haible  <bruno@clisp.org>
28036
28037         Clarify fpurge's effect on the file position.
28038         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
28039         * tests/test-fpurge.c (main): Make a second pass for checking the file
28040         position.
28041
28042 2009-08-16  Bruno Haible  <bruno@clisp.org>
28043
28044         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
28045         declaration of fpurge is missing.
28046         * tests/test-fpurge.c (main): Check that the file has not more contents
28047         than expected. Close the file before removing it.
28048
28049 2009-08-15  Eric Blake  <ebb9@byu.net>
28050
28051         fpurge: don't wrap working cygwin implementation
28052         * lib/fpurge.c (fpurge): Fix comment typo.
28053         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
28054         1.7 to avoid replacement.
28055         * tests/test-fpurge.c (main): Enhance test.
28056
28057 2009-08-15  Eric Blake  <ebb9@byu.net>
28058         and Jim Meyering  <meyering@redhat.com>
28059
28060         test-update-copyright: skip if perl is insufficient
28061         * tests/test-update-copyright.sh: Failure to run maintainer tool
28062         should not cause testsuite failure on cygwin 1.5.
28063
28064 2009-08-14  Eric Blake  <ebb9@byu.net>
28065
28066         doc: mention more functions added in cygwin 1.7.0
28067         * doc/posix-headers/limits.texi (limits.h): Update for recent
28068         cygwin additions.
28069         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
28070         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
28071         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
28072         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
28073         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
28074
28075 2009-08-14  Eric Blake  <ebb9@byu.net>
28076
28077         maint.mk: simplify update-copyright rule
28078         * top/maint.mk (update-copyright-local): Delete, and document how
28079         to do it in cfg.mk instead.
28080         (update-copyright-exclude-regexp): Delete, and document how to do
28081         it in .x-update-copyright instead.
28082         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
28083         exclude ChangeLog.
28084
28085 2009-08-14  Bruno Haible  <bruno@clisp.org>
28086
28087         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
28088
28089 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28090
28091         maint.mk: support update-copyright-env
28092         * top/maint.mk (update-copyright-env): Define place-holder.
28093         (update-copyright): Expand $(update-copyright-env) before
28094         invoking update-copyright.
28095
28096 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28097
28098         update-copyright: implement forced reformatting
28099         * build-aux/update-copyright: Implement and document
28100         UPDATE_COPYRIGHT_FORCE.
28101         * tests/test-update-copyright.sh: Test it.
28102
28103 2009-08-14  Eric Blake  <ebb9@byu.net>
28104         and Bruno Haible  <bruno@clisp.org>
28105
28106         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
28107         * tests/test-locale.c: Revert previous patch related to NULL.
28108         * tests/test-stdio.c: Likewise.
28109         * tests/test-stdlib.c: Likewise.
28110         * tests/test-string.c: Likewise.
28111         * tests/test-unistd.c: Likewise.
28112         * modules/time-tests (Depends-on): Add verify.
28113         * modules/wchar-tests (Depends-on): Likewise.
28114         * tests/test-time.c: Test for NULL compliance.
28115         * tests/test-wchar.c: Likewise.
28116         * modules/locale (Depends-on): Add stddef.
28117         * modules/stdio (Depends-on): Likewise.
28118         * modules/stdlib (Depends-on): Likewise.
28119         * modules/string (Depends-on): Likewise.
28120         * modules/time (Depends-on): Likewise.
28121         * modules/unistd (Depends-on): Likewise.
28122         * modules/wchar (Depends-on): Likewise.
28123         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
28124         * lib/stdlib.in.h (includes): Likewise.
28125         * lib/string.in.h (includes): Likewise.
28126         * lib/time.in.h (includes): Likewise.
28127         * lib/unistd.in.h (includes): Likewise.
28128         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
28129         replaced.
28130         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28131         * m4/stddef_h.m4: New file.
28132         * modules/stddef: Likewise.
28133         * lib/stddef.in.h: Likewise.
28134         * modules/stddef-tests: Likewise.
28135         * tests/test-stddef.c: Likewise.
28136         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
28137         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
28138         * doc/posix-headers/locale.texi (locale.h): Likewise.
28139         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
28140         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28141         * doc/posix-headers/string.texi (string.h): Likewise.
28142         * doc/posix-headers/time.texi (time.h): Likewise.
28143         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
28144         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
28145
28146 2009-08-14  Eric Blake  <ebb9@byu.net>
28147
28148         doc: improve git diff of texinfo files
28149         * .gitattributes: Add rule for *.texi files, with hint on how to
28150         use it.
28151         Copied from m4, and based on a report by Bruno Haible.
28152
28153 2009-08-14  Bruno Haible  <bruno@clisp.org>
28154
28155         Disable multithread support by default on Cygwin 1.5.x for real.
28156         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
28157
28158 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
28159
28160         update-copyright: much ado about intervals
28161         * build-aux/update-copyright: Implement and document
28162         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
28163         of copyright year intervals.
28164         Also, document UPDATE_COPYRIGHT_YEAR.
28165         * tests/test-update-copyright.sh: Test it.
28166
28167         update-copyright: convert 2-digit to 4-digit years
28168         * build-aux/update-copyright: Implement and document.
28169         * tests/test-update-copyright.sh: Update.
28170
28171 2009-08-14  Jim Meyering  <meyering@redhat.com>
28172
28173         test-exclude: avoid coreutils "make check" failure
28174         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
28175         just as in test-argmatch.c.
28176
28177 2009-08-13  Eric Blake  <ebb9@byu.net>
28178
28179         test-dup2: fix bad assumption
28180         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
28181         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
28182
28183         test-version-etc: fix CRLF portability issue
28184         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
28185         recognize \r.
28186         * tests/test-argp-version-etc-1.sh: Likewise.
28187
28188         getopt: update client modules
28189         * modules/argp (Depends-on): Use getopt-gnu.
28190         * modules/git-merge-changelog (Depends-on): Likewise.
28191         * modules/long-options (Depends-on): Likewise.
28192         * modules/xstrtol (Depends-on): Likewise.
28193
28194 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28195
28196         * tests/test-version-etc.sh: Don't fail on different
28197         project/version.  Don't fail on CRLF differences.  Rewrite to use
28198         multiple -e instead of multiple sed forks, suggested by Eric Blake
28199         <ebb9@byu.net>.
28200         * tests/test-argp-version-etc-1.sh: Likewise.
28201
28202 2009-08-13  Simon Josefsson  <simon@josefsson.org>
28203
28204         * tests/test-version-etc.sh: Don't fail on different
28205         project/version.
28206
28207 2009-08-12  Bruno Haible  <bruno@clisp.org>
28208
28209         Tests for modules 'getopt-posix', 'getopt-gnu'.
28210         * modules/getopt-posix-tests: New file.
28211         * tests/test-getopt.c: New file.
28212         * tests/test-getopt.h: New file.
28213         * tests/test-getopt_long.h: New file.
28214
28215         New modules 'getopt-posix', 'getopt-gnu'.
28216         * modules/getopt-gnu: New file, renamed from modules/getopt.
28217         * modules/getopt-posix: New file.
28218         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28219         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28220         (gl_GETOPT): Remove macro.
28221         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28222         Disable the test against BSD systems that declare optreset. Test
28223         against mingw bug. Test against lack of support of optional arguments
28224         on many platforms.
28225         * doc/glibc-headers/getopt.texi: Update module name and list of
28226         relevant platforms.
28227         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28228         'getopt-gnu' and more portability problems.
28229         * NEWS: Mention the changes.
28230
28231 2009-08-12  Bruno Haible  <bruno@clisp.org>
28232
28233         Ensure that optarg etc. get declared by <unistd.h>.
28234         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28235         AC_USE_SYSTEM_EXTENSIONS.
28236         * modules/getopt (Depends-on): Add 'extensions'.
28237
28238 2009-08-12  Bruno Haible  <bruno@clisp.org>
28239
28240         Avoid test link errors.
28241         * modules/pipe-filter-ii-tests (Makefile.am): Define
28242         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28243         * modules/pipe-filter-gi-tests (Makefile.am): Define
28244         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28246
28247 2009-08-12  Bruno Haible  <bruno@clisp.org>
28248
28249         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28250         gl_GETOPT_SUBSTITUTE before.
28251         (gl_GETOPT): Use it.
28252         * m4/argp.m4 (gl_ARGP): Update.
28253         Reported by Sergey Poznyakoff.
28254
28255         * m4/getopt.m4: Reorder macros.
28256         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28257         (gl_GETOPT_SUBSTITUTE): Remove macro.
28258
28259 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28260
28261         Minor improvement in gitlog-to-changelog
28262
28263         * build-aux/gitlog-to-changelog: New option `--format' makes
28264         output format string configurable.
28265
28266 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28267
28268         Optimize exclude: use hash tables for non-wildcard patterns.
28269
28270         * lib/exclude.c: Include hash.h and mbuiter.h
28271         (struct exclude_pattern, exclude_segment): New data types.
28272         (struct exclude): Rewrite.
28273         (fnmatch_pattern_has_wildcards): New function.
28274         (new_exclude_segment, free_exclude_segment): New functions.
28275         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28276         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28277         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28278         * modules/exclude: Depend on hash and mbuiter.
28279
28280         * modules/exclude-tests: New file.
28281         * tests/test-exclude.c: New file.
28282         * tests/test-exclude1.sh: New file.
28283         * tests/test-exclude2.sh: New file.
28284         * tests/test-exclude3.sh: New file.
28285         * tests/test-exclude4.sh: New file.
28286         * tests/test-exclude5.sh: New file.
28287         * tests/test-exclude6.sh: New file.
28288         * tests/test-exclude7.sh: New file.
28289
28290 2009-08-12  Bruno Haible  <bruno@clisp.org>
28291
28292         Ensure that getopt() gets declared by <unistd.h>.
28293         * lib/unistd.in.h: Conditionally include getopt.h.
28294         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28295         Set GNULIB_UNISTD_H_GETOPT.
28296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28297         GNULIB_UNISTD_H_GETOPT.
28298         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28299
28300 2009-08-12  Bruno Haible  <bruno@clisp.org>
28301
28302         Clarify logic.
28303         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28304         gl_replace_getopt instead of GETOPT_H.
28305
28306 2009-08-12  Bruno Haible  <bruno@clisp.org>
28307
28308         * m4/getopt.m4: Add comments.
28309
28310 2009-08-12  Bruno Haible  <bruno@clisp.org>
28311
28312         Disable multithread support by default on Cygwin 1.5.x.
28313         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28314         set gl_use_threads=no if not specified otherwise.
28315
28316 2009-08-11  Bruno Haible  <bruno@clisp.org>
28317
28318         Avoid compilation error on NetBSD 5.0.
28319         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28320         * tests/test-stdio.c: Likewise.
28321         * tests/test-stdlib.c: Likewise.
28322         * tests/test-string.c: Likewise.
28323         * tests/test-unistd.c: Likewise.
28324         Reported by Greg Troxel <gdt@ir.bbn.com>
28325         at <https://savannah.gnu.org/support/?106973>.
28326
28327 2009-08-11  Bruno Haible  <bruno@clisp.org>
28328
28329         * modules/dup2-tests (Depends-on): Remove close.
28330
28331         Undo 2009-07-19 commit.
28332         * modules/acl-tests (Depends-on): Remove close.
28333         * modules/binary-io-tests (Depends-on): Likewise.
28334         * modules/closein-tests (Depends-on): Likewise.
28335         * modules/flock-tests (Depends-on): Likewise.
28336         * modules/fsync-tests (Depends-on): Likewise.
28337         * modules/lseek-tests (Depends-on): Likewise.
28338         * modules/pipe-tests (Depends-on): Likewise.
28339         * modules/posix_spawn-tests (Depends-on): Likewise.
28340         * modules/posix_spawnp-tests (Depends-on): Likewise.
28341         * modules/stat-time-tests (Depends-on): Likewise.
28342         * modules/yesno-tests (Depends-on): Likewise.
28343
28344 2009-08-10  Bruno Haible  <bruno@clisp.org>
28345
28346         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28347
28348 2009-08-10  Bruno Haible  <bruno@clisp.org>
28349
28350         Fix a gcc warning.
28351         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28352
28353 2009-08-10  Bruno Haible  <bruno@clisp.org>
28354
28355         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28356         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28357         not only the first time.
28358         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28359         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28360         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28361         is 1, not only the the first time.
28362
28363 2009-08-10  Bruno Haible  <bruno@clisp.org>
28364
28365         Make it possible to use module 'gethostname' without module 'close'.
28366         * lib/unistd.in.h (close): Evoke a link error only if
28367         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28369         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28370         * modules/unistd (Makefile.am): Substitute
28371         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28372         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28373         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28374         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28375         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28376         * modules/sys_ioctl (Makefile.am): Substitute
28377         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28378         * modules/socket (configure.ac): On native Windows, set
28379         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28380         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28381         Reported by Sam Steingold <sds@gnu.org>.
28382
28383 2009-08-10  Bruno Haible  <bruno@clisp.org>
28384
28385         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28386         * modules/ioctl (configure.ac): Likewise.
28387
28388 2009-08-10  Bruno Haible  <bruno@clisp.org>
28389
28390         Avoid collision between gnulib wrapper and libintl wrapper.
28391         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28392         already defined in intl/printf.c.
28393         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28394         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28395
28396 2009-08-09  Bruno Haible  <bruno@clisp.org>
28397
28398         Make <sys/select.h> really self-contained, also on Solaris 10.
28399         * lib/sys_select.in.h: Include <string.h>.
28400         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28401         Solaris 10 problem.
28402         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28403         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28404         Reported by Jim Meyering.
28405
28406 2009-08-09  Bruno Haible  <bruno@clisp.org>
28407
28408         Avoid warnings from 'aclocal' that are due to a use of macro name
28409         AM_XGETTEXT_OPTION that is not defined in automake.
28410         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28411         automake.
28412         * modules/error (configure.ac): Likewise.
28413         * modules/propername (configure.ac): Likewise.
28414         * modules/vasprintf (configure.ac): Likewise.
28415         * modules/verror (configure.ac): Likewise.
28416         * modules/xprintf (configure.ac): Likewise.
28417         * modules/xvasprintf (configure.ac): Likewise.
28418
28419 2009-08-08  Bruno Haible  <bruno@clisp.org>
28420
28421         Avoid compilation error in C++ mode.
28422         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28423         Reported by Sam Steingold <sds@gnu.org>.
28424
28425 2009-08-08  Bruno Haible  <bruno@clisp.org>
28426
28427         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28428         for the various Unix platforms.
28429         * doc/posix-headers/limits.texi: Update platforms list regarding
28430         HOST_NAME_MAX.
28431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28432
28433 2009-08-07  Jim Meyering  <meyering@redhat.com>
28434
28435         selinux-at: fix typo in a comment
28436         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28437         Spotted by Paolo Bonzini.
28438
28439         selinux-at: remove redundant m4 code, add documentation
28440         * modules/selinux-at (configure.ac): Remove redundant code.
28441         LIB_SELINUX is already set via the dependent module, selinux-h.
28442         (Include): Add quotes around selinux-at.h.
28443         * lib/selinux-at.h: Add documentation.
28444         Reported by Bruno Haible in
28445         http://marc.info/?l=gnulib-bug&m=124958988300749
28446
28447 2009-08-07  Bruno Haible  <bruno@clisp.org>
28448
28449         Avoid link error on MacOS X 10.3 and 10.4.
28450         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28451         on non-ELF systems.
28452         * lib/argp-pv.c (argp_program_version): Likewise.
28453         Reported by Simon Josefsson.
28454
28455 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28456
28457         * tests/test-version-etc.sh: Use $EXEEXT.
28458
28459 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28460
28461         update-copyright: update documentation to point to maint.mk
28462         * build-aux/update-copyright: Here.
28463
28464 2009-08-06  Jim Meyering  <meyering@redhat.com>
28465
28466         maint.mk: support update-copyright-local
28467         * top/maint.mk (update-copyright-local): Define place-holder.
28468         (update-copyright): Depend on $(update-copyright-local).
28469
28470 2009-08-06  Jim Meyering  <meyering@redhat.com>
28471
28472         selinux-at: new module
28473         Initially written for coreutils, this module will soon be
28474         used by findutils, too.
28475         * MODULES.html.sh [Misc]: Add selinux-at.
28476         * lib/selinux-at.h: New file, from coreutils.
28477         * lib/selinux-at.c: Likewise.
28478         * modules/selinux-at: Likewise.
28479         (License): Change from LGPL to GPL, since it depends
28480         on the GPL'd openat module.
28481
28482         doc: update README
28483         * README: Remove references to cogito.
28484         Remove cvs-repo-updating instructions from 2007.
28485         Don't imply that CVS is better if you have limited disk space.
28486
28487 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28488
28489         update-copyright: support C-style comments
28490         * build-aux/update-copyright: Implement and document.
28491         * tests/test-update-copyright.sh: Test.
28492
28493 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28494
28495         update-copyright: support omitted "(C)"
28496         * build-aux/update-copyright: Implement and document.  Also,
28497         allow variable whitespace before "(C)".
28498         * tests/test-update-copyright.sh: Test.
28499
28500 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28501
28502         update-copyright: don't trip on non-FSF copyright statements
28503         * build-aux/update-copyright: Fix so that the first correctly
28504         formatted FSF copyright statement is recognized no matter what
28505         appears before it.  Update documentation.
28506         * tests/test-update-copyright.sh: Test that.
28507
28508 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28509
28510         update-copyright: clean up code a little
28511         * build-aux/update-copyright: Append "_re" to the name of any
28512         variable holding a regular expression.
28513         Replace "old" and "new" with "stmt" in variable names.
28514         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28515         handled correctly.
28516         Format code more consistently.
28517
28518 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28519
28520         update-copyright-tests: improve portability
28521         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28522         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28523
28524 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28525
28526         update-copyright: support @copyright{} and &copy;
28527         * build-aux/update-copyright: Implement and document.
28528         * tests/test-update-copyright.sh: Test.
28529
28530 2009-08-04  Jim Meyering  <meyering@redhat.com>
28531
28532         update-copyright-tests: correctly test EOL=\r\n handling
28533         * tests/test-update-copyright.sh: Put \r at the end of some lines
28534         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28535
28536         maint.mk: make update-copyright exclusion list more configurable
28537         * top/maint.mk (update-copyright): Default to excluding COPYING,
28538         but allow an override, in case someone does want to update that file.
28539
28540         maint.mk: don't update copyright date in COPYING
28541         * top/maint.mk (update-copyright): Exclude COPYING.
28542
28543         maint.mk: add a copyright-updating rule
28544         * top/maint.mk (update-copyright): New rule.
28545         Derived from coreutils/Makefile.am.
28546
28547         update-copyright: rename some variables
28548         * build-aux/update-copyright: Rename a few variables for clarity.
28549         Tweak syntax.  List Joel E. Denny as coauthor.
28550
28551 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28552
28553         update-copyright: fix bug for 2-digit last year and add tests
28554         * build-aux/update-copyright: Fix bug.
28555         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28556         specified.
28557         * modules/update-copyright-tests: New
28558         * tests/test-update-copyright.sh: New.
28559
28560 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28561
28562         update-copyright: handle leading tabs in line prefix
28563         * build-aux/update-copyright: Count leading tabs as 8 spaces
28564         when computing margin.  This helps with the formatting of
28565         ChangeLogs, for example.
28566         Fix documentation a little.
28567
28568 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28569
28570         update-copyright: support EOL=\r\n
28571         * build-aux/update-copyright: Implement that.
28572
28573 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28574
28575         update-copyright: automatically format copyright statements
28576         * build-aux/update-copyright: Implement that.
28577         Also, be a little more predictable and safer by always failing
28578         when the full copyright format is not perfectly recognized as an
28579         unbroken whole.  Discussed at
28580         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28581         Rewrite documentation.
28582
28583 2009-08-03  Bruno Haible  <bruno@clisp.org>
28584
28585         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28586
28587 2009-08-02  Bruno Haible  <bruno@clisp.org>
28588
28589         Tests for module 'uname'.
28590         * modules/uname-tests: New file.
28591         * tests/test-uname.c: New file.
28592
28593         New module 'uname'.
28594         * lib/uname.c: New file.
28595         * m4/uname.m4: New file.
28596         * modules/uname: New file.
28597         * doc/posix-functions/uname.texi: Mention the new module.
28598
28599 2009-08-02  Bruno Haible  <bruno@clisp.org>
28600
28601         Tests for module 'sys_utsname'.
28602         * modules/sys_utsname-tests: New file.
28603         * tests/test-sys_utsname.c: New file.
28604
28605         New module 'sys_utsname'.
28606         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28607         * m4/sys_utsname_h.m4: New file.
28608         * modules/sys_utsname: New file.
28609         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28610
28611 2009-08-02  Bruno Haible  <bruno@clisp.org>
28612
28613         Implicitly initialize the sockets library.
28614         * lib/gethostname.c: Include sockets.h.
28615         (rpl_gethostname): Invoke gl_sockets_startup.
28616         * lib/socket.c: Include sockets.h.
28617         (rpl_socket): Invoke gl_sockets_startup.
28618         * modules/gethostname (Depends-on): Add sockets.
28619         * modules/socket (Depends-on): Likewise.
28620         * tests/test-poll.c: Don't include sockets.h.
28621         (main): Don't invoke gl_sockets_startup.
28622         * tests/test-select.c: Don't include sockets.h.
28623         (main): Don't invoke gl_sockets_startup.
28624
28625 2009-08-02  Bruno Haible  <bruno@clisp.org>
28626
28627         Allow multiple calls to gl_sockets_startup.
28628         * lib/sockets.c (initialized_sockets_version): New variable.
28629         (gl_sockets_startup): Do nothing if already called for this or a higher
28630         version.
28631         (gl_sockets_cleanup): Reset initialized_sockets_version.
28632
28633 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28634
28635         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28636         different project/version.
28637
28638 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28639             Bruno Haible  <bruno@clisp.org>
28640
28641         Tests for module 'pipe-filter-gi'.
28642         * modules/pipe-filter-gi-tests: New file.
28643         * tests/test-pipe-filter-gi1.sh: New file.
28644         * tests/test-pipe-filter-gi1.c: New file.
28645         * tests/test-pipe-filter-gi2.sh: New file.
28646         * tests/test-pipe-filter-gi2-main.c: New file.
28647         * tests/test-pipe-filter-gi2-child.c: New file.
28648
28649         New module 'pipe-filter-gi'.
28650         * lib/pipe-filter-gi.c: New file.
28651         * modules/pipe-filter-gi: New file.
28652
28653 2009-08-02  Bruno Haible  <bruno@clisp.org>
28654             Paolo Bonzini  <bonzini@gnu.org>
28655
28656         Tests for module 'pipe-filter-ii'.
28657         * modules/pipe-filter-ii-tests: New file.
28658         * tests/test-pipe-filter-ii1.sh: New file.
28659         * tests/test-pipe-filter-ii1.c: New file.
28660         * tests/test-pipe-filter-ii2.sh: New file.
28661         * tests/test-pipe-filter-ii2-main.c: New file.
28662         * tests/test-pipe-filter-ii2-child.c: New file.
28663
28664         New module 'pipe-filter-ii'.
28665         * lib/pipe-filter.h: New file.
28666         * lib/pipe-filter-ii.c: New file.
28667         * lib/pipe-filter-aux.h: New file.
28668         * modules/pipe-filter-ii: New file.
28669
28670 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28671
28672         * lib/gc-libgcrypt.c: Change copyright to FSF.
28673         * lib/gc-gnulib.c: Likewise.
28674
28675 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28676
28677         * lib/gethostname.c: Include limits.h.
28678
28679 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28680             Bruno Haible  <bruno@clisp.org>
28681
28682         Ensure HOST_NAME_MAX as part of the gethostname module.
28683         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28684         define also HOST_NAME_MAX.
28685         * tests/test-gethostname.c: Include <limits.h>.
28686         (main): Check also HOST_NAME_MAX.
28687         * doc/posix-headers/limits.texi: Document the mingw problem.
28688
28689 2009-08-02  Bruno Haible  <bruno@clisp.org>
28690
28691         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28692         Add comments.
28693
28694 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28695
28696         * lib/gethostname.c: Add Windows wrapper.
28697         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28698         * modules/gethostname: Depend on sys_socket & errno, for also
28699         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28700         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28701
28702 2009-07-31  Jim Meyering  <meyering@redhat.com>
28703
28704         getloadavg: fix symbol name in comment
28705         * lib/getloadavg.c: Correct a typo I introduced when adding
28706         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28707         Matt Kraai spotted the problem.
28708
28709 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28710
28711         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28712         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28713         code also if ! defined N_NAME_POINTER.
28714         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28715         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28716         but the n_name member is a 12-byte array.
28717
28718 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28719
28720         update-copyright: generalize comment handling
28721         * build-aux/update-copyright: Handle copyright statements
28722         within more comment styles.
28723         Document usage.
28724         Report any file with an external copyright holder or parse failure.
28725
28726 2009-07-29  Jim Meyering  <meyering@redhat.com>
28727
28728         mktime: correct setting of REPLACE_MKTIME
28729         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28730
28731         update-copyright: new module
28732         * modules/update-copyright: New file.
28733         * build-aux/update-copyright: New file.
28734         * MODULES.html.sh (maint+release support): Add update-copyright.
28735
28736 2009-07-27  Bruno Haible  <bruno@clisp.org>
28737
28738         Fix compilation error when <ctime> is used and mktime is replaced.
28739         * lib/time.in.h (mktime): New declaration.
28740         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28741         REPLACE_MKTIME instead of defining mktime in config.h.
28742         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28743         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28744         Reported by Ross McFarland <rwmcfa1@neces.com>.
28745
28746 2009-07-27  Bruno Haible  <bruno@clisp.org>
28747
28748         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28749         Reported by Matt Kraai <mkraai@beckman.com>.
28750
28751 2009-07-25  Jim Meyering  <meyering@redhat.com>
28752
28753         maint.mk: avoid warnings about missing files
28754         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28755         diagnostic when .prev-version does not exist.
28756         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28757         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28758         nonexistent cfg.mk.
28759         Suggestions from Simon Josefsson.
28760
28761 2009-07-25  Bruno Haible  <bruno@clisp.org>
28762
28763         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28764         defined as macros. Needed on QNX 6.4.1.
28765         Reported by Matt Kraai <mkraai@beckman.com>.
28766
28767 2009-07-23  Jim Meyering  <meyering@redhat.com>
28768
28769         maint.mk: invoke "make dist" with a working value of XZ_OPT
28770         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28771
28772 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28773
28774         Make fseeko.c compile on QNX.
28775         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28776
28777 2009-07-22  Peter Simons  <simons@cryp.to>
28778
28779         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28780         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28781         * lib/md4.h: Likewise.
28782         * lib/md5.h: Likewise.
28783         * lib/sha1.h: Likewise.
28784         * lib/sha256.h: Likewise.
28785         * lib/sha512.h: Likewise.
28786
28787         tests-sha1: don't assign literal string to 'char *' variable
28788         * tests/test-sha1.c (main): Declare locals with "const" to match
28789         attributes of the right hand side.
28790
28791 2009-07-21  Eric Blake  <ebb9@byu.net>
28792
28793         dup2: fix more mingw problems
28794         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28795         fd to itself.
28796         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28797         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28798         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28799         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28800         care of mingw bugs.
28801
28802 2009-07-21  Jim Meyering  <meyering@redhat.com>
28803
28804         vc-list-files: avoid failure when /bin/sh is dash
28805         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28806         On some Debian based systems, /bin/sh is a symlink to dash, and running
28807         this command would omit the "/" following each 'tests' prefix:
28808           dash -x build-aux/vc-list-files -C . tests
28809         That is because bash and dash work differently:
28810           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28811           bash ok
28812           dash odd
28813
28814 2009-07-21  Eric Blake  <ebb9@byu.net>
28815
28816         dup2-tests: test previous patch
28817         * modules/dup2-tests: New file.
28818         * tests/test-dup2.c: Likewise.
28819         * tests/test-open.c (main): Avoid unspecified behavior.
28820         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28821         test.
28822
28823         dup2: work around mingw and cygwin 1.5 bug
28824         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28826         * modules/unistd (Makefile.am): Substitute it.
28827         * lib/unistd.in.h (dup2): Declare the replacement.
28828         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28829         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28830         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28831         * modules/execute (Depends-on): Add dup2.
28832         * modules/fseterr (Depends-on): Likewise.
28833         * modules/pipe (Depends-on): Likewise.
28834         * modules/posix_spawn-internal (Depends-on): Likewise.
28835
28836 2009-07-21  Bruno Haible  <bruno@clisp.org>
28837
28838         * modules/.gitattributes: New file.
28839
28840 2009-07-20  Bruno Haible  <bruno@clisp.org>
28841
28842         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28843         (main): Use it.
28844
28845 2009-07-20  Eric Blake  <ebb9@byu.net>
28846
28847         test-pipe: make a bit more robust.
28848         * tests/test-pipe.c (myerr): Allow error messages regardless of
28849         what we do to stderr.
28850         (test_pipe): Rearrange to avoid deadlock.
28851         (child_main): Try a larger read, to ensure we avoided deadlock.
28852         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28853         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28854         if misused.
28855
28856 2009-07-19  Jim Meyering  <meyering@redhat.com>
28857
28858         fts: avoid false-positive cycle-detection
28859         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28860         for each new command line argument.
28861
28862 2009-07-19  Bruno Haible  <bruno@clisp.org>
28863
28864         Fix build error on mingw with the modules sys_select and unistd.
28865         * modules/acl-tests (Depends-on): Add close.
28866         * modules/binary-io-tests (Depends-on): Likewise.
28867         * modules/closein-tests (Depends-on): Likewise.
28868         * modules/flock-tests (Depends-on): Likewise.
28869         * modules/fsync-tests (Depends-on): Likewise.
28870         * modules/lseek-tests (Depends-on): Likewise.
28871         * modules/pipe-tests (Depends-on): Likewise.
28872         * modules/posix_spawn-tests (Depends-on): Likewise.
28873         * modules/posix_spawnp-tests (Depends-on): Likewise.
28874         * modules/stat-time-tests (Depends-on): Likewise.
28875         * modules/yesno-tests (Depends-on): Likewise.
28876
28877 2009-07-19  Bruno Haible  <bruno@clisp.org>
28878
28879         Unify conditionals.
28880         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28881         macros, not at the compiler macros.
28882         * lib/pipe.c: Likewise.
28883         * lib/execute.c: Likewise.
28884         * lib/spawni.c: Likewise.
28885
28886 2009-07-19  Bruno Haible  <bruno@clisp.org>
28887
28888         Fix handling of closed stdin/stdout/stderr on mingw.
28889         * lib/w32spawn.h: Include unistd.h.
28890         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28891         file descriptor with O_NOINHERIT flag.
28892         (fd_safer_noinherit): New function, based on fd-safer.c.
28893         (dup_safer_noinherit): New function, based on dup-safer.c.
28894         (undup_safer_noinherit): New function.
28895         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28896         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28897         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28898         instead of fd_safer.
28899         * tests/test-pipe.c: Include <windows.h>.
28900         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28901         result.
28902
28903         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28904         from main.
28905         (test_pipe): Pass an extra argument for disambiguation.
28906         (main): Invoke parent_main or child_main.
28907
28908         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28909         consistently.
28910
28911 2009-07-18  Eric Blake  <ebb9@byu.net>
28912
28913         test-pipe: fix mingw build
28914         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28915
28916 2009-07-18  Bruno Haible  <bruno@clisp.org>
28917
28918         * modules/pipe-tests (Makefile.am): Fix typo.
28919
28920 2009-07-18  Eric Blake  <ebb9@byu.net>
28921
28922         error: fix mingw build
28923         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28924         Reported by Bruno Haible.
28925
28926         error: avoid undefined use of stdout
28927         * lib/error.c (error, error_at_line): Check that fd 1 is open
28928         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28929         is handling faults and the close_stdout module wants to report the
28930         detection of closed stdout as an error.
28931
28932 2009-07-17  Eric Blake  <ebb9@byu.net>
28933
28934         pipe: be robust in face of closed fds
28935         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28936         should cause child to misbehave.
28937         * modules/pipe-tests: New module.
28938         * tests/test-pipe.c: New file.
28939         * tests/test-pipe.sh: New file.
28940         Reported by Akim Demaille.
28941
28942 2009-07-14  Bruno Haible  <bruno@clisp.org>
28943
28944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28945         Reported by anonymous kc.
28946
28947 2009-07-07  Jim Meyering  <meyering@redhat.com>
28948
28949         maint.mk: don't look for translatable strings in *.m4 or *.mk
28950         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28951         when searching for translatable strings.
28952
28953 2009-07-05  Jim Meyering  <meyering@redhat.com>
28954
28955         remove superfluous parentheses in STREQ definition
28956         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28957         * lib/getugroups.c (STREQ): Likewise.
28958         * lib/fnmatch.c (STREQ): Likewise.
28959         Spotted by Bruno Haible.
28960
28961 2009-07-04  Jim Meyering  <meyering@redhat.com>
28962
28963         argv-iter: new module
28964         * MODULES.html.sh: Add argv-iter.
28965         * lib/argv-iter.c, lib/argv-iter.h: New files.
28966         * modules/argv-iter: New file.
28967         * modules/argv-iter-tests: New file.
28968         * tests/test-argv-iter.c: Test it.
28969
28970 2009-07-04  Bruno Haible  <bruno@clisp.org>
28971
28972         Fix assertion.
28973         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28974         contains more exact copies of a given entry than file2, leave the extra
28975         copies unpaired rather than aborting.
28976         Reported by Eric Blake.
28977
28978 2009-07-02  Bruno Haible  <bruno@clisp.org>
28979
28980         Speedup git-merge-changelog for git cherry-pick.
28981         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28982         (entries_mapping_get): New function, extracted from compute_mapping.
28983         (entries_mapping_reverse_get): New function.
28984         (compute_mapping): Add a 'full' argument. Return the result in a
28985         'struct entries_mapping'.
28986         (main): Update. Access the mappings through entries_mapping_get.
28987         Reported by Eric Blake.
28988
28989 2009-07-02  Bruno Haible  <bruno@clisp.org>
28990
28991         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28992         best_i.
28993
28994 2009-07-02  Bruno Haible  <bruno@clisp.org>
28995
28996         Speed up approximate search for matching ChangeLog entries.
28997         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28998         argument. Call fstrcmp_bounded instead of fstrcmp.
28999         (compute_mapping, try_split_merged_entry, main): Update callers.
29000
29001 2009-07-02  Bruno Haible  <bruno@clisp.org>
29002
29003         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
29004
29005 2009-06-30  Bruno Haible  <bruno@clisp.org>
29006
29007         Reduce the number of uc_is_cased calls.
29008         * lib/unicase.h (casing_suffix_context_t): Add
29009         'first_char_except_ignorable' field.
29010         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
29011         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
29012         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
29013         Update initializer.
29014         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
29015         case-ignorable characters.
29016         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
29017         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
29018         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
29019         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
29020         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
29021
29022 2009-06-30  Bruno Haible  <bruno@clisp.org>
29023
29024         Tests for module 'unicase/ignorable'.
29025         * modules/unicase/ignorable-tests: New file.
29026         * tests/unicase/test-ignorable.c: New file, generated by
29027         gen-uni-tables.
29028
29029         Tests for module 'unicase/cased'.
29030         * modules/unicase/cased-tests: New file.
29031         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
29032         * tests/unicase/test-predicate-part1.h: New file, derived from
29033         tests/unictype/test-predicate-part1.h.
29034         * tests/unicase/test-predicate-part2.h: New file, same as
29035         tests/unictype/test-predicate-part2.h.
29036
29037         Fix evaluation of "Before C" condition of FINAL_SIGMA.
29038         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
29039         (output_casing_properties): New function.
29040         (main): Call it.
29041         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
29042         * lib/unicase/cased.c: Include unictype/bitmap.h.
29043         (uc_is_cased): Define through a bitmap lookup.
29044         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
29045         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
29046         (uc_is_case_ignorable): Define through a bitmap lookup.
29047         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
29048         lib/unictype/bitmap.h.
29049         (Depends-on): Add inline. Clean up.
29050         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
29051         lib/unictype/bitmap.h.
29052         (Depends-on): Add inline. Clean up.
29053         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
29054         recognition.
29055         * tests/unicase/test-u16-tolower.c (main): Likewise.
29056         * tests/unicase/test-u32-tolower.c (main): Likewise.
29057
29058 2009-06-30  Bruno Haible  <bruno@clisp.org>
29059
29060         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
29061         * lib/unicase/u16-casemap.c: Likewise.
29062         * lib/unicase/u32-casemap.c: Likewise.
29063
29064 2009-06-29  Bruno Haible  <bruno@clisp.org>
29065
29066         Define u32_casefold as a wrapper around u32_ct_casefold.
29067         * lib/unicase/u32-casefold.c: Update.
29068         * modules/unicase/u32-casefold (Depends-on): Add
29069         unicase/u32-ct-casefold, unicase/empty-prefix-context,
29070         unicase/empty-suffix-context. Clean up.
29071
29072         Define u16_casefold as a wrapper around u16_ct_casefold.
29073         * lib/unicase/u16-casefold.c: Update.
29074         * modules/unicase/u16-casefold (Depends-on): Add
29075         unicase/u16-ct-casefold, unicase/empty-prefix-context,
29076         unicase/empty-suffix-context. Clean up.
29077
29078         Define u8_casefold as a wrapper around u8_ct_casefold.
29079         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
29080         * lib/unicase/u8-casefold.c: Update.
29081         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
29082         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29083
29084         Define u32_totitle as a wrapper around u32_ct_totitle.
29085         * lib/unicase/u32-totitle.c: Update.
29086         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
29087         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29088
29089         Define u16_totitle as a wrapper around u16_ct_totitle.
29090         * lib/unicase/u16-totitle.c: Update.
29091         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
29092         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29093
29094         Define u8_totitle as a wrapper around u8_ct_totitle.
29095         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
29096         functions.
29097         (FUNC): Delegate to U_CT_TOTITLE.
29098         * lib/unicase/u8-totitle.c: Update.
29099         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
29100         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
29101
29102         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
29103         invocation.
29104         * modules/unicase/u32-tolower (Depends-on): Add
29105         unicase/empty-prefix-context, unicase/empty-suffix-context.
29106
29107         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
29108         invocation.
29109         * modules/unicase/u16-tolower (Depends-on): Add
29110         unicase/empty-prefix-context, unicase/empty-suffix-context.
29111
29112         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
29113         * modules/unicase/u8-tolower (Depends-on): Add
29114         unicase/empty-prefix-context, unicase/empty-suffix-context.
29115
29116         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
29117         invocation.
29118         * modules/unicase/u32-toupper (Depends-on): Add
29119         unicase/empty-prefix-context, unicase/empty-suffix-context.
29120
29121         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
29122         invocation.
29123         * modules/unicase/u16-toupper (Depends-on): Add
29124         unicase/empty-prefix-context, unicase/empty-suffix-context.
29125
29126         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
29127         * modules/unicase/u8-toupper (Depends-on): Add
29128         unicase/empty-prefix-context, unicase/empty-suffix-context.
29129
29130         New module 'unicase/u32-ct-casefold'.
29131         * lib/unicase/u32-ct-casefold.c: New file.
29132         * modules/unicase/u32-ct-casefold: New file.
29133
29134         New module 'unicase/u16-ct-casefold'.
29135         * lib/unicase/u16-ct-casefold.c: New file.
29136         * modules/unicase/u16-ct-casefold: New file.
29137
29138         New module 'unicase/u8-ct-casefold'.
29139         * lib/unicase/u8-ct-casefold.c: New file.
29140         * lib/unicase/u-ct-casefold.h: New file, derived from
29141         lib/unicase/u-casefold.h.
29142         * modules/unicase/u8-ct-casefold: New file.
29143
29144         New module 'unicase/u32-ct-totitle'.
29145         * lib/unicase/u32-ct-totitle.c: New file.
29146         * modules/unicase/u32-ct-totitle: New file.
29147
29148         New module 'unicase/u16-ct-totitle'.
29149         * lib/unicase/u16-ct-totitle.c: New file.
29150         * modules/unicase/u16-ct-totitle: New file.
29151
29152         New module 'unicase/u8-ct-totitle'.
29153         * lib/unicase/u8-ct-totitle.c: New file.
29154         * lib/unicase/u-ct-totitle.h: New file, derived from
29155         lib/unicase/u-totitle.h.
29156         * modules/unicase/u8-ct-totitle: New file.
29157
29158         New module 'unicase/u32-ct-tolower'.
29159         * lib/unicase/u32-ct-tolower.c: New file.
29160         * modules/unicase/u32-ct-tolower: New file.
29161
29162         New module 'unicase/u16-ct-tolower'.
29163         * lib/unicase/u16-ct-tolower.c: New file.
29164         * modules/unicase/u16-ct-tolower: New file.
29165
29166         New module 'unicase/u8-ct-tolower'.
29167         * lib/unicase/u8-ct-tolower.c: New file.
29168         * modules/unicase/u8-ct-tolower: New file.
29169
29170         New module 'unicase/u32-ct-toupper'.
29171         * lib/unicase/u32-ct-toupper.c: New file.
29172         * modules/unicase/u32-ct-toupper: New file.
29173
29174         New module 'unicase/u16-ct-toupper'.
29175         * lib/unicase/u16-ct-toupper.c: New file.
29176         * modules/unicase/u16-ct-toupper: New file.
29177
29178         New module 'unicase/u8-ct-toupper'.
29179         * lib/unicase/u8-ct-toupper.c: New file.
29180         * modules/unicase/u8-ct-toupper: New file.
29181
29182         Add context arguments to u*_casemap functions.
29183         * lib/unicase/unicasemap.h: Include unicase.h.
29184         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
29185         suffix_context arguments.
29186         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
29187         functions.
29188         (FUNC): Add prefix_context and suffix_context arguments. Use
29189         uc_is_cased and uc_is_case_ignorable.
29190         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
29191         * lib/unicase/u16-casemap.c: Likewise.
29192         * lib/unicase/u32-casemap.c: Likewise.
29193         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
29194         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29195         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
29196         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29197         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
29198         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
29199
29200         New module 'unicase/u32-suffix-context'.
29201         * lib/unicase/u32-suffix-context.c: New file.
29202         * modules/unicase/u32-suffix-context: New file.
29203
29204         New module 'unicase/u16-suffix-context'.
29205         * lib/unicase/u16-suffix-context.c: New file.
29206         * modules/unicase/u16-suffix-context: New file.
29207
29208         New module 'unicase/u8-suffix-context'.
29209         * lib/unicase/u8-suffix-context.c: New file.
29210         * lib/unicase/u-suffix-context.h: New file.
29211         * modules/unicase/u8-suffix-context: New file.
29212
29213         New module 'unicase/empty-suffix-context'.
29214         * lib/unicase/empty-suffix-context.c: New file.
29215         * modules/unicase/empty-suffix-context: New file.
29216
29217         New module 'unicase/u32-prefix-context'.
29218         * lib/unicase/u32-prefix-context.c: New file.
29219         * modules/unicase/u32-prefix-context: New file.
29220
29221         New module 'unicase/u16-prefix-context'.
29222         * lib/unicase/u16-prefix-context.c: New file.
29223         * modules/unicase/u16-prefix-context: New file.
29224
29225         New module 'unicase/u8-prefix-context'.
29226         * lib/unicase/u8-prefix-context.c: New file.
29227         * lib/unicase/u-prefix-context.h: New file.
29228         * lib/unicase/context.h: New file.
29229         * modules/unicase/u8-prefix-context: New file.
29230
29231         New module 'unicase/empty-prefix-context'.
29232         * lib/unicase/empty-prefix-context.c: New file.
29233         * modules/unicase/empty-prefix-context: New file.
29234
29235         New module 'unicase/ignorable'.
29236         * lib/unicase/ignorable.c: New file.
29237         * modules/unicase/ignorable: New file.
29238
29239         New module 'unicase/cased'.
29240         * lib/unicase/caseprop.h: New file.
29241         * lib/unicase/cased.c: New file.
29242         * modules/unicase/cased: New file.
29243
29244         New functions for case mapping of substrings.
29245         * lib/unicase.h (casing_prefix_context_t): New type.
29246         (unicase_empty_prefix_context): New variable.
29247         (u8_casing_prefix_context, u16_casing_prefix_context,
29248         u32_casing_prefix_context, u8_casing_prefixes_context,
29249         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29250         declarations.
29251         (casing_suffix_context_t): New type.
29252         (unicase_empty_suffix_context): New variable.
29253         (u8_casing_suffix_context, u16_casing_suffix_context,
29254         u32_casing_suffix_context, u8_casing_suffixes_context,
29255         u16_casing_suffixes_context, u32_casing_suffixes_context,
29256         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29257         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29258         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29259         declarations.
29260
29261 2009-06-28  Jim Meyering  <meyering@redhat.com>
29262
29263         boostrap: indent only with spaces
29264         * build-aux/bootstrap: Indent only with spaces, never TABs.
29265
29266         bootstrap: split long lines
29267         * build-aux/bootstrap: Keep line length < 80.
29268
29269         bootstrap: sync from coreutils
29270         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29271         just as autoreconf does.  Verify a list of prerequisite
29272         package-name,version-number pairs if defined in bootstrap.conf.
29273         Refer to README-prereq, if prerequisites are not satisfied.
29274
29275 2009-06-27  Eric Blake  <ebb9@byu.net>
29276
29277         tests: add test for bogus NULL definition
29278         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29279         * tests/test-stdlib.c: Likewise.
29280         * tests/test-string.c: Likewise.
29281         * tests/test-locale.c: Likewise.
29282         * tests/test-unistd.c: Likewise.
29283         * modules/stdio-tests (Depends-on): Add verify.
29284         * modules/stdlib-tests (Depends-on): Likewise.
29285         * modules/string-tests (Depends-on): Likewise.
29286         * modules/locale-tests (Depends-on): Likewise.
29287         * modules/unistd-tests (Depends-on): Likewise.
29288
29289 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29290
29291         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29292         self-explaining comment.
29293         * m4/selinux-selinux-h: Update serial.
29294         (gl_LIBSELINUX): New macro, adding a warning for missing development
29295         packages to code extracted from...
29296         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29297         Add warning for missing development packages here, too.
29298
29299 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29300
29301         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29302
29303 2009-06-25  Eric Blake  <ebb9@byu.net>
29304
29305         version-etc: fix regression
29306         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29307         gcc.
29308         (version_etc): Use it, to catch bugs with trailing NULL.
29309         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29310         (version_etc_va): Fix logic bug.
29311         * modules/version-etc-tests: Add test.
29312         * tests/test-version-etc.c: New file.
29313         * tests/test-version-etc.sh: Likewise.
29314
29315 2009-06-25  Sam Steingold  <sds@gnu.org>
29316
29317         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29318         mbtowc declaration.
29319
29320 2009-06-25  Eric Blake  <ebb9@byu.net>
29321
29322         fpurge: migrate into <stdio.h>
29323         * lib/fpurge.h: Delete...
29324         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29325         * lib/fpurge.c (fpurge): Change declaring header.
29326         * modules/fpurge (Files): Drop deleted file.
29327         (Depends-on): Add stdio.
29328         (configure.ac): Set witness.
29329         * modules/stdio (Makefile.am): Support fpurge macros.
29330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29331         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29332         * lib/fflush.c: Update client.
29333         * tests/test-fpurge.c: Likewise.
29334         * NEWS: Mention the change.
29335
29336 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29337
29338         * lib/argp-version-etc.c (program_authors): Add const
29339         qualifier.
29340         * lib/version-etc.c: Fix typos in the comments.
29341         * modules/argp-version-etc: Depends on version-etc.
29342
29343 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29344
29345         argp-version-etc: new module.
29346
29347         * lib/argp-version-etc.c: New file.
29348         * lib/argp-version-etc.h: New file.
29349         * modules/argp-version-etc: New file.
29350         * modules/argp-version-etc-tests: New file.
29351         * tests/test-argp-version-etc.c: New test.
29352         * tests/test-argp-version-etc-1.sh: New test.
29353
29354 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29355
29356         Provide additional interfaces and documentation for version-etc
29357         module.
29358
29359         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29360         interfaces.
29361         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29362         prototypes.
29363
29364 2009-06-24  Bruno Haible  <bruno@clisp.org>
29365
29366         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29367         HAVE_LIB${NAME} macro.
29368         Reported by Sam Steingold <sds@gnu.org>.
29369
29370 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29371
29372         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29373         needed.
29374
29375 2009-06-21  Bruno Haible  <bruno@clisp.org>
29376
29377         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29378         work.
29379         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29380         together with LIB${NAME}, LTLIB${NAME}.
29381         Reported by Sam Steingold <sds@gnu.org>.
29382
29383 2009-06-20  Jim Meyering  <meyering@redhat.com>
29384
29385         tests: make sc_require_test_exit_idiom more generic
29386         * top/maint.mk (Exit_witness_file): New overridable variable.
29387         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29388         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29389
29390 2009-06-19  Jim Meyering  <meyering@redhat.com>
29391
29392         hash: reverse order of src/dst parameters in an internal interface
29393         * lib/hash.c (transfer_entries): Reverse order of parameters to
29394         put DST before SRC.  Adjust callers.
29395
29396         tests: test-hash: avoid wholesale duplication
29397         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29398         Instead, use a loop and add a single conditional.
29399
29400         tests: test-hash: allow seed selection via a command line argument
29401         * tests/test-hash.c (get_seed): New function.
29402         (main): Use it.
29403
29404 2009-06-19  Eric Blake  <ebb9@byu.net>
29405
29406         hash: avoid memory leak on allocation failure
29407         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29408         failure.  Factor repeated algorithm...
29409         (transfer_entries): ...into new helper routine.
29410         (hash_delete): React to hash_rehash return value.
29411
29412         hash: reduce memory pressure in hash_rehash no-op case
29413         * lib/hash.c (next_prime): Avoid overflow.
29414         (hash_initialize): Factor bucket size computation...
29415         (compute_bucket_size): ...into new helper function.
29416         (hash_rehash): Use new function and open coding to reduce memory
29417         pressure, and avoid a memory leak in USE_OBSTACK code.
29418         Reported by Jim Meyering.
29419
29420 2009-06-18  Eric Blake  <ebb9@byu.net>
29421
29422         hash: make rotation more obvious
29423         * modules/hash (Depends-on): Add bitrotate and stdint.
29424         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29425         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29426         (SIZE_MAX): Rely on headers for definition.
29427         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29428         (raw_hasher): Use rotr_sz.
29429         Suggested by Jim Meyering.
29430
29431         hash: fix memory leak in last patch
29432         * lib/hash.c (hash_rehash): Avoid memory leak.
29433
29434         hash: avoid no-op rehashing
29435         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29436
29437         hash: provide default callback functions
29438         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29439         (hash_initialize): Use them as defaults.
29440         * tests/test-hash.c (main): Test this.
29441
29442         hash: minor optimization
29443         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29444         when possible.
29445         (hash_initialize): Document this promise.
29446         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29447         * tests/test-hash.c (hash_compare_strings): Test this.
29448
29449 2009-06-18  Bruno Haible  <bruno@clisp.org>
29450
29451         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29452         going to be replaced anyway.
29453
29454 2009-06-18  Bruno Haible  <bruno@clisp.org>
29455
29456         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29457         in one place.
29458         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29459         be replaced anyway.
29460
29461 2009-06-18  Eric Blake  <ebb9@byu.net>
29462
29463         hash: check for resize before insertion
29464         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29465         threshold before insertion, so that a pathological hash_rehash
29466         that fills every bucket can still trigger another rehash.
29467
29468 2009-06-18  Jim Meyering  <meyering@redhat.com>
29469
29470         hash-tests: add a loop around the small tests
29471         * tests/test-hash.c (main): Repeat small tests with selected
29472         small initial table sizes.
29473
29474 2009-06-17  Eric Blake  <ebb9@byu.net>
29475
29476         hash: minor cleanups
29477         * lib/hash.h (hash_entry): Make opaque, by moving...
29478         * lib/hash.c (hash_entry): ...here.
29479         (hash_insert): Clarify restrictions on what can be inserted.
29480         (hash_get_next): Clarify when it is safe to remove an element
29481         during traversal.
29482         (check_tuning): Skip verification when tuning is known safe.
29483         (hash_initialize): Clarify restrictions on tuning.
29484
29485 2009-06-17  Jim Meyering  <jim@meyering.net>
29486         and Eric Blake  <ebb9@byu.net>
29487
29488         hash-tests: new module
29489         * modules/hash-tests: New file.
29490         * tests/test-hash.c: New file.
29491
29492 2009-06-17  Eric Blake  <ebb9@byu.net>
29493
29494         strstr-simple: document new module
29495         * MODULES.html.sh: Document new module.
29496
29497         strstr, strcasestr: replace on platforms with broken memchr
29498         * modules/strstr: Split into...
29499         * modules/strstr-simple: ...new module that does not care about
29500         performance, but does care about glibc bug.
29501         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29502         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29503         if platform memchr is broken, per Debian bug 521737.
29504         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29505         memchr.
29506         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29507         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29508         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29509         * modules/mountlist (Depends-on): Add strstr-simple.
29510         * modules/gen-uni-tables (Depends-on): Likewise.
29511         * modules/argz (Depends-on): Add strstr.
29512
29513 2009-06-17  Bruno Haible  <bruno@clisp.org>
29514
29515         * modules/posix_spawn-internal (Depends-on): Add errno.
29516
29517 2009-06-17  Bruno Haible  <bruno@clisp.org>
29518
29519         Define missing ESTALE on Interix 3.5.
29520         * lib/errno.in.h (ESTALE): Assign a value if missing.
29521         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29522         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29523         missing.
29524         * doc/posix-headers/errno.texi: Mention the Interix bug.
29525         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29526
29527 2009-06-15  Eric Blake  <ebb9@byu.net>
29528
29529         memchr, memchr2: add valgrind exception
29530         * lib/memchr.valgrind: New file.
29531         * lib/memchr2.valgrind: New file.
29532         * modules/memchr (Files): Distribute valgrind file.
29533         * modules/memchr2 (Files): Likewise.
29534
29535         docs: memchr is no longer obsolete
29536         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29537         * lib/string.in.h (memchr): Simplify logic.
29538
29539 2009-06-14  Jim Meyering  <meyering@redhat.com>
29540
29541         link-follow: fix the "checking..." message to not mention trailing slash
29542         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29543         never considered trailing slashes.
29544
29545 2009-06-14  Bruno Haible  <bruno@clisp.org>
29546
29547         * m4/memchr.m4: Mention also the bug on IA-64.
29548         * doc/posix-functions/memchr.texi: Likewise.
29549
29550 2009-06-12  Eric Blake  <ebb9@byu.net>
29551
29552         memchr: detect broken x86_64 and alpha implementations
29553         * modules/memchr-tests (Depends-on): Move mmap detection...
29554         * modules/memchr (Depends-on): ...here.
29555         (configure.ac): Set indicator.
29556         * lib/string.in.h (memchr): Declare replacement.
29557         * modules/string (Makefile.am): Trigger replacement.
29558         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29559         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29560         bugs.
29561         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29562         * modules/getpagesize (License): Relax license.
29563
29564 2009-06-11  Bruno Haible  <bruno@clisp.org>
29565
29566         * lib/idpriv.h: Add more references.
29567
29568 2009-06-08  Bruno Haible  <bruno@clisp.org>
29569
29570         Tests for module 'idpriv-droptemp'.
29571         * modules/idpriv-droptemp-tests: New file.
29572         * tests/test-idpriv-droptemp.sh: New file.
29573         * tests/test-idpriv-droptemp.su.sh: New file.
29574         * tests/test-idpriv-droptemp.c: New file.
29575
29576         New module 'idpriv-droptemp'.
29577         * lib/idpriv-droptemp.c: New file.
29578         * modules/idpriv-droptemp: New file.
29579
29580 2009-06-08  Bruno Haible  <bruno@clisp.org>
29581
29582         Tests for module 'idpriv-drop'.
29583         * modules/idpriv-drop-tests: New file.
29584         * tests/test-idpriv-drop.sh: New file.
29585         * tests/test-idpriv-drop.su.sh: New file.
29586         * tests/test-idpriv-drop.c: New file.
29587
29588         New module 'idpriv-drop'.
29589         * lib/idpriv.h: New file.
29590         * lib-idpriv-drop.c: New file.
29591         * m4/idpriv.m4: New file.
29592         * modules/idpriv-drop: New file.
29593
29594 2009-06-08  Bruno Haible  <bruno@clisp.org>
29595
29596         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29597         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29598         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29599         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29600         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29601         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29602         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29603
29604 2009-06-08  Eric Blake  <ebb9@byu.net>
29605
29606         test-strstr: use memory fence, when possible
29607         * tests/test-strstr.c (main): Use memory fence, in order to be
29608         more likely to trigger Debian bug 521737.
29609         * modules/strstr-tests (Files): Pull in additional files.
29610
29611         memchr: no longer obsolete, for wider field testing
29612         * modules/memchr (Status, Notice): Delete, this module is no
29613         longer obsolete.
29614         * modules/vasnprintf (Depends-on): Add memchr.
29615
29616 2009-06-07  Jim Meyering  <meyering@redhat.com>
29617
29618         hash: declare some functions with the warn_unused_result attribute
29619         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29620
29621 2009-06-07  Bruno Haible  <bruno@clisp.org>
29622
29623         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29624         Reported by Eric Blake.
29625
29626 2009-06-06  Eric Blake  <ebb9@byu.net>
29627
29628         test-alignof: fix typo with long double
29629         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29630         compiler error.
29631
29632 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29633
29634         Escape non-texinfo { and }s.
29635         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29636         markup error.
29637
29638 2009-06-04  Jim Meyering  <meyering@redhat.com>
29639
29640         gitlog-to-changelog: don't infloop on an empty commit log
29641         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29642         Reported by Boris Petersen <transacid@centerim.org>.
29643
29644 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29645
29646         version-etc: extend for packagers
29647         Add three new configure options, intended for packagers:
29648           --with-packager="packager name"
29649           --with-packager-version="packager-specific version"
29650           --with-packager-bug-reports="packager bug reporting"
29651         An example with coreutils:
29652           $ ./configure \
29653             --with-packager=Gentoo \
29654             --with-packager-bug-report=http://bugs.gentoo.org/ \
29655             --with-packager-version="patchset 1.6"
29656           $ ./src/ls --version | head -n2
29657           ls (GNU coreutils) 7.1-dirty
29658           Packaged by Gentoo (patchset 1.6)
29659         Note that the bug reporting info via --help doesn't show up because
29660         coreutils uses its own custom emit_bug_reporting_address() implementation
29661         in src/system.h.  If it didn't, it'd look like:
29662           $ ./src/ls --help | tail -n4
29663           Report bugs to <bug-coreutils@gnu.org>.
29664           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29665           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29666           General help using GNU software: <http://www.gnu.org/gethelp/>.
29667         * lib/version-etc.c: Print new information, if provided.
29668         * m4/version-etc.m4: New file.
29669         * modules/version-etc (Files): Add m4/version-etc.m4.
29670         (configure.ac): Add gl_VERSION_ETC.
29671
29672 2009-05-31  Bruno Haible  <bruno@clisp.org>
29673
29674         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29675         and 'int64_t'.
29676         * modules/alignof-tests (Dependencies): Add stdint.
29677         Reported by Eric Blake.
29678
29679 2009-05-31  Bruno Haible  <bruno@clisp.org>
29680
29681         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29682         restriction due to compiler bugs.
29683         Reported by Eric Blake.
29684
29685 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29686             Bruno Haible  <bruno@clisp.org>
29687
29688         Fix test-alignof failure.
29689         * lib/alignof.h (alignof_slot): New macro.
29690         (alignof_type): New macro, with the same semantics as the previous
29691         'alignof'.
29692         (alignof): Alias to alignof_slot.
29693         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29694         check that the results are usable as constant expressions.
29695
29696 2009-05-31  Bruno Haible  <bruno@clisp.org>
29697
29698         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29699         * tests/test-memchr.c (main): Check that memchr does not read past the
29700         first occurrence of the byte.
29701         * tests/test-strstr.c (main): Update comment.
29702         Suggested by Eric Blake.
29703
29704 2009-05-30  Bruno Haible  <bruno@clisp.org>
29705
29706         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29707         detail how to use dumpbin.
29708         Reported by David Byron <dbyron@dbyron.com>.
29709
29710 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29711
29712         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29713
29714 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29715
29716         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29717
29718 2009-05-28  Bruno Haible  <bruno@clisp.org>
29719
29720         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29721         build-aux/ files.
29722
29723 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29724
29725         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29726
29727 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29728
29729         * gnulib-tool (sed_transform_main_lib_file)
29730         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29731         regexps.
29732
29733 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29734
29735         * tests/test-strstr.c: Add another self-test.
29736         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29737         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29738
29739 2009-05-23  Bruno Haible  <bruno@clisp.org>
29740
29741         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29742         change.
29743
29744 2009-05-21  Bruno Haible  <bruno@clisp.org>
29745
29746         Simplify use of mode_t varargs.
29747         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29748         uses 'mode_t' or 'int'.
29749         * lib/openat.c (openat): Likewise.
29750         * lib/open-safer.c (open_safer): Likewise.
29751         * m4/mode_t.m4: New file.
29752         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29753         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29754         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29755         * modules/open (Files): Add m4/mode_t.m4.
29756         * modules/openat (Files): Likewise.
29757         * modules/fcntl-safer (Files): Likewise.
29758         Suggested by Eric Blake.
29759
29760 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29761
29762         * doc/glibc-functions/fallocate.texi: New file.
29763         * doc/gnulib.texi: Include it.
29764
29765 2009-05-21  Eric Blake  <ebb9@byu.net>
29766             Bruno Haible  <bruno@clisp.org>
29767
29768         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29769         invocations.
29770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29771
29772 2009-05-21  Eric Blake  <ebb9@byu.net>
29773             Bruno Haible  <bruno@clisp.org>
29774
29775         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29776         include_next. Fix of 2008-11-20 commit.
29777         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29778         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29779         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29780         NEXT_MATH_H.
29781         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29782         instead of NEXT_MATH_H.
29783
29784 2009-05-21  Bruno Haible  <bruno@clisp.org>
29785
29786         Avoid redefinition warnings for SIZE_MAX.
29787         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29788         Reported by Simon Josefsson.
29789
29790 2009-05-21  Bruno Haible  <bruno@clisp.org>
29791
29792         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29793         AC_CACHE_VAL.
29794
29795 2009-05-20  Bruno Haible  <bruno@clisp.org>
29796
29797         Make zeroptr.h work on mingw.
29798         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29799         mprotect.
29800         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29801         * modules/memchr2-tests (configure.ac): Likewise.
29802         * modules/memcmp-tests (configure.ac): Likewise.
29803         * modules/memmem-tests (configure.ac): Likewise.
29804         * modules/memrchr-tests (configure.ac): Likewise.
29805         Reported by Simon Josefsson.
29806
29807 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29808
29809         * tests/test-glob.c: Include string.h for strcmp prototype.
29810
29811 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29812
29813         * modules/getdelim (Depends-on): Add explicit stdint, although it
29814         was implicitly already pulled in via realloc-posix.
29815         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29816
29817 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29818
29819         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29820         G. Christensen" <tgc@jupiterrise.com>.
29821         * m4/sys_socket_h.m4: Check for sa_family_t.
29822         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29823         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29824         * tests/test-sys_socket.c: Check that sa_family_t works.
29825
29826 2009-05-18  Eric Blake  <ebb9@byu.net>
29827
29828         maint.mk: allow gnulib_dir in VPATH build
29829         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29830
29831 2009-05-15  Jim Meyering  <meyering@redhat.com>
29832
29833         maint.mk: Give gnulib_dir a default definition.
29834         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29835         Thus, most packages no longer need to specify this variable in cfg.mk
29836
29837 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29838
29839         rename.m4: fix typos that would make non-mingw cross-configure fail
29840         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29841
29842 2009-05-13  Eric Blake  <ebb9@byu.net>
29843
29844         mmap-anon: avoid out-of-order autoconf expansion
29845         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29846         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29847         * modules/memchr-tests (Depends-on): Add extensions.
29848         * modules/memchr2-tests (Depends-on): Add extensions.
29849         * modules/memcmp-tests (Depends-on): Add extensions.
29850         * modules/memmem-tests (Depends-on): Add extensions.
29851         * modules/memrchr-tests (Depends-on): Add extensions.
29852
29853 2009-05-13  Bruno Haible  <bruno@clisp.org>
29854
29855         Make some tests ISO C 99 compliant.
29856         * tests/zerosize-ptr.h: New file.
29857         * tests/test-memchr.c: Include zerosize-ptr.h.
29858         (main): Use a zero-size object pointer instead of NULL.
29859         * tests/test-memchr2.c: Include zerosize-ptr.h.
29860         (main): Use a zero-size object pointer instead of NULL.
29861         * tests/test-memcmp.c: Include zerosize-ptr.h.
29862         (main): Use a zero-size object pointer instead of NULL.
29863         * tests/test-memmem.c: Include zerosize-ptr.h.
29864         (main): Use a zero-size object pointer instead of NULL.
29865         * tests/test-memrchr.c: Include zerosize-ptr.h.
29866         (main): Use a zero-size object pointer instead of NULL.
29867         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29868         m4/mmap-anon.m4.
29869         (Depends-on): Add getpagesize.
29870         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29871         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29872         m4/mmap-anon.m4.
29873         (Depends-on): Add getpagesize.
29874         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29875         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29876         m4/mmap-anon.m4.
29877         (Depends-on): Add getpagesize.
29878         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29879         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29880         m4/mmap-anon.m4.
29881         (Depends-on): Add getpagesize.
29882         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29883         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29884         m4/mmap-anon.m4.
29885         (Depends-on): Add getpagesize.
29886         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29887
29888 2009-05-12  Bruno Haible  <bruno@clisp.org>
29889
29890         Tests for module 'alignof'.
29891         * modules/alignof-tests: New file.
29892         * tests/test-alignof.c: New file.
29893
29894 2009-05-12  Bruno Haible  <bruno@clisp.org>
29895
29896         Fix alignof macro.
29897         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29898         vendor compilers that are always correct.
29899
29900 2009-05-12  Bruno Haible  <bruno@clisp.org>
29901
29902         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29903         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29904         not whether its fully works.
29905
29906 2009-05-12  Bruno Haible  <bruno@clisp.org>
29907
29908         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29909
29910 2009-05-12  Jim Meyering  <meyering@redhat.com>
29911
29912         * top/maint.mk: Adjust backslash alignment.
29913
29914 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29915
29916         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29917
29918 2009-05-11  Eric Blake  <ebb9@byu.net>
29919
29920         argp: avoid undefined behavior
29921         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29922         macros.
29923
29924 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29925
29926         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29927         user.name to prevent git commit from complaining.
29928
29929 2009-05-10  Bruno Haible  <bruno@clisp.org>
29930
29931         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29932         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29933         it rewrites every file name only once.
29934         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29935
29936 2009-05-08  Bruno Haible  <bruno@clisp.org>
29937
29938         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29939         instead of 'max'.
29940
29941 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29942
29943         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29944         sockaddr_storage test.
29945
29946 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29947
29948         * modules/sys_socket (Makefile.am): Substitute
29949         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29950         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29951         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29952         * tests/test-sys_socket.c: Check sockaddr_storage.
29953
29954 2009-05-08  Bruno Haible  <bruno@clisp.org>
29955
29956         New module 'alignof'.
29957         * lib/alignof.h: New file.
29958         * modules/alignof: New file.
29959
29960 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29961             Bruno Haible  <bruno@clisp.org>
29962
29963         Fix test-file-has-acl on FreeBSD.
29964         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29965         mask is implicitly added.
29966         * tests/test-file-has-acl.c: Include <signal.h>.
29967         (main): Terminate the test after 5 seconds.
29968         * modules/acl-tests (configure.ac): Check for alarm function.
29969
29970 2009-05-04  Bruno Haible  <bruno@clisp.org>
29971
29972         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29973         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29974         * modules/errno (configure.ac): Drop AC_REQUIRE.
29975         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29976         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29977
29978 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29979
29980         * modules/glob-tests: New module.
29981         * tests/test-glob.c: Add.
29982
29983 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29984
29985         * modules/fnmatch-tests: New module.
29986         * tests/test-fnmatch.c: Add.
29987
29988 2009-05-04  Eric Blake  <ebb9@byu.net>
29989
29990         maint: make the new no-submodule-changes rule VPATH-safe
29991         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29992
29993 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29994             Bruno Haible  <bruno@clisp.org>
29995
29996         acl: Fix infinite loop on FreeBSD.
29997         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29998         of return value from acl_get_entry.
29999         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
30000         Likewise.
30001
30002 2009-05-03  Bruno Haible  <bruno@clisp.org>
30003
30004         * lib/acl-internal.h (acl_entries): Clarify return value.
30005         * lib/acl_entries.c (acl_entries): Likewise.
30006
30007 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30008
30009         Bug fix in acl module.
30010         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
30011
30012 2009-05-03  Bruno Haible  <bruno@clisp.org>
30013
30014         Create gperf-generated file in the source dir, not in the build dir.
30015         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
30016         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
30017         * modules/unicase/locale-language (unicase/locale-languages.h):
30018         Likewise.
30019         * modules/unicase/special-casing (unicase/special-casing-table.h):
30020         Likewise.
30021         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
30022         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
30023         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
30024         Reported by Ralf Wildenhues.
30025
30026 2009-05-03  Bruno Haible  <bruno@clisp.org>
30027
30028         * modules/fnmatch (Description, configure.ac): Taken from
30029         fnmatch-posix.
30030         * modules/fnmatch-posix: Turn into a symbolic reference to the
30031         'fnmatch' module, and deprecate.
30032         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
30033
30034 2009-05-03  Bruno Haible  <bruno@clisp.org>
30035
30036         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
30037         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
30038         Reported by Ralf Wildenhues.
30039
30040 2009-05-04  Simon Josefsson  <simon@josefsson.org>
30041
30042         * m4/fnmatch.m4: Fix fnmatch re-define.
30043
30044 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
30045
30046         priv-set: new module and tests; adapt write-any-file
30047         * lib/priv-set.c: New file.
30048         * lib/priv-set.h: New file.
30049         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
30050         * lib/write-any-file.c: Simplify by using priv-set module.
30051         * m4/priv-set.m4: New file.
30052         * modules/priv-set: New file.
30053         * modules/unlinkdir: Add dependency on priv-set module.
30054         * modules/write-any-file: Likewise.
30055
30056         Tests for module 'priv-set'.
30057         * modules/priv-set-tests: New file.
30058         * tests/test-priv-set.c: New file.
30059
30060 2009-05-03  Jim Meyering  <meyering@redhat.com>
30061             Bruno Haible  <bruno@clisp.org>
30062
30063         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
30064         use the converted UTF-8 variant of the name instead.
30065
30066 2009-05-03  Jim Meyering  <meyering@redhat.com>
30067
30068         tests: tighten some getdate tests
30069         * tests/test-getdate.c (main): Tighten tests: require equality,
30070         not just greater than.  Set TZ envvar to UTC0.
30071
30072 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30073
30074         getdate: correctly interpret "next monday" when run on a Monday
30075         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
30076         that e.g., "next tues" (when run on a tuesday) results in a date
30077         that is one week in the future, and not today's date.
30078         I.e., add a week when the wday is the same as the current one.
30079         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
30080         and earlier by Martin Bernreuther and Jan Minář.
30081         * tests/test-getdate.c (main): Check that "next DAY" is always in
30082         the future and that "last DAY" is always in the past.
30083
30084 2009-05-02  Jim Meyering  <meyering@redhat.com>
30085
30086         build: ensure that a release build fails when a submodule is unclean
30087         * top/maint.mk (no-submodule-changes): New rule.
30088         (alpha beta major): Depend on it.
30089
30090 2009-05-02  Bruno Haible  <bruno@clisp.org>
30091
30092         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
30093         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
30094         shell variable gl_fnmatch_required to detect which variant is
30095         requested.
30096         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
30097         gl_FUNC_FNMATCH_POSIX.
30098         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
30099         exclude fnmatch-posix.
30100
30101 2009-05-02  Bruno Haible  <bruno@clisp.org>
30102
30103         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
30104         * modules/mbsrtowcs (License): Change to LGPLv2+.
30105         * modules/strnlen1 (License): Likewise.
30106         Reported by Simon Josefsson.
30107
30108 2009-05-02  Bruno Haible  <bruno@clisp.org>
30109
30110         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
30111         "cross".
30112         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
30113         gnulib-tool was called with option --source-base=lib.
30114
30115 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30116
30117         Use automake *-local hooks without commands, for extensibility.
30118         * modules/localcharset (Makefile.am): Rename install-exec-local
30119         rule to install-exec-localcharset, and make it a prerequisite of
30120         install-exec-local.  Likewise, rename the uninstall-local rule to
30121         uninstall-localcharset, and make it a prerequisite of the former.
30122
30123 2009-05-01  Bruno Haible  <bruno@clisp.org>
30124
30125         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
30126         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30127         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
30128         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
30129         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
30130         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30131         m4/locale-zh.m4, m4/codeset.m4.
30132
30133         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
30134         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
30135         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
30136         m4/locale-zh.m4.
30137
30138         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
30139         REPLACE_WCRTOMB if mbstate_t must be replaced.
30140         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
30141         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
30142
30143 2009-05-01  Bruno Haible  <bruno@clisp.org>
30144
30145         Avoid compiler warnings when redefining macros defined by <libintl.h>.
30146         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
30147         dngettext, dcngettext, textdomain, bindtextdomain,
30148         bind_textdomain_codeset): Undefine before redefining.
30149
30150 2009-04-30  Bruno Haible  <bruno@clisp.org>
30151
30152         Fix bug introduced on 2009-04-25.
30153         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
30154         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
30155         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
30156         is defined.
30157         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
30158         is defined.
30159         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
30160         is defined.
30161         Reported by Elbert_Pol <elbert.pol@gmail.com>.
30162
30163 2009-04-28  Bruno Haible  <bruno@clisp.org>
30164
30165         Comment tweaks.
30166         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
30167         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
30168         * lib/unicase.h (u*_casexfrm): Likewise.
30169         Reported by Paolo Bonzini.
30170
30171 2009-04-28  Bruno Haible  <bruno@clisp.org>
30172
30173         Fix a compilation error.
30174         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
30175         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
30176         Reported by Jim Meyering.
30177
30178 2009-04-27  Bruno Haible  <bruno@clisp.org>
30179
30180         New module 'libunistring'.
30181         * modules/libunistring: New file.
30182         * m4/libunistring.m4: New file.
30183         * MODULES.html.sh (Unicode string functions): Add it.
30184
30185 2009-04-27  Eric Blake  <ebb9@byu.net>
30186
30187         maint.mk: allow package-specific header to provide <config.h>
30188         * top/maint.mk (sc_require_config_h): New variable.
30189         (sc_require_config_h, sc_require_config_h_first): Use it.
30190
30191 2009-04-27  Simon Josefsson  <simon@josefsson.org>
30192
30193         * top/maint.mk (sc_avoid_if_before_free): Except
30194         useless-if-before-free script.
30195
30196 2009-04-27  Eric Blake  <ebb9@byu.net>
30197
30198         maintainer-makefile: depend on all required helper scripts
30199         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
30200         useless-if-before-free.
30201         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
30202         version, rather than assuming gnulib checkout is available.
30203         Reported by Simen Josefsson.
30204
30205 2009-04-26  Bruno Haible  <bruno@clisp.org>
30206
30207         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
30208         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
30209         "../" or "..".
30210
30211 2009-04-26  Bruno Haible  <bruno@clisp.org>
30212
30213         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30214         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30215         AC_LIB_HAVE_LINKFLAGS.
30216
30217 2009-04-26  Bruno Haible  <bruno@clisp.org>
30218
30219         Simplify calling convention of u*_conv_from_encoding.
30220         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30221         u32_conv_from_encoding): Expect a resultbuf argument and return the
30222         result directly as a pointer.
30223         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30224         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30225         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30226         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30227         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30228         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30229         Update.
30230         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30231         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30232         * lib/vasnprintf.c (VASNPRINTF): Update.
30233         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30234         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30235         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30236         * NEWS: Mention the change.
30237
30238 2009-04-26  Bruno Haible  <bruno@clisp.org>
30239
30240         Simplify calling convention of u*_conv_to_encoding.
30241         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30242         u32_conv_to_encoding): Expect a resultbuf argument and return the
30243         result directly as a pointer.
30244         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30245         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30246         freeing scaled_offsets if mem_iconveha failed.
30247         * lib/unicase/u-casexfrm.h (FUNC): Update.
30248         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30249         * lib/vasnprintf.c (VASNPRINTF): Update.
30250         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30251         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30252         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30253         * NEWS: Mention the change.
30254
30255 2009-04-26  Bruno Haible  <bruno@clisp.org>
30256
30257         Avoid test failures on AIX and OSF/1.
30258         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30259         malloc(0).
30260         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30261         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30262         Likewise.
30263         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30264         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30265         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30266         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30267         * doc/posix-functions/malloc.texi: Document the portability problem
30268         related to malloc(0).
30269
30270 2009-04-26  Bruno Haible  <bruno@clisp.org>
30271
30272         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30273         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30274         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30275
30276 2009-04-25  Bruno Haible  <bruno@clisp.org>
30277
30278         Avoid link error when creating a namespace clean library.
30279         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30280         as macro with arguments if already defined as an alias.
30281         * lib/signbitf.c (gl_signbitf): Don't undefine.
30282         * lib/signbitd.c (gl_signbitd): Don't undefine.
30283         * lib/signbitl.c (gl_signbitl): Don't undefine.
30284
30285 2009-04-25  Jim Meyering  <meyering@redhat.com>
30286
30287         vc-list-files: fix another quoting bug
30288         * build-aux/vc-list-files: Avoid sed backslash expansion
30289         of pathological directory names.
30290
30291 2009-04-25  Eric Blake  <ebb9@byu.net>
30292
30293         vc-list-files: fix shell quoting error
30294         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30295         timestamp.
30296
30297 2009-04-25  Jim Meyering  <meyering@redhat.com>
30298
30299         vc-list-files: restore lost functionality with subdir argument
30300         * build-aux/vc-list-files: When given a non-"." sub-directory
30301         argument, substitute the $dir/ prefix back onto each resulting name.
30302         Otherwise, coreutils' root_tests check would fail.
30303
30304 2009-04-24  Eric Blake  <ebb9@byu.net>
30305
30306         vc-list-files: ignore git symlinks
30307         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30308         than ls-files, to ignore git symlinks.
30309
30310         maint.mk: import improvements from m4
30311         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30312         (move_if_change): Delete unused macro.
30313         (news-date-check, vc-diff-check): Support VPATH builds.
30314         (announcement): Likewise.  Split --bootstrap-tools list...
30315         (boostrap-tools): ...into separate list, which can be overridden
30316         in cfg.mk.
30317         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30318         requiring dependency on useless-if-before-free module.
30319         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30320         Support VPATH builds.
30321
30322 2009-04-24  Jim Meyering  <meyering@redhat.com>
30323
30324         maint.mk: remove coreutils-specific rules and variables
30325         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30326         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30327         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30328
30329         maint.mk: remove obsolete rule
30330         * top/maint.mk (rel-check): Remove rule.
30331         (WGET, WGETFLAGS): Remove now-unused variables.
30332
30333 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30334
30335         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30336         consistency.
30337
30338         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30339         '$(PATH_SEPARATOR)' instead of ':'.
30340
30341 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30342
30343         * lib/getopt1.c (main): Use 'const' for static array.
30344
30345 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30346
30347         * top/maint.mk: Sync with coreutils.
30348         * NEWS: Explain incompatibilities.
30349
30350 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30351             Bruno Haible  <bruno@clisp.org>
30352
30353         Fix cross-compilation results.
30354         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30355         statement, as third argument of AC_TRY_RUN.
30356         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30357         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30358         Likewise.
30359         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30360         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30361         Likewise.
30362         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30363         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30364         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30365
30366 2009-04-20  Bruno Haible  <bruno@clisp.org>
30367
30368         Avoid test failure on mingw.
30369         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30370
30371 2009-04-20  Bruno Haible  <bruno@clisp.org>
30372
30373         Avoid compilation error on mingw.
30374         * modules/localename-tests (Depends-on): Add locale.
30375
30376 2009-04-19  Bruno Haible  <bruno@clisp.org>
30377
30378         Support for building a shared library on Windows platforms.
30379         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30380         (main): Test the presence of UNINORM_NFC here.
30381         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30382         (main): Test the presence of UNINORM_NFD here.
30383         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30384         (main): Test the presence of UNINORM_NFKC here.
30385         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30386         (main): Test the presence of UNINORM_NFKD here.
30387
30388 2009-04-19  Bruno Haible  <bruno@clisp.org>
30389
30390         Avoid a compiler warning.
30391         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30392         Change type of variable 'sequence'.
30393
30394 2009-04-19  Bruno Haible  <bruno@clisp.org>
30395
30396         * modules/configmake (Makefile.am): When the contents of configmake.h
30397         does not change, arrange to preserve its modification time.
30398
30399 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30400
30401         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30402         gettext domain.
30403
30404 2009-04-16  Jim Meyering  <meyering@redhat.com>
30405
30406         useless-if-before-free: improve conversion code
30407         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30408         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30409
30410 2009-04-14  Bruno Haible  <bruno@clisp.org>
30411
30412         * modules/fcntl (Depends-on): Add extensions.
30413         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30414
30415 2009-04-12  Ben Pfaff  <blp@gnu.org>
30416
30417         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30418         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30419
30420 2009-03-20  Ben Pfaff  <blp@gnu.org>
30421
30422         Make rename replace existing destinations on Windows.
30423         * m4/rename.m4: Add test for Mingw.
30424         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30425         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30426         * doc/posix-functions/rename.texi: Document.
30427
30428 2009-04-10  Bruno Haible  <bruno@clisp.org>
30429
30430         New include file "iconveh.h".
30431         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30432         * lib/striconveh.h: Include it.
30433         (enum iconv_ilseq_handler): Remove definition.
30434         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30435         striconveh.h.
30436         * lib/striconveha.c: Include striconveh.h.
30437         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30438         * modules/striconveh (Files): Add lib/iconveh.h.
30439         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30440         lib/striconveh.h.
30441
30442 2009-04-10  Bruno Haible  <bruno@clisp.org>
30443
30444         * lib/uniconv.h: Update comment.
30445
30446 2009-04-10  Bruno Haible  <bruno@clisp.org>
30447
30448         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30449         always.
30450         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30451         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30452         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30453         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30454         "unistring-notinline.h", so that the function gets defined always.
30455         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30456         * lib/unistr/u8-uctomb.c: Likewise.
30457         * lib/unistr/u16-mbtouc.c: Likewise.
30458         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30459         * lib/unistr/u16-uctomb.c: Likewise.
30460         * lib/unistr/u32-mbtouc.c: Likewise.
30461         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30462         * lib/unistr/u32-uctomb.c: Likewise.
30463
30464 2009-04-10  Bruno Haible  <bruno@clisp.org>
30465
30466         Mark 'utime' obsolete.
30467         * modules/utime (Status, Notice): New sections.
30468         Suggested by Jim Meyering.
30469
30470         Fix cross-compile guess for utime test.
30471         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30472         autoconf.
30473         * doc/posix-functions/utime.texi: Give more precisions.
30474         Reported by Jan <ipif@ymail.com>.
30475
30476 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30477
30478         filevercmp: correct today's change
30479         * lib/filevercmp.c: Also handle coreutils' test inputs.
30480         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30481
30482         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30483         for reporting it.
30484         * lib/filevercmp.c: Special handle for "", "." and "..".
30485         * tests/test-filevercmp.c: Enlarge the set suite.
30486
30487 2009-04-07  Jim Meyering  <meyering@redhat.com>
30488
30489         useless-if-before-free: show how to remove braced useless free, too
30490         * build-aux/useless-if-before-free: still only in a comment, though.
30491
30492 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30493
30494         maint.mk: import changes to syntax-check macros from coreutils
30495         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30496         Use them in the relevant macros.
30497
30498 2009-04-06  Bruno Haible  <bruno@clisp.org>
30499
30500         Fix unportable use of bit-fields.
30501         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30502         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30503         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30504
30505 2009-04-06  Bruno Haible  <bruno@clisp.org>
30506
30507         Avoid test failures on AIX and OSF/1.
30508         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30509         that malloc(0) = NULL.
30510         * tests/unicase/test-u8-tolower.c (check): Likewise.
30511         * tests/unicase/test-u8-totitle.c (check): Likewise.
30512         * tests/unicase/test-u8-toupper.c (check): Likewise.
30513         * tests/unicase/test-u16-casefold.c (check): Likewise.
30514         * tests/unicase/test-u16-tolower.c (check): Likewise.
30515         * tests/unicase/test-u16-totitle.c (check): Likewise.
30516         * tests/unicase/test-u16-toupper.c (check): Likewise.
30517         * tests/unicase/test-u32-casefold.c (check): Likewise.
30518         * tests/unicase/test-u32-tolower.c (check): Likewise.
30519         * tests/unicase/test-u32-totitle.c (check): Likewise.
30520         * tests/unicase/test-u32-toupper.c (check): Likewise.
30521         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30522         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30523         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30524         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30525         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30526         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30527         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30528         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30529         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30530         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30531         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30532         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30533
30534 2009-04-05  Bruno Haible  <bruno@clisp.org>
30535
30536         Work around an autoconf limitation.
30537         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30538         comment line if it would be longer than 3 KB.
30539
30540 2009-04-05  Bruno Haible  <bruno@clisp.org>
30541
30542         Avoid test failure with libiconv-1.13.
30543         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30544         of the expected test results.
30545
30546 2009-04-05  Bruno Haible  <bruno@clisp.org>
30547
30548         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30549         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30550         that it should be installed.
30551
30552 2009-04-05  Bruno Haible  <bruno@clisp.org>
30553
30554         * gnulib-tool: New option --copy-file.
30555         (func_usage): Document it.
30556         (func_dest_tmpfilename): Moved out of func_import.
30557         (func_add_file, func_update_file): New functions, extracted from
30558         func_import.
30559         (func_import): Update.
30560
30561 2009-04-05  Karl Berry  <karl@gnu.org>
30562
30563         * README: prominently mention gnulib-tool.
30564         Rearrange sections so getting the code is near the top.
30565
30566 2009-04-05  Bruno Haible  <bruno@clisp.org>
30567
30568         * lib/unicase.h: Mention u*_cmp2.
30569         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30570         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30571         * lib/unicase/ulc-casecmp.c: Likewise.
30572         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30573         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30574         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30575         unistr/u8-cmp.
30576         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30577         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30578         unistr/u16-cmp.
30579         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30580         unistr/u32-cmp.
30581
30582         * lib/uninorm.h: Mention u*_cmp2.
30583         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30584         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30585         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30586         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30587         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30588         unistr/u8-cmp.
30589         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30590         unistr/u16-cmp.
30591         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30592         unistr/u32-cmp.
30593
30594         New module 'unistr/u32-cmp2'.
30595         * lib/unistr/u32-cmp2.c: New file.
30596         * modules/unistr/u32-cmp2: New file.
30597
30598         New module 'unistr/u16-cmp2'.
30599         * lib/unistr/u16-cmp2.c: New file.
30600         * modules/unistr/u16-cmp2: New file.
30601
30602         New module 'unistr/u8-cmp2'.
30603         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30604         * lib/unistr/u8-cmp2.c: New file.
30605         * lib/unistr/u-cmp2.h: New file.
30606         * modules/unistr/u8-cmp2: New file.
30607
30608 2009-04-05  Bruno Haible  <bruno@clisp.org>
30609
30610         * lib/unictype.h (uc_property_is_valid): New macro.
30611         * tests/unictype/test-pr_byname.c (main): Use it.
30612
30613         * lib/unistr.h: Doc fixes.
30614         * lib/uniconv.h: Doc fixes.
30615         * lib/unictype.h: Doc fixes.
30616
30617 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30618
30619         Port coreutils 7.2 to Solaris 8.
30620
30621         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30622         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30623         for Solaris 8.  This is a bit of a hack, as it means it's the
30624         caller's responsibility to add -lnsl if needed, but most likely it
30625         won't be needed since only getaddrinfo uses this and getaddrinfo
30626         isn't needed on Solaris 8.
30627
30628         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30629         problem to Solaris 8 encountered with coreutils 7.2, which
30630         resulted in a message "fnmatch.c:292: warning: passing argument 4
30631         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30632         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30633
30634 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30635
30636         * m4/ld-version-script.m4: Add FIXME comment.
30637
30638 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30639
30640         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30641         SOVERSION variable.
30642
30643 2009-04-02  Bruno Haible  <bruno@clisp.org>
30644
30645         * Makefile (info, html, dvi, pdf): Combine the rules.
30646         Suggested by Jim Meyering.
30647
30648 2009-04-01  Bruno Haible  <bruno@clisp.org>
30649
30650         * Makefile (info, html, dvi, pdf): New targets.
30651         Reported by Reuben Thomas <rrt@sc3d.org>.
30652
30653 2009-04-01  Bruno Haible  <bruno@clisp.org>
30654
30655         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30656         can be put into PATH.
30657         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30658
30659 2009-04-01  Bruno Haible  <bruno@clisp.org>
30660
30661         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30662
30663 2009-04-01  Bruno Haible  <bruno@clisp.org>
30664
30665         Rename module 'visibility'.
30666         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30667         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30668         * doc/gnulib.texi: Update.
30669         * MODULES.html.sh (Misc): Update.
30670         * NEWS: Mention the change.
30671
30672 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30673
30674         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30675         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30676         Eric Blake <ebb9@byu.net> for review.
30677         * MODULES.html.sh: Add lib-msvc-compat.
30678         * doc/gnulib.texi: Link to new section.
30679         * m4/ld-output-def.m4: New file.
30680         * doc/ld-output-def.texi: New file.
30681
30682 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30683
30684         Rename ld-version-script to lib-symbol-versions.  Suggested by
30685         Bruno Haible <bruno@clisp.org>.
30686         * modules/ld-version-script: Renamed to lib-symbol-versions.
30687         * doc/ld-version-script.texi: Fix module name.
30688         * MODULES.html.sh: Add lib-symbol-versions.
30689
30690 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30691
30692         * modules/u64-tests: New file.
30693         * tests/test-u64.c: New file.
30694
30695 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30696
30697         * MODULES.html.sh: Mention u64.
30698         * modules/u64: New module.
30699         * modules/crypto/sha512: Depend on u64 module instead of providing
30700         u64.h.
30701
30702 2009-03-27  Eric Blake  <ebb9@byu.net>
30703
30704         test-strerror: make debugging EAI_SYSTEM easier
30705         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30706         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30707         failure was EAI_SYSTEM.
30708
30709 2009-03-25  Bruno Haible  <bruno@clisp.org>
30710
30711         Fix a problem with --enable-relocatable on Solaris 7.
30712         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30713         since 2008-02-24.
30714
30715 2009-03-25  Eric Blake  <ebb9@byu.net>
30716
30717         test-sockets: avoid gcc warning
30718         * tests/test-sockets.c (main): Silence compiler warning.
30719
30720 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30721
30722         New modules nproc, pthread, contributed by Glen Lenker.
30723
30724         * MODULES.html.sh: Add pthread, nproc.
30725         * lib/nproc.c: New file.
30726         * lib/nproc.h: New file.
30727         * lib/pthread.in.h: New file.
30728         * m4/pthread.m4: New file.
30729         * modules/nproc: New file.
30730         * modules/pthread: New file.
30731
30732 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30733
30734         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30735         New variable.
30736
30737 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30738
30739         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30740         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30741         * tests/test-filevercmp.c: Add tests for backup suffixes.
30742
30743 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30744
30745         * modules/stdlib (Depends-on): Add stdint, needed when defining
30746         struct random_data on, for example, HP-UX 10.20.  Reported by
30747         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30748
30749 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30750
30751         * lib/readline.c (readline): Call fflush on stdout after printing
30752         prompt.
30753
30754 2009-03-20  Bruno Haible  <bruno@clisp.org>
30755
30756         Remove dependency from 'close' module to -lws2_32 on native Windows.
30757         * lib/close-hook.h: New file.
30758         * lib/close-hook.c: New file.
30759         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30760         w32sock.h.
30761         (_gl_close_fd_maybe_socket): Remove function.
30762         (rpl_close): Invoke execute_all_close_hooks instead of
30763         _gl_close_fd_maybe_socket.
30764         * lib/sockets.c: Include close-hook.h, w32sock.h.
30765         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30766         (close_sockets_hook): New variable.
30767         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30768         (gl_sockets_cleanup): Unregister it.
30769         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30770         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30771         * modules/close-hook: New file.
30772         * modules/close (Files): Remove lib/w32sock.h.
30773         (Depends-on): Add close-hook.
30774         (Link): Remove section.
30775         * modules/sockets (Files): Add lib/w32sock.h.
30776         (Depends-on): Add close-hook.
30777         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30778         invocation.
30779         * NEWS: Mention that LIB_CLOSE is gone.
30780
30781 2009-03-23  Eric Blake  <ebb9@byu.net>
30782
30783         signal-tests: test previous patch
30784         * tests/test-signal.c: New file.
30785         * modules/signal-tests: Likewise.
30786
30787         signal.h: always support 'volatile sig_atomic_t'
30788         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30789         (gl_SIGNAL_H_DEFAULTS): Add a default.
30790         * modules/signal (Makefile.am): Substitute if needed.
30791         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30792         users can blindly add volatile.
30793         * doc/posix-headers/signal.texi (signal.h): Document it.
30794         Reported by Matthew Woehlke.
30795
30796 2009-03-23  Jim Meyering  <meyering@redhat.com>
30797
30798         pathmax: PATH_MAX: use pathconf only when available
30799         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30800         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30801         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30802         This avoids a link failure in a PSP cross-compilation environment
30803         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30804
30805         * lib/vasnprintf.c (divide): Fix typo in comment.
30806
30807 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30808
30809         * gnulib-tool (func_filter_filelist): Fix comment.
30810
30811 2009-03-20  Bruno Haible  <bruno@clisp.org>
30812
30813         Make sockets.h self-contained.
30814         * lib/sockets.c: Include sockets.h first.
30815         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30816
30817 2009-03-19  Eric Blake  <ebb9@byu.net>
30818
30819         doc: mention more functions added in cygwin 1.7.0
30820         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30821         addition.
30822         * doc/posix-functions/log2f.texi: Likewise.
30823
30824 2009-03-19  Jim Meyering  <meyering@redhat.com>
30825
30826         fsusage: avoid syntax error due to statement-before-declaration
30827         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30828         after all declarations.  Reported by Matthew Woehlke in
30829         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30830
30831 2009-03-18  Eric Blake  <ebb9@byu.net>
30832
30833         build-aux/compile: sync from automake
30834         * build-aux/compile: New file, from automake.
30835         * config/srclist.txt: Mention build-aux/compile.
30836
30837 2009-03-17  Bruno Haible  <bruno@clisp.org>
30838
30839         * lib/git-merge-changelog.c: Fix typo in comment.
30840         Reported by Reuben Thomas <rrt@sc3d.org>.
30841
30842 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30843
30844         * m4/regex.m4: update and improve help for
30845         --without-included-regex.
30846
30847 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30848
30849         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30850         failure on missing include files.
30851
30852 2009-03-17  Eric Blake  <ebb9@byu.net>
30853
30854         doc: mention more functions added in cygwin 1.7.0
30855         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30856         addition.
30857         * doc/posix-functions/fwscanf.texi: Likewise.
30858         * doc/posix-functions/swprintf.texi: Likewise.
30859         * doc/posix-functions/swscanf.texi: Likewise.
30860         * doc/posix-functions/vfwprintf.texi: Likewise.
30861         * doc/posix-functions/vfwscanf.texi: Likewise.
30862         * doc/posix-functions/vswprintf.texi: Likewise.
30863         * doc/posix-functions/vswscanf.texi: Likewise.
30864         * doc/posix-functions/vwprintf.texi: Likewise.
30865         * doc/posix-functions/vwscanf.texi: Likewise.
30866         * doc/posix-functions/wcscasecmp.texi: Likewise.
30867         * doc/posix-functions/wcsdup.texi: Likewise.
30868         * doc/posix-functions/wcsftime.texi: Likewise.
30869         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30870         * doc/posix-functions/wprintf.texi: Likewise.
30871         * doc/posix-functions/wscanf.texi: Likewise.
30872         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30873
30874 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30875
30876         maint.mk: really add $(AM_MAKEFLAGS)
30877         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30878         was inadvertently omitted in the last commit.
30879         Spotted by Bruno Haible.
30880
30881         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30882         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30883         $(AM_MAKEFLAGS)' rather than plain `make'.
30884
30885         gnulib-tool: execute $MAKE not make
30886         * gnulib-tool: Default $MAKE to 'make'.
30887         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30888         than make.  Initialize $MAKE in the do-autobuild script.
30889
30890         gnulib-tool: use $MAKE not make in generated files
30891         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30892         make, in generated files.  Initialize $MAKE in the do-autobuild
30893         script.
30894
30895         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30896
30897         GNUmakefile: disable parallelism only for multiple, recursive targets
30898         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30899         additions in the Makefile.
30900         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30901         by Automake.
30902         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30903         are listed on the command line and at least one of them is
30904         listed in $(ALL_RECURSIVE_TARGETS).
30905
30906 2009-03-14  Bruno Haible  <bruno@clisp.org>
30907
30908         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30909         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30910         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30911         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30912         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30913         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30914         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30915         unistr/u8-uctomb.
30916         * modules/unistr/u8-strchr (Depends-on): Likewise.
30917         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30918         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30919         unistr/u16-uctomb.
30920         * modules/unistr/u16-strchr (Depends-on): Likewise.
30921         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30922
30923 2009-03-12  Bruno Haible  <bruno@clisp.org>
30924
30925         Work around select() bug on Interix 3.5.
30926         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30927         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30928         * m4/select.m4: New file.
30929         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30930         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30931         * modules/select (Files): Add m4/select.m4.
30932         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30933         * modules/nanosleep (Depends-on): Add select.
30934         * modules/poll (Depends-on): Likewise.
30935         * doc/posix-functions/select.texi: Mention the Interix bug.
30936         Reported by Markus Duft <mduft@gentoo.org>.
30937
30938         * lib/select.c: Renamed from lib/winsock-select.c.
30939         * modules/select (Files): Add lib/select.c, remove
30940         lib/winsock-select.c.
30941         (configure.ac): Update.
30942
30943 2009-03-12  Jim Meyering  <meyering@redhat.com>
30944
30945         avoid gcc warnings about unused macro definitions
30946         * lib/readtokens.c (STREQ): Remove unused definition.
30947         * lib/xmalloc.c (SIZE_MAX): Likewise.
30948         * lib/openat-die.c (N_): Likewise.
30949         * lib/mountlist.c (SIZE_MAX): Remove definition.
30950         Instead, include <stdint.h>.
30951         * lib/readutmp.c: Likewise.
30952         * modules/readutmp (Depends-on): Add stdint.
30953         * modules/mountlist (Depends-on): Add stdint.
30954         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30955
30956 2009-03-10  Bruno Haible  <bruno@clisp.org>
30957
30958         Tests for module 'mbmemcasecoll'.
30959         * modules/mbmemcasecoll-tests: New file.
30960         * tests/test-mbmemcasecoll1.sh: New file.
30961         * tests/test-mbmemcasecoll2.sh: New file.
30962         * tests/test-mbmemcasecoll3.sh: New file.
30963         * tests/test-mbmemcasecoll.c: New file.
30964
30965         New module 'mbmemcasecoll'.
30966         * lib/mbmemcasecoll.h: New file.
30967         * lib/mbmemcasecoll.c: New file.
30968         * modules/mbmemcasecoll: New file.
30969
30970         * tests/test-mbmemcasecmp.h: New file, extracted from
30971         tests/test-mbmemcasecmp.c.
30972         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30973         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30974         (main): Update.
30975         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30976
30977 2009-03-09  Bruno Haible  <bruno@clisp.org>
30978
30979         Tests for module 'mbmemcasecmp'.
30980         * modules/mbmemcasecmp-tests: New file.
30981         * tests/test-mbmemcasecmp1.sh: New file.
30982         * tests/test-mbmemcasecmp2.sh: New file.
30983         * tests/test-mbmemcasecmp3.sh: New file.
30984         * tests/test-mbmemcasecmp.c: New file.
30985
30986         New module 'mbmemcasecmp'.
30987         * lib/mbmemcasecmp.h: New file.
30988         * lib/mbmemcasecmp.c: New file.
30989         * modules/mbmemcasecmp: New file.
30990
30991 2009-03-09  Bruno Haible  <bruno@clisp.org>
30992
30993         Tests for module 'unicase/ulc-casecoll'.
30994         * modules/unicase/ulc-casecoll-tests: New file.
30995         * tests/unicase/test-ulc-casecoll1.sh: New file.
30996         * tests/unicase/test-ulc-casecoll2.sh: New file.
30997         * tests/unicase/test-ulc-casecoll.c: New file.
30998
30999         New module 'unicase/ulc-casecoll'.
31000         * lib/unicase.h (ulc_casecoll): New declaration.
31001         * lib/unicase/ulc-casecoll.c: New file.
31002         * modules/unicase/ulc-casecoll: New file.
31003
31004         New module 'unicase/ulc-casexfrm'.
31005         * lib/unicase.h (ulc_casexfrm): New declaration.
31006         * lib/unicase/ulc-casexfrm.c: New file.
31007         * modules/unicase/ulc-casexfrm: New file.
31008
31009 2009-03-09  Bruno Haible  <bruno@clisp.org>
31010
31011         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
31012         invocations.
31013
31014         * m4/mbscasecmp.m4: Remove file.
31015         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
31016         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
31017
31018         * m4/mbscasestr.m4: Remove file.
31019         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
31020         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
31021
31022         * m4/mbschr.m4: Remove file.
31023         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
31024         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
31025
31026         * m4/mbscspn.m4: Remove file.
31027         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
31028         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
31029
31030         * m4/mbslen.m4: Remove file.
31031         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
31032         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
31033
31034         * m4/mbsncasecmp.m4: Remove file.
31035         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
31036         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
31037
31038         * m4/mbsnlen.m4: Remove file.
31039         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
31040         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
31041
31042         * m4/mbspbrk.m4: Remove file.
31043         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
31044         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
31045
31046         * m4/mbspcasecmp.m4: Remove file.
31047         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
31048         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
31049
31050         * m4/mbsrchr.m4: Remove file.
31051         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
31052         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
31053
31054         * m4/mbssep.m4: Remove file.
31055         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
31056         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
31057
31058         * m4/mbsspn.m4: Remove file.
31059         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
31060         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
31061
31062         * m4/mbsstr.m4: Remove file.
31063         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
31064         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
31065
31066         * m4/mbstok_r.m4: Remove file.
31067         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
31068         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
31069
31070         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
31071
31072         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
31073         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
31074
31075         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
31076
31077 2009-03-08  Bruno Haible  <bruno@clisp.org>
31078
31079         Tests for module 'unicase/ulc-casecmp'.
31080         * modules/unicase/ulc-casecmp-tests: New file.
31081         * tests/unicase/test-ulc-casecmp1.sh: New file.
31082         * tests/unicase/test-ulc-casecmp2.sh: New file.
31083         * tests/unicase/test-ulc-casecmp.c: New file.
31084
31085         New module 'unicase/ulc-casecmp'.
31086         * lib/unicase.h (ulc_casecmp): New declaration.
31087         * lib/unicase/ulc-casecmp.c: New file.
31088         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
31089         'const SRC_UNIT *'.
31090         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
31091         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
31092         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
31093         * modules/unicase/ulc-casecmp: New file.
31094
31095         Tests for module 'unicase/u32-is-cased'.
31096         * modules/unicase/u32-is-cased-tests: New file.
31097         * tests/unicase/test-u32-is-cased.c: New file.
31098
31099         Tests for module 'unicase/u16-is-cased'.
31100         * modules/unicase/u16-is-cased-tests: New file.
31101         * tests/unicase/test-u16-is-cased.c: New file.
31102
31103         Tests for module 'unicase/u8-is-cased'.
31104         * modules/unicase/u8-is-cased-tests: New file.
31105         * tests/unicase/test-u8-is-cased.c: New file.
31106         * tests/unicase/test-is-cased.h: New file.
31107
31108         New module 'unicase/u32-is-cased'.
31109         * lib/unicase/u32-is-cased.c: New file.
31110         * modules/unicase/u32-is-cased: New file.
31111
31112         New module 'unicase/u16-is-cased'.
31113         * lib/unicase/u16-is-cased.c: New file.
31114         * modules/unicase/u16-is-cased: New file.
31115
31116         New module 'unicase/u8-is-cased'.
31117         * lib/unicase/u8-is-cased.c: New file.
31118         * lib/unicase/u-is-cased.h: New file.
31119         * modules/unicase/u8-is-cased: New file.
31120
31121         Tests for module 'unicase/u32-is-casefolded'.
31122         * modules/unicase/u32-is-casefolded-tests: New file.
31123         * tests/unicase/test-u32-is-casefolded.c: New file.
31124
31125         Tests for module 'unicase/u16-is-casefolded'.
31126         * modules/unicase/u16-is-casefolded-tests: New file.
31127         * tests/unicase/test-u16-is-casefolded.c: New file.
31128
31129         Tests for module 'unicase/u8-is-casefolded'.
31130         * modules/unicase/u8-is-casefolded-tests: New file.
31131         * tests/unicase/test-u8-is-casefolded.c: New file.
31132         * tests/unicase/test-is-casefolded.h: New file.
31133
31134         New module 'unicase/u32-is-casefolded'.
31135         * lib/unicase/u32-is-casefolded.c: New file.
31136         * modules/unicase/u32-is-casefolded: New file.
31137
31138         New module 'unicase/u16-is-casefolded'.
31139         * lib/unicase/u16-is-casefolded.c: New file.
31140         * modules/unicase/u16-is-casefolded: New file.
31141
31142         New module 'unicase/u8-is-casefolded'.
31143         * lib/unicase/u8-is-casefolded.c: New file.
31144         * modules/unicase/u8-is-casefolded: New file.
31145
31146         Tests for module 'unicase/u32-is-titlecase'.
31147         * modules/unicase/u32-is-titlecase-tests: New file.
31148         * tests/unicase/test-u32-is-titlecase.c: New file.
31149
31150         Tests for module 'unicase/u16-is-titlecase'.
31151         * modules/unicase/u16-is-titlecase-tests: New file.
31152         * tests/unicase/test-u16-is-titlecase.c: New file.
31153
31154         Tests for module 'unicase/u8-is-titlecase'.
31155         * modules/unicase/u8-is-titlecase-tests: New file.
31156         * tests/unicase/test-u8-is-titlecase.c: New file.
31157         * tests/unicase/test-is-titlecase.h: New file.
31158
31159         New module 'unicase/u32-is-titlecase'.
31160         * lib/unicase/u32-is-titlecase.c: New file.
31161         * modules/unicase/u32-is-titlecase: New file.
31162
31163         New module 'unicase/u16-is-titlecase'.
31164         * lib/unicase/u16-is-titlecase.c: New file.
31165         * modules/unicase/u16-is-titlecase: New file.
31166
31167         New module 'unicase/u8-is-titlecase'.
31168         * lib/unicase/u8-is-titlecase.c: New file.
31169         * modules/unicase/u8-is-titlecase: New file.
31170
31171         Tests for module 'unicase/u32-is-lowercase'.
31172         * modules/unicase/u32-is-lowercase-tests: New file.
31173         * tests/unicase/test-u32-is-lowercase.c: New file.
31174
31175         Tests for module 'unicase/u16-is-lowercase'.
31176         * modules/unicase/u16-is-lowercase-tests: New file.
31177         * tests/unicase/test-u16-is-lowercase.c: New file.
31178
31179         Tests for module 'unicase/u8-is-lowercase'.
31180         * modules/unicase/u8-is-lowercase-tests: New file.
31181         * tests/unicase/test-u8-is-lowercase.c: New file.
31182         * tests/unicase/test-is-lowercase.h: New file.
31183
31184         New module 'unicase/u32-is-lowercase'.
31185         * lib/unicase/u32-is-lowercase.c: New file.
31186         * modules/unicase/u32-is-lowercase: New file.
31187
31188         New module 'unicase/u16-is-lowercase'.
31189         * lib/unicase/u16-is-lowercase.c: New file.
31190         * modules/unicase/u16-is-lowercase: New file.
31191
31192         New module 'unicase/u8-is-lowercase'.
31193         * lib/unicase/u8-is-lowercase.c: New file.
31194         * modules/unicase/u8-is-lowercase: New file.
31195
31196         Tests for module 'unicase/u32-is-uppercase'.
31197         * modules/unicase/u32-is-uppercase-tests: New file.
31198         * tests/unicase/test-u32-is-uppercase.c: New file.
31199
31200         Tests for module 'unicase/u16-is-uppercase'.
31201         * modules/unicase/u16-is-uppercase-tests: New file.
31202         * tests/unicase/test-u16-is-uppercase.c: New file.
31203
31204         Tests for module 'unicase/u8-is-uppercase'.
31205         * modules/unicase/u8-is-uppercase-tests: New file.
31206         * tests/unicase/test-u8-is-uppercase.c: New file.
31207         * tests/unicase/test-is-uppercase.h: New file.
31208
31209         New module 'unicase/u32-is-uppercase'.
31210         * lib/unicase/u32-is-uppercase.c: New file.
31211         * modules/unicase/u32-is-uppercase: New file.
31212
31213         New module 'unicase/u16-is-uppercase'.
31214         * lib/unicase/u16-is-uppercase.c: New file.
31215         * modules/unicase/u16-is-uppercase: New file.
31216
31217         New module 'unicase/u8-is-uppercase'.
31218         * lib/unicase/u8-is-uppercase.c: New file.
31219         * modules/unicase/u8-is-uppercase: New file.
31220
31221         New module 'unicase/u32-is-invariant'.
31222         * lib/unicase/u32-is-invariant.c: New file.
31223         * modules/unicase/u32-is-invariant: New file.
31224
31225         New module 'unicase/u16-is-invariant'.
31226         * lib/unicase/u16-is-invariant.c: New file.
31227         * modules/unicase/u16-is-invariant: New file.
31228
31229         New module 'unicase/u8-is-invariant'.
31230         * lib/unicase/u8-is-invariant.c: New file.
31231         * lib/unicase/invariant.h: New file.
31232         * lib/unicase/u-is-invariant.h: New file.
31233         * modules/unicase/u8-is-invariant: New file.
31234
31235         Tests for module 'unicase/u32-casecoll'.
31236         * modules/unicase/u32-casecoll-tests: New file.
31237         * tests/unicase/test-u32-casecoll.c: New file.
31238
31239         Tests for module 'unicase/u16-casecoll'.
31240         * modules/unicase/u16-casecoll-tests: New file.
31241         * tests/unicase/test-u16-casecoll.c: New file.
31242
31243         Tests for module 'unicase/u8-casecoll'.
31244         * modules/unicase/u8-casecoll-tests: New file.
31245         * tests/unicase/test-u8-casecoll.c: New file.
31246
31247         New module 'unicase/u32-casecoll'.
31248         * lib/unicase/u32-casecoll.c: New file.
31249         * modules/unicase/u32-casecoll: New file.
31250
31251         New module 'unicase/u16-casecoll'.
31252         * lib/unicase/u16-casecoll.c: New file.
31253         * modules/unicase/u16-casecoll: New file.
31254
31255         New module 'unicase/u8-casecoll'.
31256         * lib/unicase/u8-casecoll.c: New file.
31257         * lib/unicase/u-casecoll.h: New file.
31258         * modules/unicase/u8-casecoll: New file.
31259
31260         New module 'unicase/u32-casexfrm'.
31261         * lib/unicase/u32-casexfrm.c: New file.
31262         * modules/unicase/u32-casexfrm: New file.
31263
31264         New module 'unicase/u16-casexfrm'.
31265         * lib/unicase/u16-casexfrm.c: New file.
31266         * modules/unicase/u16-casexfrm: New file.
31267
31268         New module 'unicase/u8-casexfrm'.
31269         * lib/unicase/u8-casexfrm.c: New file.
31270         * lib/unicase/u-casexfrm.h: New file.
31271         * modules/unicase/u8-casexfrm: New file.
31272
31273         Tests for module 'unicase/u32-casecmp'.
31274         * modules/unicase/u32-casecmp-tests: New file.
31275         * tests/unicase/test-u32-casecmp.c: New file.
31276
31277         Tests for module 'unicase/u16-casecmp'.
31278         * modules/unicase/u16-casecmp-tests: New file.
31279         * tests/unicase/test-u16-casecmp.c: New file.
31280
31281         Tests for module 'unicase/u8-casecmp'.
31282         * modules/unicase/u8-casecmp-tests: New file.
31283         * tests/unicase/test-u8-casecmp.c: New file.
31284         * tests/unicase/test-casecmp.h: New file.
31285
31286         New module 'unicase/u32-casecmp'.
31287         * lib/unicase/u32-casecmp.c: New file.
31288         * modules/unicase/u32-casecmp: New file.
31289
31290         New module 'unicase/u16-casecmp'.
31291         * lib/unicase/u16-casecmp.c: New file.
31292         * modules/unicase/u16-casecmp: New file.
31293
31294         New module 'unicase/u8-casecmp'.
31295         * lib/unicase/u8-casecmp.c: New file.
31296         * lib/unicase/u-casecmp.h: New file.
31297         * modules/unicase/u8-casecmp: New file.
31298
31299         Tests for module 'unicase/u32-casefold'.
31300         * modules/unicase/u32-casefold-tests: New file.
31301         * tests/unicase/test-u32-casefold.c: New file.
31302
31303         Tests for module 'unicase/u16-casefold'.
31304         * modules/unicase/u16-casefold-tests: New file.
31305         * tests/unicase/test-u16-casefold.c: New file.
31306
31307         Tests for module 'unicase/u8-casefold'.
31308         * modules/unicase/u8-casefold-tests: New file.
31309         * tests/unicase/test-u8-casefold.c: New file.
31310
31311         New module 'unicase/u32-casefold'.
31312         * lib/unicase/u32-casefold.c: New file.
31313         * modules/unicase/u32-casefold: New file.
31314
31315         New module 'unicase/u16-casefold'.
31316         * lib/unicase/u16-casefold.c: New file.
31317         * modules/unicase/u16-casefold: New file.
31318
31319         New module 'unicase/u8-casefold'.
31320         * lib/unicase/u8-casefold.c: New file.
31321         * lib/unicase/u-casefold.h: New file.
31322         * modules/unicase/u8-casefold: New file.
31323
31324         New module 'unicase/tocasefold'.
31325         * lib/unicase/casefold.h: New file.
31326         * lib/unicase/tocasefold.c: New file.
31327         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31328         * modules/unicase/tocasefold: New file.
31329
31330         Tests for module 'unicase/u32-totitle'.
31331         * modules/unicase/u32-totitle-tests: New file.
31332         * tests/unicase/test-u32-totitle.c: New file.
31333
31334         Tests for module 'unicase/u16-totitle'.
31335         * modules/unicase/u16-totitle-tests: New file.
31336         * tests/unicase/test-u16-totitle.c: New file.
31337
31338         Tests for module 'unicase/u8-totitle'.
31339         * modules/unicase/u8-totitle-tests: New file.
31340         * tests/unicase/test-u8-totitle.c: New file.
31341
31342         New module 'unicase/u32-totitle'.
31343         * lib/unicase/u32-totitle.c: New file.
31344         * modules/unicase/u32-totitle: New file.
31345
31346         New module 'unicase/u16-totitle'.
31347         * lib/unicase/u16-totitle.c: New file.
31348         * modules/unicase/u16-totitle: New file.
31349
31350         New module 'unicase/u8-totitle'.
31351         * lib/unicase/u8-totitle.c: New file.
31352         * lib/unicase/u-totitle.h: New file.
31353         * modules/unicase/u8-totitle: New file.
31354
31355         Tests for module 'unicase/u32-tolower'.
31356         * modules/unicase/u32-tolower-tests: New file.
31357         * tests/unicase/test-u32-tolower.c: New file.
31358
31359         Tests for module 'unicase/u16-tolower'.
31360         * modules/unicase/u16-tolower-tests: New file.
31361         * tests/unicase/test-u16-tolower.c: New file.
31362
31363         Tests for module 'unicase/u8-tolower'.
31364         * modules/unicase/u8-tolower-tests: New file.
31365         * tests/unicase/test-u8-tolower.c: New file.
31366
31367         New module 'unicase/u32-tolower'.
31368         * lib/unicase/u32-tolower.c: New file.
31369         * modules/unicase/u32-tolower: New file.
31370
31371         New module 'unicase/u16-tolower'.
31372         * lib/unicase/u16-tolower.c: New file.
31373         * modules/unicase/u16-tolower: New file.
31374
31375         New module 'unicase/u8-tolower'.
31376         * lib/unicase/u8-tolower.c: New file.
31377         * modules/unicase/u8-tolower: New file.
31378
31379         Tests for module 'unicase/u32-toupper'.
31380         * modules/unicase/u32-toupper-tests: New file.
31381         * tests/unicase/test-u32-toupper.c: New file.
31382
31383         Tests for module 'unicase/u16-toupper'.
31384         * modules/unicase/u16-toupper-tests: New file.
31385         * tests/unicase/test-u16-toupper.c: New file.
31386
31387         Tests for module 'unicase/u8-toupper'.
31388         * modules/unicase/u8-toupper-tests: New file.
31389         * tests/unicase/test-u8-toupper.c: New file.
31390
31391         New module 'unicase/u32-toupper'.
31392         * lib/unicase/u32-toupper.c: New file.
31393         * modules/unicase/u32-toupper: New file.
31394
31395         New module 'unicase/u16-toupper'.
31396         * lib/unicase/u16-toupper.c: New file.
31397         * modules/unicase/u16-toupper: New file.
31398
31399         New module 'unicase/u8-toupper'.
31400         * lib/unicase/u8-toupper.c: New file.
31401         * modules/unicase/u8-toupper: New file.
31402
31403         New module 'unicase/u32-casemap'.
31404         * lib/unicase/u32-casemap.c: New file.
31405         * modules/unicase/u32-casemap: New file.
31406
31407         New module 'unicase/u16-casemap'.
31408         * lib/unicase/u16-casemap.c: New file.
31409         * modules/unicase/u16-casemap: New file.
31410
31411         New module 'unicase/u8-casemap'.
31412         * lib/unicase/unicasemap.h: New file.
31413         * lib/unicase/u8-casemap.c: New file.
31414         * lib/unicase/u-casemap.h: New file.
31415         * modules/unicase/u8-casemap: New file.
31416
31417         New module 'unicase/special-casing'.
31418         * lib/unicase/special-casing.h: New file.
31419         * lib/unicase/special-casing.c: New file.
31420         * lib/unicase/special-casing-table.gperf: New file, generated by
31421         gen-uni-tables.c.
31422         * modules/unicase/special-casing: New file.
31423
31424         Tests for module 'unicase/locale-language'.
31425         * modules/unicase/locale-language-tests: New file.
31426         * tests/unicase/test-locale-language.sh: New file.
31427         * tests/unicase/test-locale-language.c: New file.
31428
31429         New module 'unicase/locale-language'.
31430         * lib/unicase/locale-language.c: New file.
31431         * lib/unicase/locale-languages.gperf: New file.
31432         * modules/unicase/locale-language: New file.
31433
31434         Generate more tables for case conversion and case folding.
31435         * lib/gen-uni-tables.c (SCC_*): New enum items.
31436         (struct special_casing_rule): New type.
31437         (casing_rules, num_casing_rules, allocated_casing_rules): New
31438         variables.
31439         (add_casing_rule, fill_casing_rules): New functions.
31440         (struct casefold_rule): New type.
31441         (casefolding_rules, num_casefolding_rules,
31442         allocated_casefolding_rules): New variables.
31443         (fill_casefolding_rules): New function.
31444         (unicode_casefold): New variable.
31445         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31446         sort_casing_rules, output_casing_rules): New functions.
31447         (main): Accept to more arguments: SpecialCasing.txt and
31448         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31449         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31450         Output mapping for casefolding.
31451
31452         * lib/unicase.h: Include stdbool.h, uninorm.h.
31453         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31454         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31455         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31456         arguments.
31457         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31458         resultp arguments.
31459         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31460         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31461         resultp arguments.
31462         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31463         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31464         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31465         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31466         declarations.
31467         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31468
31469 2009-03-08  Bruno Haible  <bruno@clisp.org>
31470
31471         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31472         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31473         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31474         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31475
31476 2009-03-07  Bruno Haible  <bruno@clisp.org>
31477
31478         Adjust u*_normcmp, u*_normcoll API.
31479         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31480         u16_normcoll, u32_normcoll): Change failure conventions.
31481         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31482         errno and return -1.
31483         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31484
31485 2009-03-07  Bruno Haible  <bruno@clisp.org>
31486
31487         Tests for module 'uninorm/u32-normcoll'.
31488         * modules/uninorm/u32-normcoll-tests: New file.
31489         * tests/uninorm/test-u32-normcoll.c: New file.
31490
31491         Tests for module 'uninorm/u16-normcoll'.
31492         * modules/uninorm/u16-normcoll-tests: New file.
31493         * tests/uninorm/test-u16-normcoll.c: New file.
31494
31495         Tests for module 'uninorm/u8-normcoll'.
31496         * modules/uninorm/u8-normcoll-tests: New file.
31497         * tests/uninorm/test-u8-normcoll.c: New file.
31498
31499 2009-03-07  Bruno Haible  <bruno@clisp.org>
31500
31501         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31502         tests/uninorm/test-u32-normcmp.c.
31503         * tests/uninorm/test-u32-normcmp.c: Include it.
31504         (test_nonascii): New function, extracted from main. Add some more
31505         tests.
31506         (main): Invoke test_ascii and test_nonascii.
31507         * modules/uninorm/u32-normcmp-tests (Files): Add
31508         tests/uninorm/test-u32-normcmp.h.
31509         (Depends-on): Remove uninorm/u32-normcmp.
31510
31511         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31512         tests/uninorm/test-u16-normcmp.c.
31513         * tests/uninorm/test-u16-normcmp.c: Include it.
31514         (test_nonascii): New function, extracted from main. Add some more
31515         tests.
31516         (main): Invoke test_ascii and test_nonascii.
31517         * modules/uninorm/u16-normcmp-tests (Files): Add
31518         tests/uninorm/test-u16-normcmp.h.
31519         (Depends-on): Remove uninorm/u16-normcmp.
31520
31521         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31522         tests/uninorm/test-u8-normcmp.c.
31523         * tests/uninorm/test-u8-normcmp.c: Include it.
31524         (test_nonascii): New function, extracted from main. Add some more
31525         tests.
31526         (main): Invoke test_ascii and test_nonascii.
31527         * modules/uninorm/u8-normcmp-tests (Files): Add
31528         tests/uninorm/test-u8-normcmp.h.
31529         (Depends-on): Remove uninorm/u8-normcmp.
31530
31531 2009-03-07  Bruno Haible  <bruno@clisp.org>
31532
31533         New module 'uninorm/u32-normcoll'.
31534         * lib/uninorm/u32-normcoll.c: New file.
31535         * modules/uninorm/u32-normcoll: New file.
31536
31537         New module 'uninorm/u16-normcoll'.
31538         * lib/uninorm/u16-normcoll.c: New file.
31539         * modules/uninorm/u16-normcoll: New file.
31540
31541         New module 'uninorm/u8-normcoll'.
31542         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31543         declarations.
31544         * lib/uninorm/u8-normcoll.c: New file.
31545         * lib/uninorm/u-normcoll.h: New file.
31546         * modules/uninorm/u8-normcoll: New file.
31547
31548         New module 'uninorm/u32-normxfrm'.
31549         * lib/uninorm/u32-normxfrm.c: New file.
31550         * modules/uninorm/u32-normxfrm: New file.
31551
31552         New module 'uninorm/u16-normxfrm'.
31553         * lib/uninorm/u16-normxfrm.c: New file.
31554         * modules/uninorm/u16-normxfrm: New file.
31555
31556         New module 'uninorm/u8-normxfrm'.
31557         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31558         declarations.
31559         * lib/uninorm/u8-normxfrm.c: New file.
31560         * lib/uninorm/u-normxfrm.h: New file.
31561         * modules/uninorm/u8-normxfrm: New file.
31562
31563 2009-03-07  Bruno Haible  <bruno@clisp.org>
31564
31565         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31566         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31567         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31568
31569 2009-03-07  Bruno Haible  <bruno@clisp.org>
31570
31571         New module 'memxfrm'.
31572         * lib/memxfrm.h: New file.
31573         * lib/memxfrm.c: New file.
31574         * modules/memxfrm: New file.
31575
31576 2009-03-07  Bruno Haible  <bruno@clisp.org>
31577
31578         New module 'memcmp2'.
31579         * lib/memcmp2.h: New file.
31580         * lib/memcmp2.c: New file.
31581         * modules/memcmp2: New file.
31582
31583 2009-03-07  Bruno Haible  <bruno@clisp.org>
31584
31585         Tests for module 'uninorm/decomposing-form'.
31586         * modules/uninorm/decomposing-form-tests: New file.
31587         * tests/uninorm/test-decomposing-form.c: New file.
31588
31589         New module 'uninorm/decomposing-form'.
31590         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31591         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31592         Add 'decomposing_variant' field.
31593         * lib/uninorm/decomposing-form.c: New file.
31594         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31595         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31596         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31597         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31598         * modules/uninorm/decomposing-form: New file.
31599         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31600         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31601
31602 2009-03-07  Bruno Haible  <bruno@clisp.org>
31603
31604         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31605         strings.
31606
31607 2009-03-06  Bruno Haible  <bruno@clisp.org>
31608
31609         Tests for module 'uninorm/u32-normcmp'.
31610         * tests/uninorm/test-u32-normcmp.c: New file.
31611         * modules/uninorm/u32-normcmp-tests: New file.
31612
31613         Tests for module 'uninorm/u16-normcmp'.
31614         * tests/uninorm/test-u16-normcmp.c: New file.
31615         * modules/uninorm/u16-normcmp-tests: New file.
31616
31617         Tests for module 'uninorm/u8-normcmp'.
31618         * tests/uninorm/test-u8-normcmp.c: New file.
31619         * modules/uninorm/u8-normcmp-tests: New file.
31620
31621         New module 'uninorm/u32-normcmp'.
31622         * lib/uninorm/u32-normcmp.c: New file.
31623         * modules/uninorm/u32-normcmp: New file.
31624
31625         New module 'uninorm/u16-normcmp'.
31626         * lib/uninorm/u16-normcmp.c: New file.
31627         * modules/uninorm/u16-normcmp: New file.
31628
31629         New module 'uninorm/u8-normcmp'.
31630         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31631         declarations.
31632         * lib/uninorm/u8-normcmp.c: New file.
31633         * lib/uninorm/u-normcmp.h: New file.
31634         * modules/uninorm/u8-normcmp: New file.
31635
31636 2009-03-06  Bruno Haible  <bruno@clisp.org>
31637
31638         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31639         Reported by Eric Blake.
31640
31641 2009-03-06  Eric Blake  <ebb9@byu.net>
31642             Bruno Haible  <bruno@clisp.org>
31643
31644         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31645         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31646         condition.
31647         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31648         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31649         condition.
31650         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31651
31652 2009-03-06  Eric Blake  <ebb9@byu.net>
31653
31654         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31655         to avoid compiler warnings.
31656         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31657
31658 2009-03-05  Bruno Haible  <bruno@clisp.org>
31659
31660         * tests/test-ftell.c (main): Disable test beyond end of file on
31661         FreeMiNT.
31662         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31663
31664 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31665
31666         * lib/filevercmp.c: Move hidden files up in ordering.
31667         * tests/test-filevercmp.c: Add tests for hidden files.
31668
31669 2009-03-04  Bruno Haible  <bruno@clisp.org>
31670
31671         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31672         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31673         AM_CFLAGS.
31674         Reported by Simon Josefsson.
31675
31676 2009-03-03  Bruno Haible  <bruno@clisp.org>
31677
31678         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31679         Reported by Simon Josefsson.
31680
31681         * doc/ld-version-script.texi: Update node reference.
31682
31683 2009-03-03  Bruno Haible  <bruno@clisp.org>
31684
31685         * modules/visibility (License): Change to 'unlimited'.
31686         Suggested by Simon Josefsson.
31687
31688 2009-03-03  Jim Meyering  <meyering@redhat.com>
31689
31690         unlinkdir: cannot_unlink_dir may modify process state
31691         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31692         it's neither thread-safe nor appropriate for use in a library.
31693
31694 2009-03-03  Eric Blake  <ebb9@byu.net>
31695
31696         test-closein: silence test under Darwin
31697         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31698         care if it dies from EPIPE or EBADF.
31699
31700 2009-03-03  Bruno Haible  <bruno@clisp.org>
31701
31702         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31703         earlier.
31704         * doc/visibility.texi: Fix @node and @section.
31705
31706 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31707
31708         * doc/gnulib.texi: Link to sections for ld version script and
31709         visibility.
31710         * doc/visibility.texi: Add @node and @section.
31711         * modules/ld-version-script: New module.
31712         * m4/ld-version-script.m4: New file.
31713         * doc/ld-version-script.texi: New file.
31714
31715 2009-03-02  David Lutterkort  <lutter@redhat.com>
31716
31717         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31718         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31719
31720 2009-03-02  Bruno Haible  <bruno@clisp.org>
31721
31722         * doc/visibility.texi: Mention libtool's -export-symbols option.
31723
31724 2009-03-02  Jim Meyering  <meyering@redhat.com>
31725
31726         announce-gen: new option: --no-print-checksums
31727         * build-aux/announce-gen (usage): Describe it.
31728         (print_checksums): Print a newline here, not in the [*] footnote.
31729         (main): Honor it.
31730
31731 2009-03-01  Bruno Haible  <bruno@clisp.org>
31732
31733         Use socklen_t in the native Windows replacements prototypes.
31734         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31735         instead of 'int'.
31736         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31737         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31738         * modules/getsockopt (Depends-on): Add socklen.
31739         * modules/setsockopt (Depends-on): Add socklen.
31740
31741 2009-03-01  Bruno Haible  <bruno@clisp.org>
31742
31743         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31744         least 4.2.
31745
31746 2009-03-01  Eric Blake  <ebb9@byu.net>
31747             Bruno Haible  <bruno@clisp.org>
31748
31749         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31750         error messages.
31751         * lib/wait-process.c (wait_subprocess): Omit error message about
31752         deadly signal sent to the child of termsigp != NULL.
31753
31754 2009-03-01  Eric Blake  <ebb9@byu.net>
31755
31756         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31757
31758 2009-03-01  Bruno Haible  <bruno@clisp.org>
31759
31760         Avoid a gcc warning.
31761         * tests/test-sched.c (b): Make global.
31762         Reported by Eric Blake.
31763
31764 2009-01-19  Martin Lambers  <marlam@marlam.de>
31765
31766         Provide POSIX semantics for socket timeout options on W32.
31767         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31768         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31769         * modules/setsockopt: Depend on sys_time module for struct timeval.
31770         * modules/getsockopt: Depend on sys_time module for struct timeval.
31771
31772 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31773
31774         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31775         __USE_GNU, for consistency with netdb.in.h.
31776         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31777
31778 2009-03-01  Bruno Haible  <bruno@clisp.org>
31779
31780         More support for FreeMiNT.
31781         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31782         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31783
31784 2009-03-01  Bruno Haible  <bruno@clisp.org>
31785
31786         More support for FreeMiNT.
31787         * lib/fpurge.c (fpurge): Correct last commit.
31788         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31789
31790 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31791
31792         Fix unportable awk script in vc-list-files.
31793         * build-aux/vc-list-files: In the replacement awk script, use
31794         substr with a second argument of 1, not zero.
31795         Report by Simon Josefsson.
31796
31797 2009-02-28  Bruno Haible  <bruno@clisp.org>
31798
31799         More support for FreeMiNT.
31800         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31801         to FreeMiNT today.
31802         * lib/fwriting.c (fwriting): Likewise.
31803         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31804
31805 2009-02-28  Bruno Haible  <bruno@clisp.org>
31806
31807         * tests/test-freadseek.c (main): Disable test beyond end of file on
31808         FreeMiNT.
31809         * tests/test-ftello.c (main): Likewise.
31810         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31811
31812 2009-02-28  Bruno Haible  <bruno@clisp.org>
31813
31814         Add tentative support for FreeMiNT.
31815         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31816         * lib/fpurge.c (fpurge): Likewise.
31817         * lib/freadable.c (freadable): Likewise.
31818         * lib/freading.c (freading): Likewise.
31819         * lib/freadptr.c (freadptr): Likewise.
31820         * lib/freadseek.c (freadptrinc): Likewise.
31821         * lib/fseeko.c (rpl_fseeko): Likewise.
31822         * lib/fseterr.c (fseterr): Likewise.
31823         * lib/fwritable.c (fwritable): Likewise.
31824         * lib/fwriting.c (fwriting): Likewise.
31825         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31826         Hourihane.
31827         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31828
31829 2009-02-28  Bruno Haible  <bruno@clisp.org>
31830
31831         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31832         SIGCHLD.
31833         Reported by Jim Meyering.
31834
31835 2009-02-28  Bruno Haible  <bruno@clisp.org>
31836
31837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31838         Mention the results of these tests on various platforms.
31839         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31840         order.
31841         * doc/posix-functions/printf.texi: Likewise.
31842         * doc/posix-functions/snprintf.texi: Likewise.
31843         * doc/posix-functions/sprintf.texi: Likewise.
31844         * doc/posix-functions/vfprintf.texi: Likewise.
31845         * doc/posix-functions/vprintf.texi: Likewise.
31846         * doc/posix-functions/vsnprintf.texi: Likewise.
31847         * doc/posix-functions/vsprintf.texi: Likewise.
31848         * doc/glibc-functions/obstack_printf.texi: Likewise.
31849         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31850
31851 2009-02-28  Bruno Haible  <bruno@clisp.org>
31852
31853         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31854         Reported by Loïc Minier <lool@dooz.org>.
31855
31856 2009-02-27  Bruno Haible  <bruno@clisp.org>
31857
31858         * gnulib-tool (func_import): Make the sed expression used to create the
31859         sed script for updating the .gitignore file POSIX compliant.
31860         Reported by Eric Blake.
31861
31862 2009-02-27  Bruno Haible  <bruno@clisp.org>
31863
31864         * gnulib-tool (sed): Don't alias as "sed --posix".
31865         Reported by Eric Blake.
31866
31867 2009-02-27  Bruno Haible  <bruno@clisp.org>
31868
31869         Avoid test link errors.
31870         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31871         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31872         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31873         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31875
31876 2009-02-27  Bruno Haible  <bruno@clisp.org>
31877
31878         Avoid spurious "(cached)" in configure output.
31879         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31880         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31881         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31882         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31883         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31884         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31885         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31886         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31887         Reported by Eric Blake.
31888
31889 2009-02-27  Eric Blake  <ebb9@byu.net>
31890
31891         printf: fix regression in previous patch
31892         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31893
31894 2009-02-27  Bruno Haible  <bruno@clisp.org>
31895
31896         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31897         value.
31898         * lib/stdint.in.h: Likewise.
31899         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31900
31901 2009-02-27  Eric Blake  <ebb9@byu.net>
31902
31903         doc: mention more functions added in cygwin 1.7.0
31904         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31905         addition.
31906         * doc/posix-functions/open_wmemstream.texi: Likewise.
31907         * doc/posix-functions/wcsnlen.texi: Likewise.
31908         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31909         * doc/posix-functions/wcstod.texi: Likewise.
31910         * doc/posix-functions/wcstof.texi: Likewise.
31911         * doc/posix-functions/wcstoimax.texi: Likewise.
31912         * doc/posix-functions/wcstok.texi: Likewise.
31913         * doc/posix-functions/wcstoumax.texi: Likewise.
31914
31915         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31917         * doc/posix-functions/fprintf.texi: Update.
31918         * doc/posix-functions/printf.texi: Update.
31919         * doc/posix-functions/snprintf.texi: Update.
31920         * doc/posix-functions/sprintf.texi: Update.
31921         * doc/posix-functions/vfprintf.texi: Update.
31922         * doc/posix-functions/vprintf.texi: Update.
31923         * doc/posix-functions/vsnprintf.texi: Update.
31924         * doc/posix-functions/vsprintf.texi: Update.
31925         * doc/glibc-functions/obstack_printf.texi: Update.
31926         * doc/glibc-functions/obstack_vprintf.texi: Update.
31927
31928 2009-02-26  Eric Blake  <ebb9@byu.net>
31929
31930         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31931         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31932         compilation bug by using runtime conversion.
31933         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31934         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31935         * modules/ceill-tests (Files): Use nan.h.
31936         * modules/floorl-tests (Files): Likewise.
31937         * modules/frexpl-tests (Files): Likewise.
31938         * modules/isnanl-tests (Files): Likewise.
31939         * modules/ldexpl-tests (Files): Likewise.
31940         * modules/roundl-tests (Files): Likewise.
31941         * modules/truncl-tests (Files): Likewise.
31942         * tests/test-ceill.c (main): Use a working NaN.
31943         * tests/test-floorl.c (main): Likewise.
31944         * tests/test-frexpl.c (main): Likewise.
31945         * tests/test-isnan.c (test_long_double): Likewise.
31946         * tests/test-isnanl.h (main): Likewise.
31947         * tests/test-ldexpl.h (main): Likewise.
31948         * tests/test-roundl.h (main): Likewise.
31949         * tests/test-truncl.h (main): Likewise.
31950         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31951
31952 2009-02-26  Eric Blake  <ebb9@byu.net>
31953             Bruno Haible  <bruno@clisp.org>
31954
31955         Work around a *printf bug with %ls on Solaris.
31956         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31957         precision is specified, sprintf stops converting the wide string
31958         argument when the number of bytes that have been produced by this
31959         conversion equals or exceeds the precision.
31960         * doc/posix-functions/fprintf.texi: Update.
31961         * doc/posix-functions/printf.texi: Update.
31962         * doc/posix-functions/snprintf.texi: Update.
31963         * doc/posix-functions/sprintf.texi: Update.
31964         * doc/posix-functions/vfprintf.texi: Update.
31965         * doc/posix-functions/vprintf.texi: Update.
31966         * doc/posix-functions/vsnprintf.texi: Update.
31967         * doc/posix-functions/vsprintf.texi: Update.
31968         * doc/glibc-functions/obstack_printf.texi: Update.
31969         * doc/glibc-functions/obstack_vprintf.texi: Update.
31970
31971 2009-02-26  Eric Blake  <ebb9@byu.net>
31972
31973         stdlib: favor compiler check of random.h
31974         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31975         to avoid an ObjC random.h installed by Swarm.
31976
31977 2009-02-26  Bruno Haible  <bruno@clisp.org>
31978
31979         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31980         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31981         Reported by Gary V. Vaughan <gary@gnu.org>.
31982
31983 2009-02-26  Bruno Haible  <bruno@clisp.org>
31984
31985         Fix *printf behaviour regarding the %ls directive.
31986         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31987         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31988         NEED_PRINTF_DIRECTIVE_LS.
31989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31990         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31991         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31992         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31993         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31994         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31995         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31996         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31997         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31998         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31999         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32000         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
32001         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32004         * doc/posix-functions/fprintf.texi: Update.
32005         * doc/posix-functions/printf.texi: Update.
32006         * doc/posix-functions/snprintf.texi: Update.
32007         * doc/posix-functions/sprintf.texi: Update.
32008         * doc/posix-functions/vfprintf.texi: Update.
32009         * doc/posix-functions/vprintf.texi: Update.
32010         * doc/posix-functions/vsnprintf.texi: Update.
32011         * doc/posix-functions/vsprintf.texi: Update.
32012         * doc/glibc-functions/obstack_printf.texi: Update.
32013         * doc/glibc-functions/obstack_vprintf.texi: Update.
32014         Reported by Eric Blake.
32015
32016 2009-02-25  Bruno Haible  <bruno@clisp.org>
32017
32018         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
32019         with known value.
32020         Reported by Gary V. Vaughan <gary@gnu.org>.
32021
32022 2009-02-25  Bruno Haible  <bruno@clisp.org>
32023
32024         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
32025         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
32026         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
32027         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
32028         Reported by Gary V. Vaughan <gary@gnu.org>.
32029
32030 2009-02-25  Bruno Haible  <bruno@clisp.org>
32031
32032         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
32033         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
32034         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
32035         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
32036         Reported by Gary V. Vaughan <gary@gnu.org>.
32037
32038 2009-02-25  Eric Blake  <ebb9@byu.net>
32039
32040         tests: skip fseek/ftell tests if ungetc is broken
32041         * m4/ungetc.m4: New file.
32042         * modules/fseek-tests: Split test, so ungetc dependency is
32043         separate from rest of test.
32044         * modules/fseeko-tests: Likewise.
32045         * modules/ftell-tests: Likewise.
32046         * modules/ftello-tests: Likewise.
32047         * tests/test-fseek.c (main): Isolate ungetc dependency.
32048         * tests/test-fseeko.c (main): Likewise.
32049         * tests/test-ftell.c (main): Likewise.
32050         * tests/test-ftello.c (main): Likewise.
32051         * tests/test-fseek2.sh: New file.
32052         * tests/test-fseeko2.sh: Likewise.
32053         * tests/test-ftell2.sh: Likewise.
32054         * tests/test-ftello2.sh: Likewise.
32055
32056 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
32057
32058         test-getaddrinfo: fix usage of skip return code 77
32059         * tests/test-gettaddrinfo.c: Return skip code 77 only
32060         for first occurance of skip (4x77 is not 77)
32061
32062 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
32063
32064         strtod: avoid C99 decl-after-statement
32065         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
32066
32067 2009-02-24  Eric Blake  <ebb9@byu.net>
32068
32069         strtod: detect HP-UX 11.31 bug
32070         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
32071         Reported by Gary V. Vaughan.
32072
32073 2009-02-23  Bruno Haible  <bruno@clisp.org>
32074
32075         Fix invalid read past end of memory block.
32076         * lib/vasnprintf.c (DCHAR_SET): Define.
32077         (local_wcslen): Define only when needed.
32078         (local_strnlen, local_wcsnlen): New functions.
32079         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
32080         directives that involve a conversion ourselves.
32081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
32082         wcsnlen, mbrtowc, wcrtomb.
32083         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
32084         * tests/test-vasprintf-posix.c (test_function): Likewise.
32085         * tests/test-snprintf-posix.h (test_function): Likewise.
32086         * tests/test-sprintf-posix.h (test_function): Likewise.
32087         Reported by Ben Pfaff <blp@cs.stanford.edu>.
32088
32089 2009-02-22  Bruno Haible  <bruno@clisp.org>
32090
32091         Implement new clarified decomposition of Hangul syllables.
32092         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
32093         of type LTV, return only a pairwise decomposition.
32094         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
32095         Likewise.
32096         * tests/uninorm/test-decomposition.c (main): Updated expected result.
32097         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
32098         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
32099
32100 2009-02-22  Bruno Haible  <bruno@clisp.org>
32101
32102         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
32103         zero-length results and shrink excess allocated memory.
32104         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
32105         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
32106         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
32107         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
32108         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
32109         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
32110         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
32111         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
32112         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
32113         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
32114         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
32115         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
32116
32117 2009-02-21  Bruno Haible  <bruno@clisp.org>
32118
32119         * doc/gnulib.texi: Include safe-alloc.texi earlier.
32120         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
32121         spaces after a period. Put a space between a macro name and its
32122         argument list. Trivial rewordings.
32123         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
32124         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
32125         (main): Return 0 explicitly.
32126
32127 2009-02-21  Bruno Haible  <bruno@clisp.org>
32128
32129         Tests for module 'uninorm/filter'.
32130         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
32131         * modules/uninorm/filter-tests: New file.
32132
32133         New module 'uninorm/filter'.
32134         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
32135         uninorm_filter_flush, uninorm_filter_free): New declarations.
32136         * lib/uninorm/uninorm-filter.c: New file.
32137         * modules/uninorm/filter: New file.
32138
32139 2009-02-21  Bruno Haible  <bruno@clisp.org>
32140
32141         Tests for module 'uninorm/nfkc'.
32142         * tests/uninorm/test-nfkc.c: New file.
32143         * tests/uninorm/test-u8-nfkc.c: New file.
32144         * tests/uninorm/test-u16-nfkc.c: New file.
32145         * tests/uninorm/test-u32-nfkc.c: New file.
32146         * tests/uninorm/test-u32-nfkc-big.sh: New file.
32147         * tests/uninorm/test-u32-nfkc-big.c: New file.
32148         * modules/uninorm/nfkc-tests: New file.
32149
32150         New module 'uninorm/nfkc'.
32151         * lib/uninorm/nfkc.c: New file.
32152         * modules/uninorm/nfkc: New file.
32153
32154         Tests for module 'uninorm/nfkd'.
32155         * tests/uninorm/test-nfkd.c: New file.
32156         * tests/uninorm/test-u8-nfkd.c: New file.
32157         * tests/uninorm/test-u16-nfkd.c: New file.
32158         * tests/uninorm/test-u32-nfkd.c: New file.
32159         * tests/uninorm/test-u32-nfkd-big.sh: New file.
32160         * tests/uninorm/test-u32-nfkd-big.c: New file.
32161         * modules/uninorm/nfkd-tests: New file.
32162
32163         New module 'uninorm/nfkd'.
32164         * lib/uninorm/nfkd.c: New file.
32165         * modules/uninorm/nfkd: New file.
32166
32167         Tests for module 'uninorm/nfc'.
32168         * tests/uninorm/test-nfc.c: New file.
32169         * tests/uninorm/test-u8-nfc.c: New file.
32170         * tests/uninorm/test-u16-nfc.c: New file.
32171         * tests/uninorm/test-u32-nfc.c: New file.
32172         * tests/uninorm/test-u32-nfc-big.sh: New file.
32173         * tests/uninorm/test-u32-nfc-big.c: New file.
32174         * modules/uninorm/nfc-tests: New file.
32175
32176         New module 'uninorm/nfc'.
32177         * lib/uninorm/nfc.c: New file.
32178         * modules/uninorm/nfc: New file.
32179
32180         Tests for module 'uninorm/nfd'.
32181         * tests/uninorm/test-nfd.c: New file.
32182         * tests/uninorm/test-u8-nfd.c: New file.
32183         * tests/uninorm/test-u16-nfd.c: New file.
32184         * tests/uninorm/test-u32-nfd.c: New file.
32185         * tests/uninorm/test-u32-nfd-big.sh: New file.
32186         * tests/uninorm/test-u32-nfd-big.c: New file.
32187         * tests/uninorm/test-u32-normalize-big.h: New file.
32188         * tests/uninorm/test-u32-normalize-big.c: New file.
32189         * tests/uninorm/NormalizationTest.txt: New file, created from
32190         Unicode 5.1.0 NormalizationTest.txt.
32191         * modules/uninorm/nfd-tests: New file.
32192
32193         New module 'uninorm/nfd'.
32194         * lib/uninorm/nfd.c: New file.
32195         * modules/uninorm/nfd: New file.
32196
32197         New module 'uninorm/u32-normalize'.
32198         * lib/uninorm/u32-normalize.c: New file.
32199         * modules/uninorm/u32-normalize: New file.
32200
32201         New module 'uninorm/u16-normalize'.
32202         * lib/uninorm/u16-normalize.c: New file.
32203         * modules/uninorm/u16-normalize: New file.
32204
32205         New module 'uninorm/u8-normalize'.
32206         * lib/uninorm/u8-normalize.c: New file.
32207         * lib/uninorm/normalize-internal.h: New file.
32208         * lib/uninorm/u-normalize-internal.h: New file.
32209         * modules/uninorm/u8-normalize: New file.
32210
32211         New module 'uninorm/decompose-internal'.
32212         * lib/uninorm/decompose-internal.c: New file.
32213         * modules/uninorm/decompose-internal: New file.
32214
32215         Tests for module 'uninorm/composition'.
32216         * tests/uninorm/test-composition.c: New file.
32217         * modules/uninorm/composition-tests: New file.
32218
32219         New module 'uninorm/composition'.
32220         * lib/uninorm/composition.c: New file.
32221         * lib/uninorm/composition-table.gperf: New file, generated by
32222         gen-uni-tables.
32223         * modules/uninorm/composition: New file.
32224
32225         Tests for module 'uninorm/compat-decomposition'.
32226         * tests/uninorm/test-compat-decomposition.c: New file.
32227         * modules/uninorm/compat-decomposition-tests: New file.
32228
32229         New module 'uninorm/compat-decomposition'.
32230         * lib/uninorm/decompose-internal.h: New file.
32231         * lib/uninorm/compat-decomposition.c: New file.
32232         * modules/uninorm/compat-decomposition: New file.
32233
32234         Tests for module 'uninorm/canonical-decomposition'.
32235         * tests/uninorm/test-canonical-decomposition.c: New file.
32236         * modules/uninorm/canonical-decomposition-tests: New file.
32237
32238         New module 'uninorm/canonical-decomposition'.
32239         * lib/uninorm/canonical-decomposition.c: New file.
32240         * modules/uninorm/canonical-decomposition: New file.
32241
32242         Tests for module 'uninorm/decomposition'.
32243         * tests/uninorm/test-decomposition.c: New file.
32244         * modules/uninorm/decomposition-tests: New file.
32245
32246         New module 'uninorm/decomposition'.
32247         * lib/uninorm/decomposition.c: New file.
32248         * modules/uninorm/decomposition: New file.
32249
32250         New module 'uninorm/decomposition-table'.
32251         * lib/uninorm/decomposition-table.h: New file.
32252         * lib/uninorm/decomposition-table.c: New file.
32253         * lib/uninorm/decomposition-table1.h: New file, generated by
32254         gen-uni-tables.
32255         * lib/uninorm/decomposition-table2.h: New file, generated by
32256         gen-uni-tables.
32257         * modules/uninorm/decomposition-table: New file.
32258
32259         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32260         (UC_DECOMP_*): New enumeration items.
32261         (get_decomposition): New function.
32262         (struct decomp_table): New type.
32263         (output_decomposition, output_decomposition_tables): New functions.
32264         (unicode_composition_exclusions): New variable.
32265         (fill_composition_exclusions, debug_output_composition_tables): New
32266         functions.
32267         (main): Accept one more argument. Invoke fill_composition_exclusions.
32268         Output decomposition and composition tables.
32269
32270         New module 'uninorm/base'.
32271         * lib/uninorm.h: New file.
32272         * lib/unictype.h: Update comment.
32273         * modules/uninorm/base: New file.
32274
32275 2009-02-21  David Lutterkort  <lutter@redhat.com>
32276
32277         Tests for module 'safe-alloc'.
32278         * tests/test-safe-alloc.c: New file.
32279         * modules/safe-alloc-tests: New file.
32280
32281         New module 'safe-alloc'.
32282         * lib/safe-alloc.h: New file.
32283         * lib/safe-alloc.c: New file.
32284         * m4/safe-alloc.m4: New file.
32285         * modules/safe-alloc: New file.
32286         * doc/safe-alloc.texi: New file.
32287         * doc/gnulib.texi: Include it.
32288         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32289         safe-alloc.
32290
32291 2009-02-18  Bruno Haible  <bruno@clisp.org>
32292
32293         Fix link error on non-glibc systems.
32294         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32295         variable.
32296         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32297
32298 2009-02-18  Jim Meyering  <meyering@redhat.com>
32299
32300         fts: avoid used-uninitialized error due to recent change
32301         * lib/fts.c (fts_read): Guard uses of the new member,
32302         parent->fts_n_dirs_remaining, since it's not relevant for
32303         the parent of a directory specified on the command-line.
32304
32305 2009-02-17  James Youngman  <jay@gnu.org>
32306             Bruno Haible  <bruno@clisp.org>
32307
32308         * m4/include_next.m4: Reformulate comment.
32309
32310 2009-02-16  Jim Meyering  <meyering@redhat.com>
32311
32312         fts: add #if guards so that the fts_lgpl module still builds
32313         * lib/fts.c: Guard just-added hash-table-using parts with
32314         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32315         Reported by Simon Josefsson.
32316
32317 2009-02-15  Bruno Haible  <bruno@clisp.org>
32318
32319         * modules/array-mergesort-tests: New file.
32320         * tests/test-array-mergesort.c: New file.
32321
32322         New module 'array-mergesort'.
32323         * modules/array-mergesort: New file.
32324         * lib/array-mergesort.h: New file.
32325
32326 2009-02-15  Bruno Haible  <bruno@clisp.org>
32327
32328         Fix 2009-02-07 commit.
32329         * lib/gen-uni-tables.c (output_predicate, output_category,
32330         output_combclass, output_bidi_category, output_decimal_digit,
32331         output_digit, output_numeric, output_mirror, output_scripts,
32332         output_ident_category, output_simple_mapping): Fix format directives.
32333         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32334
32335 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32336
32337         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32338         fixes are available from IBM.
32339
32340 2009-02-13  Jim Meyering  <meyering@redhat.com>
32341
32342         fts: arrange not to stat non-directories in more cases
32343         This makes GNU find (when it doesn't need to stat each file)
32344         *much* more efficient at traversing reiserfs file systems.
32345         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32346         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32347         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32348         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32349         (leaf_optimization_applies): New function.
32350         (LCO_hash, LCO_compare): New helper functions.
32351         (link_count_optimize_ok): New function.
32352         (fts_stat): Initialize new member (if dir).
32353         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32354         we've just stat'ed a directory.  Skip the stat call when possible.
32355         ---
32356         Note this AFS-related exchange:
32357         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32358         and note find's pioctl call in find/fstype.c.
32359         But that is necessary only if you want to enable the
32360         optimization for AFS, and for now, I don't.
32361
32362         fts: move a function definition "up" (no semantic change)
32363         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32364         "up" to precede upcoming use of a related function.
32365
32366 2009-02-11  Jim Meyering  <meyering@redhat.com>
32367
32368         fts: correct internal computation of nlinks (optimization-related)
32369         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32370         whether the current entry is a directory, so don't test it.
32371
32372 2009-02-10  Bruno Haible  <bruno@clisp.org>
32373
32374         Tests for module 'uniwbrk/ulc-wordbreaks'.
32375         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32376         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32377         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32378
32379         Tests for module 'uniwbrk/u32-wordbreaks'.
32380         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32381         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32382
32383         Tests for module 'uniwbrk/u16-wordbreaks'.
32384         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32385         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32386
32387         Tests for module 'uniwbrk/u8-wordbreaks'.
32388         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32389         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32390
32391 2009-02-10  Bruno Haible  <bruno@clisp.org>
32392
32393         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32394         property.
32395         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32396         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32397         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32398
32399 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32400
32401         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32402         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32403
32404 2009-02-10  Bruno Haible  <bruno@clisp.org>
32405
32406         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32407         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32408         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32409         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32410         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32411         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32412
32413 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32414
32415         * lib/sockets.h (gl_fd_to_handle): New function.
32416
32417         * tests/test-sockets.c: Call gl_fd_to_handle.
32418
32419 2009-02-09  Bruno Haible  <bruno@clisp.org>
32420
32421         * doc/havelib.texi: Document the conventions on bi-arch systems.
32422
32423 2009-02-08  Bruno Haible  <bruno@clisp.org>
32424
32425         Document the AC_LIB_LINKFLAGS macro.
32426         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32427         * doc/gnulib.texi: Include it.
32428
32429 2009-02-08  Bruno Haible  <bruno@clisp.org>
32430
32431         Fix wrong order of sections, compared to TOC.
32432         * doc/gnulib.texi: Include relocatable-maint.texi after the
32433         "Regular expressions" node, not before.
32434
32435 2009-02-08  Bruno Haible  <bruno@clisp.org>
32436
32437         Tests for module 'unicase/totitle'.
32438         * modules/unicase/totitle-tests: New file.
32439
32440         Tests for module 'unicase/tolower'.
32441         * modules/unicase/tolower-tests: New file.
32442
32443         Tests for module 'unicase/toupper'.
32444         * modules/unicase/toupper-tests: New file.
32445         * tests/unicase/test-mapping-part1.h: New file.
32446         * tests/unicase/test-mapping-part2.h: New file.
32447
32448         New module 'unicase/totitle'.
32449         * modules/unicase/totitle: New file.
32450         * lib/unicase/totitle.c: New file.
32451
32452         New module 'unicase/tolower'.
32453         * modules/unicase/tolower: New file.
32454         * lib/unicase/tolower.c: New file.
32455
32456         New module 'unicase/toupper'.
32457         * modules/unicase/toupper: New file.
32458         * lib/unicase/toupper.c: New file.
32459         * lib/unicase/simple-mapping.h: New file.
32460
32461         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32462         (mapping_table): New structure.
32463         (output_simple_mapping): New function.
32464         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32465         * modules/gen-uni-tables (Description): Update.
32466         * lib/unicase/toupper.h: New file, automatically generated by
32467         gen-uni-tables.
32468         * lib/unicase/tolower.h: New file, automatically generated by
32469         gen-uni-tables.
32470         * lib/unicase/totitle.h: New file, automatically generated by
32471         gen-uni-tables.
32472         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32473         gen-uni-tables.
32474         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32475         gen-uni-tables.
32476         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32477         gen-uni-tables.
32478
32479         New module 'unicase/base'.
32480         * modules/unicase/base: New file.
32481         * lib/unicase.h: New file.
32482
32483 2009-02-08  Bruno Haible  <bruno@clisp.org>
32484
32485         New module 'uniwbrk/ulc-wordbreaks'.
32486         * modules/uniwbrk/ulc-wordbreaks: New file.
32487         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32488
32489         New module 'uniwbrk/u32-wordbreaks'.
32490         * modules/uniwbrk/u32-wordbreaks: New file.
32491         * lib/uniwbrk/u32-wordbreaks.c: New file.
32492
32493         New module 'uniwbrk/u16-wordbreaks'.
32494         * modules/uniwbrk/u16-wordbreaks: New file.
32495         * lib/uniwbrk/u16-wordbreaks.c: New file.
32496
32497         New module 'uniwbrk/u8-wordbreaks'.
32498         * modules/uniwbrk/u8-wordbreaks: New file.
32499         * lib/uniwbrk/u8-wordbreaks.c: New file.
32500         * lib/uniwbrk/u-wordbreaks.h: New file.
32501
32502         New module 'uniwbrk/table'.
32503         * modules/uniwbrk/table: New file.
32504         * lib/uniwbrk/wbrktable.h: New file.
32505         * lib/uniwbrk/wbrktable.c: New file.
32506
32507         New module 'uniwbrk/wordbreak-property'.
32508         * modules/uniwbrk/wordbreak-property: New file.
32509         * lib/uniwbrk/wordbreak-property.c: New file.
32510
32511         * lib/gen-uni-tables.c (WBP_*): New enum items.
32512         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32513         (unicode_org_wbp): New variable.
32514         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32515         New functions.
32516         (wbp_table): New structure.
32517         (output_wbp, output_wbrk_tables): New functions.
32518         (main): Accept additional argument. Invoke fill_org_wbp,
32519         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32520         output_wbrk_tables.
32521         * modules/gen-uni-tables (Description): Update.
32522         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32523         gen-uni-tables.
32524
32525         New module 'uniwbrk/base'.
32526         * modules/uniwbrk/base: New file.
32527         * lib/uniwbrk.h: New file.
32528
32529 2009-02-08  Bruno Haible  <bruno@clisp.org>
32530
32531         Update to Unicode 5.1.0.
32532         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32533         U+2185..U+2188.
32534         (is_property_default_ignorable_code_point): Don't include characters
32535         of category Cc or Cs and not-a-characters.
32536         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32537         U+0D79, U+109E, U+109F, U+A60C.
32538         * lib/unictype/bidi_of.h: Regenerated.
32539         * lib/unictype/blocks.h: Regenerated.
32540         * lib/unictype/categ_C.h: Regenerated.
32541         * lib/unictype/categ_Cf.h: Regenerated.
32542         * lib/unictype/categ_Cn.h: Regenerated.
32543         * lib/unictype/categ_L.h: Regenerated.
32544         * lib/unictype/categ_Ll.h: Regenerated.
32545         * lib/unictype/categ_Lm.h: Regenerated.
32546         * lib/unictype/categ_Lo.h: Regenerated.
32547         * lib/unictype/categ_Lu.h: Regenerated.
32548         * lib/unictype/categ_M.h: Regenerated.
32549         * lib/unictype/categ_Mc.h: Regenerated.
32550         * lib/unictype/categ_Me.h: Regenerated.
32551         * lib/unictype/categ_Mn.h: Regenerated.
32552         * lib/unictype/categ_N.h: Regenerated.
32553         * lib/unictype/categ_Nd.h: Regenerated.
32554         * lib/unictype/categ_Nl.h: Regenerated.
32555         * lib/unictype/categ_No.h: Regenerated.
32556         * lib/unictype/categ_P.h: Regenerated.
32557         * lib/unictype/categ_Pd.h: Regenerated.
32558         * lib/unictype/categ_Pe.h: Regenerated.
32559         * lib/unictype/categ_Pf.h: Regenerated.
32560         * lib/unictype/categ_Pi.h: Regenerated.
32561         * lib/unictype/categ_Po.h: Regenerated.
32562         * lib/unictype/categ_Ps.h: Regenerated.
32563         * lib/unictype/categ_S.h: Regenerated.
32564         * lib/unictype/categ_Sk.h: Regenerated.
32565         * lib/unictype/categ_Sm.h: Regenerated.
32566         * lib/unictype/categ_So.h: Regenerated.
32567         * lib/unictype/categ_of.h: Regenerated.
32568         * lib/unictype/combining.h: Regenerated.
32569         * lib/unictype/ctype_alnum.h: Regenerated.
32570         * lib/unictype/ctype_alpha.h: Regenerated.
32571         * lib/unictype/ctype_graph.h: Regenerated.
32572         * lib/unictype/ctype_lower.h: Regenerated.
32573         * lib/unictype/ctype_print.h: Regenerated.
32574         * lib/unictype/ctype_punct.h: Regenerated.
32575         * lib/unictype/ctype_upper.h: Regenerated.
32576         * lib/unictype/decdigit.h: Regenerated.
32577         * lib/unictype/digit.h: Regenerated.
32578         * lib/unictype/mirror.h: Regenerated.
32579         * lib/unictype/numeric.h: Regenerated.
32580         * lib/unictype/pr_alphabetic.h: Regenerated.
32581         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32582         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32583         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32584         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32585         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32586         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32587         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32588         * lib/unictype/pr_combining.h: Regenerated.
32589         * lib/unictype/pr_dash.h: Regenerated.
32590         * lib/unictype/pr_decimal_digit.h: Regenerated.
32591         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32592         * lib/unictype/pr_deprecated.h: Regenerated.
32593         * lib/unictype/pr_diacritic.h: Regenerated.
32594         * lib/unictype/pr_extender.h: Regenerated.
32595         * lib/unictype/pr_format_control.h: Regenerated.
32596         * lib/unictype/pr_grapheme_base.h: Regenerated.
32597         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32598         * lib/unictype/pr_grapheme_link.h: Regenerated.
32599         * lib/unictype/pr_id_continue.h: Regenerated.
32600         * lib/unictype/pr_id_start.h: Regenerated.
32601         * lib/unictype/pr_ideographic.h: Regenerated.
32602         * lib/unictype/pr_ignorable_control.h: Regenerated.
32603         * lib/unictype/pr_lowercase.h: Regenerated.
32604         * lib/unictype/pr_math.h: Regenerated.
32605         * lib/unictype/pr_numeric.h: Regenerated.
32606         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32607         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32608         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32609         * lib/unictype/pr_other_id_continue.h: Regenerated.
32610         * lib/unictype/pr_other_lowercase.h: Regenerated.
32611         * lib/unictype/pr_other_math.h: Regenerated.
32612         * lib/unictype/pr_punctuation.h: Regenerated.
32613         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32614         * lib/unictype/pr_soft_dotted.h: Regenerated.
32615         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32616         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32617         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32618         * lib/unictype/pr_uppercase.h: Regenerated.
32619         * lib/unictype/pr_xid_continue.h: Regenerated.
32620         * lib/unictype/pr_xid_start.h: Regenerated.
32621         * lib/unictype/pr_zero_width.h: Regenerated.
32622         * lib/unictype/scripts.h: Regenerated.
32623         * lib/unictype/scripts_byname.gperf: Regenerated.
32624         * lib/unictype/sy_java_ident.h: Regenerated.
32625         * lib/unilbrk/lbrkprop1.h: Regenerated.
32626         * lib/unilbrk/lbrkprop2.h: Regenerated.
32627         * tests/unictype/test-categ_C.c: Regenerated.
32628         * tests/unictype/test-categ_Cf.c: Regenerated.
32629         * tests/unictype/test-categ_Cn.c: Regenerated.
32630         * tests/unictype/test-categ_L.c: Regenerated.
32631         * tests/unictype/test-categ_Ll.c: Regenerated.
32632         * tests/unictype/test-categ_Lm.c: Regenerated.
32633         * tests/unictype/test-categ_Lo.c: Regenerated.
32634         * tests/unictype/test-categ_Lu.c: Regenerated.
32635         * tests/unictype/test-categ_M.c: Regenerated.
32636         * tests/unictype/test-categ_Mc.c: Regenerated.
32637         * tests/unictype/test-categ_Me.c: Regenerated.
32638         * tests/unictype/test-categ_Mn.c: Regenerated.
32639         * tests/unictype/test-categ_N.c: Regenerated.
32640         * tests/unictype/test-categ_Nd.c: Regenerated.
32641         * tests/unictype/test-categ_Nl.c: Regenerated.
32642         * tests/unictype/test-categ_No.c: Regenerated.
32643         * tests/unictype/test-categ_P.c: Regenerated.
32644         * tests/unictype/test-categ_Pd.c: Regenerated.
32645         * tests/unictype/test-categ_Pe.c: Regenerated.
32646         * tests/unictype/test-categ_Pf.c: Regenerated.
32647         * tests/unictype/test-categ_Pi.c: Regenerated.
32648         * tests/unictype/test-categ_Po.c: Regenerated.
32649         * tests/unictype/test-categ_Ps.c: Regenerated.
32650         * tests/unictype/test-categ_S.c: Regenerated.
32651         * tests/unictype/test-categ_Sk.c: Regenerated.
32652         * tests/unictype/test-categ_Sm.c: Regenerated.
32653         * tests/unictype/test-categ_So.c: Regenerated.
32654         * tests/unictype/test-ctype_alnum.c: Regenerated.
32655         * tests/unictype/test-ctype_alpha.c: Regenerated.
32656         * tests/unictype/test-ctype_graph.c: Regenerated.
32657         * tests/unictype/test-ctype_lower.c: Regenerated.
32658         * tests/unictype/test-ctype_print.c: Regenerated.
32659         * tests/unictype/test-ctype_punct.c: Regenerated.
32660         * tests/unictype/test-ctype_upper.c: Regenerated.
32661         * tests/unictype/test-decdigit.h: Regenerated.
32662         * tests/unictype/test-digit.h: Regenerated.
32663         * tests/unictype/test-numeric.h: Regenerated.
32664         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32665         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32666         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32667         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32668         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32669         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32670         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32671         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32672         * tests/unictype/test-pr_combining.c: Regenerated.
32673         * tests/unictype/test-pr_dash.c: Regenerated.
32674         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32675         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32676         * tests/unictype/test-pr_deprecated.c: Regenerated.
32677         * tests/unictype/test-pr_diacritic.c: Regenerated.
32678         * tests/unictype/test-pr_extender.c: Regenerated.
32679         * tests/unictype/test-pr_format_control.c: Regenerated.
32680         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32681         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32682         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32683         * tests/unictype/test-pr_id_continue.c: Regenerated.
32684         * tests/unictype/test-pr_id_start.c: Regenerated.
32685         * tests/unictype/test-pr_ideographic.c: Regenerated.
32686         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32687         * tests/unictype/test-pr_lowercase.c: Regenerated.
32688         * tests/unictype/test-pr_math.c: Regenerated.
32689         * tests/unictype/test-pr_numeric.c: Regenerated.
32690         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32691         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32692         Regenerated.
32693         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32694         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32695         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32696         * tests/unictype/test-pr_other_math.c: Regenerated.
32697         * tests/unictype/test-pr_punctuation.c: Regenerated.
32698         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32699         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32700         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32701         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32702         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32703         * tests/unictype/test-pr_uppercase.c: Regenerated.
32704         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32705         * tests/unictype/test-pr_xid_start.c: Regenerated.
32706         * tests/unictype/test-pr_zero_width.c: Regenerated.
32707
32708         Update to Unicode 5.1.0.
32709         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32710         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32711         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32712         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32713         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32714         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32715         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32716         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32717         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32718         (nonspacing_table_ind): Update.
32719         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32720
32721         Update to Unicode 5.1.0.
32722         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32723         code transform.
32724         * lib/uniname/uniname.c (unicode_character_name,
32725         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32726         * lib/uniname/uninames.h: Regenerated.
32727         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32728
32729 2009-02-07  Bruno Haible  <bruno@clisp.org>
32730
32731         Merge gen-ctype and gen-lbrk into a single program.
32732         * lib/gen-uni-tables.c: New file, incorporating
32733         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32734         Add directory prefixes to the names of the generated files.
32735         * lib/unictype/gen-ctype.c: Remove file.
32736         * lib/unilbrk/gen-lbrk.c: Remove file.
32737         * modules/gen-uni-tables: New file.
32738         * modules/unictype/gen-ctype: Remove file.
32739         * modules/unilbrk/gen-lbrk: Remove file.
32740
32741 2009-02-07  Bruno Haible  <bruno@clisp.org>
32742
32743         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32744
32745         New module 'unistr/u32-strcoll'.
32746         * modules/unistr/u32-strcoll: New file.
32747         * lib/unistr/u32-strcoll.c: New file.
32748
32749         New module 'unistr/u16-strcoll'.
32750         * modules/unistr/u16-strcoll: New file.
32751         * lib/unistr/u16-strcoll.c: New file.
32752
32753         New module 'unistr/u8-strcoll'.
32754         * modules/unistr/u8-strcoll: New file.
32755         * lib/unistr/u8-strcoll.c: New file.
32756         * lib/unistr/u-strcoll.h: New file.
32757
32758 2009-02-07  Bruno Haible  <bruno@clisp.org>
32759
32760         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32761         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32762         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32763         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32764         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32765         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32766
32767 2009-02-07  Bruno Haible  <bruno@clisp.org>
32768
32769         Make 64-bit clean.
32770         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32771         output_combclass, output_bidi_category, output_decimal_digit,
32772         output_digit, output_numeric, output_mirror, output_scripts,
32773         output_ident_category): Use proper width specifier in format strings.
32774
32775 2009-02-07  Bruno Haible  <bruno@clisp.org>
32776
32777         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32778         failure behaviour.
32779
32780 2009-02-07  Jim Meyering  <meyering@redhat.com>
32781
32782         regex: avoid compilation failure with upcoming gcc-4.4
32783         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32784         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32785         "... error: integer overflow in preprocessor expression".
32786
32787 2009-02-05  Ben Pfaff  <blp@gnu.org>
32788
32789         Fix link errors on Windows when close module is used.
32790         * modules/close: Add $(LIB_CLOSE) to Link section.
32791         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32792         $(LIB_CLOSE) on Windows.
32793
32794 2009-02-05  Jim Meyering  <meyering@redhat.com>
32795
32796         still avoid unused-parameter warnings, but do it cleanly
32797         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32798         (get_fs_usage): Cast to void instead.
32799         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32800         (dev_from_mount_options, read_file_system_list): Cast to void.
32801         Prompted by Bruno Haible.
32802
32803 2009-02-04  Jim Meyering  <meyering@redhat.com>
32804
32805         fsusage.c: correct copyright year
32806         * lib/fsusage.c: Reflect year in which the change is pushed into
32807
32808         avoid misc. warnings
32809         * lib/fsusage.c (UNUSED_PARAM): Define.
32810         (get_fs_usage): Mark parameter "disk" as unused.
32811         * lib/getugroups.c (getgrent): Use "void" in prototype.
32812         * lib/mountlist.c: Mark unused parameters.
32813         (read_file_system_list): Declare a local with "const".
32814         * lib/nanosleep.c (getnow): Declare static.
32815         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32816
32817         dirfd: set errno upon failure
32818         * lib/dirfd.c: Include <errno.h>.
32819         Set errno to ENOTSUP when returning -1.
32820         * modules/dirfd (Depends-on): Add errno.
32821         Suggested by John Kodis <kodis@comcast.net>.
32822
32823 2009-02-01  Bruno Haible  <bruno@clisp.org>
32824
32825         Don't assume sizeof (long) >= sizeof (void *).
32826         * lib/memcmp.c: Include stdint.h.
32827         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32828         srcp2 to 'const byte *'.
32829         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32830         types to uintptr_t.
32831         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32832         * modules/memcmp (Depends-on): Add stdint.
32833         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32834
32835 2009-01-30  Eric Blake  <ebb9@byu.net>
32836
32837         fix more require-before-expand issues
32838         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32839         expand, AC_PROG_AWK.
32840         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32841
32842 2009-01-28  Eric Blake  <ebb9@byu.net>
32843
32844         version-etc: use consistent URL formatting
32845         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32846         Improve formatting.  Use fputs for string without %.
32847
32848 2009-01-28  Jim Meyering  <meyering@redhat.com>
32849
32850         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32851         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32852         "underquoted definition of NAME" from autoconf-2.59.
32853
32854 2009-01-28  Bruno Haible  <bruno@clisp.org>
32855
32856         * doc/gnulib.texi: Add "Obsolete modules" to index.
32857
32858 2009-01-28  Jim Meyering  <meyering@redhat.com>
32859
32860         useless-if-before-free: recognize more variants
32861         * build-aux/useless-if-before-free: Also recognize e.g.,
32862         if (NULL != p) free (p);
32863
32864 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32865
32866         test-getaddrinfo: skip (don't fail) this test when there's no network
32867         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32868         on the presumption that it means you lack network access.
32869
32870 2009-01-26  Jim Meyering  <meyering@redhat.com>
32871
32872         fflush: avoid warnings on modern systems
32873         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32874         pos and result, into scopes where they're used.
32875
32876 2009-01-26  Eric Blake  <ebb9@byu.net>
32877
32878         Silence warning reintroduced by recent extensions patch.
32879         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32880         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32881         autoconf.
32882
32883         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32884         * m4/00gnulib.m4: New file.
32885         * gnulib-tool (func_get_filelist): Always use it.
32886         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32887         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32888
32889 2009-01-25  Bruno Haible  <bruno@clisp.org>
32890
32891         Make test-quotearg work on MacOS X and AIX.
32892         * tests/test-quotearg.sh: New file.
32893         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32894         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32895         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32896         include <libintl.h>.
32897         (fake_locale): Remove variable.
32898         (gettext, dgettext, dcgettext): Remove functions.
32899         (main): Instead of setting a fake locale, set a real locale. Call
32900         textdomain and bindtextdomain.
32901         * modules/quotearg-tests (Files): Add the new files.
32902         (Depends-on): Add gettext, setenv, unsetenv.
32903         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32904         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32905         Augment TESTS_ENVIRONMENT.
32906
32907 2009-01-25  Bruno Haible  <bruno@clisp.org>
32908
32909         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32910         fr_FR.ISO8859-1 locale on MacOS X.
32911         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32912         ja_JP.eucJP locale on MacOS X.
32913         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32914         zh_CN.GB18030 locale on MacOS X.
32915
32916 2009-01-25  Bruno Haible  <bruno@clisp.org>
32917
32918         Avoid link errors on MacOS X 10.3.
32919         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32920         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32921
32922 2009-01-25  Bruno Haible  <bruno@clisp.org>
32923
32924         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32925         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32926         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32927         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32928         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32929         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32930         posix_spawnattr_init, posix_spawnattr_setsigmask,
32931         posix_spawnattr_setflags, posix_spawnattr_destroy.
32932
32933         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32934         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32935         * modules/execute (Files): Remove m4/posix_spawn.m4.
32936         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32937         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32938         posix_spawnattr_init, posix_spawnattr_setsigmask,
32939         posix_spawnattr_setflags, posix_spawnattr_destroy.
32940
32941 2009-01-25  Bruno Haible  <bruno@clisp.org>
32942
32943         * lib/glthread/threadlib.c: Include <stdlib.h>.
32944
32945 2009-01-25  Bruno Haible  <bruno@clisp.org>
32946
32947         * lib/glthread/threadlib.c (dummy): New declaration.
32948
32949 2009-01-25  Bruno Haible  <bruno@clisp.org>
32950
32951         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32952         multibyte characters also for the GB18030 encoding. Don't crash when
32953         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32954
32955 2009-01-25  Bruno Haible  <bruno@clisp.org>
32956
32957         Avoid redefining 'struct random_data' on OSF/1 5.1.
32958         * lib/stdlib.in.h: Include <random.h> if it exists.
32959         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32960         HAVE_RANDOM_H. Include <random.h> when testing whether
32961         'struct random_data' exists.
32962         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32963
32964 2009-01-25  Bruno Haible  <bruno@clisp.org>
32965
32966         Don't install charset.alias on MacOS X >= 10.3.
32967         * lib/localcharset.c (DARWIN7): New macro.
32968         (get_charset_aliases): Hardcode the result for Darwin7.
32969         * modules/localcharset (install-exec-local): Don't install
32970         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32971
32972 2009-01-25  Bruno Haible  <bruno@clisp.org>
32973
32974         Don't install charset.alias on mingw and Cygwin.
32975         * modules/localcharset (install-exec-local): Don't install
32976         charset.alias on mingw and Cygwin, if the file does not yet exist.
32977         The result for these platforms is hardcoded in localcharset.c.
32978
32979 2009-01-25  Bruno Haible  <bruno@clisp.org>
32980
32981         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32982         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32983         before requiring AC_USE_SYSTEM_EXTENSIONS.
32984
32985 2009-01-25  Jim Meyering  <meyering@redhat.com>
32986
32987         c-strtod: avoid warnings
32988         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32989         "assignment discards qualifiers from pointer target type" warnings.
32990
32991 2009-01-24  Bruno Haible  <bruno@clisp.org>
32992
32993         Add support for non-UTF-8 locales on MacOS X.
32994         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32995         canonical encodings. For Darwin 7 and newer, don't map traditional
32996         encodings to UTF-8.
32997         Reported by Vincent Lefevre <vincent@vinc17.org>
32998         at <http://savannah.gnu.org/bugs/?25235>.
32999
33000 2009-01-24  Bruno Haible  <bruno@clisp.org>
33001
33002         * doc/gnulib.texi (Obsolete modules): New section.
33003         Reported by Mike Frysinger <vapier@gentoo.org>.
33004
33005 2009-01-24  Bruno Haible  <bruno@clisp.org>
33006
33007         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
33008         (%.dvi): New rule.
33009
33010 2009-01-24  Bruno Haible  <bruno@clisp.org>
33011
33012         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
33013         Reported by Eric Blake.
33014
33015 2009-01-24  Bruno Haible  <bruno@clisp.org>
33016
33017         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
33018         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
33019         Reported by Gary V. Vaughan <gary@gnu.org>.
33020
33021 2009-01-24  Bruno Haible  <bruno@clisp.org>
33022
33023         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
33024
33025 2009-01-23  Bruno Haible  <bruno@clisp.org>
33026
33027         Make c-strtod, c-strtold usable in libraries.
33028         * lib/c-strtod.c: Include string.h instead of xalloc.h.
33029         (C_STRTOD): Call strdup instead of xstrdup.
33030         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
33031         * modules/c-strtold (Depends-on): Likewise.
33032         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
33033         * NEWS: Mention the change.
33034         Reported by Michael Gold <mgold@ncf.ca>.
33035
33036 2009-01-23  Jim Meyering  <meyering@redhat.com>
33037
33038         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
33039         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
33040         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
33041
33042 2009-01-23  Simon Josefsson  <simon@josefsson.org>
33043
33044         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
33045         GNU CoreUtils.
33046         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
33047         * modules/version-etc (Description): Update.
33048
33049 2009-01-22  Bruno Haible  <bruno@clisp.org>
33050
33051         Cache the C locale object.
33052         * lib/c-strtod.c (c_locale_cache): New variable.
33053         (c_locale): New function.
33054         (C_STRTOD): Use it, and don't call freelocale.
33055         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
33056         Suggested by Paolo Bonzini.
33057
33058 2009-01-21  Bruno Haible  <bruno@clisp.org>
33059
33060         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
33061         conditions other than overflow.
33062
33063 2009-01-21  Bruno Haible  <bruno@clisp.org>
33064
33065         * lib/c-strtod.c: Include errno.h.
33066         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
33067         value from STRTOD_L and STRTOD.
33068
33069 2009-01-21  Bruno Haible  <bruno@clisp.org>
33070         and Jim Meyering  <meyering@redhat.com>
33071
33072         nanosleep: skip configure test (fail it) for apple universal builds
33073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
33074         universal builds, assume that nanosleep does not work.
33075         * modules/nanosleep (Depends-on): Add multiarch.
33076
33077         mktime: skip configure test (fail it) for apple universal builds
33078         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
33079         universal builds, assume that mktime does not work.
33080         * modules/mktime (Depends-on): Add multiarch.
33081
33082 2009-01-21  Eric Blake  <ebb9@byu.net>
33083
33084         multiarch: avoid expand-before-require warning
33085         * modules/multiarch (configure.ac): Require, rather than expand,
33086         gl_MULTIARCH.
33087         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
33088         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
33089         enforce that all clients require it.  Partial reversion of
33090         2008-12-29 patch.
33091
33092         error: avoid expand-before-require warning
33093         * modules/errno (configure.ac): Require, rather than expand,
33094         gl_HEADER_ERRNO_H.
33095         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
33096         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
33097         enforce that all clients require it.
33098
33099         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
33100         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
33101         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
33102         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
33103
33104 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
33105
33106         Revert:
33107         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33108
33109         regex: do not depend on obsolete modules.
33110         * modules/regex: Remove memcmp and memmove.
33111
33112 2009-01-20  Bruno Haible  <bruno@clisp.org>
33113
33114         Make the 'link' module link on Windows NT 4.
33115         * lib/link.c (_WIN32_WINNT): Don't define.
33116         (CreateHardLinkFuncType): New type.
33117         (CreateHardLinkFunc, initialized): New variables.
33118         (initialize): New function.
33119         (link): Invoke CreateHardLink indirectly through the function pointer.
33120
33121 2009-01-20  Bruno Haible  <bruno@clisp.org>
33122
33123         Fix compilation failure on mingw.
33124         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
33125
33126 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
33127
33128         * doc/c-strtod.texi: Mention a couple of restrictions.
33129
33130 2009-01-20  Jim Meyering  <meyering@redhat.com>
33131
33132         gettimeofday: move more declarations out of functions
33133         * lib/gettimeofday.c: Move extern declarations of tzset and
33134         gmtime out of containing functions.  Prompted by Bruno Haible.
33135
33136 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
33137
33138         regex: do not depend on obsolete modules.
33139         * modules/regex: Remove memcmp and memmove.
33140
33141 2009-01-19  Bruno Haible  <bruno@clisp.org>
33142
33143         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33144         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
33145         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33146         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
33147         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
33148
33149 2009-01-19  Bruno Haible  <bruno@clisp.org>
33150
33151         * tests/test-link.c: Include <errno.h>.
33152         (main): Exit with code 77 when a hard link cannot be created due to
33153         the file system.
33154         * tests/test-link.sh: Skip test when a hard link cannot be created due
33155         to the file system.
33156         Suggested by Eric Blake.
33157
33158 2009-01-19  Martin Lambers  <marlam@marlam.de>
33159
33160         * modules/link-tests: New file.
33161         * tests/test-link.sh: New file.
33162         * tests/test-link.c: New file.
33163
33164 2009-01-19  Eric Blake  <ebb9@byu.net>
33165
33166         doc: mention another function added in cygwin 1.7.0
33167         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
33168         Another new function in cygwin 1.7.
33169
33170 2009-01-19  Bruno Haible  <bruno@clisp.org>
33171
33172         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
33173         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
33174         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
33175         gl_BIGENDIAN, not AC_C_BIGENDIAN.
33176         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33177         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
33178         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
33179         * m4/md4.m4 (gl_MD4): Likewise.
33180         * m4/md5.m4 (gl_MD5): Likewise.
33181         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
33182         * m4/sha1.m4 (gl_SHA1): Likewise.
33183         * m4/sha256.m4 (gl_SHA256): Likewise.
33184         * m4/sha512.m4 (gl_SHA512): Likewise.
33185
33186 2009-01-19  Bruno Haible  <bruno@clisp.org>
33187
33188         * modules/uniname/uniname-tests (Depends-on): Add progname.
33189         * tests/uniname/test-uninames.c: Include progname.h.
33190         (main): Call set_program_name.
33191
33192         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
33193         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
33194         (main): Call set_program_name.
33195
33196         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
33197         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
33198         (main): Call set_program_name.
33199
33200         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
33201         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
33202         (main): Call set_program_name.
33203
33204         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
33205         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
33206         (main): Call set_program_name.
33207
33208         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
33209         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
33210         (main): Call set_program_name.
33211
33212         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
33213         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33214         (main): Call set_program_name.
33215
33216         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33217         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33218         (main): Call set_program_name.
33219
33220         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33221         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33222         (main): Call set_program_name.
33223
33224 2009-01-19  Eric Blake  <ebb9@byu.net>
33225
33226         test-unistd: test previous patch
33227         * tests/test-unistd.c: Test *_FILENO macros.
33228
33229         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33230         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33231         Guarantee a definition.
33232         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33233         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33234         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33235         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33236         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33237         Likewise.
33238         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33239         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33240         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33241         Likewise.
33242         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33243         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33244         (STDERR_FILENO): Likewise.
33245         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33246         (STDERR_FILENO): Likewise.
33247         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33248         (STDERR_FILENO): Likewise.
33249         Reported by Elbert Pol.
33250
33251 2009-01-19  Eric Blake  <ebb9@byu.net>
33252
33253         doc: mention more functions added in cygwin 1.7.0
33254         * doc/posix-functions/abort.texi (abort): Update wording related
33255         to cygwin.
33256         * doc/posix-functions/daylight.texi (daylight): Likewise.
33257         * doc/posix-functions/optarg.texi (optarg): Likewise.
33258         * doc/posix-functions/optarg.texi (opterr): Likewise.
33259         * doc/posix-functions/optarg.texi (optind): Likewise.
33260         * doc/posix-functions/optarg.texi (optopt): Likewise.
33261         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33262         worked in 1.5.x, and was withdrawn in 1.7.
33263         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33264         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33265         cygwin versions.
33266         * doc/posix-functions/perror.texi (perror): Likewise.
33267         * doc/posix-functions/printf.texi (printf): Likewise.
33268         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33269         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33270         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33271         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33272         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33273         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33274         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33275         Likewise.
33276         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33277         Likewise.
33278         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33279         this function.
33280         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33281         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33282         Likewise.
33283         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33284         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33285         * doc/posix-functions/confstr.texi (confstr): Likewise.
33286         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33287         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33288         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33289         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33290         * doc/posix-functions/fputws.texi (fputws): Likewise.
33291         * doc/posix-functions/fwide.texi (fwide): Likewise.
33292         * doc/posix-functions/getwc.texi (getwc): Likewise.
33293         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33294         * doc/posix-functions/putwc.texi (putwc): Likewise.
33295         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33296         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33297         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33298         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33299         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33300         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33301         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33302         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33303         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33304         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33305         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33306
33307 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33308
33309         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33310         * lib/ioctl.c: Include <sys/ioctl.h>.
33311
33312 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33313
33314         * modules/getdate-tests (Depends-on): Add progname.
33315         * tests/test-getdate.c: Use progname module, to avoid link errors
33316         on non-glibc systems.
33317
33318 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33319
33320         * modules/filenamecat-tests (Depends-on): Add progname.
33321         * modules/fstrcmp-tests (Depends-on): Likewise.
33322
33323         * tests/test-filenamecat.c: Use progname module, to avoid link
33324         errors on non-glibc systems.
33325         * tests/test-fstrcmp.c: Likewise.
33326
33327 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33328
33329         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33330         * lib/gettimeofday.c: Move extern declaration out of function.
33331
33332 2009-01-18  Bruno Haible  <bruno@clisp.org>
33333
33334         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33335         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33336         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33337
33338 2009-01-18  Bruno Haible  <bruno@clisp.org>
33339
33340         * lib/strftime.c (MEMPCPY): Remove unused macro.
33341         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33342
33343 2009-01-18  Martin Lambers  <marlam@marlam.de>
33344
33345         New module 'link'.
33346         * lib/unistd.in.h (link): New declaration.
33347         * lib/link.c: New file.
33348         * m4/link.m4: New file.
33349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33350         HAVE_LINK.
33351         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33352         * modules/link: New file.
33353         * doc/posix-functions/link.texi: Mention the new module.
33354
33355 2009-01-18  Bruno Haible  <bruno@clisp.org>
33356
33357         * tests/test-avltree_list.c (main): Call set_program_name.
33358         * tests/test-avltree_oset.c (main): Likewise.
33359         * tests/test-obstack-printf.c: Include progname.h.
33360         (main): Call set_program_name.
33361         * tests/test-quotearg.c: Include progname.h.
33362         (main): Call set_program_name.
33363         * tests/test-xmemdup0.c: Include progname.h.
33364         (main): Call set_program_name.
33365
33366 2009-01-18  Bruno Haible  <bruno@clisp.org>
33367
33368         New module 'alphasort'.
33369         * lib/dirent.in.h (alphasort): New declaration.
33370         * lib/alphasort.c: New file, from glibc with modifications.
33371         * m4/alphasort.m4: New file.
33372         * modules/alphasort: New file.
33373         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33374         HAVE_ALPHASORT.
33375         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33376         HAVE_ALPHASORT.
33377         * doc/posix-functions/alphasort.texi: Mention the new module and the
33378         portability problems.
33379
33380 2009-01-18  Bruno Haible  <bruno@clisp.org>
33381
33382         New module 'scandir'.
33383         * lib/dirent.in.h (scandir): New declaration.
33384         * lib/scandir.c: New file, from glibc with modifications.
33385         * m4/scandir.m4: New file.
33386         * modules/scandir: New file.
33387         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33388         HAVE_SCANDIR.
33389         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33390         HAVE_SCANDIR.
33391         * doc/posix-functions/scandir.texi: Mention the new module and the
33392         portability problems.
33393
33394 2009-01-17  Bruno Haible  <bruno@clisp.org>
33395
33396         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33397         Update documentation.
33398         (func_remove_suffix): Escape all dots in the suffix. Update
33399         documentation.
33400         (func_filter_filelist): Update documentation.
33401         Reported by Ralf Wildenhues.
33402
33403 2009-01-17  Bruno Haible  <bruno@clisp.org>
33404
33405         * modules/dprintf-posix-tests: New file.
33406         * tests/test-dprintf-posix.sh: New file.
33407         * tests/test-dprintf-posix.c: New file.
33408
33409         New modules 'dprintf', 'dprintf-posix'.
33410         * lib/stdio.in.h (dprintf): New declaration.
33411         * lib/dprintf.c: New file.
33412         * m4/dprintf.m4: New file.
33413         * m4/dprintf-posix.m4: New file.
33414         * modules/dprintf: New file.
33415         * modules/dprintf-posix: New file.
33416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33417         HAVE_DPRINTF, REPLACE_DPRINTF.
33418         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33419         HAVE_DPRINTF, REPLACE_DPRINTF.
33420         * doc/posix-functions/dprintf.texi: Mention the new modules.
33421
33422 2009-01-17  Bruno Haible  <bruno@clisp.org>
33423
33424         * modules/vdprintf-posix-tests: New file.
33425         * tests/test-vdprintf-posix.sh: New file.
33426         * tests/test-vdprintf-posix.c: New file.
33427
33428         New modules 'vdprintf', 'vdprintf-posix'.
33429         * lib/stdio.in.h (vdprintf): New declaration.
33430         * lib/vdprintf.c: New file.
33431         * m4/vdprintf.m4: New file.
33432         * m4/vdprintf-posix.m4: New file.
33433         * modules/vdprintf: New file.
33434         * modules/vdprintf-posix: New file.
33435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33436         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33437         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33438         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33439         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33440
33441 2009-01-17  Bruno Haible  <bruno@clisp.org>
33442
33443         Fix replacement of fopen on mingw.
33444         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33445         mingw.
33446
33447 2009-01-17  Bruno Haible  <bruno@clisp.org>
33448
33449         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33450         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33451
33452 2009-01-17  Bruno Haible  <bruno@clisp.org>
33453
33454         Avoid test-fflush2.sh failure on mingw.
33455         * tests/test-fflush2.c: Include binary-io.h.
33456         (main): Put standard input into binary mode.
33457         * modules/fflush-tests (Depends-on): Add binary-io.
33458
33459 2009-01-17  Bruno Haible  <bruno@clisp.org>
33460
33461         * lib/wchar.in.h: In another particular situation, include only the
33462         system's <wchar.h> file.
33463         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33464         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33465         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33466
33467 2009-01-17  Bruno Haible  <bruno@clisp.org>
33468
33469         Support for stripping executables in --enable-relocatable.
33470         * build-aux/install-reloc: Expect one more argument, or an environment
33471         variable RELOC_STRIP_PROG. If set, strip the destination program and
33472         its wrapper.
33473         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33474         RELOC_STRIP_PROG.
33475         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33476         to set RELOCATABLE_STRIP.
33477         * NEWS: Mention the new Makefile requirement.
33478
33479 2009-01-17  Bruno Haible  <bruno@clisp.org>
33480
33481         * build-aux/install-reloc: Remove debugging information left over by
33482         C compiler on MacOS X.
33483
33484 2009-01-17  Bruno Haible  <bruno@clisp.org>
33485
33486         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33487         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33488         _NSGetExecutablePath.
33489
33490 2009-01-16  Jim Meyering  <meyering@redhat.com>
33491
33492         strerror: avoid warnings about discarding "const"
33493         * lib/strerror.c (rpl_strerror): Instead of returning a const
33494         string from each and every "case", use a variable, and add a single
33495         cast after the switch.
33496
33497 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33498
33499         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33500
33501 2009-01-16  Bruno Haible  <bruno@clisp.org>
33502
33503         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33504         array initializer syntax that also works in C++ mode.
33505         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33506
33507 2009-01-16  Jim Meyering  <meyering@redhat.com>
33508
33509         poll: suppress a warning
33510         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33511         to ignore "...unsigned expression < 0 is always false" warnings.
33512
33513 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33514
33515         poll: remove declarations of unused variables
33516         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33517         sockbuf and optlen.
33518
33519 2009-01-15  Bruno Haible  <bruno@clisp.org>
33520
33521         Make fflush-after-ungetc POSIX compliant on BSD systems.
33522         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33523         (clear_ungetc_buffer): Implement also for other systems.
33524         (rpl_fflush): On glibc systems, invoke
33525         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33526         clear_ungetc_buffer after fetching the stream's position, not before.
33527
33528 2009-01-15  Bruno Haible  <bruno@clisp.org>
33529
33530         Make fflush-after-ungetc POSIX compliant on glibc systems.
33531         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33532         after ungetc.
33533         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33534         (rpl_fflush): On glibc systems, simply call the system's fflush
33535         function after clearing the ungetc buffer.
33536         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33537         Instead, lseek only to the end of file, then use the system's fseeko
33538         for the rest. On glibc systems, reset the EOF indicator bit.
33539
33540 2009-01-15  Jim Meyering  <meyering@redhat.com>
33541
33542         openmp.m4: revert quote-adding change, for portability to older autoconf
33543         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33544         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33545         Simon Josefsson noticed the problem when using autoconf-2.61.
33546
33547 2009-01-15  Bruno Haible  <bruno@clisp.org>
33548
33549         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33550         * tests/test-fflush2.c (ASSERT): Always fail.
33551         (main): Add two tests for fflush() after ungetc(), taking into account
33552         the Austin Group's clarification.
33553         Suggested by Eric Blake.
33554
33555 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33556
33557         mktime.m4: remove K&R-style function prototypes
33558         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33559         for the Sun C++ compiler.
33560
33561 2009-01-14  Bruno Haible  <bruno@clisp.org>
33562
33563         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33564         while including <wchar.h>.
33565         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33566         the system's <wchar.h> file.
33567         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33568
33569 2009-01-14  Bruno Haible  <bruno@clisp.org>
33570
33571         * m4/csharp.m4: Don't mention gettext on the serial number line.
33572         * m4/csharpexec.m4: Likewise.
33573         * m4/eaccess.m4: Likewise.
33574         * m4/javaexec.m4: Likewise.
33575         * m4/sig_atomic_t.m4: Likewise.
33576         * m4/tmpdir.m4: Likewise.
33577         * m4/intldir.m4: Bump gettext version.
33578         * m4/lib-ld.m4: Likewise.
33579
33580 2009-01-14  Bruno Haible  <bruno@clisp.org>
33581
33582         * lib/progname.c (set_program_name): Add more comments.
33583         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33584
33585 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33586
33587         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33588         were sys/stat.h does not define it.
33589
33590 2009-01-14  Jim Meyering  <meyering@redhat.com>
33591
33592         many *.m4 files: improve m4 quoting
33593         99% of this change was performed by running the following commands:
33594         git ls-files | grep '\.m4$' | xargs perl -pi \
33595           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33596           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33597           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33598           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33599         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33600         The remainder were to add Copyright dates, increment serial numbers,
33601         undo some changes in comments, exclude m4/intl.m4, and add quotes
33602         around the "1" in ",1" where the unusual spacing prohibited the
33603         above regexps from doing the job.  For more details, see
33604         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33605         * m4/acl.m4: Modified.
33606         * m4/afs.m4: Likewise.
33607         * m4/alloca.m4: Likewise.
33608         * m4/argp.m4: Likewise.
33609         * m4/argz.m4: Likewise.
33610         * m4/atexit.m4: Likewise.
33611         * m4/bison-i18n.m4: Likewise.
33612         * m4/bison.m4: Likewise.
33613         * m4/byteswap.m4: Likewise.
33614         * m4/c-stack.m4: Likewise.
33615         * m4/c-strtod.m4: Likewise.
33616         * m4/calloc.m4: Likewise.
33617         * m4/canonicalize-lgpl.m4: Likewise.
33618         * m4/chown.m4: Likewise.
33619         * m4/clock_time.m4: Likewise.
33620         * m4/codeset.m4: Likewise.
33621         * m4/copy-file.m4: Likewise.
33622         * m4/csharp.m4: Likewise.
33623         * m4/csharpcomp.m4: Likewise.
33624         * m4/csharpexec.m4: Likewise.
33625         * m4/d-ino.m4: Likewise.
33626         * m4/d-type.m4: Likewise.
33627         * m4/dirfd.m4: Likewise.
33628         * m4/double-slash-root.m4: Likewise.
33629         * m4/eaccess.m4: Likewise.
33630         * m4/eealloc.m4: Likewise.
33631         * m4/environ.m4: Likewise.
33632         * m4/errno_h.m4: Likewise.
33633         * m4/euidaccess.m4: Likewise.
33634         * m4/execute.m4: Likewise.
33635         * m4/fatal-signal.m4: Likewise.
33636         * m4/fchdir.m4: Likewise.
33637         * m4/fcntl_h.m4: Likewise.
33638         * m4/fileblocks.m4: Likewise.
33639         * m4/filenamecat.m4: Likewise.
33640         * m4/findprog.m4: Likewise.
33641         * m4/flexmember.m4: Likewise.
33642         * m4/fnmatch.m4: Likewise.
33643         * m4/fopen.m4: Likewise.
33644         * m4/fpending.m4: Likewise.
33645         * m4/fprintf-posix.m4: Likewise.
33646         * m4/free.m4: Likewise.
33647         * m4/frexp.m4: Likewise.
33648         * m4/frexpl.m4: Likewise.
33649         * m4/fsusage.m4: Likewise.
33650         * m4/ftruncate.m4: Likewise.
33651         * m4/gc-camellia.m4: Likewise.
33652         * m4/gc-random.m4: Likewise.
33653         * m4/gc.m4: Likewise.
33654         * m4/getaddrinfo.m4: Likewise.
33655         * m4/getcwd-abort-bug.m4: Likewise.
33656         * m4/getcwd-path-max.m4: Likewise.
33657         * m4/getdate.m4: Likewise.
33658         * m4/getdomainname.m4: Likewise.
33659         * m4/getgroups.m4: Likewise.
33660         * m4/gethostname.m4: Likewise.
33661         * m4/gethrxtime.m4: Likewise.
33662         * m4/getline.m4: Likewise.
33663         * m4/getloadavg.m4: Likewise.
33664         * m4/getndelim2.m4: Likewise.
33665         * m4/getpass.m4: Likewise.
33666         * m4/gettext.m4: Likewise.
33667         * m4/gettime.m4: Likewise.
33668         * m4/gettimeofday.m4: Likewise.
33669         * m4/gnulib-common.m4: Likewise.
33670         * m4/group-member.m4: Likewise.
33671         * m4/host-os.m4: Likewise.
33672         * m4/iconv.m4: Likewise.
33673         * m4/iconv_open.m4: Likewise.
33674         * m4/inet_ntop.m4: Likewise.
33675         * m4/inet_pton.m4: Likewise.
33676         * m4/inline.m4: Likewise.
33677         * m4/intldir.m4: Likewise.
33678         * m4/intlmacosx.m4: Likewise.
33679         * m4/intmax.m4: Likewise.
33680         * m4/intmax_t.m4: Likewise.
33681         * m4/inttypes.m4: Likewise.
33682         * m4/inttypes_h.m4: Likewise.
33683         * m4/inttypes-pri.m4: Likewise.
33684         * m4/isapipe.m4: Likewise.
33685         * m4/isnand.m4: Likewise.
33686         * m4/isnanf.m4: Likewise.
33687         * m4/isnanl.m4: Likewise.
33688         * m4/javacomp.m4: Likewise.
33689         * m4/javaexec.m4: Likewise.
33690         * m4/jm-winsz1.m4: Likewise.
33691         * m4/jm-winsz2.m4: Likewise.
33692         * m4/lchown.m4: Likewise.
33693         * m4/lcmessage.m4: Likewise.
33694         * m4/ldexpl.m4: Likewise.
33695         * m4/lib-ld.m4: Likewise.
33696         * m4/lib-link.m4: Likewise.
33697         * m4/libsigsegv.m4: Likewise.
33698         * m4/link-follow.m4: Likewise.
33699         * m4/localcharset.m4: Likewise.
33700         * m4/locale-fr.m4: Likewise.
33701         * m4/locale-ja.m4: Likewise.
33702         * m4/locale-tr.m4: Likewise.
33703         * m4/locale-zh.m4: Likewise.
33704         * m4/lock.m4: Likewise.
33705         * m4/longlong.m4: Likewise.
33706         * m4/ls-mntd-fs.m4: Likewise.
33707         * m4/lstat.m4: Likewise.
33708         * m4/malloc.m4: Likewise.
33709         * m4/mathl.m4: Likewise.
33710         * m4/mbrtowc.m4: Likewise.
33711         * m4/mbstate_t.m4: Likewise.
33712         * m4/mbswidth.m4: Likewise.
33713         * m4/memchr.m4: Likewise.
33714         * m4/memcmp.m4: Likewise.
33715         * m4/memcpy.m4: Likewise.
33716         * m4/memmem.m4: Likewise.
33717         * m4/memmove.m4: Likewise.
33718         * m4/mempcpy.m4: Likewise.
33719         * m4/memrchr.m4: Likewise.
33720         * m4/memset.m4: Likewise.
33721         * m4/minmax.m4: Likewise.
33722         * m4/mkdir-slash.m4: Likewise.
33723         * m4/mkdtemp.m4: Likewise.
33724         * m4/mktime.m4: Likewise.
33725         * m4/mmap-anon.m4: Likewise.
33726         * m4/mountlist.m4: Likewise.
33727         * m4/nanosleep.m4: Likewise.
33728         * m4/nls.m4: Likewise.
33729         * m4/nocrash.m4: Likewise.
33730         * m4/open.m4: Likewise.
33731         * m4/openat.m4: Likewise.
33732         * m4/openmp.m4: Likewise.
33733         * m4/pathmax.m4: Likewise.
33734         * m4/perl.m4: Likewise.
33735         * m4/physmem.m4: Likewise.
33736         * m4/pipe.m4: Likewise.
33737         * m4/po.m4: Likewise.
33738         * m4/poll.m4: Likewise.
33739         * m4/posixtm.m4: Likewise.
33740         * m4/posixver.m4: Likewise.
33741         * m4/printf-frexp.m4: Likewise.
33742         * m4/printf-frexpl.m4: Likewise.
33743         * m4/printf-posix.m4: Likewise.
33744         * m4/printf-posix-rpl.m4: Likewise.
33745         * m4/printf.m4: Likewise.
33746         * m4/progtest.m4: Likewise.
33747         * m4/putenv.m4: Likewise.
33748         * m4/readline.m4: Likewise.
33749         * m4/readlink.m4: Likewise.
33750         * m4/readutmp.m4: Likewise.
33751         * m4/realloc.m4: Likewise.
33752         * m4/regex.m4: Likewise.
33753         * m4/relocatable.m4: Likewise.
33754         * m4/relocatable-lib.m4: Likewise.
33755         * m4/rename-dest-slash.m4: Likewise.
33756         * m4/rename.m4: Likewise.
33757         * m4/rmdir-errno.m4: Likewise.
33758         * m4/rmdir.m4: Likewise.
33759         * m4/roundf.m4: Likewise.
33760         * m4/roundl.m4: Likewise.
33761         * m4/rpmatch.m4: Likewise.
33762         * m4/save-cwd.m4: Likewise.
33763         * m4/selinux-selinux-h.m4: Likewise.
33764         * m4/setenv.m4: Likewise.
33765         * m4/settime.m4: Likewise.
33766         * m4/sig2str.m4: Likewise.
33767         * m4/sig_atomic_t.m4: Likewise.
33768         * m4/signalblocking.m4: Likewise.
33769         * m4/signbit.m4: Likewise.
33770         * m4/sigpipe.m4: Likewise.
33771         * m4/sockets.m4: Likewise.
33772         * m4/sockpfaf.m4: Likewise.
33773         * m4/st_dm_mode.m4: Likewise.
33774         * m4/stat-time.m4: Likewise.
33775         * m4/stdbool.m4: Likewise.
33776         * m4/stdint.m4: Likewise.
33777         * m4/stdint_h.m4: Likewise.
33778         * m4/stpcpy.m4: Likewise.
33779         * m4/stpncpy.m4: Likewise.
33780         * m4/strcase.m4: Likewise.
33781         * m4/strchrnul.m4: Likewise.
33782         * m4/strcspn.m4: Likewise.
33783         * m4/strdup.m4: Likewise.
33784         * m4/strftime.m4: Likewise.
33785         * m4/strndup.m4: Likewise.
33786         * m4/strnlen.m4: Likewise.
33787         * m4/strpbrk.m4: Likewise.
33788         * m4/strptime.m4: Likewise.
33789         * m4/strsep.m4: Likewise.
33790         * m4/strtod.m4: Likewise.
33791         * m4/strtoimax.m4: Likewise.
33792         * m4/strtok_r.m4: Likewise.
33793         * m4/strtol.m4: Likewise.
33794         * m4/strtoll.m4: Likewise.
33795         * m4/strtoul.m4: Likewise.
33796         * m4/strtoull.m4: Likewise.
33797         * m4/strtoumax.m4: Likewise.
33798         * m4/strverscmp.m4: Likewise.
33799         * m4/threadlib.m4: Likewise.
33800         * m4/timegm.m4: Likewise.
33801         * m4/tm_gmtoff.m4: Likewise.
33802         * m4/tmpdir.m4: Likewise.
33803         * m4/tmpfile.m4: Likewise.
33804         * m4/tzset.m4: Likewise.
33805         * m4/uintmax_t.m4: Likewise.
33806         * m4/unlinkdir.m4: Likewise.
33807         * m4/unlocked-io.m4: Likewise.
33808         * m4/uptime.m4: Likewise.
33809         * m4/userspec.m4: Likewise.
33810         * m4/utimbuf.m4: Likewise.
33811         * m4/utime.m4: Likewise.
33812         * m4/utimes-null.m4: Likewise.
33813         * m4/utimes.m4: Likewise.
33814         * m4/vararrays.m4: Likewise.
33815         * m4/vasnprintf.m4: Likewise.
33816         * m4/vfprintf-posix.m4: Likewise.
33817         * m4/vprintf-posix.m4: Likewise.
33818         * m4/wait-process.m4: Likewise.
33819         * m4/wchar_t.m4: Likewise.
33820         * m4/wint_t.m4: Likewise.
33821         * m4/write-any-file.m4: Likewise.
33822         * m4/yield.m4: Likewise.
33823
33824 2009-01-13  Bruno Haible  <bruno@clisp.org>
33825
33826         Avoid test-copy-file.sh failures when ACL support insufficient.
33827         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33828         TESTS_ENVIRONMENT.
33829         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33830         Reported by Jim Meyering.
33831
33832 2009-01-13  Bruno Haible  <bruno@clisp.org>
33833
33834         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33835         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33836         * modules/unistdio/u8-printf-parse (Files): Likewise.
33837         * modules/unistdio/u32-printf-parse (Files): Likewise.
33838         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33839
33840 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33841
33842         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33843         and m4/inttypes_h.m4 too.
33844
33845 2009-01-12  Eric Blake  <ebb9@byu.net>
33846
33847         tests: IRIX 6.2 cc can't compile -0.0 into .data
33848         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33849         rather than at compile-time.
33850         * tests/test-floorl.c (minus_zero): Likewise.
33851         * tests/test-frexpl.c (minus_zero): Likewise.
33852         * tests/test-isnan.c (minus_zerol): Likewise.
33853         * tests/test-isnanl.h (minus_zero): Likewise.
33854         * tests/test-ldexpl.c (minus_zero): Likewise.
33855         * tests/test-roundl.c (minus_zero): Likewise.
33856         * tests/test-signbit.c (minus_zerol): Likewise.
33857         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33858         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33859         * tests/test-truncl.c (minus_zero): Likewise.
33860         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33861         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33862         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33863
33864 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33865
33866         regex: fix glibc bug 9697
33867         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33868         handling.
33869
33870 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33871
33872         regex: fix glibc bug 697
33873         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33874         being NULL also if there are no backreferences.
33875
33876 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33877
33878         regex: merge glibc changes
33879         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33880         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33881         re_string_skip_chars, re_string_reconstruct): Likewise.
33882         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33883
33884 2009-01-07  Jim Meyering  <meyering@redhat.com>
33885
33886         poll: filter through cppi
33887         * lib/poll.c: Indent cpp directives to reflect nesting.
33888
33889 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33890
33891         poll: don't return uninitialized
33892         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33893
33894 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33895
33896         avoid compile failure on AIX 6.1
33897         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33898         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33899
33900 2009-01-04  Jim Meyering  <meyering@redhat.com>
33901
33902         remove duplicate inclusion of <stdio.h>
33903         * tests/test-fprintf-posix.c: Likewise.
33904         * tests/test-printf-posix.c: Likewise.
33905         * tests/test-snprintf-posix.c: Likewise.
33906         * tests/test-sprintf-posix.c: Likewise.
33907         * tests/test-vasprintf-posix.c: Likewise.
33908         * tests/test-vfprintf-posix.c: Likewise.
33909         * tests/test-vprintf-posix.c: Likewise.
33910         * tests/test-vsnprintf-posix.c: Likewise.
33911         * tests/test-vsprintf-posix.c: Likewise.
33912
33913 2009-01-03  Jim Meyering  <meyering@redhat.com>
33914
33915         gnulib-tool: fix sed-based filtering
33916         * gnulib-tool (func_filter_filelist): Remove extra backslash
33917         in sed_fff_filter definition.
33918
33919 2009-01-02  Jim Meyering  <meyering@redhat.com>
33920
33921         strftime: avoid compilation failure on Solaris 2.6
33922         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33923         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33924         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33925         be available.  Reported by Tom G. Christensen.  Details in
33926         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33927
33928 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33929             Bruno Haible  <bruno@clisp.org>
33930
33931         Speed up gnulib-tool by doing more string processing through shell
33932         built-ins.
33933         * gnulib-tool (fast_func_append): New variable.
33934         (func_remove_prefix, func_remove_suffix): New functions.
33935         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33936         (func_filter_filelist): New function.
33937         (func_get_dependencies): Use func_remove_suffix instead of sed.
33938         (func_get_automake_snippet): Use func_filter_filelist instead of a
33939         subshell and sed invocation.
33940
33941 2009-01-01  Bruno Haible  <bruno@clisp.org>
33942
33943         Fix a security bug.
33944         * gnulib-tool (func_import, import, update): Don't allow the characters
33945         '"', '$', '`', '\' in macro arguments that become part of commands that
33946         are evaluated.
33947
33948 2009-01-01  Bruno Haible  <bruno@clisp.org>
33949
33950         * gnulib-tool (func_reset_sigpipe): Add more comments.
33951
33952 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33953
33954         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33955         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33956         already know the answer.
33957
33958 2009-01-01  Jim Meyering  <meyering@redhat.com>
33959
33960         * lib/version-etc.c (version_etc_va): Update copyright year.
33961
33962 2008-12-30  Bruno Haible  <bruno@clisp.org>
33963
33964         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33965         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33966         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33967
33968 2008-12-29  Eric Blake  <ebb9@byu.net>
33969
33970         multiarch: avoid autoconf AC_REQUIRE bug
33971         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33972         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33973         2.63 and older.
33974         Reported by Bruno Haible, and analyzed in
33975         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33976
33977 2008-12-29  Bruno Haible  <bruno@clisp.org>
33978
33979         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33980         files in subdirectories correctly.
33981         Reported by Ralf Wildenhues.
33982
33983 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33984
33985         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33986         rather than 'join FILE -', for Solaris join.
33987
33988 2008-12-29  Bruno Haible  <bruno@clisp.org>
33989
33990         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33991         quoting.
33992         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33993         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33994         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33995         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33996         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33997         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33998         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33999         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
34000         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34001         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
34002         * m4/nls.m4 (AM_NLS): Likewise.
34003         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
34004         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
34005         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
34006         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
34007         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
34008         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
34009         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
34010         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
34011         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
34012         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34013         * m4/xsize.m4 (gl_XSIZE): Likewise.
34014         Suggested by Jim Meyering.
34015
34016 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34017
34018         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
34019         * lib/parse-duration.c: use a switch instead of cascading if's.
34020
34021 2008-12-29  Eric Blake  <ebb9@byu.net>
34022
34023         wchar.h: supply WEOF on Irix 5.3
34024         * lib/wchar.in.h (wint_t): Also supply WEOF.
34025         * lib/wctype.in.h (wint_t): Likewise.
34026         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
34027         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
34028         Reported by Tom G. Christensen.
34029
34030 2008-12-26  Bruno Haible  <bruno@clisp.org>
34031
34032         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
34033         i486, i586, i686.
34034
34035 2008-12-26  Bruno Haible  <bruno@clisp.org>
34036
34037         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
34038
34039 2008-12-26  Bruno Haible  <bruno@clisp.org>
34040
34041         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
34042         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
34043         not __STDC_CONSTANT_MACROS.
34044         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
34045
34046 2008-12-25  Bruno Haible  <bruno@clisp.org>
34047
34048         Add support for universal builds to vasnprintf.
34049         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
34050         universal builds, guess no.
34051         * modules/vasnprintf-posix (Depends-on): Add multiarch.
34052         * modules/vasprintf-posix (Depends-on): Likewise.
34053         * modules/fprintf-posix (Depends-on): Likewise.
34054         * modules/vfprintf-posix (Depends-on): Likewise.
34055         * modules/snprintf-posix (Depends-on): Likewise.
34056         * modules/vsnprintf-posix (Depends-on): Likewise.
34057         * modules/sprintf-posix (Depends-on): Likewise.
34058         * modules/vsprintf-posix (Depends-on): Likewise.
34059         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34060         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34061         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34062         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34063         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34064         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34065         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34066
34067         Add support for universal builds to <inttypes.h>.
34068         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
34069         _SCNu64_PREFIX): In Apple
34070         universal builds, define directly, using _LP64.
34071         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
34072         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
34073         * modules/inttypes (Depends-on): Add multiarch.
34074         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34075
34076         Add support for universal builds to <stdint.h>.
34077         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
34078         universal builds, define directly, using _LP64.
34079         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
34080         Apple universal builds, don't test for the size and suffix of ptrdiff_t
34081         and size_t.
34082         * modules/stdint (Depends-on): Add multiarch.
34083         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
34084
34085         New module 'multiarch'.
34086         * modules/multiarch: New file.
34087         * m4/multiarch.m4: New file.
34088
34089 2008-12-25  Bruno Haible  <bruno@clisp.org>
34090
34091         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
34092
34093 2008-12-25  Bruno Haible  <bruno@clisp.org>
34094
34095         * modules/btowc (License): Relicense under LGPLv2+.
34096         * modules/mbsinit (License): Likewise.
34097         * modules/mbrtowc (License): Likewise.
34098         * modules/wcrtomb (License): Likewise.
34099         * modules/streq (License): Likewise.
34100         Reported by David Lutterkort <lutter@redhat.com>.
34101
34102 2008-12-23  Bruno Haible  <bruno@clisp.org>
34103
34104         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
34105
34106 2008-12-23  Bruno Haible  <bruno@clisp.org>
34107
34108         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
34109         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
34110         GETADDRINFO_LIB, not in LIBS.
34111         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
34112         * modules/canon-host (Link): Likewise.
34113         * NEWS: Mention the change.
34114         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
34115         GETADDRINFO_LIB.
34116
34117 2008-12-22  Bruno Haible  <bruno@clisp.org>
34118
34119         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
34120         * doc/posix-functions/iswalpha_l.texi: Likewise.
34121         * doc/posix-functions/iswblank_l.texi: Likewise.
34122         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34123         * doc/posix-functions/iswctype_l.texi: Likewise.
34124         * doc/posix-functions/iswdigit_l.texi: Likewise.
34125         * doc/posix-functions/iswgraph_l.texi: Likewise.
34126         * doc/posix-functions/iswlower_l.texi: Likewise.
34127         * doc/posix-functions/iswprint_l.texi: Likewise.
34128         * doc/posix-functions/iswpunct_l.texi: Likewise.
34129         * doc/posix-functions/iswspace_l.texi: Likewise.
34130         * doc/posix-functions/iswupper_l.texi: Likewise.
34131         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34132         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
34133         * doc/posix-functions/open_wmemstream.texi: Likewise.
34134         * doc/posix-functions/swscanf.texi: Likewise.
34135         * doc/posix-functions/towctrans_l.texi: Likewise.
34136         * doc/posix-functions/towlower.texi: Likewise.
34137         * doc/posix-functions/towlower_l.texi: Likewise.
34138         * doc/posix-functions/towupper.texi: Likewise.
34139         * doc/posix-functions/towupper_l.texi: Likewise.
34140         * doc/posix-functions/vfwprintf.texi: Likewise.
34141         * doc/posix-functions/vfwscanf.texi: Likewise.
34142         * doc/posix-functions/vswscanf.texi: Likewise.
34143         * doc/posix-functions/vwprintf.texi: Likewise.
34144         * doc/posix-functions/vwscanf.texi: Likewise.
34145         * doc/posix-functions/wcpcpy.texi: Likewise.
34146         * doc/posix-functions/wcpncpy.texi: Likewise.
34147         * doc/posix-functions/wcscasecmp.texi: Likewise.
34148         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
34149         * doc/posix-functions/wcscoll_l.texi: Likewise.
34150         * doc/posix-functions/wcsdup.texi: Likewise.
34151         * doc/posix-functions/wcsncasecmp.texi: Likewise.
34152         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
34153         * doc/posix-functions/wcsnlen.texi: Likewise.
34154         * doc/posix-functions/wcsnrtombs.texi: Likewise.
34155         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34156         * doc/posix-functions/wctrans_l.texi: Likewise.
34157         * doc/posix-functions/wctype_l.texi: Likewise.
34158         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
34159         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
34160         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
34161         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
34162         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
34163         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
34164         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
34165         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
34166         * doc/glibc-functions/wcschrnul.texi: Likewise.
34167         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34168         * doc/glibc-functions/wcstod_l.texi: Likewise.
34169         * doc/glibc-functions/wcstof_l.texi: Likewise.
34170         * doc/glibc-functions/wcstol_l.texi: Likewise.
34171         * doc/glibc-functions/wcstold_l.texi: Likewise.
34172         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34173         * doc/glibc-functions/wcstoq.texi: Likewise.
34174         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34175         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34176         * doc/glibc-functions/wcstouq.texi: Likewise.
34177         * doc/glibc-functions/wmempcpy.texi: Likewise.
34178
34179 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
34180             Eric Blake  <ebb9@byu.net>
34181             Paolo Bonzini  <bonzini@gnu.org>
34182             Bruno Haible  <bruno@clisp.org>
34183
34184         Make c-stack work on Haiku.
34185         * lib/c-stack.c (SA_ONSTACK): Define fallback.
34186         (c_stack_action): Use SA_ONSTACK flag.
34187
34188 2008-12-22  Bruno Haible  <bruno@clisp.org>
34189
34190         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
34191
34192 2008-12-22  Bruno Haible  <bruno@clisp.org>
34193
34194         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
34195         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
34196         being overridden.
34197         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
34198         New macros.
34199         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
34200         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
34201         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
34202         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
34203
34204 2008-12-22  Bruno Haible  <bruno@clisp.org>
34205
34206         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
34207         from test code.
34208
34209 2008-12-22  Eric Blake  <ebb9@byu.net>
34210
34211         Avoid gcc warnings on cygwin.
34212         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
34213         Avoid unused variable.
34214         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34215         Likewise.
34216
34217 2008-12-22  Bruno Haible  <bruno@clisp.org>
34218
34219         Remove HAVE_MBRTOWC conditionals.
34220         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34221         (mbscasecmp): Assume mbrtowc function.
34222         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34223         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34224         * lib/mbschr.c: Include mbuiter.h unconditionally.
34225         (mbschr): Assume mbrtowc function.
34226         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34227         (mbscspn): Assume mbrtowc function.
34228         * lib/mbslen.c: Include mbuiter.h unconditionally.
34229         (mbslen): Assume mbrtowc function.
34230         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34231         (mbsncasecmp): Assume mbrtowc function.
34232         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34233         (mbsnlen): Assume mbrtowc function.
34234         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34235         (mbspbrk): Assume mbrtowc function.
34236         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34237         (mbspcasecmp): Assume mbrtowc function.
34238         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34239         (mbsrchr): Assume mbrtowc function.
34240         * lib/mbssep.c: Include mbuiter.h unconditionally.
34241         (mbssep): Assume mbrtowc function.
34242         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34243         (mbsspn): Assume mbrtowc function.
34244         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34245         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34246         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34247         (mbstok_r): Assume mbrtowc function.
34248         * lib/propername.c: Include mbuiter.h unconditionally.
34249         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34250         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34251         (trim2): Assume mbrtowc function.
34252         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34253         (mbsnwidth): Assume mbrtowc function.
34254         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34255         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34256         fallback definitions.
34257         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34258
34259 2008-12-22  Bruno Haible  <bruno@clisp.org>
34260
34261         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34262
34263 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34264
34265         * modules/regex: Request emulations for the mb*/wc* functions we need.
34266         * m4/regex.m4: Don't look for those functions here.
34267         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34268
34269 2008-12-22  Bruno Haible  <bruno@clisp.org>
34270
34271         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34272
34273 2008-12-21  Bruno Haible  <bruno@clisp.org>
34274
34275         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34276         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34277         (Include): Remove conditionalization.
34278         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34279         (Include): Remove conditionalization.
34280         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34281         (Include): Remove conditionalization.
34282         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34283         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34284         * NEWS: Mention the change.
34285         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34286         via Sergey Poznyakoff <gray@gnu.org.ua>.
34287
34288 2008-12-21  Bruno Haible  <bruno@clisp.org>
34289
34290         * MODULES.html.sh (Extended multibyte and wide character utilities
34291         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34292         wcrtomb, wcsrtombs.
34293         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34294         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34295         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34296         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34297
34298 2008-12-21  Bruno Haible  <bruno@clisp.org>
34299
34300         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34301
34302 2008-12-21  Bruno Haible  <bruno@clisp.org>
34303
34304         * modules/wcsnrtombs-tests: New file.
34305         * tests/test-wcsnrtombs1.sh: New file.
34306         * tests/test-wcsnrtombs2.sh: New file.
34307         * tests/test-wcsnrtombs3.sh: New file.
34308         * tests/test-wcsnrtombs4.sh: New file.
34309         * tests/test-wcsnrtombs.c: New file.
34310
34311         New module 'wcsnrtombs'.
34312         * lib/wchar.in.h (wcsnrtombs): New declaration.
34313         * lib/wcsnrtombs.c: New file.
34314         * lib/wcsrtombs-state.c: New file.
34315         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34316         (internal_state): Remove variable.
34317         * m4/wcsnrtombs.m4: New file.
34318         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34319         compilation units.
34320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34321         HAVE_WCSNRTOMBS.
34322         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34323         HAVE_WCSNRTOMBS.
34324         * modules/wcsnrtombs: New file.
34325         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34326         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34327
34328 2008-12-21  Bruno Haible  <bruno@clisp.org>
34329
34330         * modules/wcsrtombs-tests: New file.
34331         * tests/test-wcsrtombs1.sh: New file.
34332         * tests/test-wcsrtombs2.sh: New file.
34333         * tests/test-wcsrtombs3.sh: New file.
34334         * tests/test-wcsrtombs4.sh: New file.
34335         * tests/test-wcsrtombs.c: New file.
34336
34337         New module 'wcsrtombs'.
34338         * lib/wchar.in.h (wcsrtombs): New declaration.
34339         * lib/wcsrtombs.c: New file.
34340         * m4/wcsrtombs.m4: New file.
34341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34342         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34344         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34345         * modules/wcsrtombs: New file.
34346         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34347         bugs.
34348
34349 2008-12-21  Bruno Haible  <bruno@clisp.org>
34350
34351         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34352         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34353         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34354         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34355         if not correct.
34356         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34357         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34358         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34359         m4/locale-zh.m4, m4/codeset.m4.
34360         * doc/posix-functions/wcrtomb.texi: Document the bug.
34361
34362 2008-12-21  Bruno Haible  <bruno@clisp.org>
34363
34364         Work around a btowc() bug on IRIX 6.5.
34365         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34366         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34367         REPLACE_WTOBC if not.
34368         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34369         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34370         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34371
34372 2008-12-21  Bruno Haible  <bruno@clisp.org>
34373
34374         * modules/wcrtomb-tests: New file.
34375         * tests/test-wcrtomb.sh: New file.
34376         * tests/test-wcrtomb.c: New file.
34377
34378         New module 'wcrtomb'.
34379         * lib/wchar.in.h (wcrtomb): New declaration.
34380         * lib/wcrtomb.c: New file.
34381         * m4/wcrtomb.m4: New file.
34382         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34383         HAVE_WCRTOMB.
34384         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34385         HAVE_WCRTOMB.
34386         * modules/wcrtomb: New file.
34387         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34388
34389 2008-12-21  Bruno Haible  <bruno@clisp.org>
34390
34391         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34392         * modules/mbsrtowcs (Files): Likewise.
34393         * modules/wctob (Files): Likewise.
34394         * modules/c-strcase-tests (Files): Likewise.
34395         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34396         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34397         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34398         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34399         * modules/vasnprintf-posix-tests (Files): Likewise.
34400
34401 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34402
34403         gitlog-to-changelog: pass all command-line arguments to git-log
34404         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34405         it is sometimes convenient to filter the commits in various ways.
34406         gitlog-to-changelog only allows --since to specify a start date,
34407         but git-log itself supports many other filtering mechanisms.
34408         At the moment, I want to filter by branch name.  Rather than
34409         adding a --branch option to gitlog-to-changelog, it seems more
34410         flexible to simply pass all options directly to git-log and let
34411         git do the work.  Notice that this effectively makes --since a
34412         redundant option for gitlog-to-changelog, but removing it would
34413         require current usage to change since calls would then require
34414         an additional '--'.
34415
34416 2008-12-21  Bruno Haible  <bruno@clisp.org>
34417
34418         * modules/mbsnrtowcs-tests: New file.
34419         * tests/test-mbsnrtowcs1.sh: New file.
34420         * tests/test-mbsnrtowcs2.sh: New file.
34421         * tests/test-mbsnrtowcs3.sh: New file.
34422         * tests/test-mbsnrtowcs4.sh: New file.
34423         * tests/test-mbsnrtowcs.c: New file.
34424
34425         New module 'mbsnrtowcs'.
34426         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34427         * lib/mbsnrtowcs.c: New file.
34428         * lib/mbsrtowcs-state.c: New file.
34429         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34430         (internal_state): Remove variable.
34431         * m4/mbsnrtowcs.m4: New file.
34432         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34433         compilation units.
34434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34435         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34436         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34437         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34438         * modules/mbsnrtowcs: New file.
34439         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34440         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34441         portability problem.
34442
34443 2008-12-21  Bruno Haible  <bruno@clisp.org>
34444
34445         Work around mbsrtowcs bug.
34446         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34447         (gl_FUNC_MBSRTOWCS): Invoke it.
34448         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34449         m4/locale-zh.m4.
34450         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34451
34452 2008-12-21  Bruno Haible  <bruno@clisp.org>
34453
34454         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34455
34456 2008-12-21  Bruno Haible  <bruno@clisp.org>
34457
34458         Update doc for AIX.
34459         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34460         16-bit wchar_t type.
34461         * doc/posix-functions/btowc.texi: Likewise.
34462         * doc/posix-functions/fgetwc.texi: Likewise.
34463         * doc/posix-functions/fgetws.texi: Likewise.
34464         * doc/posix-functions/fputwc.texi: Likewise.
34465         * doc/posix-functions/fputws.texi: Likewise.
34466         * doc/posix-functions/fwide.texi: Likewise.
34467         * doc/posix-functions/fwprintf.texi: Likewise.
34468         * doc/posix-functions/fwscanf.texi: Likewise.
34469         * doc/posix-functions/getwchar.texi: Likewise.
34470         * doc/posix-functions/getwc.texi: Likewise.
34471         * doc/posix-functions/iswalnum.texi: Likewise.
34472         * doc/posix-functions/iswalpha.texi: Likewise.
34473         * doc/posix-functions/iswblank.texi: Likewise.
34474         * doc/posix-functions/iswcntrl.texi: Likewise.
34475         * doc/posix-functions/iswctype.texi: Likewise.
34476         * doc/posix-functions/iswdigit.texi: Likewise.
34477         * doc/posix-functions/iswgraph.texi: Likewise.
34478         * doc/posix-functions/iswlower.texi: Likewise.
34479         * doc/posix-functions/iswprint.texi: Likewise.
34480         * doc/posix-functions/iswpunct.texi: Likewise.
34481         * doc/posix-functions/iswspace.texi: Likewise.
34482         * doc/posix-functions/iswupper.texi: Likewise.
34483         * doc/posix-functions/iswxdigit.texi: Likewise.
34484         * doc/posix-functions/mbrtowc.texi: Likewise.
34485         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34486         * doc/posix-functions/mbstowcs.texi: Likewise.
34487         * doc/posix-functions/mbtowc.texi: Likewise.
34488         * doc/posix-functions/putwchar.texi: Likewise.
34489         * doc/posix-functions/putwc.texi: Likewise.
34490         * doc/posix-functions/swprintf.texi: Likewise.
34491         * doc/posix-functions/tolower.texi: Likewise.
34492         * doc/posix-functions/toupper.texi: Likewise.
34493         * doc/posix-functions/towctrans.texi: Likewise.
34494         * doc/posix-functions/ungetwc.texi: Likewise.
34495         * doc/posix-functions/vswprintf.texi: Likewise.
34496         * doc/posix-functions/wcrtomb.texi: Likewise.
34497         * doc/posix-functions/wcscat.texi: Likewise.
34498         * doc/posix-functions/wcschr.texi: Likewise.
34499         * doc/posix-functions/wcscmp.texi: Likewise.
34500         * doc/posix-functions/wcscoll.texi: Likewise.
34501         * doc/posix-functions/wcscpy.texi: Likewise.
34502         * doc/posix-functions/wcscspn.texi: Likewise.
34503         * doc/posix-functions/wcsftime.texi: Likewise.
34504         * doc/posix-functions/wcslen.texi: Likewise.
34505         * doc/posix-functions/wcsncat.texi: Likewise.
34506         * doc/posix-functions/wcsncmp.texi: Likewise.
34507         * doc/posix-functions/wcsncpy.texi: Likewise.
34508         * doc/posix-functions/wcspbrk.texi: Likewise.
34509         * doc/posix-functions/wcsrchr.texi: Likewise.
34510         * doc/posix-functions/wcsrtombs.texi: Likewise.
34511         * doc/posix-functions/wcsspn.texi: Likewise.
34512         * doc/posix-functions/wcsstr.texi: Likewise.
34513         * doc/posix-functions/wcstod.texi: Likewise.
34514         * doc/posix-functions/wcstof.texi: Likewise.
34515         * doc/posix-functions/wcstoimax.texi: Likewise.
34516         * doc/posix-functions/wcstok.texi: Likewise.
34517         * doc/posix-functions/wcstold.texi: Likewise.
34518         * doc/posix-functions/wcstoll.texi: Likewise.
34519         * doc/posix-functions/wcstol.texi: Likewise.
34520         * doc/posix-functions/wcstombs.texi: Likewise.
34521         * doc/posix-functions/wcstoull.texi: Likewise.
34522         * doc/posix-functions/wcstoul.texi: Likewise.
34523         * doc/posix-functions/wcstoumax.texi: Likewise.
34524         * doc/posix-functions/wcswidth.texi: Likewise.
34525         * doc/posix-functions/wcsxfrm.texi: Likewise.
34526         * doc/posix-functions/wctob.texi: Likewise.
34527         * doc/posix-functions/wctomb.texi: Likewise.
34528         * doc/posix-functions/wctrans.texi: Likewise.
34529         * doc/posix-functions/wctype.texi: Likewise.
34530         * doc/posix-functions/wcwidth.texi: Likewise.
34531         * doc/posix-functions/wmemchr.texi: Likewise.
34532         * doc/posix-functions/wmemcmp.texi: Likewise.
34533         * doc/posix-functions/wmemcpy.texi: Likewise.
34534         * doc/posix-functions/wmemmove.texi: Likewise.
34535         * doc/posix-functions/wmemset.texi: Likewise.
34536         * doc/posix-functions/wprintf.texi: Likewise.
34537         * doc/posix-functions/wscanf.texi: Likewise.
34538
34539 2008-12-21  Bruno Haible  <bruno@clisp.org>
34540
34541         Update doc for HP-UX 11.11.
34542         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34543         in HP-UX version 11.00, not in all versions of HP-UX 11.
34544         * doc/posix-functions/fwide.texi: Likewise.
34545         * doc/posix-functions/fwprintf.texi: Likewise.
34546         * doc/posix-functions/fwscanf.texi: Likewise.
34547         * doc/posix-functions/inet_ntop.texi: Likewise.
34548         * doc/posix-functions/inet_pton.texi: Likewise.
34549         * doc/posix-functions/mbrlen.texi: Likewise.
34550         * doc/posix-functions/mbrtowc.texi: Likewise.
34551         * doc/posix-functions/mbsinit.texi: Likewise.
34552         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34553         * doc/posix-functions/swprintf.texi: Likewise.
34554         * doc/posix-functions/swscanf.texi: Likewise.
34555         * doc/posix-functions/towctrans.texi: Likewise.
34556         * doc/posix-functions/vfwprintf.texi: Likewise.
34557         * doc/posix-functions/vswprintf.texi: Likewise.
34558         * doc/posix-functions/vwprintf.texi: Likewise.
34559         * doc/posix-functions/wcrtomb.texi: Likewise.
34560         * doc/posix-functions/wcsrtombs.texi: Likewise.
34561         * doc/posix-functions/wcsstr.texi: Likewise.
34562         * doc/posix-functions/wctob.texi: Likewise.
34563         * doc/posix-functions/wctrans.texi: Likewise.
34564         * doc/posix-functions/wmemchr.texi: Likewise.
34565         * doc/posix-functions/wmemcmp.texi: Likewise.
34566         * doc/posix-functions/wmemcpy.texi: Likewise.
34567         * doc/posix-functions/wmemmove.texi: Likewise.
34568         * doc/posix-functions/wmemset.texi: Likewise.
34569         * doc/posix-functions/wprintf.texi: Likewise.
34570         * doc/posix-functions/wscanf.texi: Likewise.
34571
34572 2008-12-21  Bruno Haible  <bruno@clisp.org>
34573
34574         Work around a portability problem.
34575         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34576         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34577
34578 2008-12-20  Bruno Haible  <bruno@clisp.org>
34579
34580         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34581         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34582         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34584         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34585
34586         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34587         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34588         set.
34589         (GNULIB_defined_mbstate_t): New macro.
34590         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34591         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34592         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34593         reuses the system's mbrtowc function but works around the bugs.
34594         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34595         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34596         macros.
34597         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34598         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34599         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34600         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34601         REPLACE_MBSINIT if mbsinit needs to be overridden.
34602         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34603         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34604         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34605         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34606         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34607         m4/locale-zh.m4.
34608         (Depends): Add mbsinit.
34609         * modules/mbsinit (Depends): Add mbrtowc.
34610         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34611
34612 2008-12-20  Bruno Haible  <bruno@clisp.org>
34613
34614         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34615         so that there are no conversion errors on AIX.
34616         * tests/test-mbsrtowcs.c (main): LIkewise.
34617
34618 2008-12-20  Bruno Haible  <bruno@clisp.org>
34619
34620         Work around wctob bug on Solaris <= 9.
34621         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34622         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34624         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34625         * modules/wctob (Files): Add m4/locale-fr.m4.
34626         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34627
34628 2008-12-20  Bruno Haible  <bruno@clisp.org>
34629
34630         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34631         /dev/null.
34632         * tests/test-select-in.sh: Likewise.
34633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34634
34635 2008-12-20  Bruno Haible  <bruno@clisp.org>
34636
34637         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34638         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34639         Cygwin 1.5.x.
34640
34641 2008-12-20  Bruno Haible  <bruno@clisp.org>
34642
34643         Ensure mbstate_t is defined on HP-UX 11.11.
34644         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34645         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34646         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34647         AC_USE_SYSTEM_EXTENSIONS.
34648         * modules/fnmatch (Depends-on): Add extensions.
34649         * modules/mbrlen (Depends-on): Likewise.
34650         * modules/mbrtowc (Depends-on): Likewise.
34651         * modules/mbsinit (Depends-on): Likewise.
34652         * modules/mbsrtowcs (Depends-on): Likewise.
34653         * modules/mbswidth (Depends-on): Likewise.
34654         * modules/quotearg (Depends-on): Likewise.
34655         * modules/strftime (Depends-on): Likewise.
34656
34657 2008-12-20  Bruno Haible  <bruno@clisp.org>
34658
34659         Ensure wctob is declared on IRIX 6.5.
34660         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34661         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34662         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34664         of HAVE_WCTOB.
34665         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34666         HAVE_WCTOB.
34667         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34668
34669 2008-12-19  Bruno Haible  <bruno@clisp.org>
34670
34671         * modules/mbsrtowcs-tests: New file.
34672         * tests/test-mbsrtowcs1.sh: New file.
34673         * tests/test-mbsrtowcs2.sh: New file.
34674         * tests/test-mbsrtowcs3.sh: New file.
34675         * tests/test-mbsrtowcs4.sh: New file.
34676         * tests/test-mbsrtowcs.c: New file.
34677
34678         New module 'mbsrtowcs'.
34679         * lib/wchar.in.h (mbsrtowcs): New declaration.
34680         * lib/mbsrtowcs.c: New file.
34681         * m4/mbsrtowcs.m4: New file.
34682         * modules/mbsrtowcs: New file.
34683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34684         HAVE_MBSRTOWCS.
34685         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34686         HAVE_MBSRTOWCS.
34687         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34688
34689 2008-12-19  Bruno Haible  <bruno@clisp.org>
34690
34691         New module 'mbrlen'.
34692         * lib/wchar.in.h (mbrlen): New declaration.
34693         * lib/mbrlen.c: New file.
34694         * m4/mbrlen.m4: New file.
34695         * modules/mbrlen: New file.
34696         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34697         HAVE_MBRLEN.
34698         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34699         HAVE_MBRLEN.
34700         * doc/posix-functions/mbrlen.texi: Document the new module.
34701
34702 2008-12-19  Bruno Haible  <bruno@clisp.org>
34703
34704         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34705         * modules/mbrtowc (Depends-on): Add verify.
34706         Suggested by Paul Eggert.
34707
34708 2008-12-18  Bruno Haible  <bruno@clisp.org>
34709
34710         * modules/mbsinit-tests: New file.
34711         * tests/test-mbsinit.sh: New file.
34712         * tests/test-mbsinit.c: New file.
34713
34714 2008-12-18  Bruno Haible  <bruno@clisp.org>
34715
34716         * modules/mbrtowc-tests: New file.
34717         * tests/test-mbrtowc1.sh: New file.
34718         * tests/test-mbrtowc2.sh: New file.
34719         * tests/test-mbrtowc3.sh: New file.
34720         * tests/test-mbrtowc4.sh: New file.
34721         * tests/test-mbrtowc.c: New file.
34722
34723         New module 'mbrtowc'.
34724         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34725         mbsinit and mbrtowc.
34726         (mbrtowc): New declaration.
34727         * lib/mbrtowc.c: New file.
34728         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34729         * modules/mbrtowc: New file.
34730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34731         HAVE_MBRTOWC.
34732         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34733         HAVE_MBRTOWC.
34734         * doc/posix-functions/mbrtowc.texi: Document the new module.
34735
34736 2008-12-18  Bruno Haible  <bruno@clisp.org>
34737
34738         New module 'wctob'.
34739         * lib/wchar.in.h (wctob): New declaration.
34740         * lib/wctob.c: New file.
34741         * m4/wctob.m4: New file.
34742         * modules/wctob: New file.
34743         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34744         HAVE_WCTOB.
34745         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34746         * doc/posix-functions/wctob.texi: Document the new module.
34747
34748 2008-12-18  Bruno Haible  <bruno@clisp.org>
34749
34750         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34751         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34752
34753 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34754
34755         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34756         G. Christensen" <tgc@jupiterrise.com>.
34757
34758         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34759         G. Christensen" <tgc@jupiterrise.com>.
34760
34761         * lib/flock.c: Need to include string.h.  Reported by "Tom
34762         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34763         <ebb9@byu.net>.
34764
34765 2008-12-18  Bruno Haible  <bruno@clisp.org>
34766
34767         * m4/locale-ja.m4: New file, from GNU gettext.
34768
34769 2008-12-17  Bruno Haible  <bruno@clisp.org>
34770
34771         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34772         Suggested by Eric Blake.
34773
34774 2008-12-17  Bruno Haible  <bruno@clisp.org>
34775
34776         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34777
34778 2008-12-17  Bruno Haible  <bruno@clisp.org>
34779
34780         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34781         * modules/mbsinit (Depends-on): Add verify.
34782         Suggested by Paul Eggert.
34783
34784 2008-12-17  Bruno Haible  <bruno@clisp.org>
34785
34786         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34787         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34788         gl_FUNC_MBRTOWC.
34789         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34790         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34791         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34792         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34793         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34794         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34795         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34796         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34797         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34798         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34799         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34800         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34801         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34802         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34803         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34804         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34805         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34806         * modules/trim (configure.ac): Likewise.
34807
34808 2008-12-17  Bruno Haible  <bruno@clisp.org>
34809
34810         * modules/btowc-tests: New file.
34811         * tests/test-btowc1.sh: New file.
34812         * tests/test-btowc2.sh: New file.
34813         * tests/test-btowc.c: New file.
34814
34815         New module 'btowc'.
34816         * lib/wchar.in.h (btowc): New declaration.
34817         * lib/btowc.c: New file.
34818         * m4/btowc.m4: New file.
34819         * modules/btowc: New file.
34820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34821         HAVE_BTOWC.
34822         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34823         * doc/posix-functions/btowc.texi: Document the new module.
34824
34825 2008-12-17  Bruno Haible  <bruno@clisp.org>
34826
34827         New module 'mbsinit'.
34828         * lib/wchar.in.h (mbsinit): New declaration.
34829         * lib/mbsinit.c: New file.
34830         * m4/mbsinit.m4: New file.
34831         * modules/mbsinit: New file.
34832         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34833         HAVE_MBSINIT.
34834         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34835         HAVE_MBSINIT.
34836         * doc/posix-functions/mbsinit.texi: Document the new module.
34837
34838 2008-12-16  Bruno Haible  <bruno@clisp.org>
34839
34840         * lib/unistd.in.h: Add comment.
34841         * tests/test-environ.c: Don't include <stdlib.h>.
34842
34843 2008-12-16  Bruno Haible  <bruno@clisp.org>
34844
34845         * lib/parse-duration.h (parse_duration): Document return value
34846         convention.
34847         * lib/parse-duration.c: Include specification header first. Add
34848         comments.
34849         (_): Remove macro.
34850         (parse_year_month_day, parse_hour_minute_second): Move side effects
34851         outside of strchr call.
34852         (parse_non_iso8601): Move side effects outside of isspace call.
34853         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34854         call.
34855
34856 2008-12-16  Bruno Haible  <bruno@clisp.org>
34857
34858         * tests/test-parse-duration.sh: Produce no output when the test
34859         succeeds.
34860
34861 2008-12-16  Bruno Haible  <bruno@clisp.org>
34862
34863         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34864         expressions.
34865
34866 2008-12-15  Bruno Haible  <bruno@clisp.org>
34867
34868         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34869         * doc/glibc-functions/flistxattr.texi: Likewise.
34870         * doc/glibc-functions/fopencookie.texi: Likewise.
34871         * doc/glibc-functions/fremovexattr.texi: Likewise.
34872         * doc/glibc-functions/fsetxattr.texi: Likewise.
34873         * doc/glibc-functions/getxattr.texi: Likewise.
34874         * doc/glibc-functions/lgetxattr.texi: Likewise.
34875         * doc/glibc-functions/listxattr.texi: Likewise.
34876         * doc/glibc-functions/llistxattr.texi: Likewise.
34877         * doc/glibc-functions/lremovexattr.texi: Likewise.
34878         * doc/glibc-functions/lsetxattr.texi: Likewise.
34879         * doc/glibc-functions/removexattr.texi: Likewise.
34880         * doc/glibc-functions/setxattr.texi: Likewise.
34881         * doc/posix-functions/open_memstream.texi: Likewise.
34882
34883 2008-12-15  Eric Blake  <ebb9@byu.net>
34884
34885         Update doc for cygwin 1.7.
34886         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34887         functions.
34888         * doc/posix-functions/fchmodat.texi: Likewise.
34889         * doc/posix-functions/fchownat.texi: Likewise.
34890         * doc/posix-functions/fdopendir.texi: Likewise.
34891         * doc/posix-functions/fmemopen.texi: Likewise.
34892         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34893         * doc/posix-functions/fstatat.texi: Likewise.
34894         * doc/posix-functions/futimens.texi: Likewise.
34895         * doc/posix-functions/gai_strerror.texi: Likewise.
34896         * doc/posix-functions/getaddrinfo.texi: Likewise.
34897         * doc/posix-functions/getnameinfo.texi: Likewise.
34898         * doc/posix-functions/if_freenameindex.texi: Likewise.
34899         * doc/posix-functions/if_indextoname.texi: Likewise.
34900         * doc/posix-functions/if_nameindex.texi: Likewise.
34901         * doc/posix-functions/if_nametoindex.texi: Likewise.
34902         * doc/posix-functions/insque.texi: Likewise.
34903         * doc/posix-functions/linkat.texi: Likewise.
34904         * doc/posix-functions/llrint.texi: Likewise.
34905         * doc/posix-functions/llrintf.texi: Likewise.
34906         * doc/posix-functions/llrintl.texi: Likewise.
34907         * doc/posix-functions/lockf.texi: Likewise.
34908         * doc/posix-functions/lrintl.texi: Likewise.
34909         * doc/posix-functions/mkdirat.texi: Likewise.
34910         * doc/posix-functions/mkfifoat.texi: Likewise.
34911         * doc/posix-functions/mknodat.texi: Likewise.
34912         * doc/posix-functions/mq_close.texi: Likewise.
34913         * doc/posix-functions/mq_getattr.texi: Likewise.
34914         * doc/posix-functions/mq_notify.texi: Likewise.
34915         * doc/posix-functions/mq_open.texi: Likewise.
34916         * doc/posix-functions/mq_receive.texi: Likewise.
34917         * doc/posix-functions/mq_send.texi: Likewise.
34918         * doc/posix-functions/mq_setattr.texi: Likewise.
34919         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34920         * doc/posix-functions/mq_timedsend.texi: Likewise.
34921         * doc/posix-functions/mq_unlink.texi: Likewise.
34922         * doc/posix-functions/open_memstream.texi: Likewise.
34923         * doc/posix-functions/openat.texi: Likewise.
34924         * doc/posix-functions/posix_fadvise.texi: Likewise.
34925         * doc/posix-functions/posix_fallocate.texi: Likewise.
34926         * doc/posix-functions/posix_madvise.texi: Likewise.
34927         * doc/posix-functions/posix_memalign.texi: Likewise.
34928         * doc/posix-functions/posix_openpt.texi: Likewise.
34929         * doc/posix-functions/readlinkat.texi: Likewise.
34930         * doc/posix-functions/remque.texi: Likewise.
34931         * doc/posix-functions/renameat.texi: Likewise.
34932         * doc/posix-functions/rintl.texi: Likewise.
34933         * doc/posix-functions/sem_unlink.texi: Likewise.
34934         * doc/posix-functions/shm_open.texi: Likewise.
34935         * doc/posix-functions/shm_unlink.texi: Likewise.
34936         * doc/posix-functions/signgam.texi: Likewise.
34937         * doc/posix-functions/sigset.texi: Likewise.
34938         * doc/posix-functions/stpcpy.texi: Likewise.
34939         * doc/posix-functions/stpncpy.texi: Likewise.
34940         * doc/posix-functions/strerror.texi: Likewise.
34941         * doc/posix-functions/strtod.texi: Likewise.
34942         * doc/posix-functions/symlinkat.texi: Likewise.
34943         * doc/posix-functions/unlinkat.texi: Likewise.
34944         * doc/posix-functions/utimensat.texi: Likewise.
34945         * doc/glibc-functions/bindresvport.texi: Likewise.
34946         * doc/glibc-functions/dn_expand.texi: Likewise.
34947         * doc/glibc-functions/exp10.texi: Likewise.
34948         * doc/glibc-functions/exp10f.texi: Likewise.
34949         * doc/glibc-functions/fgetxattr.texi: Likewise.
34950         * doc/glibc-functions/flistxattr.texi: Likewise.
34951         * doc/glibc-functions/fopencookie.texi: Likewise.
34952         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34953         * doc/glibc-functions/fremovexattr.texi: Likewise.
34954         * doc/glibc-functions/fsetxattr.texi: Likewise.
34955         * doc/glibc-functions/getifaddrs.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/pow10.texi: Likewise.
34963         * doc/glibc-functions/pow10f.texi: Likewise.
34964         * doc/glibc-functions/rcmd_af.texi: Likewise.
34965         * doc/glibc-functions/removexattr.texi: Likewise.
34966         * doc/glibc-functions/res_init.texi: Likewise.
34967         * doc/glibc-functions/res_mkquery.texi: Likewise.
34968         * doc/glibc-functions/res_query.texi: Likewise.
34969         * doc/glibc-functions/res_querydomain.texi: Likewise.
34970         * doc/glibc-functions/res_send.texi: Likewise.
34971         * doc/glibc-functions/rresvport_af.texi: Likewise.
34972         * doc/glibc-functions/setxattr.texi: Likewise.
34973         * doc/glibc-functions/strcasestr.texi: Likewise.
34974
34975 2008-12-15  Bruno Haible  <bruno@clisp.org>
34976
34977         Fix compilation error on OSF/1 4.0.
34978         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34979         <sys/time.h>, simply delegate to the system header.
34980         Reported by Daniel Richard G. <oss@teragram.com>.
34981
34982 2008-12-15  Bruno Haible  <bruno@clisp.org>
34983
34984         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34985         * doc/posix-functions/fchmodat.texi: Likewise.
34986         * doc/posix-functions/fchownat.texi: Likewise.
34987         * doc/posix-functions/fdopendir.texi: Likewise.
34988         * doc/posix-functions/fstatat.texi: Likewise.
34989         * doc/posix-functions/mkdirat.texi: Likewise.
34990         * doc/posix-functions/unlinkat.texi: Likewise.
34991
34992 2008-12-14  Bruno Haible  <bruno@clisp.org>
34993
34994         Update doc for POSIX:2008.
34995         * doc/posix-functions/faccessat.texi: New file.
34996         * doc/posix-functions/fchmodat.texi: New file.
34997         * doc/posix-functions/fchownat.texi: New file.
34998         * doc/posix-functions/fdopendir.texi: New file.
34999         * doc/posix-functions/fstatat.texi: New file.
35000         * doc/posix-functions/futimens.texi: New file.
35001         * doc/posix-functions/linkat.texi: New file.
35002         * doc/posix-functions/mkdirat.texi: New file.
35003         * doc/posix-functions/mkfifoat.texi: New file.
35004         * doc/posix-functions/mknodat.texi: New file.
35005         * doc/posix-functions/open_wmemstream.texi: New file.
35006         * doc/posix-functions/openat.texi: New file.
35007         * doc/posix-functions/psiginfo.texi: New file.
35008         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
35009         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
35010         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
35011         * doc/posix-functions/readlinkat.texi: New file.
35012         * doc/posix-functions/renameat.texi: New file.
35013         * doc/posix-functions/strerror_l.texi: New file.
35014         * doc/posix-functions/symlinkat.texi: New file.
35015         * doc/posix-functions/unlinkat.texi: New file.
35016         * doc/posix-functions/utimensat.texi: New file.
35017         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35018
35019 2008-12-14  Bruno Haible  <bruno@clisp.org>
35020
35021         Update doc for POSIX:2008.
35022         * doc/posix-functions/alphasort.texi: Renamed from
35023         doc/glibc-functions/alphasort.texi.
35024         * doc/posix-functions/dirfd.texi: Renamed from
35025         doc/glibc-functions/dirfd.texi.
35026         * doc/posix-functions/dprintf.texi: Renamed from
35027         doc/glibc-functions/dprintf.texi.
35028         * doc/posix-functions/duplocale.texi: Renamed from
35029         doc/glibc-functions/duplocale.texi.
35030         * doc/posix-functions/fexecve.texi: Renamed from
35031         doc/glibc-functions/fexecve.texi.
35032         * doc/posix-functions/fmemopen.texi: Renamed from
35033         doc/glibc-functions/fmemopen.texi.
35034         * doc/posix-functions/freelocale.texi: Renamed from
35035         doc/glibc-functions/freelocale.texi.
35036         * doc/posix-functions/getdate_err.texi: Renamed from
35037         doc/glibc-functions/getdate_err.texi.
35038         * doc/posix-functions/isalnum_l.texi: Renamed from
35039         doc/glibc-functions/isalnum_l.texi.
35040         * doc/posix-functions/isalpha_l.texi: Renamed from
35041         doc/glibc-functions/isalpha_l.texi.
35042         * doc/posix-functions/isblank_l.texi: Renamed from
35043         doc/glibc-functions/isblank_l.texi.
35044         * doc/posix-functions/iscntrl_l.texi: Renamed from
35045         doc/glibc-functions/iscntrl_l.texi.
35046         * doc/posix-functions/isdigit_l.texi: Renamed from
35047         doc/glibc-functions/isdigit_l.texi.
35048         * doc/posix-functions/isgraph_l.texi: Renamed from
35049         doc/glibc-functions/isgraph_l.texi.
35050         * doc/posix-functions/islower_l.texi: Renamed from
35051         doc/glibc-functions/islower_l.texi.
35052         * doc/posix-functions/isprint_l.texi: Renamed from
35053         doc/glibc-functions/isprint_l.texi.
35054         * doc/posix-functions/ispunct_l.texi: Renamed from
35055         doc/glibc-functions/ispunct_l.texi.
35056         * doc/posix-functions/isspace_l.texi: Renamed from
35057         doc/glibc-functions/isspace_l.texi.
35058         * doc/posix-functions/isupper_l.texi: Renamed from
35059         doc/glibc-functions/isupper_l.texi.
35060         * doc/posix-functions/iswalnum_l.texi: Renamed from
35061         doc/glibc-functions/iswalnum_l.texi.
35062         * doc/posix-functions/iswalpha_l.texi: Renamed from
35063         doc/glibc-functions/iswalpha_l.texi.
35064         * doc/posix-functions/iswblank_l.texi: Renamed from
35065         doc/glibc-functions/iswblank_l.texi.
35066         * doc/posix-functions/iswcntrl_l.texi: Renamed from
35067         doc/glibc-functions/iswcntrl_l.texi.
35068         * doc/posix-functions/iswctype_l.texi: Renamed from
35069         doc/glibc-functions/iswctype_l.texi.
35070         * doc/posix-functions/iswdigit_l.texi: Renamed from
35071         doc/glibc-functions/iswdigit_l.texi.
35072         * doc/posix-functions/iswgraph_l.texi: Renamed from
35073         doc/glibc-functions/iswgraph_l.texi.
35074         * doc/posix-functions/iswlower_l.texi: Renamed from
35075         doc/glibc-functions/iswlower_l.texi.
35076         * doc/posix-functions/iswprint_l.texi: Renamed from
35077         doc/glibc-functions/iswprint_l.texi.
35078         * doc/posix-functions/iswpunct_l.texi: Renamed from
35079         doc/glibc-functions/iswpunct_l.texi.
35080         * doc/posix-functions/iswspace_l.texi: Renamed from
35081         doc/glibc-functions/iswspace_l.texi.
35082         * doc/posix-functions/iswupper_l.texi: Renamed from
35083         doc/glibc-functions/iswupper_l.texi.
35084         * doc/posix-functions/iswxdigit_l.texi: Renamed from
35085         doc/glibc-functions/iswxdigit_l.texi.
35086         * doc/posix-functions/isxdigit_l.texi: Renamed from
35087         doc/glibc-functions/isxdigit_l.texi.
35088         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
35089         doc/glibc-functions/mbsnrtowcs.texi.
35090         * doc/posix-functions/mkdtemp.texi: Renamed from
35091         doc/glibc-functions/mkdtemp.texi.
35092         * doc/posix-functions/newlocale.texi: Renamed from
35093         doc/glibc-functions/newlocale.texi.
35094         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
35095         doc/glibc-functions/nl_langinfo_l.texi.
35096         * doc/posix-functions/open_memstream.texi: Renamed from
35097         doc/glibc-functions/open_memstream.texi.
35098         * doc/posix-functions/opterr.texi: Renamed from
35099         doc/glibc-functions/opterr.texi.
35100         * doc/posix-functions/optind.texi: Renamed from
35101         doc/glibc-functions/optind.texi.
35102         * doc/posix-functions/optopt.texi: Renamed from
35103         doc/glibc-functions/optopt.texi.
35104         * doc/posix-functions/psignal.texi: Renamed from
35105         doc/glibc-functions/psignal.texi.
35106         * doc/posix-functions/scandir.texi: Renamed from
35107         doc/glibc-functions/scandir.texi.
35108         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
35109         doc/glibc-functions/sched_get_priority_min.texi.
35110         * doc/posix-functions/signgam.texi: Renamed from
35111         doc/glibc-functions/signgam.texi.
35112         * doc/posix-functions/stpcpy.texi: Renamed from
35113         doc/glibc-functions/stpcpy.texi.
35114         * doc/posix-functions/stpncpy.texi: Renamed from
35115         doc/glibc-functions/stpncpy.texi.
35116         * doc/posix-functions/strcasecmp_l.texi: Renamed from
35117         doc/glibc-functions/strcasecmp_l.texi.
35118         * doc/posix-functions/strcoll_l.texi: Renamed from
35119         doc/glibc-functions/strcoll_l.texi.
35120         * doc/posix-functions/strfmon_l.texi: Renamed from
35121         doc/glibc-functions/strfmon_l.texi.
35122         * doc/posix-functions/strftime_l.texi: Renamed from
35123         doc/glibc-functions/strftime_l.texi.
35124         * doc/posix-functions/strncasecmp_l.texi: Renamed from
35125         doc/glibc-functions/strncasecmp_l.texi.
35126         * doc/posix-functions/strndup.texi: Renamed from
35127         doc/glibc-functions/strndup.texi.
35128         * doc/posix-functions/strnlen.texi: Renamed from
35129         doc/glibc-functions/strnlen.texi.
35130         * doc/posix-functions/strsignal.texi: Renamed from
35131         doc/glibc-functions/strsignal.texi.
35132         * doc/posix-functions/strxfrm_l.texi: Renamed from
35133         doc/glibc-functions/strxfrm_l.texi.
35134         * doc/posix-functions/timer_gettime.texi: Renamed from
35135         doc/glibc-functions/timer_gettime.texi.
35136         * doc/posix-functions/tolower_l.texi: Renamed from
35137         doc/glibc-functions/tolower_l.texi.
35138         * doc/posix-functions/toupper_l.texi: Renamed from
35139         doc/glibc-functions/toupper_l.texi.
35140         * doc/posix-functions/towctrans_l.texi: Renamed from
35141         doc/glibc-functions/towctrans_l.texi.
35142         * doc/posix-functions/towlower_l.texi: Renamed from
35143         doc/glibc-functions/towlower_l.texi.
35144         * doc/posix-functions/towupper_l.texi: Renamed from
35145         doc/glibc-functions/towupper_l.texi.
35146         * doc/posix-functions/uselocale.texi: Renamed from
35147         doc/glibc-functions/uselocale.texi.
35148         * doc/posix-functions/vdprintf.texi: Renamed from
35149         doc/glibc-functions/vdprintf.texi.
35150         * doc/posix-functions/wcpcpy.texi:
35151         Renamed from doc/glibc-functions/wcpcpy.texi.
35152         * doc/posix-functions/wcpncpy.texi: Renamed from
35153         doc/glibc-functions/wcpncpy.texi.
35154         * doc/posix-functions/wcscasecmp.texi: Renamed from
35155         doc/glibc-functions/wcscasecmp.texi.
35156         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
35157         doc/glibc-functions/wcscasecmp_l.texi.
35158         * doc/posix-functions/wcscoll_l.texi: Renamed from
35159         doc/glibc-functions/wcscoll_l.texi.
35160         * doc/posix-functions/wcsdup.texi: Renamed from
35161         doc/glibc-functions/wcsdup.texi.
35162         * doc/posix-functions/wcsncasecmp.texi: Renamed from
35163         doc/glibc-functions/wcsncasecmp.texi.
35164         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
35165         doc/glibc-functions/wcsncasecmp_l.texi.
35166         * doc/posix-functions/wcsnlen.texi: Renamed from
35167         doc/glibc-functions/wcsnlen.texi.
35168         * doc/posix-functions/wcsnrtombs.texi: Renamed from
35169         doc/glibc-functions/wcsnrtombs.texi.
35170         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
35171         doc/glibc-functions/wcsxfrm_l.texi.
35172         * doc/posix-functions/wctrans_l.texi: Renamed from
35173         doc/glibc-functions/wctrans_l.texi.
35174         * doc/posix-functions/wctype_l.texi: Renamed from
35175         doc/glibc-functions/wctype_l.texi.
35176         * doc/gnulib.texi (Function Substitutes): Add these subsections.
35177         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
35178         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
35179         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
35180         these subsections.
35181         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
35182         Remove sections.
35183
35184 2008-12-14  Bruno Haible  <bruno@clisp.org>
35185
35186         Update doc for POSIX:2008.
35187         * doc/posix-functions/*.texi: Update URL of POSIX specification.
35188
35189 2008-12-14  Bruno Haible  <bruno@clisp.org>
35190
35191         Update doc for POSIX:2008.
35192         * doc/pastposix-functions/bcmp.texi: Renamed from
35193         doc/posix-functions/bcmp.texi.
35194         * doc/pastposix-functions/bcopy.texi: Renamed from
35195         doc/posix-functions/bcopy.texi.
35196         * doc/pastposix-functions/bsd_signal.texi: Renamed from
35197         doc/posix-functions/bsd_signal.texi.
35198         * doc/pastposix-functions/bzero.texi: Renamed from
35199         doc/posix-functions/bzero.texi.
35200         * doc/pastposix-functions/ecvt.texi: Renamed from
35201         doc/posix-functions/ecvt.texi.
35202         * doc/pastposix-functions/fcvt.texi: Renamed from
35203         doc/posix-functions/fcvt.texi.
35204         * doc/pastposix-functions/ftime.texi: Renamed from
35205         doc/posix-functions/ftime.texi.
35206         * doc/pastposix-functions/gcvt.texi: Renamed from
35207         doc/posix-functions/gcvt.texi.
35208         * doc/pastposix-functions/getcontext.texi: Renamed from
35209         doc/posix-functions/getcontext.texi.
35210         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
35211         doc/posix-functions/gethostbyaddr.texi.
35212         * doc/pastposix-functions/gethostbyname.texi: Renamed from
35213         doc/posix-functions/gethostbyname.texi.
35214         * doc/pastposix-functions/getwd.texi: Renamed from
35215         doc/posix-functions/getwd.texi.
35216         * doc/pastposix-functions/h_errno.texi: Renamed from
35217         doc/posix-functions/h_errno.texi.
35218         * doc/pastposix-functions/index.texi: Renamed from
35219         doc/posix-functions/index.texi.
35220         * doc/pastposix-functions/makecontext.texi: Renamed from
35221         doc/posix-functions/makecontext.texi.
35222         * doc/pastposix-functions/mktemp.texi: Renamed from
35223         doc/posix-functions/mktemp.texi.
35224         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35225         doc/posix-functions/pthread_attr_getstackaddr.texi.
35226         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35227         doc/posix-functions/pthread_attr_setstackaddr.texi.
35228         * doc/pastposix-functions/rindex.texi: Renamed from
35229         doc/posix-functions/rindex.texi.
35230         * doc/pastposix-functions/scalb.texi: Renamed from
35231         doc/posix-functions/scalb.texi.
35232         * doc/pastposix-functions/setcontext.texi: Renamed from
35233         doc/posix-functions/setcontext.texi.
35234         * doc/pastposix-functions/swapcontext.texi: Renamed from
35235         doc/posix-functions/swapcontext.texi.
35236         * doc/pastposix-functions/ualarm.texi: Renamed from
35237         doc/posix-functions/ualarm.texi.
35238         * doc/pastposix-functions/usleep.texi: Renamed from
35239         doc/posix-functions/usleep.texi.
35240         * doc/pastposix-functions/vfork.texi: Renamed from
35241         doc/posix-functions/vfork.texi.
35242         * doc/pastposix-functions/wcswcs.texi: Renamed from
35243         doc/posix-functions/wcswcs.texi.
35244         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35245         (Function Substitutes): Update.
35246
35247 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35248
35249         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35250         m4/strerror.m4.
35251
35252 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35253             Bruno Haible  <bruno@clisp.org>
35254
35255         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35256
35257 2008-12-13  Bruno Haible  <bruno@clisp.org>
35258
35259         * modules/strtoull (Depends-on): Remove unistd.
35260
35261 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35262
35263         * modules/strtoull (Depends-on): Add stdlib.
35264
35265 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35266
35267         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35268
35269 2008-12-10  Jim Meyering  <meyering@redhat.com>
35270
35271         gl_ASSERT: don't say assertions are disabled when they're not
35272         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35273         "checking whether to enable assertions... no", when they are in
35274         fact enabled.  This is solely a bug in the output of configure.
35275         In spite of saying "no", NDEBUG was not defined in that case.
35276         Also, as noted by Eric Blake, leave assertions enabled upon
35277         --enable-assert=INVALID.
35278
35279 2008-12-10  Bruno Haible  <bruno@clisp.org>
35280
35281         Change MODULES.html to refer to POSIX:2008 where possible.
35282         * MODULES.html.sh (POSIX2008_URL): New variable.
35283         (posix_headers): Remove sys/timeb, ucontext.
35284         (posix2001_headers): New variable.
35285         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35286         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35287         index, makecontext, mktemp, pthread_attr_getstackaddr,
35288         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35289         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35290         (posix2001_functions): New variable.
35291         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35292         otherwise.
35293
35294 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35295
35296         add missing include to parse-duration.c
35297         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35298         * modules/parse-duration (Depends-on): Add xalloc.
35299
35300         fix sed script reading maint.mk
35301         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35302         (syntax-check-rules): Use it.
35303
35304 2008-12-09  Bruno Haible  <bruno@clisp.org>
35305
35306         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35307         MacOS X 10.4/PowerPC.
35308         Reported by Simon Josefsson.
35309
35310 2008-12-08  Jim Meyering  <meyering@redhat.com>
35311
35312         work around mingw's lack of some S_IF definitions
35313         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35314         Reported by Simon Josefsson.
35315
35316 2008-12-08  Bruno Haible  <bruno@clisp.org>
35317
35318         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35319         applied to variables. Needed on MacOS X 10.4/PowerPC.
35320         Reported by Simon Josefsson.
35321
35322 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35323         and Eric Blake  <ebb9@byu.net>
35324
35325         assert: honor --enable-assert
35326         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35327         order to honor --enable-assert, rather than treating it as a
35328         synonym for --disable-assert.
35329
35330 2008-12-08  Jim Meyering  <meyering@redhat.com>
35331
35332         * lib/posixtm.c: Remove now-useless declaration of mktime.
35333
35334         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35335
35336 2008-12-07  Bruno Haible  <bruno@clisp.org>
35337
35338         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35339         test_once): Mark functions as static.
35340         * tests/test-tls.c (test_tls): Likewise.
35341
35342 2008-12-07  Bruno Haible  <bruno@clisp.org>
35343
35344         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35345         iconv_register_autodetect.
35346
35347 2008-12-07  Jim Meyering  <meyering@redhat.com>
35348
35349         posixtm.c: avoid a warning
35350         * lib/posixtm.c (posixtime): Don't initialize tm0.
35351         It's no longer needed to placate gcc4's -Wuninitialized,
35352         and the attempt to placate would elicit a new warning.
35353
35354         unicodeio.c: mark unused parameters
35355         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35356         (fallback_failure_callback): Likewise.
35357
35358 2008-12-07  Bruno Haible  <bruno@clisp.org>
35359
35360         * gnulib-tool (func_create_testdir): When building the tests
35361         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35362         Reported by Simon Josefsson.
35363
35364 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35365
35366         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35367
35368 2008-12-06  Bruno Haible  <bruno@clisp.org>
35369
35370         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35371         Suggested by Eric Blake.
35372
35373 2008-12-06  Bruno Haible  <bruno@clisp.org>
35374
35375         Fix a c-stack test failure on MacOS X.
35376         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35377         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35378         handler for SIGBUS as well.
35379         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35380         install a signal handler for SIGBUS as well.
35381         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35382
35383 2008-12-06  Bruno Haible  <bruno@clisp.org>
35384
35385         Advocacy documentation.
35386         * doc/gnulib-intro.texi (Benefits): New section.
35387         * doc/gnulib.texi: Update.
35388
35389 2008-12-06  Bruno Haible  <bruno@clisp.org>
35390
35391         Document the 'manywarnings' module.
35392         * doc/manywarnings.texi: New file.
35393         * doc/gnulib.texi: Include it.
35394
35395 2008-12-05  Eric Blake  <ebb9@byu.net>
35396
35397         tests: silence some gcc warnings
35398         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35399         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35400         type mismatches.
35401
35402 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35403             Bruno Haible  <bruno@clisp.org>
35404
35405         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35406
35407 2008-11-29  Jim Meyering  <meyering@redhat.com>
35408
35409         unicodeio.c: mark unused parameters
35410         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35411         (fallback_failure_callback): Likewise.
35412
35413         fts: fix a thinko
35414         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35415         (set_stat_type): Return S_IF*-valued "type" directly.
35416         Prompted by James Youngman's spotting a related bug.
35417         Confirmed by further testing through find.
35418
35419         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35420         * lib/fts.c (D_TYPE): Define.
35421         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35422         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35423         (s_ifmt_shift_bits): New function.
35424         (set_stat_type): New function.
35425         (fts_build): When not calling fts_stat, call set_stat_type
35426         to propagate dirent.d_type info to fts_read caller.
35427         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35428         fts_statp->st_mode type information may be valid.
35429
35430 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35431
35432         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35433         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35434         <sds@gnu.org>.
35435
35436 2008-11-20  Bruno Haible  <bruno@clisp.org>
35437
35438         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35439         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35440         INCLUDE_NEXT.
35441         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35442         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35443         * modules/math (Makefile.am): Substitute
35444         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35445         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35446
35447 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35448             Bruno Haible  <bruno@clisp.org>
35449
35450         * lib/stdint.in.h: Define all type macros so that their expansion is
35451         a single typedef'ed token. Fixes a compilation failure in Boost which
35452         does "using ::int8_t;".
35453
35454 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35455
35456         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35457         gl_MANYWARN_ALL_GCC.
35458         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35459         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35460         * modules/manywarnings: New file.
35461         * MODULES.html.sh: Mention manywarnings module.
35462
35463 2008-11-18  Bruno Haible  <bruno@clisp.org>
35464
35465         * doc/gnulib-tool.texi (Unit tests): New section.
35466
35467 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35468
35469         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35470         paths like 'lib/po/foo.po'.
35471
35472 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35473
35474         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35475         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35476
35477 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35478
35479         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35480         parameter works.
35481
35482 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35483
35484         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35485
35486 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35487
35488         * modules/parse-duration-tests: New file.
35489         * tests/test-parse-duration.sh: New file.
35490         * tests/test-parse-duration.c: New file.
35491
35492         New module 'parse-duration'.
35493         * lib/parse-duration.h: New file.
35494         * lib/parse-duration.c: New file.
35495         * modules/parse-duration: New file.
35496
35497 2008-11-17  Bruno Haible  <bruno@clisp.org>
35498
35499         * tests/test-select-out.sh: Comment out the first pipe test.
35500         Reported by Simon Josefsson.
35501
35502 2008-11-17  Bruno Haible  <bruno@clisp.org>
35503
35504         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35505         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35506         gl_HOSTENT.
35507
35508 2008-11-17  Bruno Haible  <bruno@clisp.org>
35509
35510         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35511         -lnetwork and -lnet. Needed for Haiku and BeOS.
35512
35513 2008-11-16  Bruno Haible  <bruno@clisp.org>
35514
35515         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35516
35517 2008-11-16  Bruno Haible  <bruno@clisp.org>
35518
35519         Avoid test failure on Haiku.
35520         * tests/test-fsync.c: Include <errno.h>.
35521         (main): Don't require that fsync (0) fails.
35522
35523 2008-11-15  Bruno Haible  <bruno@clisp.org>
35524
35525         New module 'hostent'.
35526         * modules/hostent: New file.
35527         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35528
35529 2008-11-15  Bruno Haible  <bruno@clisp.org>
35530
35531         New module 'servent'.
35532         * modules/servent: New file.
35533         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35534
35535 2008-11-15  Bruno Haible  <bruno@clisp.org>
35536
35537         Avoid generating same test program with two different rules.
35538         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35539         test-frexp to test-frexp-nolibm.
35540         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35541         test-frexpl to test-frexpl-nolibm.
35542
35543 2008-11-15  Bruno Haible  <bruno@clisp.org>
35544
35545         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35546         $(FREXPL_LIBM).
35547
35548 2008-11-15  Bruno Haible  <bruno@clisp.org>
35549
35550         * lib/netdb.in.h: Activate the definitions also when the system's
35551         <netdb.h> has 'struct addrinfo'.
35552         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35553         EAI_OVERFLOW or AI_NUMERICSERV.
35554         * doc/posix-headers/netdb.texi: Document the problem.
35555
35556 2008-11-15  Bruno Haible  <bruno@clisp.org>
35557
35558         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35559
35560         Make the 'sched' module work on platforms where <sched.h> exists but
35561         is incomplete (such as Haiku).
35562         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35563         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35564         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35565         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35566         HAVE_STRUCT_SCHED_PARAM.
35567         * modules/sched (Depends-on): Add include_next.
35568         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35569         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35570         * doc/posix-headers/sched.texi: Document the issue.
35571
35572 2008-11-13  Jim Meyering  <meyering@redhat.com>
35573
35574         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35575         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35576         test would fail due to the difference in the Report bugs to ...
35577         line.  The expected address is empty, "<>", while the actual
35578         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35579
35580 2008-11-12  Bruno Haible  <bruno@clisp.org>
35581
35582         lstat: don't compile lstat.c on systems lacking lstat
35583         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35584         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35585         Reported by Daniel P. Berrange via Jim Meyering.
35586
35587 2008-11-12  Jim Meyering  <meyering@redhat.com>
35588
35589         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35590
35591 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35592
35593         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35594         instead.
35595
35596 2008-11-12  Bruno Haible  <bruno@clisp.org>
35597
35598         * lib/unicodeio.c: Include unistr.h.
35599         (utf8_wctomb): Remove function.
35600         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35601
35602 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35603
35604         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35605         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35606         <bruno@clisp.org>.
35607         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35608
35609 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35610
35611         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35612         * doc/gnulib.texi: Add section for warnings.
35613
35614 2008-11-11  Bruno Haible  <bruno@clisp.org>
35615
35616         * lib/sockets.h: Add a comment.
35617
35618 2008-11-11  Karl Berry  <karl@gnu.org>
35619
35620         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35621
35622 2008-11-11  Eric Blake  <ebb9@byu.net>
35623
35624         fdl.texi: avoid git symlinks
35625         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35626
35627 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35628
35629         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35630
35631 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35632
35633         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35634         (gl_WARN_ADD): Substitute $2 if literal.
35635
35636 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35637
35638         * m4/warning.m4: Remove.
35639
35640 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35641
35642         * m4/warnings.m4: Almost complete rewrite. :-)
35643
35644 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35645
35646         * modules/warnings: New module.
35647         * m4/warnings.m4: New file.
35648         * MODULES.html.sh: Mention warnings module.
35649         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35650         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35651
35652 2008-11-10  Eric Blake  <ebb9@byu.net>
35653
35654         fdl.texi: make a symlink to the latest version
35655         * doc/standards.texi: Revert today's earlier change.
35656         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35657         * doc/fdl.texi: ...and replace this with a symlink to the newer
35658         fdl-1.3.texi.
35659
35660 2008-11-10  Bruno Haible  <bruno@clisp.org>
35661
35662         * tests/test-select-fd.c (main): Accept the result file name as fourth
35663         argument.
35664         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35665         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35666
35667 2008-11-10  Bruno Haible  <bruno@clisp.org>
35668
35669         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35670         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35671         as autoconf-substituted macros.
35672         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35673         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35674         gl_NETDB_H_DEFAULTS. Set these variables.
35675         * modules/netdb (Makefile.am): Substitute these variables.
35676
35677 2008-11-10  Eric Blake  <ebb9@byu.net>
35678
35679         standards.texi: include correct file for FDL 1.3
35680         * doc/standards.texi (GNU Free Documentation License): Change
35681         include file to pull in FDL 1.3, not 1.2.
35682
35683         fdl.texi: revert accidental change to license
35684         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35685
35686 2008-11-10  Bruno Haible  <bruno@clisp.org>
35687
35688         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35689         cross-compiling guesses also when the native compile gives no result.
35690
35691 2008-11-10  Bruno Haible  <bruno@clisp.org>
35692
35693         * lib/spawni.c (__spawni): Force variable into the stack.
35694
35695 2008-11-10  Bruno Haible  <bruno@clisp.org>
35696
35697         Add support for Haiku.
35698         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35699         glibc and BeOS, but also on Haiku.
35700         * lib/fpurge.c (fpurge): Likewise.
35701         * lib/freadable.c (freadable): Likewise.
35702         * lib/freadahead.c (freadahead): Likewise.
35703         * lib/freading.c (freading): Likewise.
35704         * lib/freadptr.c (freadptr): Likewise.
35705         * lib/freadseek.c (freadptrinc): Likewise.
35706         * lib/fseeko.c (rpl_fseeko): Likewise.
35707         * lib/fseterr.c (fseterr): Likewise.
35708         * lib/fwritable.c (fwritable): Likewise.
35709         * lib/fwriting.c (fwriting): Likewise.
35710         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35711
35712 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35713
35714         * lib/config.charset: Treat Haiku like BeOS.
35715
35716 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35717
35718         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35719         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35720
35721 2008-11-08  Bruno Haible  <bruno@clisp.org>
35722
35723         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35724         AC_CACHE_CHECK.
35725
35726 2008-11-08  Bruno Haible  <bruno@clisp.org>
35727
35728         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35729
35730 2008-11-08  Bruno Haible  <bruno@clisp.org>
35731
35732         * tests/test-select-fd.c: New file.
35733         * tests/test-select-in.sh: New file.
35734         * tests/test-select-out.sh: New file.
35735         * tests/test-select-stdin.c: New file.
35736         * modules/select-tests (Files): Add the new files.
35737         (Depends-on): Add gettimeofday.
35738         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35739         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35740         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35741
35742 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35743             Bruno Haible  <bruno@clisp.org>
35744
35745         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35746
35747 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35748
35749         * build-aux/pmccabe2html: Added support for C++ source files.
35750
35751 2008-11-05  Ben Pfaff  <blp@gnu.org>
35752
35753         Fix lib/close.c build on Windows.
35754         * modules/close (Files): Add lib/w32sock.h.
35755
35756 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35757
35758         Accept Bison's NEWS format.
35759         * build-aux/announce-gen (print_news_deltas): Tweak
35760         $re_prefix.
35761
35762 2008-11-04  Bruno Haible  <bruno@clisp.org>
35763
35764         * modules/random_r (Maintainer): Add glibc.
35765
35766 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35767
35768         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35769         by karl@freefriends.org (Karl Berry).
35770         * doc/alloca.texi: Likewise.
35771         * doc/c-ctype.texi: Likewise.
35772         * doc/c-strcase.texi: Likewise.
35773         * doc/c-strcaseeq.texi: Likewise.
35774         * doc/c-strcasestr.texi: Likewise.
35775         * doc/c-strstr.texi: Likewise.
35776         * doc/c-strtod.texi: Likewise.
35777         * doc/c-strtold.texi: Likewise.
35778         * doc/ctime.texi: Likewise.
35779         * doc/error.texi: Likewise.
35780         * doc/fdl.texi: Likewise.
35781         * doc/gcd.texi: Likewise.
35782         * doc/getdate.texi: Likewise.
35783         * doc/gnulib-intro.texi: Likewise.
35784         * doc/gnulib-tool.texi: Likewise.
35785         * doc/gnulib.texi: Likewise.
35786         * doc/inet_ntoa.texi: Likewise.
35787         * doc/maintain.texi: Likewise.
35788         * doc/make-stds.texi: Likewise.
35789         * doc/quote.texi: Likewise.
35790         * doc/regexprops-generic.texi: Likewise.
35791         * doc/standards.texi: Likewise.
35792         * doc/verify.texi: Likewise.
35793         * doc/visibility.texi: Likewise.
35794         * doc/gnulib.texi (GNU Free Documentation License): Include
35795         fdl-1.3.texi instead of fdl.texi.
35796
35797 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35798
35799         * doc/fdl-1.3.texi: New file, from
35800         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35801         * modules/fdl-1.3: Add.
35802         * MODULES.html.sh: Add fdl-1.3.
35803
35804 2008-11-03  Bruno Haible  <bruno@clisp.org>
35805
35806         Make determination of absolute name of header file work with AIX xlc.
35807         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35808         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35809         preprocessing.
35810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35811         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35812
35813 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35814
35815         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35816         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35817         <ludo@gnu.org>.
35818
35819 2008-11-02  Bruno Haible  <bruno@clisp.org>
35820
35821         Mark 'strpbrk' obsolete.
35822         * modules/strpbrk (Status, Notice): New sections.
35823         * modules/strtok_r (Depends-on): Add strpbrk.
35824
35825 2008-11-02  Bruno Haible  <bruno@clisp.org>
35826
35827         Mark 'strdup' obsolete.
35828         * modules/strdup (Status, Notice): New sections.
35829         * modules/findprog (Depends-on): Add strdup.
35830         * modules/getaddrinfo (Depends-on): Likewise.
35831         * modules/localename (Depends-on): Likewise.
35832         * modules/relocatable-lib (Depends-on): Likewise.
35833         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35834         * modules/relocatable-prog (Depends-on): Likewise.
35835         * modules/trim (Depends-on): Likewise.
35836         * modules/unictype/gen-ctype (Depends-on): Likewise.
35837         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35838
35839 2008-11-02  Bruno Haible  <bruno@clisp.org>
35840
35841         Mark 'strcspn' obsolete.
35842         * modules/strcspn (Status, Notice): New sections.
35843
35844 2008-11-02  Bruno Haible  <bruno@clisp.org>
35845
35846         Mark 'rmdir' obsolete.
35847         * modules/rmdir (Status, Notice): New sections.
35848         * modules/clean-temp (Depends-on): Add rmdir.
35849         * modules/openat (Depends-on): Likewise.
35850
35851 2008-11-02  Bruno Haible  <bruno@clisp.org>
35852
35853         Mark 'raise' obsolete.
35854         * modules/raise (Status, Notice): New sections.
35855         (Include): Specify <signal.h>.
35856         * modules/stdio (Depends-on): Add raise.
35857         * modules/write (Depends-on): Likewise.
35858
35859 2008-11-02  Bruno Haible  <bruno@clisp.org>
35860
35861         Mark 'memset' obsolete.
35862         * modules/memset (Status, Notice): New sections.
35863
35864 2008-11-02  Bruno Haible  <bruno@clisp.org>
35865
35866         Mark 'memmove' obsolete.
35867         * modules/memmove (Status, Notice): New sections.
35868         * modules/argp (Depends-on): Add memmove.
35869         * modules/argz (Depends-on): Likewise.
35870         * modules/canonicalize (Depends-on): Likewise.
35871         * modules/canonicalize-lgpl (Depends-on): Likewise.
35872         * modules/fts (Depends-on): Likewise.
35873         * modules/getcwd (Depends-on): Likewise.
35874         * modules/human (Depends-on): Likewise.
35875         * modules/regex (Depends-on): Likewise.
35876         * modules/striconveh (Depends-on): Likewise.
35877         * modules/trim (Depends-on): Likewise.
35878         * modules/unistr/u8-move (Depends-on): Likewise.
35879         * modules/unistr/u16-move (Depends-on): Likewise.
35880         * modules/unistr/u32-move (Depends-on): Likewise.
35881
35882 2008-11-02  Bruno Haible  <bruno@clisp.org>
35883
35884         Mark 'memcpy' obsolete.
35885         * modules/memcpy (Status, Notice): New sections.
35886
35887 2008-11-02  Bruno Haible  <bruno@clisp.org>
35888
35889         Mark 'memcmp' obsolete.
35890         * modules/memcmp (Status, Notice): New sections.
35891         * modules/argmatch (Depends-on): Add memchr.
35892         * modules/backupfile (Depends-on): Likewise.
35893         * modules/c-strcasestr (Depends-on): Likewise.
35894         * modules/crypto/des (Depends-on): Likewise.
35895         * modules/csharpcomp (Depends-on): Likewise.
35896         * modules/fnmatch (Depends-on): Likewise.
35897         * modules/git-merge-changelog (Depends-on): Likewise.
35898         * modules/isnand (Depends-on): Likewise.
35899         * modules/isnand-nolibm (Depends-on): Likewise.
35900         * modules/isnanf (Depends-on): Likewise.
35901         * modules/isnanf-nolibm (Depends-on): Likewise.
35902         * modules/isnanl (Depends-on): Likewise.
35903         * modules/isnanl-nolibm (Depends-on): Likewise.
35904         * modules/mbchar (Depends-on): Likewise.
35905         * modules/memcoll (Depends-on): Likewise.
35906         * modules/quotearg (Depends-on): Likewise.
35907         * modules/regex (Depends-on): Likewise.
35908         * modules/relocatable-prog (Depends-on): Likewise.
35909         * modules/same (Depends-on): Likewise.
35910         * modules/signbit (Depends-on): Likewise.
35911         * modules/strcasestr-simple (Depends-on): Likewise.
35912         * modules/unictype/gen-ctype (Depends-on): Likewise.
35913         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35914         * modules/uniname/uniname (Depends-on): Likewise.
35915         * modules/unistr/u8-cmp (Depends-on): Likewise.
35916
35917 2008-11-02  Bruno Haible  <bruno@clisp.org>
35918
35919         Mark 'memchr' obsolete.
35920         * modules/memchr (Status, Notice): New sections.
35921         * modules/argp (Depends-on): Add memchr.
35922         * modules/base64 (Depends-on): Likewise.
35923         * modules/c-strcasestr (Depends-on): Likewise.
35924         * modules/chdir-long (Depends-on): Likewise.
35925         * modules/fnmatch (Depends-on): Likewise.
35926         * modules/getsubopt (Depends-on): Likewise.
35927         * modules/git-merge-changelog (Depends-on): Likewise.
35928         * modules/glob (Depends-on): Likewise.
35929         * modules/strcasestr-simple (Depends-on): Likewise.
35930         * modules/strnlen (Depends-on): Likewise.
35931
35932 2008-11-02  Bruno Haible  <bruno@clisp.org>
35933
35934         Mark 'atexit' obsolete.
35935         * modules/atexit (Status, Notice): New sections.
35936         * modules/chdir-long (Depends-on): Add atexit.
35937         * modules/wait-process (Depends-on): Likewise.
35938
35939 2008-11-02  Bruno Haible  <bruno@clisp.org>
35940
35941         * gnulib-tool: New option --with-obsolete.
35942         (func_usage): Document it.
35943         (func_modules_transitive_closure): Drop obsolete dependencies if
35944         incobsolete is not true.
35945         (func_import): Read and save the incobsolete variable to the cache.
35946
35947 2008-11-02  Bruno Haible  <bruno@clisp.org>
35948
35949         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35950         * gnulib-tool: New option --extract-status.
35951         (func_usage): Document it.
35952         (sed_extract_prog): Recognize it.
35953         (func_get_status): New function.
35954
35955 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35956
35957         * modules/sockets (License): Change from LGPL to LGPLv2+.
35958
35959 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35960
35961         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35962
35963 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35964
35965         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35966         Mention times and sys_times.
35967         * modules/sys_times, modules/sys_times-tests: New modules.
35968         * modules/times, modules/times-tests: Likewise
35969         * m4/sys_times_h.m4: New file.
35970         * lib/sys_times.in.h: Likewise
35971         * lib/times.c: Likewise.
35972         * tests/test-sys_times.c: Likewise.
35973         * tests/test-times.c: Likewise.
35974         * doc/posix-headers/sys_times.texi: Update.
35975         * doc/posix-functions/times.texi: Update.
35976
35977 2008-10-28  Jim Meyering  <meyering@redhat.com>
35978
35979         * modules/tempname (Depends-on): Add lstat.
35980
35981         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35982
35983 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35984
35985         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35986         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35987         using idiom used elsewhere in gnulib.
35988
35989 2008-10-27  Jim Meyering  <meyering@redhat.com>
35990
35991         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35992
35993 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35994
35995         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35996         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35997         programs.
35998         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35999
36000 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36001
36002         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
36003
36004 2008-10-27  Bruno Haible  <bruno@clisp.org>
36005
36006         * tests/test-lstat.c: Include <stdio.h>.
36007
36008 2008-10-27  Simon Josefsson  <simon@josefsson.org>
36009
36010         * modules/lstat-tests: New module.
36011         * tests/test-lstat.c: New file.
36012
36013 2008-10-26  Jim Meyering  <meyering@redhat.com>
36014
36015         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
36016
36017 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36018             Bruno Haible  <bruno@clisp.org>
36019
36020         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
36021         * modules/configmake (Include): Add a note that the include must come
36022         after all system headers.
36023         * lib/javaversion.c: Include configmake.h after all other includes.
36024
36025 2008-10-26  Bruno Haible  <bruno@clisp.org>
36026
36027         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
36028         HAVE_STRUCT_RANDOM_DATA to 1.
36029         (gl_STDLIB_H): Simplify.
36030
36031 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36032
36033         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
36034         substitute HAVE_STRUCT_RANDOM_DATA.
36035         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
36036         random_data.
36037         * modules/stdlib (Makefile.am): Substitute
36038         HAVE_STRUCT_RANDOM_DATA.
36039
36040 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36041
36042         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
36043         * doc/gnulib-intro.texi (Copyright): Likewise.
36044
36045 2008-10-26  Simon Josefsson  <simon@josefsson.org>
36046
36047         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
36048         findings.
36049
36050 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
36051             Bruno Haible  <bruno@clisp.org>
36052
36053         * lib/unistd.in.h: Include <winsock2.h>.
36054         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
36055         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
36056         Provide dummy declarations.
36057         (gethostname): Override.
36058         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
36059         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
36060         gl_PREREQ_SYS_H_WINSOCK2.
36061         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
36062         * doc/posix-functions/gethostname.texi: More details.
36063
36064 2008-10-25  Bruno Haible  <bruno@clisp.org>
36065
36066         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36067         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
36068         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
36069
36070         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
36071         here ...
36072         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
36073         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
36074         gl_UNISTD_H_DEFAULTS.
36075
36076 2008-10-25  Eric Blake  <ebb9@byu.net>
36077
36078         signbit: avoid spurious compiler failure
36079         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
36080         declarations inside function.
36081
36082 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36083             Bruno Haible  <bruno@clisp.org>
36084
36085         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
36086         * modules/random_r (Depends-on): Add stdint.
36087
36088 2008-10-24  Bruno Haible  <bruno@clisp.org>
36089
36090         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
36091         Eggert.
36092         * modules/strerror (License): Likewise.
36093
36094 2008-10-24  Jim Meyering  <meyering@redhat.com>
36095
36096         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
36097         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
36098
36099 2008-10-24  Eric Blake  <ebb9@byu.net>
36100
36101         getgroups: fix compilation when getgroups is available
36102         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
36103         but with <config.h> override of getgroups disabled.
36104
36105 2008-10-24  Simon Josefsson  <simon@josefsson.org>
36106
36107         * doc/gnulib.texi (Header files): Add note about C++ problems.
36108         Explained by Bruno Haible <bruno@clisp.org>.
36109
36110 2008-10-23  Bruno Haible  <bruno@clisp.org>
36111
36112         Define a dummy SA_NODEFER macro on Interix.
36113         * lib/signal.in.h (SA_NODEFER): Define fallback.
36114         Reported by Aleksey Cheusov <cheusov@tut.by> via
36115         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
36116
36117 2008-10-23  Bruno Haible  <bruno@clisp.org>
36118
36119         * modules/freadahead (License): Change to LGPLv2+.
36120         Suggested by Simon Josefsson.
36121
36122 2008-10-23  Jim Meyering  <meyering@redhat.com>
36123
36124         random_r: new module
36125         * modules/random_r: New file.
36126         * m4/random_r.m4: New file.
36127         * lib/random_r.c: New file, from glibc.
36128         * modules/random_r-tests: New file.
36129         * tests/test-random_r.c: New file.
36130         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
36131          Declare.
36132         (RAND_MAX): Define.
36133         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
36134         * modules/stdlib: Substitute them, too.
36135         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
36136         * doc/glibc-functions/initstate_r.texi: Mention the new module.
36137         * doc/glibc-functions/random_r.texi: Likewise.
36138         * doc/glibc-functions/setstate_r.texi: Likewise.
36139         * doc/glibc-functions/srandom_r.texi: Likewise.
36140         * config/srclist.txt: Mention it.
36141
36142 2008-10-23  David Lutterkort  <lutter@redhat.com>
36143
36144         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
36145         link requirement
36146
36147 2008-10-23  Jim Meyering  <meyering@redhat.com>
36148
36149         selinux-h: mark parameters of stub functions as intentionally unused
36150         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
36151         * lib/se-context.in.h: Likewise.
36152
36153 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36154
36155         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
36156
36157 2008-10-22  Simon Josefsson  <simon@josefsson.org>
36158
36159         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
36160
36161 2008-10-22  Eric Blake  <ebb9@byu.net>
36162
36163         glthread/thread: avoid compiler warning
36164         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
36165         Add unreachable abort to silence compiler.
36166
36167 2008-10-22  Eric Blake  <ebb9@byu.net>
36168
36169         netdb: also supply struct addrinfo for cygwin 1.5.x
36170         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
36171         older cygwin.
36172         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
36173         cygwin.
36174         * doc/posix-headers/netdb.texi (netdb.h): Document this.
36175
36176 2008-10-22  Bruno Haible  <bruno@clisp.org>
36177
36178         * users.txt: Update entry about pspp.
36179
36180 2008-10-21  Bruno Haible  <bruno@clisp.org>
36181
36182         Simplification.
36183         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
36184         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
36185
36186         Simplification.
36187         * lib/ioctl.c (ioctl): Don't undefine.
36188         * lib/socket.c (socket): Don't undefine.
36189
36190         Remove unused module indicator macros.
36191         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
36192         GNULIB_$1 as a C macro.
36193
36194         * doc/posix-functions/close.texi: Undo last change.
36195         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
36196         Windows platforms.
36197
36198 2008-10-21  Bruno Haible  <bruno@clisp.org>
36199
36200         Add gethostname() declaration to <unistd.h>.
36201         * lib/unistd.in.h (gethostname): New declaration.
36202         * lib/gethostname.c: Include <unistd.h>.
36203         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
36204         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
36205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
36206         and HAVE_GETHOSTNAME.
36207         * modules/gethostname (Depends-on): Add unistd.
36208         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36209         (Include): Specify <unistd.h>.
36210         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
36211         HAVE_GETHOSTNAME.
36212         * tests/test-gethostname.c: Include <unistd.h> first.
36213
36214 2008-10-21  Bruno Haible  <bruno@clisp.org>
36215
36216         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36217         * modules/select-tests (Depends-on): Likewise.
36218         Reported by Simon Josefsson.
36219
36220 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36221
36222         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36223         * lib/accept.c: New file, based on winsock.c.
36224         * lib/bind.c: New file, based on winsock.c.
36225         * lib/connect.c: New file, based on winsock.c.
36226         * lib/getpeername.c: New file, based on winsock.c.
36227         * lib/getsockname.c: New file, based on winsock.c.
36228         * lib/getsockopt.c: New file, based on winsock.c.
36229         * lib/ioctl.c: New file, based on winsock.c.
36230         * lib/listen.c: New file, based on winsock.c.
36231         * lib/recv.c: New file, based on winsock.c.
36232         * lib/recvfrom.c: New file, based on winsock.c.
36233         * lib/send.c: New file, based on winsock.c.
36234         * lib/sendto.c: New file, based on winsock.c.
36235         * lib/setsockopt.c: New file, based on winsock.c.
36236         * lib/shutdown.c: New file, based on winsock.c.
36237         * lib/socket.c: New file, based on winsock.c.
36238         * lib/w32sock.h: New file, based on winsock.c.
36239         * lib/winsock.c: Remove file.
36240         * modules/accept: Likewise.
36241         * modules/bind: Likewise.
36242         * modules/connect: Likewise.
36243         * modules/getpeername: Likewise.
36244         * modules/getsockname: Likewise.
36245         * modules/getsockopt: Likewise.
36246         * modules/ioctl: Likewise.
36247         * modules/listen: Likewise.
36248         * modules/recv: Likewise.
36249         * modules/recvfrom: Likewise.
36250         * modules/send: Likewise.
36251         * modules/sendto: Likewise.
36252         * modules/setsockopt: Likewise.
36253         * modules/shutdown: Likewise.
36254         * modules/socket: Use socket.c instead of winsock.c.
36255         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36256         * doc/posix-functions/accept.texi: Doc fix.
36257         * doc/posix-functions/bind.texi: Doc fix.
36258         * doc/posix-functions/close.texi: Doc fix.
36259         * doc/posix-functions/connect.texi: Doc fix.
36260         * doc/posix-functions/getpeername.texi: Doc fix.
36261         * doc/posix-functions/getsockname.texi: Doc fix.
36262         * doc/posix-functions/getsockopt.texi: Doc fix.
36263         * doc/posix-functions/ioctl.texi: Doc fix.
36264         * doc/posix-functions/listen.texi: Doc fix.
36265         * doc/posix-functions/recv.texi: Doc fix.
36266         * doc/posix-functions/recvfrom.texi: Doc fix.
36267         * doc/posix-functions/send.texi: Doc fix.
36268         * doc/posix-functions/sendto.texi: Doc fix.
36269         * doc/posix-functions/setsockopt.texi: Doc fix.
36270         * doc/posix-functions/shutdown.texi: Doc fix.
36271         * doc/posix-functions/socket.texi: Doc fix.
36272
36273 2008-10-20  Bruno Haible  <bruno@clisp.org>
36274
36275         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36276         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36277         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36278         as an alias for SIGABRT.
36279         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36280         (sigaction): Map it to SIGABRT.
36281         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36282
36283 2008-10-20  Bruno Haible  <bruno@clisp.org>
36284
36285         * lib/fts.c: Don't include lstat.h.
36286         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36287
36288         Move the lstat() declaration to <sys/stat.h>.
36289         * lib/lstat.h: Remove file.
36290         * lib/sys_stat.in.h: Add special invocation convention.
36291         (lstat): New declaration.
36292         * lib/lstat.c (orig_lstat): New function.
36293         (rpl_lstat): Use orig_lstat instead of lstat.
36294         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36295         AC_C_INLINE. Set REPLACE_LSTAT.
36296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36297         and REPLACE_LSTAT.
36298         * modules/lstat (Files): Remove lib/lstat.h.
36299         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36300         (Include): Specify <sys/stat.h> instead of lstat.h.
36301         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36302         REPLACE_LSTAT.
36303         * NEWS: Mention the change.
36304
36305 2008-10-20  Bruno Haible  <bruno@clisp.org>
36306
36307         * modules/posix_spawn-tests: New file.
36308         * tests/test-posix_spawn3.c: New file.
36309
36310 2008-10-20  Bruno Haible  <bruno@clisp.org>
36311
36312         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36313         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36314         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36315         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36316         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36317
36318 2008-10-20  Bruno Haible  <bruno@clisp.org>
36319
36320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36321         of posix_spawn on AIX 5.3.
36322
36323 2008-10-20  Bruno Haible  <bruno@clisp.org>
36324
36325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36326
36327 2008-10-20  Bruno Haible  <bruno@clisp.org>
36328
36329         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36330         of AC_LANG_PROGRAM.
36331
36332 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36333
36334         * lib/netdb.in.h: Don't define GNU specific constants until they
36335         are supported or needed.  Reported by Bruno Haible
36336         <bruno@clisp.org>.
36337
36338 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36339
36340         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36341
36342 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36343
36344         * lib/getaddrinfo.h: Remove file.
36345         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36346         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36347         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36348         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36349         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36350         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36351         * tests/test-getaddrinfo.c: Likewise.
36352         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36353         * NEWS: Mention change.
36354
36355 2008-10-19  Bruno Haible  <bruno@clisp.org>
36356
36357         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36358
36359 2008-10-19  Bruno Haible  <bruno@clisp.org>
36360
36361         * lib/wait-process.c: Include simply <sys/wait.h>.
36362         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36363         WIFSTOPPED): Remove fallback definitions.
36364         * modules/wait-process (Depends-on): Add sys_wait.
36365
36366         New module 'sys_wait'.
36367         * modules/sys_wait: New file.
36368         * lib/sys_wait.in.h: New file, partially copied from
36369         lib/wait-process.c.
36370         * m4/sys_wait_h.m4: New file.
36371         * doc/posix-headers/sys_wait.texi: Mention the new module.
36372
36373 2008-10-19  Bruno Haible  <bruno@clisp.org>
36374
36375         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36376
36377 2008-10-19  Bruno Haible  <bruno@clisp.org>
36378
36379         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36380         * lib/wait-process.c (WAIT_T): Remove type.
36381         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36382         (wait_subprocess): Update.
36383
36384 2008-10-19  Bruno Haible  <bruno@clisp.org>
36385
36386         New module 'atoll'.
36387         * modules/atoll: New file.
36388         * lib/stdlib.in.h (atoll): New declaration.
36389         * lib/atoll.c: New file, from glibc with modifications.
36390         * m4/atoll.m4: New file.
36391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36392         HAVE_ATOLL.
36393         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36394         * doc/posix-functions/atoll.texi: Mention the new module.
36395
36396 2008-10-19  Bruno Haible  <bruno@clisp.org>
36397
36398         Add strtoull() declaration to <stdlib.h>.
36399         * lib/stdlib.in.h (strtoull): New declaration.
36400         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36401         Set HAVE_STRTOULL.
36402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36403         HAVE_STRTOULL.
36404         * modules/strtoull (Depends-on): Add stdlib.
36405         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36406         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36407         HAVE_STRTOULL.
36408
36409 2008-10-19  Bruno Haible  <bruno@clisp.org>
36410
36411         Add strtoll() declaration to <stdlib.h>.
36412         * lib/stdlib.in.h (strtoll): New declaration.
36413         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36414         Set HAVE_STRTOLL.
36415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36416         HAVE_STRTOLL.
36417         * modules/strtoll (Depends-on): Add stdlib.
36418         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36419         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36420
36421 2008-10-19  Bruno Haible  <bruno@clisp.org>
36422
36423         * modules/bcopy (Depends-on): Add strings.
36424         (Include): Specify <strings.h>.
36425
36426 2008-10-19  Bruno Haible  <bruno@clisp.org>
36427
36428         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36429
36430 2008-10-19  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36433         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36434         mingw.
36435
36436 2008-10-19  Bruno Haible  <bruno@clisp.org>
36437
36438         * lib/atanl.c: Don't include isnanl.h.
36439         * lib/cosl.c: Likewise.
36440         * lib/ldexpl.c: Likewise.
36441         * lib/logl.c: Likewise.
36442         * lib/sinl.c: Likewise.
36443         * lib/sqrtl.c: Likewise.
36444         * lib/tanl.c: Likewise.
36445
36446         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36447         * lib/isnanf.h: Remove file.
36448         * lib/isnand.h: Remove file.
36449         * lib/isnanl.h: Remove file.
36450         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36451         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36452         macros.
36453         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36454         HAVE_ISNANF, don't define it as a C macro.
36455         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36456         HAVE_ISNAND, don't define it as a C macro.
36457         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36458         HAVE_ISNANL, don't define it as a C macro.
36459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36460         HAVE_ISNAN[FDL].
36461         * modules/isnanf (Files): Remove lib/isnanf.h.
36462         (Depends-on): Add math.
36463         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36464         (Include): Specify <math.h> instead of isnanf.h.
36465         * modules/isnand (Files): Remove lib/isnand.h.
36466         (Depends-on): Add math.
36467         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36468         (Include): Specify <math.h> instead of isnand.h.
36469         * modules/isnanl (Files): Remove lib/isnanl.h.
36470         (Depends-on): Add math.
36471         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36472         (Include): Specify <math.h> instead of isnanl.h.
36473         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36474         HAVE_ISNAN[FDL].
36475         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36476         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36477         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36478         * NEWS: Mention the change.
36479
36480 2008-10-18  Bruno Haible  <bruno@clisp.org>
36481
36482         Add getusershell(), setusershell(), endusershell() declarations to
36483         <unistd.h>.
36484         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36485         declarations.
36486         * lib/getusershell.c: Include unistd.h.
36487         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36488         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36489         HAVE_GETUSERSHELL.
36490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36491         and HAVE_GETUSERSHELL.
36492         * modules/getusershell (Depends-on): Add unistd, extensions.
36493         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36494         (Include): Specify <unistd.h>.
36495         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36496         HAVE_GETUSERSHELL.
36497
36498 2008-10-18  Bruno Haible  <bruno@clisp.org>
36499
36500         Add a getloadavg() declaration to <stdlib.h>.
36501         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36502         getloadavg declaration.
36503         (getloadavg): New declaration.
36504         * lib/getloadavg.c: Include <stdlib.h> first.
36505         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36506         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36507         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36509         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36510         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36511         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36512         (Include): Specify <stdlib.h>.
36513         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36514         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36515
36516 2008-10-18  Bruno Haible  <bruno@clisp.org>
36517
36518         * lib/dirchownmod.c: Don't include lchmod.h.
36519
36520         Move the lchmod() declaration to <sys/stat.h>.
36521         * lib/lchmod.h: Remove file.
36522         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36523         (lchmod): New declaration, moved here from lib/lchown.h.
36524         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36525         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36526         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36527         and HAVE_LCHMOD.
36528         * modules/lchmod (Files): Remove lib/lchmod.h.
36529         (Depends-on): Add sys_stat, extensions.
36530         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36531         (Include): Specify <sys/stat.h> instead of lchmod.h.
36532         * modules/sys_stat (Depends-on): Add link-warning.
36533         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36534         definition of GL_LINK_WARNING.
36535         * NEWS: Mention the change.
36536
36537 2008-10-18  Bruno Haible  <bruno@clisp.org>
36538
36539         * lib/fchdir.c: Don't include dirfd.h.
36540         * lib/fts.c: Likewise.
36541         * lib/getcwd.c: Likewise.
36542         * lib/glob.c: Likewise.
36543
36544         Move the dirfd() declaration to <dirent.h>.
36545         * lib/dirfd.h: Remove file.
36546         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36547         (dirfd): New declaration.
36548         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36549         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36550         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36551         HAVE_DECL_DIRFD.
36552         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36553         HAVE_DECL_DIRFD.
36554         * modules/dirfd (Files): Remove lib/dirfd.h.
36555         (Depends-on): Add dirent, extensions.
36556         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36557         (Include): Specify <dirent.h> instead of dirfd.h.
36558         * modules/dirent (Depends-on): Add link-warning.
36559         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36560         definition of GL_LINK_WARNING.
36561         * NEWS: Mention the change.
36562
36563 2008-10-18  Bruno Haible  <bruno@clisp.org>
36564
36565         Move the euidaccess() declaration to <unistd.h>.
36566         * lib/euidaccess.h: Remove file.
36567         * lib/unistd.in.h (euidaccess): New declaration.
36568         * lib/euidaccess.c: Don't include euidaccess.h.
36569         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36570         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36572         and HAVE_EUIDACCESS.
36573         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36574         (Depends-on): Add unistd.
36575         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36576         (Include): Specify <unistd.h> instead of euidaccess.h.
36577         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36578         HAVE_EUIDACCESS.
36579         * NEWS: Mention the change.
36580
36581 2008-10-18  Bruno Haible  <bruno@clisp.org>
36582
36583         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36584
36585         Move the getdomainname() declaration to <unistd.h>.
36586         * lib/getdomainname.h: Remove file.
36587         * lib/unistd.in.h (getdomainname): New declaration.
36588         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36589         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36590         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36591         HAVE_GETDOMAINNAME.
36592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36593         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36594         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36595         (Depends-on): Add unistd, extensions.
36596         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36597         (Includes): Specify <unistd.h> instead of getdomainname.h.
36598         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36599         HAVE_GETDOMAINNAME.
36600         * NEWS: Mention the change.
36601
36602 2008-10-18  Bruno Haible  <bruno@clisp.org>
36603
36604         * modules/dirent: New file.
36605         * m4/dirent_h.m4: New file.
36606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36607         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36608         * modules/fchdir (Files): Remove lib/dirent.in.h.
36609         (Depends-on): Add dirent.
36610         (Makefile.am): Move rules to modules/dirent.
36611         * doc/posix-headers/dirent.texi: Mention the new module.
36612
36613 2008-10-18  Bruno Haible  <bruno@clisp.org>
36614
36615         Avoid -Wunused-parameter warnings in public gnulib header files.
36616         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36617         macro.
36618         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36619
36620 2008-10-18  Bruno Haible  <bruno@clisp.org>
36621
36622         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36623         * doc/glibc-functions/error.texi: Mention the module 'error'.
36624         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36625         * doc/glibc-functions/getdomainname.texi: Mention the module
36626         'getdomainname'.
36627         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36628         * doc/glibc-functions/getpagesize.texi: Mention the module
36629         'getpagesize'.
36630         * doc/glibc-functions/getusershell.texi: Mention the module
36631         'getusershell'.
36632         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36633         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36634         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36635         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36636         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36637         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36638         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36639         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36640         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36641         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36642         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36643         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36644         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36645         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36646
36647 2008-10-17  Bruno Haible  <bruno@clisp.org>
36648
36649         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36650         HP-UX and IRIX, use -0.0L.
36651         * tests/test-ceill.c (minus_zero): Likewise.
36652         * tests/test-floorl.c (minus_zero): Likewise.
36653         * tests/test-frexpl.c (minus_zero): Likewise.
36654         * tests/test-isnan.c (minus_zerol): Likewise.
36655         * tests/test-isnanl.h (minus_zero): Likewise.
36656         * tests/test-ldexpl.c (minus_zero): Likewise.
36657         * tests/test-roundl.c (minus_zero): Likewise.
36658         * tests/test-signbit.c (minus_zerol): Likewise.
36659         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36660         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36661         * tests/test-truncl.c (minus_zero): Likewise.
36662         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36663         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36664         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36665         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36666
36667 2008-10-17  Bruno Haible  <bruno@clisp.org>
36668
36669         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36670         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36671         that it gets activated only for gcc >= 3.0.
36672         * lib/dirent.in.h: Likewise.
36673         * lib/errno.in.h: Likewise.
36674         * lib/fcntl.in.h: Likewise.
36675         * lib/float.in.h: Likewise.
36676         * lib/iconv.in.h: Likewise.
36677         * lib/inttypes.in.h: Likewise.
36678         * lib/locale.in.h: Likewise.
36679         * lib/math.in.h: Likewise.
36680         * lib/netdb.in.h: Likewise.
36681         * lib/netinet_in.in.h: Likewise.
36682         * lib/search.in.h: Likewise.
36683         * lib/signal.in.h: Likewise.
36684         * lib/spawn.in.h: Likewise.
36685         * lib/stdarg.in.h: Likewise.
36686         * lib/stdint.in.h: Likewise.
36687         * lib/stdio.in.h: Likewise.
36688         * lib/stdlib.in.h: Likewise.
36689         * lib/string.in.h: Likewise.
36690         * lib/strings.in.h: Likewise.
36691         * lib/sys_file.in.h: Likewise.
36692         * lib/sys_ioctl.in.h: Likewise.
36693         * lib/sys_select.in.h: Likewise.
36694         * lib/sys_socket.in.h: Likewise.
36695         * lib/sys_stat.in.h: Likewise.
36696         * lib/sys_time.in.h: Likewise.
36697         * lib/sysexits.in.h: Likewise.
36698         * lib/time.in.h: Likewise.
36699         * lib/unistd.in.h: Likewise.
36700         * lib/wchar.in.h: Likewise.
36701         * lib/wctype.in.h: Likewise.
36702         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36703
36704 2008-10-17  Jim Meyering  <meyering@redhat.com>
36705
36706         ignore-value: don't depend on inline module
36707         * modules/ignore-value (Depends-on): Remove 'inline'.
36708         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36709         Suggestion from Bruno Haible.
36710
36711 2008-10-17  Bruno Haible  <bruno@clisp.org>
36712
36713         New implementation of condition variables for Win32.
36714         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36715         (gl_linked_waitqueue_t): New type.
36716         (gl_cond_t): Use it.
36717         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36718         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36719         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36720         (glthread_cond_init_func, glthread_cond_wait_func,
36721         glthread_cond_timedwait_func, glthread_cond_signal_func,
36722         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36723         Reimplemented on the basis of gl_linked_waitqueue_t.
36724         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36725         gl_waitqueue_t.
36726         (gl_rwlock_t): Update.
36727         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36728
36729 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36730
36731         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36732         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36733
36734 2008-10-17  Jim Meyering  <meyering@redhat.com>
36735
36736         ignore-value: new module
36737         * modules/ignore-value: New file.
36738         * lib/ignore-value.h: New file.
36739         * MODULES.html.sh (Compiler warning management): New section,
36740         just for this module.  More to come.
36741
36742 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36743
36744         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36745         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36746         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36747
36748 2008-10-16  Jim Meyering  <meyering@redhat.com>
36749
36750         openat-die.c: avoid 'no previous prototype' warning
36751         * lib/openat-die.c: Include "openat.h".
36752         Reported by Reuben Thomas <rrt@sc3d.org>.
36753
36754 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36755
36756         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36757         * lib/netdb.in.h: Fix typo.
36758         Reported by Bruno Haible  <bruno@clisp.org>
36759
36760         * lib/netdb.in.h: Include sys/socket.h for platforms without
36761         netdb.h, to get structures like hostent on MinGW.
36762         * modules/netdb (Depends-on): Add sys_socket.
36763
36764 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36765
36766         * modules/netdb, modules/netdb-tests: New file.
36767         * m4/netdb_h.m4: New file.
36768         * lib/netdb.in.h: Add, currently just an empty file pending
36769         definitions.
36770         * tests/test-netdb.c: New file.
36771         * doc/posix-headers/netdb.texi: Mention that we replace it if
36772         needed.
36773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36774         netdb.
36775
36776 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36777
36778         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36779         with code.
36780
36781 2008-10-13  Bruno Haible  <bruno@clisp.org>
36782
36783         * lib/glthread/cond.c (glthread_cond_wait_func,
36784         glthread_cond_timedwait_func): Add a comment.
36785
36786 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36787
36788         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36789         * tests/test-select.c: Likewise,
36790
36791 2008-10-13  Bruno Haible  <bruno@clisp.org>
36792
36793         * lib/glthread/cond.c (glthread_cond_wait_func,
36794         glthread_cond_timedwait_func): Fix variable name.
36795         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36796
36797 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36798
36799         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36800         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36801         struct sockaddr.sa_len.
36802         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36803
36804 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36805
36806         * build-aux/pmccabe2html: Add css and css_url parameters.
36807
36808 2008-10-12  Bruno Haible  <bruno@clisp.org>
36809
36810         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36811         calling aclx_get.
36812         Reported by Rainer Tammer <tammer@tammer.net>.
36813
36814 2008-10-12  Bruno Haible  <bruno@clisp.org>
36815
36816         Use msvcrt aware primitives for creation/termination of Win32 threads.
36817         * lib/glthread/thread.c: Include <process.h>.
36818         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36819         (wrapper_func): Update signature.
36820         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36821
36822 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36823             Bruno Haible  <bruno@clisp.org>
36824
36825         Provide a Win32 implementation of the 'cond' module.
36826         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36827         * lib/glthread/cond.c (glthread_cond_init_func,
36828         glthread_cond_wait_func, glthread_cond_timedwait_func,
36829         glthread_cond_signal_func, glthread_cond_broadcast_func,
36830         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36831         * modules/cond (Dependencies): Add gettimeofday.
36832
36833 2008-10-11  Bruno Haible  <bruno@clisp.org>
36834
36835         Make sleep work on older versions of mingw.
36836         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36837         only whether it exists.
36838         * doc/posix-functions/sleep.texi: Mention the problem with older
36839         versions of mingw.
36840
36841 2008-10-11  Bruno Haible  <bruno@clisp.org>
36842
36843         New module 'shutdown'.
36844         * modules/shutdown: New file.
36845         * lib/sys_socket.in.h (shutdown): New declaration.
36846         * lib/winsock.c (shutdown): New function.
36847         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36848         GNULIB_SHUTDOWN.
36849         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36850         * doc/posix-functions/shutdown.texi: Document the new module.
36851
36852 2008-10-11  Jim Meyering  <meyering@redhat.com>
36853
36854         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36855
36856 2008-10-11  Bruno Haible  <bruno@clisp.org>
36857
36858         New module 'fclose'.
36859         * modules/fclose: New file.
36860         * lib/stdio.in.h (fclose): New declaration.
36861         * lib/fclose.c: New file.
36862         * m4/fclose.m4: New file.
36863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36864         REPLACE_FCLOSE.
36865         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36866         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36867         REPLACE_FCLOSE.
36868         * modules/close (Depends-on): fclose.
36869         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36870
36871 2008-10-11  Bruno Haible  <bruno@clisp.org>
36872
36873         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36874         set errno and don't call _close.
36875
36876 2008-10-10  Bruno Haible  <bruno@clisp.org>
36877
36878         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36879         ACL, not afterwards. Fixes test failure on Cygwin.
36880
36881 2008-10-09  Ben Pfaff  <blp@gnu.org>
36882
36883         * build-aux/announce-gen: Fix gnulib version related part of usage
36884         message.  Die with a useful error message if no tarballs are
36885         found.
36886
36887 2008-10-10  Jim Meyering  <meyering@redhat.com>
36888
36889         bootstrap: use git's --depth=N option only if it's supported
36890         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36891         recognize the --depth option.  Reported by Pádraig Brady.
36892
36893 2008-10-09  Bruno Haible  <bruno@clisp.org>
36894
36895         New module 'ioctl'.
36896         * modules/ioctl: New file.
36897         * lib/sys_socket.in.h (ioctl): Remove declaration.
36898         * lib/winsock.c: Include <sys/ioctl.h>.
36899         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36900         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36901         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36902         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36903         * doc/posix-functions/ioctl.texi: Mention the new module.
36904
36905 2008-10-09  Bruno Haible  <bruno@clisp.org>
36906
36907         New module 'sys_ioctl'.
36908         * lib/sys_ioctl.in.h: New file.
36909         * m4/sys_ioctl_h.m4: New file.
36910         * modules/sys_ioctl: New file.
36911         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36912
36913 2008-10-09  Bruno Haible  <bruno@clisp.org>
36914
36915         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36916         * lib/winsock.c: Include <stdarg.h>.
36917         (rpl_ioctl): Change to second argument 'int' and then varargs.
36918
36919 2008-10-09  Bruno Haible  <bruno@clisp.org>
36920
36921         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36922         when the sys_socket module is present and the system has <winsock2.h>.
36923
36924 2008-10-09  Bruno Haible  <bruno@clisp.org>
36925
36926         * doc/posix-functions/close.texi: Mention module 'close' instead of
36927         module 'sys_socket'.
36928
36929 2008-10-09  Bruno Haible  <bruno@clisp.org>
36930
36931         * doc/glibc-headers/sys_ioctl.texi: New file.
36932         * doc/gnulib.texi: Include it.
36933
36934 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36935             Bruno Haible  <bruno@clisp.org>
36936
36937         Combine the two replacements of 'close'.
36938         * lib/sys_socket.in.h (close): Define to a reminder to include
36939         <unistd.h>.
36940         (_gl_close_fd_maybe_socket): New declaration.
36941         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36942         * lib/winsock.c (close): Remove undefinition.
36943         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36944         needed for the gnulib module 'close'.
36945         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36946         define to an error symbol or to a warning, if suitable.
36947         * lib/close.c: Include <sys/socket.h>.
36948         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36949         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36950         UNISTD_H_HAVE_WINSOCK2_H.
36951         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36953         UNISTD_H_HAVE_WINSOCK2_H.
36954         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36955         (configure.ac): Set a module indicator.
36956         (Makefile.am): Substitute GNULIB_CLOSE.
36957         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36958         * modules/poll-tests (Depends-on): Add close.
36959         * modules/select-tests (Depends-on): Likewise.
36960
36961 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36962             Bruno Haible  <bruno@clisp.org>
36963
36964         New module 'close'.
36965         * modules/close: New file.
36966         * lib/unistd.in.h (close): Move declaration out of the
36967         FCHDIR_REPLACEMENT scope.
36968         (_gl_unregister_fd): New declaration.
36969         * lib/close.c: New file.
36970         * lib/fchdir.c (rpl_close): Remove function.
36971         * m4/close.m4: New file.
36972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36973         close.
36974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36975         REPLACE_CLOSE.
36976         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36977         REPLACE_CLOSE.
36978         * modules/fchdir (Depends-on): Add close.
36979
36980 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36981             Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/fcntl.in.h (open): Simplify conditionals.
36984         (_gl_register_fd): New declaration.
36985         * lib/fchdir.c (rpl_open): Remove function.
36986         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36987         also.
36988         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36990         open.
36991
36992 2008-10-09  Jim Meyering  <meyering@redhat.com>
36993
36994         GNUmakefile: use the more name-space-friendly "_version"
36995         * top/GNUmakefile (_dummy): Update.
36996         (_version): Rename from "version".
36997
36998 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36999             Bruno Haible  <bruno@clisp.org>
37000
37001         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
37002         rpl_close.
37003         (_gl_register_fd): New function, extracted from rpl_open.
37004         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
37005         (rpl_open, rpl_opendir): Use _gl_register_fd.
37006
37007 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
37008
37009         Fix organization of 'open' replacement.
37010         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
37011         (gl_FUNC_OPEN): Use it.
37012         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
37013
37014 2008-10-08  Bruno Haible  <bruno@clisp.org>
37015
37016         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
37017
37018 2008-10-08  Simon Josefsson  <simon@josefsson.org>
37019
37020         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
37021         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
37022         listen).
37023
37024 2008-10-08  Eric Blake  <ebb9@byu.net>
37025
37026         GNUmakefile: add 'make version' target
37027         * top/GNUmakefile (_curr-ver): Split version update rules...
37028         (version): ...into a target.
37029
37030 2008-10-07  Bruno Haible  <bruno@clisp.org>
37031
37032         Use a more portable replacement expression for -0.0L.
37033         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
37034         instead of -0.0L. Fix m4 quotation.
37035
37036         * tests/test-signbit.c: Include <float.h>.
37037         (minus_zero): New variable.
37038         (test_signbitl): Use minus_zero instead of -zero.
37039         * modules/signbit-tests (Depends-on): Add float.
37040
37041         * tests/test-ceill.c: Include <float.h>.
37042         (zero): Remove variable.
37043         (minus_zero): New variable.
37044         (main): Use minus_zero instead of -zero.
37045         * modules/ceill-tests (Depends-on): Add float.
37046
37047         * tests/test-floorl.c: Include <float.h>.
37048         (zero): Remove variable.
37049         (minus_zero): New variable.
37050         (main): Use minus_zero instead of -zero.
37051         * modules/floorl-tests (Depends-on): Add float.
37052
37053         * tests/test-roundl.c: Include <float.h>.
37054         (zero): Remove variable.
37055         (minus_zero): New variable.
37056         (main): Use minus_zero instead of -zero.
37057         * modules/roundl-tests (Depends-on): Add float.
37058
37059         * tests/test-truncl.c: Include <float.h>.
37060         (zero): Remove variable.
37061         (minus_zero): New variable.
37062         (main): Use minus_zero instead of -zero.
37063         * modules/truncl-tests (Depends-on): Add float.
37064
37065         * tests/test-frexpl.c (zero): Remove variable.
37066         (minus_zero): New variable.
37067         (main): Use minus_zero instead of -zero.
37068         * modules/frexpl-tests (Depends-on): Add float.
37069
37070         * tests/test-isnan.c (zerol): Remove variable.
37071         (minus_zerol): New variable.
37072         (test_long_double): Use minus_zerol instead of -zerol.
37073         * modules/isnan-tests (Depends-on): Add float.
37074
37075         * tests/test-isnanl.h (zero): Remove variable.
37076         (minus_zero): New variable.
37077         (main): Use minus_zero instead of -zero.
37078         * modules/isnanl-nolibm-tests (Depends-on): Add float.
37079         * modules/isnanl-tests (Depends-on): Add float.
37080
37081         * tests/test-ldexpl.c (zero): Remove variable.
37082         (minus_zero): New variable.
37083         (main): Use minus_zero instead of -zero.
37084         * modules/ldexpl-tests (Depends-on): Add float.
37085
37086         * tests/test-snprintf-posix.h (zerol): Remove variable.
37087         (minus_zerol): New variable.
37088         (test_function): Use minus_zerol instead of -zerol.
37089         * modules/snprintf-posix-tests (Depends-on): Add float.
37090         * modules/vsnprintf-posix-tests (Depends-on): Add float.
37091
37092         * tests/test-sprintf-posix.h (zerol): Remove variable.
37093         (minus_zerol): New variable.
37094         (test_function): Use minus_zerol instead of -zerol.
37095         * modules/sprintf-posix-tests (Depends-on): Add float.
37096         * modules/vsprintf-posix-tests (Depends-on): Add float.
37097
37098         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
37099         (minus_zerol): New variable.
37100         (test_function): Use minus_zerol instead of -zerol.
37101         * modules/vasnprintf-posix-tests (Depends-on): Add float.
37102
37103         * tests/test-vasprintf-posix.c (zerol): Remove variable.
37104         (minus_zerol): New variable.
37105         (test_function): Use minus_zerol instead of -zerol.
37106         * modules/vasprintf-posix-tests (Depends-on): Add float.
37107
37108 2008-10-07  Simon Josefsson  <simon@josefsson.org>
37109
37110         * MODULES.html.sh (Support for building documentation): Mention
37111         pmccabe2html.  Sort entries.
37112
37113         Add pmccabe2html module, from gnupdf.
37114         * build-aux/pmccabe.css: New file.
37115         * build-aux/pmccabe2html: New file.
37116         * m4/pmccabe2html.m4: New file.
37117         * modules/pmccabe2html: New file.
37118
37119 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
37120
37121         flock: new module
37122         * MODULES.html.sh: Add to list of modules.
37123         * lib/flock.c: flock implementation for Windows and Unix systems
37124         which have fcntl.
37125         * doc/glibc-functions/flock.texi: Update documentation.
37126         * lib/sys_file.in.h: <sys/file.h> header file.
37127         * m4/flock.m4: M4 macros.
37128         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
37129         * modules/flock: flock module.
37130         * modules/flock-tests: flock tests module.
37131         * modules/sys_file: sys/file.h module.
37132         * tests/test-flock.c: test suite for flock.
37133
37134 2008-10-06  Jim Meyering  <meyering@redhat.com>
37135
37136         bootstrap: check for LT_INIT more portably still ;-)
37137         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
37138         Spotted by Bruno Haible.
37139
37140 2008-10-06  Eric Blake  <ebb9@byu.net>
37141
37142         test-signbit: avoid tripping Irix cc bug on -0.0L
37143         * tests/test-signbit.c (minus_zerol): Delete, and replace with
37144         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
37145         entire testsuite consistent and avoids an Irix 6.2 bug.
37146
37147 2008-10-05  Bruno Haible  <bruno@clisp.org>
37148             Jim Meyering  <jim@meyering.net>
37149
37150         Add an option for ignoring EPIPE during close_stdout.
37151         * lib/closeout.h: Include <stdbool.h>.
37152         (close_stdout_set_ignore_EPIPE): New declaration.
37153         * lib/closeout.c: Include <stdbool.h>.
37154         (ignore_EPIPE): New variable.
37155         (close_stdout_set_ignore_EPIPE): New function.
37156         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
37157         * lib/close-stream.c (close_stream): Mention the possible EPIPE
37158         failure.
37159         * modules/closeout (Depends-on): Add stdbool.
37160
37161 2008-10-05  Bruno Haible  <bruno@clisp.org>
37162
37163         * modules/accept: New file.
37164         * modules/bind: New file.
37165         * modules/connect: New file.
37166         * modules/getpeername: New file.
37167         * modules/getsockname: New file.
37168         * modules/getsockopt: New file.
37169         * modules/listen: New file.
37170         * modules/recv: New file.
37171         * modules/recvfrom: New file.
37172         * modules/send: New file.
37173         * modules/sendto: New file.
37174         * modules/setsockopt: New file.
37175         * modules/socket: New file.
37176         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
37177         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37178         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
37179         the particular module is requested. Add a link warning when the
37180         particular module is not requested.
37181         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
37182         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
37183         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
37184         the particular module is requested.
37185         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
37186         gl_SYS_SOCKET_H_DEFAULTS): New macros.
37187         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
37188         * modules/sys_socket (Depends-on): Add link-warning.
37189         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
37190         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
37191         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
37192         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
37193         GL_LINK_WARNING.
37194         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
37195         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
37196         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
37197         * doc/posix-functions/getpeername.texi: Mention the new module
37198         'getpeername'.
37199         * doc/posix-functions/getsockname.texi: Mention the new module
37200         'getsockname'.
37201         * doc/posix-functions/getsockopt.texi: Mention the new module
37202         'getsockopt'.
37203         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
37204         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
37205         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
37206         * doc/posix-functions/send.texi: Mention the new module 'send'.
37207         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
37208         * doc/posix-functions/setsockopt.texi: Mention the new module
37209         'setsockopt'.
37210         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
37211         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
37212         listen, connect, accept.
37213         * modules/select-tests (Depends-on): Likewise.
37214
37215 2008-10-05  Bruno Haible  <bruno@clisp.org>
37216
37217         * lib/winsock.c (strerror): Remove unused #undef.
37218         (rpl_close): Remove unused local variable.
37219
37220         * modules/sys_socket (Depends-on); Add errno.
37221
37222 2008-10-05  Bruno Haible  <bruno@clisp.org>
37223
37224         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37225         (select): Add a link warning when the 'select' module is not used.
37226         * modules/sys_select (Depends-on): Add link-warning.
37227         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37228         Suggested by Paolo Bonzini.
37229
37230 2008-10-05  Jim Meyering  <meyering@redhat.com>
37231
37232         bootstrap: check for LT_INIT more portably
37233         * build-aux/bootstrap: Avoid using grep -E, since it's not
37234         portable enough.  Suggestion from Bruno Haible.
37235
37236 2008-10-05  Bruno Haible  <bruno@clisp.org>
37237
37238         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37239         as being fixed by gnulib.
37240
37241 2008-10-05  Bruno Haible  <bruno@clisp.org>
37242
37243         * modules/select-tests: New file, mostly copied from
37244         modules/sys_select-tests.
37245         * tests/test-select.c: New file, mostly copied from
37246         tests/test-sys_select.c.
37247         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37248         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37249         (Makefile.am): Remove test_sys_select_LDADD.
37250
37251         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37252         to an undefined symbol, for an error message.
37253         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37254         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37255         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37256         winsock-select.c here.
37257         * modules/sys_select (Files): Remove lib/winsock-select.c.
37258         (Depends-on): Remove alloca.
37259         (Makefile.am): Substitute GNULIB_SELECT.
37260         * modules/select: New file.
37261         * doc/posix-functions/select.texi: Update.
37262
37263 2008-10-05  Bruno Haible  <bruno@clisp.org>
37264
37265         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37266         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37267         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37268         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37269         getdtablesize.
37270         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37271         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37272
37273 2008-10-05  Bruno Haible  <bruno@clisp.org>
37274
37275         * modules/getdtablesize-tests: New file.
37276         * tests/test-getdtablesize.c: New file.
37277
37278         New module 'getdtablesize'.
37279         * lib/unistd.in.h (getdtablesize): New declaration.
37280         * lib/getdtablesize.c: New file.
37281         * m4/getdtablesize.m4: New file.
37282         * modules/getdtablesize: New file.
37283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37284         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37285         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37286         HAVE_GETDTABLESIZE.
37287         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37288
37289 2008-10-05  Bruno Haible  <bruno@clisp.org>
37290
37291         * modules/sched (Makefile.am): Fix typo.
37292         Reported by Simon Josefsson.
37293
37294 2008-10-05  Jim Meyering  <meyering@redhat.com>
37295
37296         bootstrap: check for LT_INIT, too
37297         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37298         are deprecated.  Suggestion from Ralf Wildenhues.
37299
37300 2008-10-05  Bruno Haible  <bruno@clisp.org>
37301
37302         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37303         overriding them by ours.
37304         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37305
37306 2008-10-05  Jim Meyering  <meyering@redhat.com>
37307
37308         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37309         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37310         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37311
37312 2008-10-04  Bruno Haible  <bruno@clisp.org>
37313
37314         * modules/dup2 (License): Change to LGPLv2+.
37315         * modules/sleep (License): Likewise.
37316         * modules/perror (License): Likewise.
37317         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37318         Blake.
37319         * modules/signal (License): Likewise.
37320         * modules/sigprocmask (License): Likewise.
37321         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37322         Meyering.
37323
37324 2008-10-04  Bruno Haible  <bruno@clisp.org>
37325
37326         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37327         Reported by Rainer Tammer <tammer@tammer.net>.
37328
37329 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37330             Bruno Haible  <bruno@clisp.org>
37331
37332         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37333         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37334         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37335
37336 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37337
37338         filevercmp: new module
37339         * lib/filevercmp.h: New function filevercmp comparing version strings.
37340         * lib/filevercmp.c: Implementation of filevercmp function.
37341         * modules/filevercmp: Module metadata.
37342         * tests/test-filevercmp.c: Unit test for new module.
37343         * modules/filevercmp-tests: Unit test metadata.
37344         * MODULES.html.sh: Add filevercmp module.
37345
37346 2008-10-03  Bruno Haible  <bruno@clisp.org>
37347
37348         * lib/c-ctype.h: Add comment.
37349         Reported by Jim Meyering.
37350
37351 2008-10-02  Bruno Haible  <bruno@clisp.org>
37352
37353         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37354
37355 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37356
37357         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37358         name of bootstrap.conf accordingly.
37359
37360 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37361
37362         * build-aux/bootstrap: Install git-merge-changelog configuration
37363         items into .gitconfig if needed.
37364
37365 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37366
37367         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37368         git repository, and initialize/update it accordingly.
37369
37370 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37371
37372         * modules/fsync-tests: New file.
37373         * tests/test-fsync.c: New file.
37374
37375         New module 'fsync'.
37376         * lib/fsync.c: New file.
37377         * m4/fsync.m4: New file.
37378         * modules/fsync: New file.
37379         * lib/unistd.in.h (fsync): New declaration.
37380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37381         GNULIB_FSYNC and HAVE_FSYNC.
37382         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37383         * MODULES.html.sh (posix_functions): Add fsync.
37384         * doc/posix-functions/fsync.texi: Mention the new module.
37385
37386 2008-10-02  Jim Meyering  <meyering@redhat.com>
37387
37388         fts.c: sync with similar code from coreutils' remove.c
37389         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37390         Guard also with "#if defined __linux__", since for now at least,
37391         this code is Linux-kernel-specific.
37392
37393 2008-10-02  Jim Meyering  <meyering@redhat.com>
37394
37395         fts: bug fixes
37396         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37397         Include <sys/vfs.h>, not <sys/statfs.h>.
37398
37399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37400         Include <sys/vfs.h>, not <sys/statfs.h>.
37401
37402 2008-10-01  Bruno Haible  <bruno@clisp.org>
37403
37404         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37405         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37406         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37407         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37408         * doc/posix-functions/posix_spawnp.texi: Likewise.
37409         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37410         whether posix_spawn actually works.
37411         * m4/pipe.m4 (gl_PIPE): Likewise.
37412         * modules/execute (Files): Add m4/posix_spawn.m4.
37413         * modules/pipe (Files): Add m4/posix_spawn.m4.
37414         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37415
37416 2008-10-01  Jim Meyering  <meyering@redhat.com>
37417
37418         remove trailing spaces
37419         * NEWS: Likewise.
37420         * lib/poll.c (poll): Likewise.
37421         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37422         * lib/winsock.c (rpl_close): Likewise.
37423         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37424         * modules/yield: Likewise.
37425         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37426         * tests/test-sys_select.c (connect_to_socket): Likewise.
37427
37428         fts.c: adjust a new interface to be more generally useful
37429         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37430         (fts_build): Adjust caller.
37431
37432 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37433
37434         * modules/cond-tests: New file.
37435         * tests/test-cond.c: New file.
37436
37437 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37438             Bruno Haible  <bruno@clisp.org>
37439
37440         * modules/cond (Dependencies): Add errno, time.
37441         * lib/glthread/cond.h: Include <time.h>.
37442         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37443         across platforms.
37444
37445 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37446             Bruno Haible  <bruno@clisp.org>
37447
37448         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37449
37450 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37451             Bruno Haible  <bruno@clisp.org>
37452
37453         * modules/tls-tests (Depends-on): Add thread, yield.
37454         (configure.ac): Remove all checks.
37455         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37456         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37457         gl_thread_self): Remove definitions. Include glthread/thread.h and
37458         glthread/yield.h instead.
37459         (test_tls): Pass an additional NULL argument to gl_thread_join.
37460
37461 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37462             Bruno Haible  <bruno@clisp.org>
37463
37464         * modules/lock-tests (Depends-on): Add thread, yield.
37465         (configure.ac): Remove all checks.
37466         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37467         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37468         gl_thread_self): Remove definitions. Include glthread/thread.h and
37469         glthread/yield.h instead.
37470         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37471         additional NULL argument to gl_thread_join.
37472
37473 2008-09-30  Bruno Haible  <bruno@clisp.org>
37474
37475         Fix the Win32 implementation of the 'thread' module.
37476         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37477         pointer type.
37478         (gl_thread_self): Invoke gl_thread_self_func.
37479         (gl_thread_self_func): New declaration.
37480         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37481         (do_init_self_key, init_self_key): New functions.
37482         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37483         Remove some fields.
37484         (running_threads, running_lock): Remove variables.
37485         (get_current_thread_handle): New function.
37486         (gl_thread_self_func, wrapper_func, glthread_create_func,
37487         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37488         simplified.
37489
37490 2008-09-30  Bruno Haible  <bruno@clisp.org>
37491
37492         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37493         files.
37494
37495 2008-09-30  Jim Meyering  <meyering@redhat.com>
37496
37497         fts.m4: correct the test for statfs.f_type
37498         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37499         when checking for statfs.f_type.
37500
37501 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37502
37503         tests: avoid some compiler warnings
37504         * tests/test-memchr.c (main): Pass NULL indirectly.
37505         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37506
37507 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37508
37509         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37510         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37511         exactly specified dayshifts.
37512         (dayshift): New rule.
37513         (rel): Add dayshift.
37514         (relative_time_table) [tomorrow, yesterday, today, now]:
37515         Use tDAY_SHIFT in place of tDAY_UNIT.
37516         * tests/test-getdate.c: Add tests for now-disallowed countable
37517         dayshifts, e.g., "4 yesterday ago".
37518
37519 2008-09-29  Bruno Haible  <bruno@clisp.org>
37520
37521         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37522         * tests/test-posix_spawn1.in.sh: Renamed from
37523         tests/test-posix_spawn.in.sh.
37524         * tests/test-posix_spawn2.c: New file.
37525         * tests/test-posix_spawn2.in.sh: New file.
37526         * modules/posix_spawnp-tests (Files): Update.
37527         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37528
37529 2008-09-29  Bruno Haible  <bruno@clisp.org>
37530
37531         Propagate effects of putenv/setenv/unsetenv to child processes.
37532         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37533         * lib/pipe.c (create_pipe): Likewise.
37534
37535 2008-09-29  Bruno Haible  <bruno@clisp.org>
37536
37537         Enable use of shell scripts as executables in mingw.
37538         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37539         run the program as a shell script.
37540         * lib/pipe.c (create_pipe): Likewise.
37541         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37542         resulting array.
37543
37544 2008-09-29  Eric Blake  <ebb9@byu.net>
37545
37546         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37547
37548 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37549
37550         * doc/posix-functions/accept.texi: Update mingw problems.
37551         * doc/posix-functions/bind.texi: Update mingw problems.
37552         * doc/posix-functions/close.texi: Update mingw problems.
37553         * doc/posix-functions/connect.texi: Update mingw problems.
37554         * doc/posix-functions/getpeername.texi: Update mingw problems.
37555         * doc/posix-functions/getsockname.texi: Update mingw problems.
37556         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37557         * doc/posix-functions/ioctl.texi: Update mingw problems.
37558         * doc/posix-functions/listen.texi: Update mingw problems.
37559         * doc/posix-functions/recv.texi: Update mingw problems.
37560         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37561         * doc/posix-functions/select.texi: Update mingw problems.
37562         * doc/posix-functions/send.texi: Update mingw problems.
37563         * doc/posix-functions/sendto.texi: Update mingw problems.
37564         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37565         * doc/posix-functions/socket.texi: Update mingw problems.
37566
37567 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37568             Bruno Haible  <bruno@clisp.org>
37569
37570         * lib/sys_select.in.h: Include sys/time.h.
37571         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37572         * modules/sys_select: Depend on sys_time.
37573         * tests/test-sys_select.c: Test that sys/select.h defines struct
37574         timeval fully.
37575
37576 2008-09-29  Bruno Haible  <bruno@clisp.org>
37577
37578         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37579         * lib/sys_select.in.h: Likewise.
37580
37581 2008-09-29  Bruno Haible  <bruno@clisp.org>
37582
37583         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37584
37585 2008-09-29  Bruno Haible  <bruno@clisp.org>
37586
37587         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37588         Set LIBSOCKET instead of augmenting LIBS.
37589         * modules/sockets (Link): New section.
37590         * modules/sockets-tests (test_sockets_LDADD): New variable.
37591         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37592         * modules/poll-tests (test_poll_LDADD): New variable.
37593         * NEWS: Document the change.
37594
37595 2008-09-29  Bruno Haible  <bruno@clisp.org>
37596
37597         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37598         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37599         ARPA_INET_H directly.
37600         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37601
37602 2008-09-28  Bruno Haible  <bruno@clisp.org>
37603
37604         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37605         from gl_HEADER_SYS_SOCKET.
37606         (gl_HEADER_SYS_SOCKET): Invoke it.
37607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37608
37609 2008-09-28  Bruno Haible  <bruno@clisp.org>
37610
37611         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37612         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37613         Needed on OSF/1 4.0.
37614
37615 2008-09-28  Bruno Haible  <bruno@clisp.org>
37616
37617         Override open more carefully.
37618         * lib/open.c (orig_open): New function.
37619         (rpl_open): Use orig_open instead of open.
37620         * lib/fcntl.in.h: Add special invocation convention.
37621         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37622         (gl_FUNC_OPEN): Invoke it.
37623
37624         Override freopen more carefully.
37625         * lib/freopen.c (orig_freopen): New function.
37626         (rpl_freopen): Use orig_freopen instead of freopen.
37627         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37628         (gl_FUNC_FREOPEN): Invoke it.
37629
37630         Override fopen more carefully.
37631         * lib/fopen.c (orig_fopen): New function.
37632         (rpl_fopen): Use orig_fopen instead of fopen.
37633         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37634         (gl_FUNC_FOPEN): Invoke it.
37635         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37636
37637 2008-09-28  Bruno Haible  <bruno@clisp.org>
37638
37639         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37640         SIGPIPE.
37641
37642 2008-09-28  Bruno Haible  <bruno@clisp.org>
37643
37644         * tests/test-sigaction.c (handler, main): Disable the check whether
37645         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37646         glibc systems with LinuxThreads.
37647
37648 2008-09-28  Bruno Haible  <bruno@clisp.org>
37649
37650         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37651
37652         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37653         with AIX xlc.
37654         * lib/fcntl.in.h (open): Likewise.
37655         Reported by Rainer Tammer <tammer@tammer.net>.
37656
37657 2008-09-28  Bruno Haible  <bruno@clisp.org>
37658
37659         * modules/posix_spawnp-tests: New file.
37660         * tests/test-posix_spawn.c: New file.
37661         * tests/test-posix_spawn.in.sh: New file.
37662
37663         New module 'posix_spawnp'.
37664         * modules/posix_spawnp: New file.
37665         * lib/spawnp.c: New file, from GNU libc with modifications.
37666         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37667
37668         New module 'posix_spawn'.
37669         * modules/posix_spawn: New file.
37670         * lib/spawn.c: New file, from GNU libc with modifications.
37671         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37672
37673         New module 'posix_spawnattr_destroy'.
37674         * modules/posix_spawnattr_destroy: New file.
37675         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37676         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37677         module.
37678
37679         New module 'posix_spawnattr_setsigmask'.
37680         * modules/posix_spawnattr_setsigmask: New file.
37681         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37682         modifications.
37683         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37684         new module.
37685
37686         New module 'posix_spawnattr_getsigmask'.
37687         * modules/posix_spawnattr_getsigmask: New file.
37688         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37689         modifications.
37690         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37691         new module.
37692
37693         New module 'posix_spawnattr_setsigdefault'.
37694         * modules/posix_spawnattr_setsigdefault: New file.
37695         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37696         modifications.
37697         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37698         new module.
37699
37700         New module 'posix_spawnattr_getsigdefault'.
37701         * modules/posix_spawnattr_getsigdefault: New file.
37702         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37703         modifications.
37704         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37705         new module.
37706
37707         New module 'posix_spawnattr_setschedpolicy'.
37708         * modules/posix_spawnattr_setschedpolicy: New file.
37709         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37710         modifications.
37711         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37712         new module.
37713
37714         New module 'posix_spawnattr_getschedpolicy'.
37715         * modules/posix_spawnattr_getschedpolicy: New file.
37716         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37717         modifications.
37718         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37719         new module.
37720
37721         New module 'posix_spawnattr_setschedparam'.
37722         * modules/posix_spawnattr_setschedparam: New file.
37723         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37724         modifications.
37725         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37726         new module.
37727
37728         New module 'posix_spawnattr_getschedparam'.
37729         * modules/posix_spawnattr_getschedparam: New file.
37730         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37731         modifications.
37732         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37733         new module.
37734
37735         New module 'posix_spawnattr_setpgroup'.
37736         * modules/posix_spawnattr_setpgroup: New file.
37737         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37738         modifications.
37739         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37740         module.
37741
37742         New module 'posix_spawnattr_getpgroup'.
37743         * modules/posix_spawnattr_getpgroup: New file.
37744         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37745         modifications.
37746         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37747         module.
37748
37749         New module 'posix_spawnattr_setflags'.
37750         * modules/posix_spawnattr_setflags: New file.
37751         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37752         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37753         module.
37754
37755         New module 'posix_spawnattr_getflags'.
37756         * modules/posix_spawnattr_getflags: New file.
37757         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37758         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37759         module.
37760
37761         New module 'posix_spawnattr_init'.
37762         * modules/posix_spawnattr_init: New file.
37763         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37764         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37765         module.
37766
37767         New module 'posix_spawn_file_actions_destroy'.
37768         * modules/posix_spawn_file_actions_destroy: New file.
37769         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37770         modifications.
37771         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37772         the new module.
37773
37774         New module 'posix_spawn_file_actions_addopen'.
37775         * modules/posix_spawn_file_actions_addopen: New file.
37776         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37777         modifications.
37778         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37779         the new module.
37780
37781         New module 'posix_spawn_file_actions_adddup2'.
37782         * modules/posix_spawn_file_actions_adddup2: New file.
37783         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37784         modifications.
37785         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37786         the new module.
37787
37788         New module 'posix_spawn_file_actions_addclose'.
37789         * modules/posix_spawn_file_actions_addclose: New file.
37790         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37791         modifications.
37792         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37793         the new module.
37794
37795         New module 'posix_spawn_file_actions_init'.
37796         * modules/posix_spawn_file_actions_init: New file.
37797         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37798         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37799         new module.
37800
37801         New module 'posix_spawn-internal'.
37802         * modules/posix_spawn-internal: New file.
37803         * lib/spawn_int.h: New file, from GNU libc with modifications.
37804         * lib/spawni.c: New file, from GNU libc with modifications.
37805         * m4/posix_spawn.m4: New file.
37806
37807         New module 'spawn'.
37808         * modules/spawn: New file.
37809         * lib/spawn.in.h: New file, from GNU libc with modifications.
37810         * m4/spawn_h.m4: New file.
37811         * doc/posix-headers/spawn.texi: Mention the new module.
37812
37813 2008-09-28  Bruno Haible  <bruno@clisp.org>
37814
37815         * modules/sched-tests: New file.
37816         * tests/test-sched.c: New file.
37817
37818         New module 'sched'.
37819         * modules/sched: New file.
37820         * lib/sched.in.h: New file.
37821         * m4/sched_h.m4: New file.
37822         * doc/posix-headers/sched.texi: Mention the new module.
37823
37824 2008-09-27  Eric Blake  <ebb9@byu.net>
37825
37826         Fix previous patch, and tweak references to $0.
37827         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37828         (func_version, func_gnulib_dir): Don't call this program
37829         gnulib-tool.
37830         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37831         with using $0 in function.
37832         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37833         (func_fatal_error): Reuse the name the user invoked us with.
37834
37835 2008-09-27  Bruno Haible  <bruno@clisp.org>
37836
37837         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37838         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37839         (gl_ICONV_H): Not here.
37840         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37841         instead of assigning ICONV_H directly.
37842
37843         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37845         WCHAR_H directly.
37846
37847 2008-09-27  Bruno Haible  <bruno@clisp.org>
37848
37849         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37850         * modules/arpa_inet (Depends-on): Add link-warning.
37851         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37852         * modules/unistd (Makefile.am): Likewise.
37853
37854 2008-09-26  Bruno Haible  <bruno@clisp.org>
37855
37856         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37857         variables.
37858         (func_version): Essentially copied from gnulib-tool.
37859         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37860         func_readlink): Copied from gnulib-tool.
37861
37862 2008-09-26  Bruno Haible  <bruno@clisp.org>
37863
37864         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37865         invoking git-version-gen.
37866
37867 2008-09-26  Bruno Haible  <bruno@clisp.org>
37868
37869         * posix-modules: Update to directory names changed on 2008-01-19.
37870         Remove commas in output before splitting into words. No more need to
37871         avoid 'ftruncate' since 2007-02-19.
37872
37873 2008-09-26  Bruno Haible  <bruno@clisp.org>
37874
37875         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37876
37877 2008-09-26  Bruno Haible  <bruno@clisp.org>
37878
37879         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37880         * modules/fwriteerror (Depends-on): Add errno.
37881
37882 2008-09-26  Bruno Haible  <bruno@clisp.org>
37883
37884         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37885         * tests/test-vc-list-files-cvs.sh: Likewise.
37886
37887 2008-09-26  Bruno Haible  <bruno@clisp.org>
37888
37889         * doc/posix-headers/sys_resource.texi: Reorder items.
37890
37891 2008-09-26  Jim Meyering  <meyering@redhat.com>
37892
37893         fts: tweak inode comparison function
37894         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37895         inode numbers, as documented.
37896
37897         fts: sort dirent entries on inode number before traversing
37898         This avoids a quadratic, seek-related performance penalty when
37899         operating on a directory containing many entries (measurable at 10k;
37900         3.5 hours at 2 million entries with a cold cache) on certain types
37901         of file systems, including ext3 and ext4, but not tmpfs.
37902         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37903         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37904         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37905         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37906         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37907         (fts_build): Set the stat.st_ino member from D_INO.
37908         If it is likely to be useful, sort dirent entries on inode number.
37909
37910         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37911         and the struct statfs.f_type member.
37912         * modules/fts (Depends-on): Add d-ino.
37913
37914 2008-09-26  Bruno Haible  <bruno@clisp.org>
37915
37916         * modules/sigpipe-die (Depends-on): Add sigpipe.
37917
37918         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37919         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37920         and GNULIB_STDIO_H_SIGPIPE are set.
37921         * lib/stdio-write.c: New file.
37922         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37923         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37924         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37925         REPLACE_STDIO_WRITE_FUNCS.
37926         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37927         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37928         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37929         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37930         * modules/stdio (Files): Add lib/stdio-write.c.
37931         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37932         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37933         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37934         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37935         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37936         REPLACE_FPRINTF_POSIX.
37937         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37938         REPLACE_PRINTF_POSIX.
37939         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37940         REPLACE_VFPRINTF_POSIX.
37941         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37942         REPLACE_VPRINTF_POSIX.
37943         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37944         SIGPIPE issue.
37945         * doc/posix-functions/fputc.texi: Likewise.
37946         * doc/posix-functions/fputs.texi: Likewise.
37947         * doc/posix-functions/fwrite.texi: Likewise.
37948         * doc/posix-functions/printf.texi: Likewise.
37949         * doc/posix-functions/putc.texi: Likewise.
37950         * doc/posix-functions/putchar.texi: Likewise.
37951         * doc/posix-functions/puts.texi: Likewise.
37952         * doc/posix-functions/vfprintf.texi: Likewise.
37953         * doc/posix-functions/vprintf.texi: Likewise.
37954
37955         * modules/safe-write (Depends-on): Add write.
37956
37957         * modules/sigpipe-tests: New file.
37958         * tests/test-sigpipe.c: New file.
37959         * tests/test-sigpipe.sh: New file.
37960
37961         * modules/write: New file.
37962         * lib/unistd.in.h: Include <sys/types.h>.
37963         (write): New declaration.
37964         * lib/write.c: New file.
37965         * m4/write.m4: New file.
37966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37967         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37968         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37969         GNULIB_WRITE, REPLACE_WRITE.
37970         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37971         and the SIGPIPE issue.
37972
37973         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37974         (raise): New declaration.
37975         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37976         (ext_signal): New function.
37977         (rpl_raise): New function.
37978         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37979         GNULIB_SIGNAL_H_SIGPIPE.
37980         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37981         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37982
37983         * modules/sigpipe: New file.
37984         * m4/sigpipe.m4: New file.
37985
37986 2008-09-25  Derek Price  <derek@ximbiot.com>
37987             Bruno Haible  <bruno@clisp.org>
37988
37989         * gnulib-tool (func_import): Report all license incompatibilities, not
37990         just the first one.
37991
37992 2008-09-25  Bruno Haible  <bruno@clisp.org>
37993
37994         * gnulib-tool (func_import): When computing the edits, consider not
37995         only the Makefile.ams that exist but also those that will be generated.
37996
37997 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37998
37999         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
38000         fixes gnulib-tool --test warning about duplicate dependency.
38001
38002 2008-09-25  Bruno Haible  <bruno@clisp.org>
38003
38004         * gnulib-tool: Don't ask the user to perform edits in the generated
38005         Makefile.ams.
38006         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
38007         apply to the Makefile.am being generated.
38008         (func_emit_tests_Makefile_am): Execute edits that apply to the
38009         Makefile.am being generated.
38010         (func_import): Setup list of Makefile.am edits before emitting the
38011         Makefile.ams, not at the end.
38012         (func_create_testdir): Update.
38013         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38014
38015 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38016
38017         * gnulib-tool (func_import): Store the --tests-base option in the
38018         comment in gnulib-cache.m4.
38019
38020 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
38021
38022         * NEWS: Document increased portability that sys_select now provides.
38023
38024         * lib/sys_select.in.h: Install select wrapper.
38025         * lib/sys_socket.in.h: Use more descriptive name when there is no
38026         select wrapper.
38027         * lib/winsock-select.c: New.
38028         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
38029         Require gl_HEADER_SYS_SOCKET.
38030         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
38031         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
38032         * tests/test-sys_select.c: Add functional tests.
38033
38034 2008-09-24  Eric Blake  <ebb9@byu.net>
38035
38036         open, fopen: close fd leak in last patch
38037         * lib/open.c (rpl_open): Close fd before returning error.
38038         * lib/fopen.c (rpl_fopen): Close fd before returning error.
38039         * doc/posix-functions/open.texi (open): Document that Irix also
38040         has the bug.
38041         * doc/posix-functions/fopen.texi (fopen): Likewise.
38042         Reported by Paolo Bonzini.
38043
38044 2008-09-24  Bruno Haible  <bruno@clisp.org>
38045
38046         Ensure that a filename ending in a slash cannot be used to access a
38047         non-directory.
38048         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
38049         to check whether it's really a directory.
38050         * lib/fopen.c: Include fcntl.h, unistd.h.
38051         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
38052         and fdopen().
38053         * modules/fopen (Depends-on): Add unistd.
38054         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
38055         * tests/test-fopen.c (main): Likewise.
38056         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
38057         * doc/posix-functions/fopen.texi: Likewise.
38058         Reported by Eric Blake.
38059
38060 2008-09-23  Eric Blake  <ebb9@byu.net>
38061
38062         c-stack: avoid compiler optimizations when provoking overflow
38063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
38064         recursion harder to optimize, to ensure a stack overflow occurs.
38065         * tests/test-c-stack.c (recurse): Likewise.
38066         Borrowed from libsigsegv.
38067
38068         c-stack: work around Irix sigaltstack bug
38069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
38070         whether sigaltstack uses wrong end of stack_t (copied in part from
38071         libsigsegv).
38072         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
38073         Irix bug, without requiring an over-allocation.
38074         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
38075         bug.
38076
38077         fopen: document mingw bug on directories
38078         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
38079         not allowing a stream visiting a directory, even though reading
38080         from such a stream is not portable.
38081
38082 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38083
38084         * lib/poll.c: Rewrite.
38085         * modules/poll: Depend on alloca.
38086
38087 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38088
38089         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
38090         instead define prototypes for a full set of wrappers.  Ensure
38091         that Cygwin does not use the compatibility code, which is only
38092         for MinGW.
38093         * lib/winsock.c: New.
38094         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
38095         * modules/sys_socket: Add lib/winsock.c.
38096
38097         * modules/poll-tests: Add errno and perror.
38098         * tests/test-poll.c: Use ioctl, not ioctlsocket.
38099
38100 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
38101
38102         * tests/test-poll.c: Downgrade minimum needed Winsock version.
38103
38104 2008-09-23  Bruno Haible  <bruno@clisp.org>
38105
38106         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
38107         * doc/glibc-functions/*: Likewise.
38108
38109 2008-09-23  Simon Josefsson  <simon@josefsson.org>
38110
38111         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
38112         success.
38113
38114 2008-09-22  Eric Blake  <ebb9@byu.net>
38115             Bruno Haible  <bruno@clisp.org>
38116
38117         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
38118         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
38119         supply %A but mishandle pseudo-NaN.
38120         Reported by Simon Josefsson.
38121
38122 2008-09-21  Bruno Haible  <bruno@clisp.org>
38123
38124         * tests/test-lock.c (main): Tweak skip message.
38125         * tests/test-tls.c (main): Likewise.
38126
38127 2008-09-21  Bruno Haible  <bruno@clisp.org>
38128
38129         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
38130         whether 'struct sigaction' has sa_sigaction here...
38131         (gl_PREREQ_SIG_HANDLER_H): ... not here.
38132         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
38133
38134 2008-09-21  Bruno Haible  <bruno@clisp.org>
38135
38136         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
38137         section.
38138         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
38139         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
38140         the new section.
38141         (Support for obsolete systems lacking POSIX:2001): New section.
38142         (String handling <string.h>): Move strdup to the new section.
38143         Suggested by Simon Josefsson and Paolo Bonzini.
38144
38145 2008-09-21  Bruno Haible  <bruno@clisp.org>
38146
38147         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
38148         exponents in %e and %g results on 'long double'. Needed for mingw's
38149         improved *printf functions.
38150         * tests/test-vasprintf-posix.c (test_function): Likewise.
38151         * tests/test-snprintf-posix.h (test_function): Likewise.
38152         * tests/test-sprintf-posix.h (test_function): Likewise.
38153         Reported by Eric Blake.
38154
38155 2008-09-21  Bruno Haible  <bruno@clisp.org>
38156
38157         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
38158         * tests/test-sprintf-posix.h (test_function): Likewise.
38159
38160 2008-09-21  Bruno Haible  <bruno@clisp.org>
38161
38162         * modules/getpass (Depends-on): Add strdup-posix.
38163
38164         New module 'strdup-posix'.
38165         * modules/strdup-posix: New file.
38166         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
38167         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
38168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38169         REPLACE_STRDUP.
38170         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
38171         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
38172         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38173         strdup-posix.
38174
38175         * modules/strdup (Depends-on): Remove malloc-posix.
38176
38177 2008-09-20  Bruno Haible  <bruno@clisp.org>
38178
38179         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
38180         Wildenhues.
38181
38182 2008-09-20  Bruno Haible  <bruno@clisp.org>
38183
38184         Ensure that wint_t gets defined on IRIX 5.3.
38185         * lib/wchar.in.h (wint_t): Define if not defined by the system.
38186         * lib/wctype.in.h (wint_t): Likewise.
38187         (__wctype_wint_t): Remove type.
38188         (isw*): Use wint_t instead of __wctype_wint_t.
38189         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
38190         * modules/wchar (Files): Add m4/wint_t.m4.
38191         (Makefile.am): Substitute HAVE_WINT_T.
38192         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
38193         * tests/test-wctype.c: Check that wint_t is defined.
38194         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
38195         * doc/posix-headers/wctype.texi: Likewise.
38196         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38197
38198 2008-09-18  Bruno Haible  <bruno@clisp.org>
38199
38200         * gnulib-tool (func_exit): Update comment.
38201
38202 2008-09-18  Simon Josefsson  <simon@josefsson.org>
38203
38204         * modules/getaddrinfo (Depends-on): Remove strdup, this module
38205         assumes strdup exists and does not depend on strdup to return
38206         ENOMEM on out of memory conditions.
38207
38208 2008-09-18  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
38211         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
38212         digits for the exponent.
38213
38214 2008-09-18  Jim Meyering  <meyering@redhat.com>
38215             Bruno Haible  <bruno@clisp.org>
38216
38217         * lib/vasnprintf.c (decimal_point_char): Define also if
38218         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38219
38220 2008-09-16  Bruno Haible  <bruno@clisp.org>
38221         and Eric Blake  <ebb9@byu.net>
38222
38223         vasnprintf: support Irix 5.3
38224         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38225         that mishandle long double infinity.
38226         Reported by Tom G. Christensen.
38227
38228 2008-09-16  Bruno Haible  <bruno@clisp.org>
38229
38230         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38231         Solaris 9.
38232         * doc/glibc-functions/alphasort.texi: Likewise.
38233         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38234
38235 2008-09-16  Jim Meyering  <meyering@redhat.com>
38236
38237         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38238         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38239         a umask modification leak out of a subshell.  Otherwise, the
38240         opensolaris /bin/sh would be accepted and thus cause unwarranted
38241         failures in the coreutils test suite.
38242
38243 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38244
38245         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38246         to succeed.
38247
38248 2008-09-16  Jim Meyering  <meyering@redhat.com>
38249
38250         avoid spurious test failure when library is built without ACL support
38251         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38252         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38253         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38254         * tests/test-copy-acl.sh: Likewise.
38255
38256 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38257
38258         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38259         based on character occurrence counts.
38260
38261 2008-09-15  Eric Blake  <ebb9@byu.net>
38262
38263         tests: avoid some compiler warnings
38264         * tests/test-memchr.c (main): Pass NULL indirectly.
38265         * tests/test-closein.c (main): Avoid unused variable.
38266
38267 2008-09-15  Bruno Haible  <bruno@clisp.org>
38268
38269         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38270         are missing on OpenBSD 4.0 individually.
38271         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38272
38273 2008-09-15  Bruno Haible  <bruno@clisp.org>
38274
38275         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38276         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38277         * doc/posix-functions/perror.texi: Likewise.
38278         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38279         is missing.
38280         Reported by Eric Blake.
38281
38282         * lib/errno.in.h: Use replacement values >= 2000.
38283         Reported by Eric Blake.
38284
38285 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38286
38287         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38288         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38289         limit.
38290         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38291         compareseq was aborted.
38292
38293 2008-09-14  Bruno Haible  <bruno@clisp.org>
38294
38295         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38296         yvec_edit_count.
38297         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38298         (fstrcmp_bounded): Simplify result computation accordingly.
38299
38300 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38301
38302         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38303         (fstrcmp): Define in terms of fstrcmp_bounded.
38304         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38305         lower_bound argument.
38306         Return quickly if the result is certainly < lower_bound.
38307         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38308
38309 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38310
38311         * lib/diffseq.h (EARLY_ABORT): New macro.
38312         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38313         evaluates to true.
38314
38315 2008-09-14  Bruno Haible  <bruno@clisp.org>
38316
38317         * modules/perror-tests: New file.
38318         * tests/test-perror.sh: New file.
38319         * tests/test-perror.c: New file.
38320
38321         New module 'perror'.
38322         * lib/stdio.in.h (perror): New declaration.
38323         * lib/perror.c: New file.
38324         * m4/perror.m4: New file.
38325         * modules/perror: New file.
38326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38327         * doc/posix-functions/perror.texi: Mention the perror module.
38328         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38329         REPLACE_PERROR.
38330         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38331         REPLACE_PERROR.
38332
38333 2008-09-14  Bruno Haible  <bruno@clisp.org>
38334
38335         * modules/stdio (Makefile.am): Reorder to match the order in
38336         lib/stdio.in.h.
38337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38338
38339 2008-09-13  Bruno Haible  <bruno@clisp.org>
38340
38341         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38342
38343 2008-09-13  Bruno Haible  <bruno@clisp.org>
38344
38345         Extend strerror to cover the added errno values.
38346         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38347         (rpl_strerror): Provide error messages for the added errno values and
38348         for the WSA* values.
38349         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38350         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38351         strerror.
38352         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38353         * modules/strerror (Depends-on): Add errno.
38354         * doc/posix-functions/strerror.texi: Document the change.
38355         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38356         and EOVERFLOW.
38357
38358 2008-09-13  Bruno Haible  <bruno@clisp.org>
38359
38360         * modules/EOVERFLOW: Remove file.
38361         * m4/eoverflow.m4: Remove file.
38362         * modules/EOVERFLOW-tests: Remove file.
38363         * tests/test-EOVERFLOW.c: Remove file.
38364         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38365         * modules/ftell (Depends-on): Likewise.
38366         * modules/getdelim (Depends-on): Likewise.
38367         * modules/getugroups (Depends-on): Likewise.
38368         * modules/poll (Depends-on): Likewise.
38369         * modules/snprintf (Depends-on): Likewise.
38370         * modules/sprintf-posix (Depends-on): Likewise.
38371         * modules/vasnprintf (Depends-on): Likewise.
38372         * modules/vasprintf (Depends-on): Likewise.
38373         * modules/vfprintf-posix (Depends-on): Likewise.
38374         * modules/vsnprintf (Depends-on): Likewise.
38375         * modules/vsprintf-posix (Depends-on): Likewise.
38376         * modules/xvasprintf (Depends-on): Likewise.
38377         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38378         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38379         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38380         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38381         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38382         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38383         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38384         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38385         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38386         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38387         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38388         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38389         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38390         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38391         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38392         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38393         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38394         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38395         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38396         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38397         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38398         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38399         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38400         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38401         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38402         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38403         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38404         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38405         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38406         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38407         * MODULES.html.sh: Remove EOVERFLOW.
38408         * NEWS: Mention the change.
38409
38410 2008-09-13  Bruno Haible  <bruno@clisp.org>
38411
38412         * modules/errno-tests: New file.
38413         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38414
38415         * lib/errno.in.h: New file.
38416         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38417         * modules/errno: New file.
38418         * doc/posix-headers/errno.texi: Update documentation.
38419         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38420
38421 2008-09-13  Bruno Haible  <bruno@clisp.org>
38422
38423         * tests/test-poll.c: Use #if for native Windows, rather than testing
38424         __MSVCRT__.
38425
38426 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38427             Bruno Haible  <bruno@clisp.org>
38428
38429         * lib/glob.c: Don't include <pwd.h> on native Windows.
38430         (WINDOWS32): New macro.
38431         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38432
38433 2008-09-13  Bruno Haible  <bruno@clisp.org>
38434
38435         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38436         (ETIMEDOUT): Remove macro.
38437         (glthread_cond_timedwait_multithreaded): New declaration.
38438         (glthread_cond_timedwait): Use it.
38439         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38440         (glthread_cond_timedwait_multithreaded): New function.
38441
38442 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38443
38444         * modules/poll-tests: Do not check for io.h.
38445         * tests/test-poll.c: Check for __MSVCRT__ instead.
38446
38447 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38448
38449         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38450         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38451         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38452
38453 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38454
38455         * modules/poll-tests: New.
38456         * tests/test-poll.c: New.
38457
38458 2008-09-12  Eric Blake  <ebb9@byu.net>
38459
38460         frexp: test for NetBSD failure on -0.0
38461         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38462         not all, bugs from NetBSD 3.0 have been fixed.
38463         * doc/posix-functions/frexp.texi (frexp): Document bug.
38464         Reported by Thomas Klausner.
38465
38466         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38467         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38468         literal -0.0.
38469         Reported by Jonathan C. Patschke <jp@centtech.com>.
38470
38471 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38472
38473         * lib/glthread/cond.h: Use dummy implementation also if
38474         USE_WIN32_THREADS.
38475
38476 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38477
38478         * modules/fnmatch-posix (License): Change to LGPLv2+.
38479         * modules/fnmatch-gnu (License): Likewise.
38480
38481 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38482
38483         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38484
38485 2008-09-11  Jim Meyering  <meyering@redhat.com>
38486
38487         * users.txt: Add gtk-vnc.
38488
38489 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38490
38491         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38492         rotate amounts.
38493
38494         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38495         required for 16-bit and 8-bit rotates.
38496         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38497         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38498         UINT8_MAX instead of hard-coded constants.
38499         Suggested by Paul Eggert.
38500
38501 2008-09-07  Bruno Haible  <bruno@clisp.org>
38502
38503         * tests/test-striconveh.c (main): Check behaviour when converting from
38504         UTF-7.
38505
38506         Make striconveh work better with stateful encodings.
38507         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38508         that iconv does not increment the inptr when returning -1/EINVAL.
38509
38510 2008-09-07  Bruno Haible  <bruno@clisp.org>
38511
38512         * build-aux/config.rpath: Update according to libtool-2.2.6.
38513         * build-aux/config.libpath: Likewise.
38514
38515 2008-09-06  Bruno Haible  <bruno@clisp.org>
38516
38517         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38518         * lib/freadptr.c (freadptr): Likewise.
38519         * lib/freadseek.c (freadptrinc): Likewise.
38520         Reported by Simon Josefsson.
38521
38522 2008-09-06  Bruno Haible  <bruno@clisp.org>
38523
38524         * modules/freadptr (License): Change to LGPLv2+.
38525         * modules/freadseek (License): Likewise.
38526         Suggested by Eric Blake.
38527
38528         * modules/memchr2 (License): Change to LGPLv2+.
38529         Approved by Eric Blake.
38530
38531 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38532             Bruno Haible  <bruno@clisp.org>
38533
38534         Make gnulib-tool work with native 'sed' on AIX.
38535         * gnulib-tool (sed_noop): New variable.
38536         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38537         func_add_or_update, func_create_testdir): Use it to initialize sed
38538         script variables.
38539         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38540
38541 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38542             Bruno Haible  <bruno@clisp.org>
38543
38544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38545         also works after #include directives.
38546
38547 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38548
38549         getdate.y: reject an out-of-range timezone value
38550         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38551         the range [-24...+24].  When specified with only one or two digits,
38552         * tests/test-getdate.c: Tests for the fix.
38553         * doc/getdate.texi: Document this change.
38554
38555 2008-09-03  Bruno Haible  <bruno@clisp.org>
38556
38557         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38558
38559 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38560
38561         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38562         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38563         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38564         Blake <ebb9@byu.net>.
38565
38566         * tests/test-bitrotate.c: Add more test vectors.
38567
38568 2008-09-02  Eric Blake  <ebb9@byu.net>
38569
38570         vasnprintf-posix: handle large precision via %.*d
38571         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38572         when handling it ourselves.
38573         * tests/test-vasnprintf-posix.c (test_function): Add test.
38574         * tests/test-snprintf-posix.h (test_function): Likewise.
38575         * tests/test-sprintf-posix.h (test_function): Likewise.
38576         * tests/test-vasprintf-posix.c (test_function): Likewise.
38577         Reported by Alain Guibert.
38578
38579 2008-09-01  Eric Blake  <ebb9@byu.net>
38580
38581         c-stack: make configure-time check more robust
38582         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38583         successful sigaction call.
38584         Reported by Tom G. Christensen.
38585
38586 2008-09-01  Bruno Haible  <bruno@clisp.org>
38587
38588         New module 'findprog-lgpl'.
38589         * modules/findprog-lgpl: New file.
38590         * lib/findprog-lgpl.c: New file.
38591         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38592         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38593         to decide whether to use strdup or xstrdup, concatenated_filename or
38594         xconcatenated_filename.
38595
38596 2008-09-01  Bruno Haible  <bruno@clisp.org>
38597
38598         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38599         'xconcat-filename' (GPL).
38600         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38601         (License): Change to LGPLv2+.
38602         * modules/xconcat-filename: New file.
38603         * lib/concat-filename.h (concatenated_filename): Change specification.
38604         (xconcatenated_filename): New declaration.
38605         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38606         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38607         memory situations.
38608         * lib/xconcat-filename.c: New file.
38609         * NEWS: Mention the change.
38610         * lib/findprog.c: Include concat-filename.h, not filename.h.
38611         (find_in_path): Use xconcatenated_filename instead of
38612         concatenated_filename.
38613         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38614         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38615         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38616         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38617         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38618         instead of concatenated_filename.
38619         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38620         (execute_java_class): Use xconcatenated_filename instead of
38621         concatenated_filename.
38622         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38623         * modules/javacomp (Depends-on): Likewise.
38624         * modules/javaexec (Depends-on): Likewise.
38625
38626 2008-09-01  Bruno Haible  <bruno@clisp.org>
38627
38628         Split module 'filename' into 'filename' and 'concat-filename'.
38629         * modules/filename: Keep only lib/filename.h.
38630         (License): Change to LGPLv2+.
38631         * modules/concat-filename: New file, extracted from modules/filename.
38632         * lib/filename.h (concatenated_filename): Remove declaration.
38633         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38634         * lib/concat-filename.c: Include concat-filename.h.
38635         * NEWS: Mention the change.
38636
38637 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38638
38639         * lib/bitrotate.h (rotl8, rotr8): Add.
38640
38641         * modules/bitrotate (configure.ac): Need
38642         AC_REQUIRE([AC_C_INLINE]).
38643         (Description): Mention stdint.h.  Reported by Bruno Haible
38644         <bruno@clisp.org>.
38645
38646         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38647         Paolo Bonzini <bonzini@gnu.org>.
38648
38649 2008-08-31  Bruno Haible  <bruno@clisp.org>
38650
38651         Assume Solaris specific bi-arch conventions on Solaris systems.
38652         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38653         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38654         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38655         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38656         like acl_libdirstem.
38657         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38658         acl_libdirstem.
38659         * NEWS: Mention the change.
38660         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38661
38662 2008-08-31  Jim Meyering  <meyering@redhat.com>
38663
38664         * lib/strftime.h: Add comments describing the two added arguments.
38665
38666         remove duplicate #include directives
38667         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38668         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38669
38670 2008-08-31  Bruno Haible  <bruno@clisp.org>
38671
38672         New module 'sigpipe-die'.
38673         * modules/sigpipe-die: New file.
38674         * lib/sigpipe-die.h: New file.
38675         * lib/sigpipe-die.c: New file.
38676         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38677
38678 2008-08-31  Bruno Haible  <bruno@clisp.org>
38679
38680         Don't override previously installed signal handlers.
38681         * lib/fatal-signal.c (saved_sigactions): New variable.
38682         (uninstall_handlers): Reset the signal to the saved handler, not
38683         to SIG_DFL (except when ignored).
38684         (install_handlers): Save the previous handlers.
38685
38686 2008-08-30  Bruno Haible  <bruno@clisp.org>
38687
38688         * gnulib-tool (func_reset_sigpipe): New function.
38689         (func_get_automake_snippet, func_modules_transitive_closure,
38690         func_import): Invoke it before a join command that reads from stdin,
38691         to avoid "echo: write error: Broken pipe" error messages on stderr.
38692         Reported by Sam Steingold <sds@gnu.org>.
38693
38694 2008-08-30  Bruno Haible  <bruno@clisp.org>
38695
38696         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38697         Code copied from m4/open.m4.
38698         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38699         access and the filename ends in a slash. Code copied from lib/open.c.
38700         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38701         * tests/test-fopen.c (main): Check against bug with trailing slash.
38702
38703 2008-08-29  Bruno Haible  <bruno@clisp.org>
38704
38705         Avoid some "gcc -pedantic" warnings.
38706         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38707         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38708         * lib/dirent.in.h: Likewise.
38709         * lib/fcntl.in.h: Likewise.
38710         * lib/float.in.h: Likewise.
38711         * lib/iconv.in.h: Likewise.
38712         * lib/inttypes.in.h: Likewise.
38713         * lib/locale.in.h: Likewise.
38714         * lib/math.in.h: Likewise.
38715         * lib/netinet_in.in.h: Likewise.
38716         * lib/search.in.h: Likewise.
38717         * lib/signal.in.h: Likewise.
38718         * lib/stdarg.in.h: Likewise.
38719         * lib/stdint.in.h: Likewise.
38720         * lib/stdio.in.h: Likewise.
38721         * lib/stdlib.in.h: Likewise.
38722         * lib/string.in.h: Likewise.
38723         * lib/strings.in.h: Likewise.
38724         * lib/sys_select.in.h: Likewise.
38725         * lib/sys_socket.in.h: Likewise.
38726         * lib/sys_stat.in.h: Likewise.
38727         * lib/sys_time.in.h: Likewise.
38728         * lib/sysexits.in.h: Likewise.
38729         * lib/time.in.h: Likewise.
38730         * lib/unistd.in.h: Likewise.
38731         * lib/wchar.in.h: Likewise.
38732         * lib/wctype.in.h: Likewise.
38733         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38734         * modules/fchdir (Makefile.am): Likewise.
38735         * modules/fcntl (Makefile.am): Likewise.
38736         * modules/float (Makefile.am): Likewise.
38737         * modules/iconv_open (Makefile.am): Likewise.
38738         * modules/inttypes (Makefile.am): Likewise.
38739         * modules/locale (Makefile.am): Likewise.
38740         * modules/math (Makefile.am): Likewise.
38741         * modules/netinet_in (Makefile.am): Likewise.
38742         * modules/search (Makefile.am): Likewise.
38743         * modules/signal (Makefile.am): Likewise.
38744         * modules/stdarg (Makefile.am): Likewise.
38745         * modules/stdint (Makefile.am): Likewise.
38746         * modules/stdio (Makefile.am): Likewise.
38747         * modules/stdlib (Makefile.am): Likewise.
38748         * modules/string (Makefile.am): Likewise.
38749         * modules/strings (Makefile.am): Likewise.
38750         * modules/sys_select (Makefile.am): Likewise.
38751         * modules/sys_socket (Makefile.am): Likewise.
38752         * modules/sys_stat (Makefile.am): Likewise.
38753         * modules/sys_time (Makefile.am): Likewise.
38754         * modules/sysexits (Makefile.am): Likewise.
38755         * modules/time (Makefile.am): Likewise.
38756         * modules/unistd (Makefile.am): Likewise.
38757         * modules/wchar (Makefile.am): Likewise.
38758         * modules/wctype (Makefile.am): Likewise.
38759         Reported by Reuben Thomas <rrt@sc3d.org>.
38760
38761 2008-08-29  Bruno Haible  <bruno@clisp.org>
38762
38763         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38764         any more.
38765
38766 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38767
38768         * MODULES.html.sh (Misc): Add bitrotate.
38769
38770         * modules/bitrotate: New file.
38771
38772         * lib/bitrotate.h: New file.
38773
38774         * modules/bitrotate-tests: New file.
38775
38776         * tests/test-bitrotate.c: New file.
38777
38778         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38779         on the bitrotate module.
38780
38781         * lib/arctwo.c: Use new bitrotate module.
38782
38783 2008-08-29  Jim Meyering  <meyering@redhat.com>
38784
38785         bootstrap: merge changes from coreutils
38786         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38787         of copied files.  Remove a kludge, now that this is fixed.
38788         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38789         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38790         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38791
38792 2008-08-29  Bruno Haible  <bruno@clisp.org>
38793
38794         * MODULES.html.sh: Remove --cvs-urls option.
38795
38796 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38797
38798         maint.mk: adjust to file name change
38799         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38800
38801 2008-08-28  Jim Meyering  <meyering@redhat.com>
38802
38803         * modules/getndelim2 (License): Relicense to LGPLv2+.
38804         Approved by Richard Stallman for the version of 1995, and by
38805         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38806
38807 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38808
38809         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38810         dummy if one is not available.  Do not touch them if
38811         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38812         (getc_maybe_unlocked): New.
38813         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38814
38815 2008-08-26  Eric Blake  <ebb9@byu.net>
38816
38817         doc/INSTALL: resync from autoconf
38818         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38819         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38820         moving...
38821         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38822         * INSTALL: Regenerate.
38823         * INSTALL.ISO: New file.
38824         * INSTALL.UTF-8: Likewise.
38825
38826 2008-08-26  Jim Meyering  <meyering@redhat.com>
38827
38828         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38829         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38830         these definitions conditional, so that they may be overridden, too.
38831
38832 2008-08-26  Bruno Haible  <bruno@clisp.org>
38833
38834         Generate INSTALL file variants with prettier quotes.
38835         * doc/Makefile (INSTALL_PRELUDE): New macro.
38836         (INSTALL): Use it.
38837         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38838
38839 2008-08-26  Bruno Haible  <bruno@clisp.org>
38840
38841         Run makeinfo in an English locale.
38842         * doc/Makefile (MAKEINFO): New variable.
38843
38844 2008-08-26  Bruno Haible  <bruno@clisp.org>
38845
38846         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38847         Suggested by Eric Blake.
38848
38849 2008-08-25  Bruno Haible  <bruno@clisp.org>
38850
38851         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38852
38853 2008-08-25  Eric Blake  <ebb9@byu.net>
38854
38855         c-stack: test that stack overflow can be caught
38856         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38857         that platform allows handling stack overflow; at least OS/2 EMX
38858         has sigaltstack, but crashes before transferring control to
38859         handler on stack overflow.
38860         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38861         check for HAVE_STACK_OVERFLOW_HANDLING.
38862         Reported by Elbert Pol.
38863
38864 2008-08-25  Bruno Haible  <bruno@clisp.org>
38865
38866         * doc/posix-functions/strftime.texi: Fix description of strftime
38867         module.
38868
38869 2008-08-24  Bruno Haible  <bruno@clisp.org>
38870
38871         * tests/uniwidth/test-uc_width2.c: New file.
38872         * tests/uniwidth/test-uc_width2.sh: New file.
38873         * modules/uniwidth/width-tests (Files): Add the new files.
38874         (TESTS): Add uniwidth/test-uc_width2.sh.
38875         (TESTS_ENVIRONMENT): New variable.
38876         (check_PROGRAMS): Add test-uc_width2.
38877         (test_uc_width2_SOURCES): New variable.
38878
38879         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38880         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38881         not 0x00AB.
38882         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38883
38884 2008-08-22  Eric Blake  <ebb9@byu.net>
38885
38886         test-lock, test-tls: mention why a test is skipped
38887         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38888         skipped.
38889         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38890
38891         count-one-bits: relax license
38892         * modules/count-one-bits (License): Relicense to LGPLv2+.
38893         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38894
38895 2008-08-22  Andreas Schwab  <schwab@suse.de>
38896
38897         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38898         Remove spurious space in assignment.
38899
38900 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38901
38902         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38903         Paul Eggert <eggert@CS.UCLA.EDU>.
38904
38905 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38906
38907         * modules/gettext: Add m4/threadlib.m4.
38908
38909 2008-08-19  Eric Blake  <ebb9@byu.net>
38910
38911         test-c-stack: fix compilation failure on FreeBSD 5.0
38912         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38913         headers before <sys/resource.h>.
38914         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38915         the bug.
38916         Reported by Nelson H. F. Beebe.
38917
38918         strverscmp: migrate from "strverscmp.h" to <string.h>
38919         * modules/string (Makefile.am): Add new hooks.
38920         * modules/strverscmp (Files): Remove strverscmp.h.
38921         (Depends-on): Add string.
38922         (configure.ac): Add indicator.
38923         (Include): Mention new header.
38924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38925         defaults.
38926         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38927         results.
38928         * lib/strverscmp.h: Delete.
38929         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38930         * tests/test-strverscmp.c (includes): Adjust client.
38931         * lib/check-version.c (includes): Likewise.
38932         * NEWS: Document the change.
38933
38934         strverscmp: add unit test
38935         * modules/strverscmp-tests: New file.
38936         * tests/test-strverscmp.c: Likewise.
38937
38938 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38939
38940         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38941         regarding Windows crypto stuff, from Mono.
38942
38943 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38944
38945         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38946         if present, for intel RND.  Return error on failures.
38947
38948 2008-08-18  Ben Pfaff  <blp@gnu.org>
38949
38950         gitlog-to-changelog: give better diagnostic for failed pipe-open
38951         * build-aux/gitlog-to-changelog: Improve error message: suggest
38952         that the version of Git may be too old.
38953
38954 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38955
38956         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38957         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38958
38959 2008-08-18  Bruno Haible  <bruno@clisp.org>
38960
38961         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38962         pthread_in_use().
38963
38964 2008-08-18  Bruno Haible  <bruno@clisp.org>
38965
38966         * lib/glthread/threadlib.c: Include <pthread.h>.
38967
38968 2008-08-18  Bruno Haible  <bruno@clisp.org>
38969
38970         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38971         glthread_recursive_lock_* macros.
38972         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38973         Fix syntax error.
38974
38975 2008-08-18  Bruno Haible  <bruno@clisp.org>
38976
38977         * lib/glthread/thread.c: Avoid forcing a context switch right after
38978         thread creation.
38979
38980 2008-08-17  Bruno Haible  <bruno@clisp.org>
38981
38982         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38983         * lib/glthread/thread.h: Provide Win32 specific implementation.
38984         * modules/thread (Files): Add lib/glthread/thread.c.
38985         (Depends-on): Add lock.
38986         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38987
38988 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38989
38990         New module 'yield'.
38991         * modules/yield: New file.
38992         * lib/glthread/yield.h: New file.
38993         * m4/yield.m4: New file.
38994         * MODULES.html.sh (Multithreading): Add yield.
38995
38996 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38997
38998         New module 'thread'.
38999         * modules/thread: New file.
39000         * lib/glthread/thread.h: New file.
39001         * m4/thread.m4: New file.
39002         * MODULES.html.sh (Multithreading): Add thread.
39003
39004 2008-08-17  Bruno Haible  <bruno@clisp.org>
39005
39006         * lib/glthread/lock.h: Include <stdlib.h> always.
39007         * lib/glthread/tls.h: Likewise.
39008         * lib/glthread/cond.h: Likewise.
39009
39010 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39011
39012         New module 'cond'.
39013         * modules/cond: New file.
39014         * lib/glthread/cond.h: New file.
39015         * lib/glthread/cond.c: New file.
39016         * m4/cond.m4: New file.
39017         * MODULES.html.sh (Multithreading): Add cond.
39018
39019 2008-08-16  Eric Blake  <ebb9@byu.net>
39020
39021         c-stack: fix regression on Irix 5.3 from 2008-06-21
39022         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
39023         sa_sigaction...
39024         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
39025         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
39026         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
39027         * modules/signal (Makefile.am): Use the value.
39028         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
39029         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
39030         * doc/posix-headers/signal.texi (signal.h): Document this
39031         portability issue.
39032         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
39033         Reported by Tom G. Christensen.
39034
39035 2008-08-17  Bruno Haible  <bruno@clisp.org>
39036
39037         New module 'threadlib'.
39038         * modules/threadlib: New file.
39039         * lib/glthread/threadlib.c: New file, extracted from
39040         lib/glthread/lock.c.
39041         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
39042         functions.
39043         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
39044         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
39045         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
39046         macros.
39047         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
39048         (gl_DISABLE_THREADS): Remove macro.
39049         * modules/lock (Files): Remove build-aux/config.rpath.
39050         (Depends-on): Remove havelib. Add threadlib.
39051         (configure.ac-early): Remove section.
39052         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
39053         * modules/tls (Depends-on): Remove lock. Add threadlib.
39054         (Link): New section, copied from threadlib.
39055         * MODULES.html.sh (Multithreading): Add threadlib.
39056
39057 2008-08-14  Bruno Haible  <bruno@clisp.org>
39058
39059         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
39060         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
39061         glthread_rwlock_unlock, glthread_rwlock_destroy,
39062         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
39063         glthread_recursive_lock_destroy): Define as macros always.
39064         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
39065         glthread_lock_lock.
39066         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
39067         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
39068         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
39069         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
39070         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
39071         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
39072         (glthread_recursive_lock_lock_func): Renamed from
39073         glthread_recursive_lock_lock.
39074         (glthread_recursive_lock_unlock_func): Renamed from
39075         glthread_recursive_lock_unlock.
39076         (glthread_recursive_lock_destroy_func): Renamed from
39077         glthread_recursive_lock_destroy.
39078
39079 2008-08-14  Bruno Haible  <bruno@clisp.org>
39080
39081         * lib/glthread/lock.h: Renamed from lib/lock.h.
39082         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
39083         * lib/glthread/tls.h: Renamed from lib/tls.h.
39084         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
39085         * lib/fstrcmp.c: Update includes.
39086         * lib/strsignal.c: Update includes.
39087         * modules/lock (Files, Makefile.am): Update.
39088         (Include): Change to "glthread/lock.h".
39089         * modules/tls (Files, Makefile.am): Update.
39090         (Include): Change to "glthread/tls.h".
39091         * tests/test-lock.c: Update includes.
39092         * tests/test-tls.c: Update includes.
39093         * NEWS: Mention the renamed header files.
39094
39095 2008-08-11  Jim Meyering  <meyering@redhat.com>
39096
39097         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
39098
39099 2008-08-11  Eric Blake  <ebb9@byu.net>
39100
39101         test-c-stack: avoid C99-ism
39102         * tests/test-c-stack.c (main): Fix whitespace, move declaration
39103         before statement.
39104         Reported by Alain Guibert.
39105
39106 2008-08-10  Jim Meyering  <meyering@redhat.com>
39107
39108         ensure that return value of uinttostr et al are not ignored
39109         * lib/inttostr.h (__GNUC_PREREQ): Define.
39110         (__attribute_warn_unused_result__): Define.
39111         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
39112
39113 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
39114
39115         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
39116         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
39117
39118 2008-08-07  Jim Meyering  <meyering@redhat.com>
39119
39120         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
39121
39122         * modules/mkstemp (License): Relicense under LGPLv2+.
39123         * modules/tempname (License): Likewise.
39124
39125 2008-08-06  Bruno Haible  <bruno@clisp.org>
39126
39127         * lib/poll.c (poll): Further micro-optimization.
39128
39129 2008-08-06  Jim Meyering  <meyering@redhat.com>
39130
39131         inet_pton.c: use locale-independent tolower
39132         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
39133         (inet_pton6): Use c_tolower rather than tolower.
39134         * modules/inet_pton (Depends-on): Add c-ctype.
39135
39136 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
39137
39138         * lib/poll.c (poll): Avoid division when timeout is 0, cache
39139         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
39140
39141 2008-08-06  Jim Meyering  <meyering@redhat.com>
39142
39143         * modules/inet_pton (License): Relicense under LGPLv2+.
39144
39145 2008-08-03  Bruno Haible  <bruno@clisp.org>
39146
39147         Additional non-aborting API for lock and tls.
39148         * lib/lock.h: Include <errno.h>.
39149         (glthread_lock_init): New macro/function.
39150         (gl_lock_init): Define as wrapper around glthread_lock_init.
39151         (glthread_lock_lock): New macro/function.
39152         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
39153         (glthread_lock_unlock): New macro/function.
39154         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
39155         (glthread_lock_destroy): New macro/function.
39156         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
39157         (glthread_rwlock_init): New macro/function.
39158         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
39159         (glthread_rwlock_rdlock): New macro/function.
39160         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
39161         (glthread_rwlock_wrlock): New macro/function.
39162         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
39163         (glthread_rwlock_unlock): New macro/function.
39164         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
39165         (glthread_rwlock_destroy): New macro/function.
39166         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
39167         (glthread_recursive_lock_init): New macro/function.
39168         (gl_recursive_lock_init): Define as wrapper around
39169         glthread_recursive_lock_init.
39170         (glthread_recursive_lock_lock): New macro/function.
39171         (gl_recursive_lock_lock): Define as wrapper around
39172         glthread_recursive_lock_lock.
39173         (glthread_recursive_lock_unlock): New macro/function.
39174         (gl_recursive_lock_unlock): Define as wrapper around
39175         glthread_recursive_lock_unlock.
39176         (glthread_recursive_lock_destroy): New macro/function.
39177         (gl_recursive_lock_destroy): Define as wrapper around
39178         glthread_recursive_lock_destroy.
39179         (glthread_once): New macro/function.
39180         (gl_once): Define as wrapper around glthread_once.
39181         Update function declarations.
39182         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
39183         glthread_rwlock_init. Return error code.
39184         (glthread_rwlock_rdlock_multithreaded): Renamed from
39185         glthread_rwlock_rdlock. Return error code.
39186         (glthread_rwlock_wrlock_multithreaded): Renamed from
39187         glthread_rwlock_wrlock. Return error code.
39188         (glthread_rwlock_unlock_multithreaded): Renamed from
39189         glthread_rwlock_unlock. Return error code.
39190         (glthread_rwlock_destroy_multithreaded): Renamed from
39191         glthread_rwlock_destroy. Return error code.
39192         (glthread_recursive_lock_init_multithreaded): Renamed from
39193         glthread_recursive_lock_init. Return error code.
39194         (glthread_recursive_lock_lock_multithreaded): Renamed from
39195         glthread_recursive_lock_lock. Return error code.
39196         (glthread_recursive_lock_unlock_multithreaded): Renamed from
39197         glthread_recursive_lock_unlock. Return error code.
39198         (glthread_recursive_lock_destroy_multithreaded): Renamed from
39199         glthread_recursive_lock_destroy. Return error code.
39200         (glthread_once_call): Make static.
39201         (glthread_once_multithreaded): Renamed from glthread_once.
39202         * lib/tls.h: Include <errno.h>.
39203         (glthread_tls_key_init): New macro/function.
39204         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
39205         (glthread_tls_set): New macro/function.
39206         (gl_tls_set): Define as wrapper around glthread_tls_set.
39207         (glthread_tls_key_destroy): New macro/function.
39208         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
39209         Update function declarations.
39210         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
39211         glthread_tls_get.
39212         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
39213
39214 2008-08-04  Eric Blake  <ebb9@byu.net>
39215
39216         gnumakefile: use space, not TAB, outside of targets
39217         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39218
39219 2008-08-02  Jim Meyering  <meyering@redhat.com>
39220
39221         getdate.y: avoid locale-dependent date parsing failure
39222         In Turkish locales, getdate would fail to recognize keywords
39223         containing a lowercase "i".  The solution is not to rely on
39224         locale-sensitive case-conversion.
39225         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39226         (lookup_word): Use c_toupper in place of toupper.
39227         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39228         Reported by Vefa Bicakci <bicave@superonline.com> in
39229         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39230         * modules/getdate (Depends-on): Add c-ctype.
39231
39232 2008-08-02  Bruno Haible  <bruno@clisp.org>
39233
39234         * gnulib-tool (func_import): When updating or creating a .gitignore
39235         file, prepend each added line with a slash, and ignore leading slashes
39236         from the existing lines.
39237         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39238
39239 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39240
39241         Portability fix for GNU make 3.79.1.
39242         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39243         versions do not understand.
39244
39245 2008-08-01  Bruno Haible  <bruno@clisp.org>
39246
39247         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39248         * tests/test-isnanf.h (zero): New variable.
39249         (main): Avoid literal -0.0f.
39250         * tests/test-isnand.h (zero): New variable.
39251         (main): Avoid literal -0.0.
39252         * tests/test-isnanl.h (zero): New variable.
39253         (main): Avoid literal -0.0L.
39254         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39255         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39256         -0.0, -0.0L.
39257         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39258         (test_signbitd): Avoid literal -0.0.
39259         (test_signbitl): Avoid literal -0.0L.
39260         * tests/test-ceilf1.c (zero): New variable.
39261         (main): Avoid literal -0.0f.
39262         * tests/test-ceill.c (zero): New variable.
39263         (main): Avoid literal -0.0L.
39264         * tests/test-floorf1.c (zero): New variable.
39265         (main): Avoid literal -0.0f.
39266         * tests/test-floorl.c (zero): New variable.
39267         (main): Avoid literal -0.0L.
39268         * tests/test-roundf1.c (zero): New variable.
39269         (main): Avoid literal -0.0f.
39270         * tests/test-round1.c (zero): New variable.
39271         (main): Avoid literal -0.0.
39272         * tests/test-roundl.c (zero): New variable.
39273         (main): Avoid literal -0.0L.
39274         * tests/test-truncf1.c (zero): New variable.
39275         (main): Avoid literal -0.0f.
39276         * tests/test-trunc1.c (zero): New variable.
39277         (main): Avoid literal -0.0.
39278         * tests/test-truncl.c (zero): New variable.
39279         (main): Avoid literal -0.0L.
39280         * tests/test-frexp.c (zero): New variable.
39281         (main): Avoid literal -0.0.
39282         * tests/test-frexpl.c (zero): New variable.
39283         (main): Avoid literal -0.0L.
39284         * tests/test-ldexpl.c (zero): New variable.
39285         (main): Avoid literal -0.0L.
39286         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39287         (zerod, zerol): New variables.
39288         (test_function): Avoid literals -0.0, -0.0L.
39289         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39290         (zerod, zerol): New variables.
39291         (test_function): Avoid literals -0.0, -0.0L.
39292         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39293         (zerod, zerol): New variables.
39294         (test_function): Avoid literals -0.0, -0.0L.
39295         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39296         (zerod, zerol): New variables.
39297         (test_function): Avoid literals -0.0, -0.0L.
39298         * tests/test-strtod.c (zero): New variable.
39299         (main): Avoid literal -0.0.
39300         Reported by Jonathan C. Patschke <jp@centtech.com>.
39301
39302 2008-07-31  Jim Meyering  <meyering@redhat.com>
39303
39304         sha256.h: correct definition of SHA224_DIGEST_SIZE
39305         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39306         Reported by Paulie Pena IV <paulie4@gmail.com>.
39307         Define as 224 / 8, rather than as a literal.
39308         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39309         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39310         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39311
39312 2008-07-31  Bruno Haible  <bruno@clisp.org>
39313
39314         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39315         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39316         Reported by Jonathan Patschke <jp@centtech.com>.
39317
39318 2008-07-31  Bruno Haible  <bruno@clisp.org>
39319
39320         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39321         Reported by Paolo Bonzini <bonzini@gnu.org>.
39322
39323 2008-07-30  Eric Blake  <ebb9@byu.net>
39324
39325         test-strtod: allow compilation without -lm
39326         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39327         Reported by Dennis Clarke <blastwave@gmail.com>.
39328
39329 2008-07-28  Jim Meyering  <meyering@redhat.com>
39330
39331         bootstrap: work also when there are no .po files in po/
39332         * build-aux/bootstrap (update_po_files): Complete the change
39333         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39334
39335 2008-07-27  Jim Meyering  <meyering@redhat.com>
39336
39337         * users.txt: Add zile.
39338
39339 2008-07-26  Ben Pfaff  <blp@gnu.org>
39340
39341         Add missing dependencies on new m4/exponent[fdl].m4 files.
39342         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39343         * modules/isnand-nolibm: Add m4/exponentd.m4.
39344         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39345         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39346         m4/isnan[fdl].m4, because the macros actually used moved.
39347         Reported by Jim Meyering.
39348
39349 2008-07-14  Ben Pfaff  <blp@gnu.org>
39350
39351         Add isinf module.
39352         * lib/isinf.c: New file.
39353         * lib/math.in.h: Define isinf macro if we have decided to replace
39354         it.
39355         * m4/isinf.m4: New file.
39356         * m4/math_h.m4: Initialize and substitute variables for isinf
39357         module.
39358         * modules/isinf: New file.
39359         * modules/isinf-tests: New file.
39360         * modules/math: Add substitutions for new module.
39361         * tests/test-isinf.c: New file.
39362         * doc/posix-functions/isinf.texi: Mention new module.
39363         * MODULES.html.sh: Mention new module.
39364
39365 2008-07-14  Ben Pfaff  <blp@gnu.org>
39366
39367         Factor out some macros for use by additional modules.
39368         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39369         exponentf.m4.
39370         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39371         exponentd.m4.
39372         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39373         file exponentl.m4.
39374         * m4/exponentf.m4: New file.
39375         * m4/exponentd.m4: New file.
39376         * m4/exponentl.m4: New file.
39377         * modules/isnanf: Use new file m4/exponentf.m4.
39378         * modules/isnand: Use new file m4/exponentd.m4.
39379         * modules/isnanl: Use new file m4/exponentl.m4.
39380
39381 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39382
39383         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39384         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39385         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39386         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39387
39388         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39389         readlink on platforms without PATH_MAX.
39390
39391 2008-07-21  Eric Blake  <ebb9@byu.net>
39392
39393         Warn, not fail, on stale version.
39394         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39395
39396         Don't allow installation with stale devel version number.
39397         * top/GNUmakefile (_is-install-target): New macro.
39398         (_curr-ver): Forbid installation with stale version number.
39399
39400 2008-07-20  Bruno Haible  <bruno@clisp.org>
39401
39402         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39403         TESTS_ENVIRONMENT.
39404         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39405
39406 2008-07-20  Bruno Haible  <bruno@clisp.org>
39407
39408         * lib/c-stack.h (c_stack_action): Add documentation.
39409         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39410
39411 2008-07-20  Bruno Haible  <bruno@clisp.org>
39412
39413         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39414         * modules/readlink (License): Likewise.
39415
39416 2008-07-17  Eric Blake  <ebb9@byu.net>
39417
39418         * modules/c-stack (Link): Fix typo.
39419
39420         Make c-stack use libsigsegv, when available.
39421         * modules/c-stack (Depends-on): Add libsigsegv.
39422         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39423         needed.
39424         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39425         (segv_handler, overflow_handler, c_stack_action)
39426         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39427         implementation when libsigsegv is available, but only when using
39428         the library is necessary.
39429         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39430         comment, explaining why XSI check fails on Linux.
39431         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39432         * tests/test-c-stack2.sh: Tweak skip message.
39433         * NEWS: Document new link-time requirements.
39434
39435 2008-07-16  Eric Blake  <ebb9@byu.net>
39436
39437         c-stack: Expose false positives when not using libsigsegv.
39438         * modules/c-stack-tests (Files): Expand test.
39439         * tests/test-c-stack.c (main): Add means to conditionally trigger
39440         non-overflow SIGSEGV.
39441         * tests/test-c-stack2.sh: New file.
39442
39443 2008-07-14  Bruno Haible  <bruno@clisp.org>
39444
39445         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39446         Reported by Eric Blake.
39447
39448 2008-07-14  Sam Steingold  <sds@gnu.org>
39449             Bruno Haible  <bruno@clisp.org>
39450
39451         New module libsigsegv.
39452         * modules/libsigsegv: New file.
39453         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39454         modifications.
39455         * MODULES.html.sh (Signal handling): New section.
39456
39457 2008-07-14  Bruno Haible  <bruno@clisp.org>
39458
39459         * modules/unictype/ctype-* (Description): Add the word "function".
39460         Improves the resulting doc in MODULES.html.
39461
39462 2008-07-12  Ben Pfaff  <blp@gnu.org>
39463
39464         Add longlong module.
39465         * modules/longlong: New file.
39466
39467 2008-07-12  Bruno Haible  <bruno@clisp.org>
39468
39469         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39470         to empty.
39471
39472 2008-07-10  Ben Pfaff  <blp@gnu.org>
39473
39474         Add isnan module.
39475         * doc/posix-functions/isnan.texi: Mention new module.
39476         * lib/math.in.h: Define isnan macro if we have decided to replace
39477         it.
39478         * m4/isnan.m4: New file.
39479         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39480         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39481         also.
39482         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39483         redundancy.
39484         * m4/math_h.m4: Initialize and substitute variables for isnan
39485         module.
39486         * modules/isnan: New file.
39487         * modules/isnan-tests: New file.
39488         * modules/math: Add substitutions for new module.
39489         * tests/test-isnan.c: New file.
39490         * MODULES.html.sh: Mention new module.
39491
39492 2008-07-10  Ben Pfaff  <blp@gnu.org>
39493
39494         Add isnanf module.
39495         * lib/isnanf.m4: New file.
39496         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39497         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39498         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39499         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39500         * modules/isnanf: New file.
39501         * modules/isnanf-tests: New file.
39502         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39503         files.
39504         * tests/test-isnanf-nolibm.c: factored most of its contents into
39505         new file tests/test-isnanf.h.
39506         * tests/test-isnanf.h: New file.
39507         * tests/test-isnanf.c: New file.
39508         * MODULES.html.sh: Mention new module.
39509         * doc/glibc-functions/isnanf.texi: Mention new module.
39510
39511 2008-07-10  Ben Pfaff  <blp@gnu.org>
39512
39513         Add isnand module.
39514         * lib/isnand.h: New file.
39515         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39516         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39517         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39518         functionality also.
39519         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39520         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39521         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39522         * modules/isnand: New file.
39523         * modules/isnand-tests: New file.
39524         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39525         files.
39526         * tests/test-isnand-nolibm.c: factored most of its contents into
39527         new file tests/test-isnand.h.
39528         * tests/test-isnand.h: New file.
39529         * tests/test-isnand.c: New file.
39530         * MODULES.html.sh: Mention new module.
39531
39532 2008-07-10  Ben Pfaff  <blp@gnu.org>
39533
39534         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39535         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39536         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39537         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39538         * modules/isnanf-nolibm: Update references to renamed files.
39539         * modules/isnand-nolibm: Likewise.
39540         * modules/isnanf-nolibm-tests: Likewise.
39541         * modules/isnand-nolibm-tests: Likewise.
39542         * lib/frexp.c: Likewise.
39543         * lib/isfinite.c: Likewise.
39544         * lib/signbitd.c: Likewise.
39545         * lib/signbitf.c: Likewise.
39546         * lib/vasnprintf.c: Likewise.
39547         * tests/test-ceilf1.c: Likewise.
39548         * tests/test-ceilf2.c: Likewise.
39549         * tests/test-floorf1.c: Likewise.
39550         * tests/test-floorf2.c: Likewise.
39551         * tests/test-frexp.c: Likewise.
39552         * tests/test-round1.c: Likewise.
39553         * tests/test-round2.c: Likewise.
39554         * tests/test-roundf1.c: Likewise.
39555         * tests/test-strtod.c: Likewise.
39556         * tests/test-trunc1.c: Likewise.
39557         * tests/test-trunc2.c: Likewise.
39558         * tests/test-truncf1.c: Likewise.
39559         * tests/test-truncf2.c: Likewise.
39560         * NEWS: Mention the renamed header files.
39561
39562 2008-07-11  Jim Meyering  <meyering@redhat.com>
39563
39564         vc-list-files: make the last-resort awk code more portable
39565         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39566         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39567         does not support it.
39568
39569 2008-07-10  Eric Blake  <ebb9@byu.net>
39570
39571         Work with tar's bootstrap.
39572         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39573         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39574         an m4 comment.
39575
39576 2008-07-09  Jim Meyering  <meyering@redhat.com>
39577
39578         posix-shell.m4: fix typo that made this test malfunction
39579         * m4/posix-shell.m4: Remove capitalization in variable name.
39580
39581 2008-07-08  Bruno Haible  <bruno@clisp.org>
39582
39583         * m4/onceonly.m4: Update comments.
39584         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39585
39586 2008-07-04  Jim Meyering  <meyering@redhat.com>
39587
39588         * users.txt: Add vc-dwim.
39589         (bison, coreutils): Use the gitweb URL.
39590
39591 2008-07-03  Jim Meyering  <meyering@redhat.com>
39592
39593         * users.txt: Add libffcall.  From Sam Steingold.
39594
39595 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39596
39597         getdate.y: do not ignore TZ with relative day, month or year offset
39598         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39599         relative-date-handling, since otherwise, the latter would clobber the
39600         sole output (an updated Start value) of the tz-handling block.
39601         * tests/test-getdate.c: Tests for the fix
39602
39603 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39604
39605         Recognize 'foo_LIBRARIES += libgnu.a'.
39606         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39607         makefile snippet has already specified an installation location,
39608         also using '+='.
39609
39610 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39611
39612         getdate.y: factor out common actions
39613         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39614         Use them in place of open-coded actions.
39615
39616 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39617
39618         Add self-test for getdate module.
39619         * modules/getdate-tests: New file.
39620         * tests/test-getdate.c: New file.
39621
39622 2008-06-29  Bruno Haible  <bruno@clisp.org>
39623
39624         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39625         .gitignore.
39626         Reported by Sylvain Beucler <beuc@beuc.net>.
39627
39628 2008-06-29  Bruno Haible  <bruno@clisp.org>
39629
39630         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39631         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39632
39633 2008-06-29  Bruno Haible  <bruno@clisp.org>
39634
39635         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39636         EXTRA_DIST.
39637         Reported by Sylvain Beucler <beuc@beuc.net>.
39638
39639 2008-06-26  Jim Meyering  <meyering@redhat.com>
39640
39641         make several modules depend on the "open" module
39642         This provides slightly increased consistency when opening-for-write
39643         the name of a non-directory spelled with a trailing slash.
39644         * modules/chdir-safer: Likewise.
39645         * modules/chown: Likewise.
39646         * modules/clean-temp: Likewise.
39647         * modules/copy-file: Likewise.
39648         * modules/fchdir: Likewise.
39649         * modules/fcntl-safer: Likewise.
39650         * modules/pipe: Likewise.
39651         * modules/utime: Likewise.
39652         Prompted by Eric Blake and Bruno Haible.
39653
39654 2008-06-24  Andreas Schwab  <schwab@suse.de>
39655
39656         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39657         literals can be used as initializers for global variables.
39658
39659 2008-06-23  Eric Blake  <ebb9@byu.net>
39660
39661         Make gnulib-cache.m4 easier to diff.
39662         * gnulib-tool (func_import): Allow newlines when reading cached
39663         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39664
39665 2008-06-23  Bruno Haible  <bruno@clisp.org>
39666
39667         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39668         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39669         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39670         m4/signalblocking.m4.
39671         (gl_PREREQ_SIGACTION): Don't invoke it.
39672         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39673         gl_PREREQ_SIG_HANDLER_H.
39674         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39675         Don't check for sigaction here.
39676
39677 2008-06-23  Bruno Haible  <bruno@clisp.org>
39678
39679         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39680         (install_handlers): Don't set the SA_RESETHAND flag.
39681
39682 2008-06-23  Bruno Haible  <bruno@clisp.org>
39683
39684         * m4/sigaction.m4: Comment fixes.
39685         * lib/signal.in.h: Likewise.
39686
39687 2008-06-23  Eric Blake  <ebb9@byu.net>
39688
39689         Fix typo.
39690         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39691
39692         Avoid SA_ namespace.
39693         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39694         Reported by Ralf Wildenhues.
39695
39696         Avoid test failure due to SA_RESTORER.
39697         * tests/test-sigaction.c (SA_MASK): New macro.
39698         (main): Avoid failing due to extension flags being set.
39699         Reported by Jim Meyering.
39700
39701         Revert use of sig-handler.h in sigprocmask.c.
39702         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39703         it requires the existence of struct sigaction.
39704         * lib/sigprocmask.c (handler_t): Restore typedef.
39705         (rpl_signal, old_handlers): Use local type.
39706
39707 2008-06-22  Bruno Haible  <bruno@clisp.org>
39708
39709         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39710         conditionally.
39711         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39712
39713 2008-06-22  Bruno Haible  <bruno@clisp.org>
39714
39715         * doc/posix-functions/siginterrupt.texi: Move note.
39716
39717         * lib/signal.in.h (SA_RESTART): New macro.
39718         * lib/sigaction.c: Update comment.
39719
39720         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39721
39722         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39723         (gl_PREREQ_SIGPROCMASK): Invoke it.
39724         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39725
39726         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39727
39728         * lib/sigprocmask.c: Update a comment.
39729
39730 2008-06-21  Eric Blake  <ebb9@byu.net>
39731
39732         Use sigaction module rather than signal().
39733         * modules/c-stack (Depends-on): Add sigaction.
39734         * modules/fatal-signal (Depends-on): Likewise.
39735         * modules/nanosleep (Depends-on): Likewise.
39736         * modules/sigprocmask (Files): Add sig-handler.h.
39737         * modules/sigaction (Files): Likewise.
39738         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39739         Eggert.
39740         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39741         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39742         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39743         (init_fatal_signals): Likewise.
39744         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39745         (siginterrupt): Delete fallback.
39746         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39747         instead.
39748         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39749         siginterrupt.
39750
39751         New module sigaction, for mingw.
39752         * modules/sigaction: New module...
39753         * modules/sigaction-tests: ...and its test.
39754         * m4/sigaction.m4: New file.
39755         * lib/sigaction.c: Likewise.
39756         * tests/test-sigaction.c: Likewise.
39757         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39758         * modules/signal (Makefile.am): Likewise.
39759         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39760         needed.
39761         * doc/posix-headers/signal.texi (signal.h): Mention provided
39762         types.
39763         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39764         that sigaction is preferable.
39765         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39766         module.
39767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39768         sigaction.
39769
39770         Improve robustness of sigprocmask by overriding signal.
39771         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39772         is in use.
39773         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39774         (SIGKILL, SIGSTOP): Provide fallbacks.
39775         (rpl_signal): Implement.
39776         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39777         signal can be called inside handlers.
39778
39779         Fix nanosleep module on mingw.
39780         * modules/nanosleep (Depends-on): Add sys_select.
39781         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39782
39783         Fix licensing of sigprocmask.
39784         * modules/raise (License): Relicense as LGPL.
39785
39786 2008-06-21  Bruno Haible  <bruno@clisp.org>
39787
39788         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39789         result if it contains question marks.
39790         Reported by Michael Geng <linux@michaelgeng.de>.
39791
39792 2008-06-19  Bruno Haible  <bruno@clisp.org>
39793
39794         Fix CVS-ism.
39795         * doc/gnulib.texi: Include updated-stamp.texi.
39796         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39797         (updated-stamp.texi): New rule.
39798         (gnulib.info): Depend on it.
39799         * doc/.gitignore: Add updated-stamp.texi.
39800         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39801
39802 2008-06-19  Bruno Haible  <bruno@clisp.org>
39803
39804         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39805         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39806
39807 2008-06-19  Eric Blake  <ebb9@byu.net>
39808
39809         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39810         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39811         Reported by Stepan Kasal.
39812
39813 2008-06-18  Bruno Haible  <bruno@clisp.org>
39814
39815         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39816         Reported by Eric Blake.
39817
39818 2008-06-18  Eric Blake  <ebb9@byu.net>
39819
39820         Work around cygwin 1.5.25 strsignal bug.
39821         * tests/test-strsignal.c: Allow for const char *.
39822         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39823
39824 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39825
39826         * users.txt: Update URL to article and add author/date
39827         information.
39828
39829 2008-06-17  Bruno Haible  <bruno@clisp.org>
39830
39831         New macro gl_DISABLE_THREADS.
39832         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39833         if the user did not pass --enable-threads or --disable-threads option.
39834         (gl_DISABLE_THREADS): New macro.
39835         Reported by Eric Blake <ebb9@byu.net>.
39836
39837 2008-06-17  Bruno Haible  <bruno@clisp.org>
39838
39839         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39840         when the macro ignores it.
39841         Based on a patch by Eric Blake <ebb9@byu.net>.
39842
39843 2008-06-17  Bruno Haible  <bruno@clisp.org>
39844
39845         * modules/tls (License): Change to LGPLv2+.
39846         Reported by Eric Blake.
39847
39848 2008-06-17  Eric Blake  <ebb9@byu.net>
39849
39850         Simplify c-stack prerequisites.
39851         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39852         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39853         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39854         check.
39855         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39856         <sys/resource.h>.
39857
39858         Move c-stack test into testsuite.
39859         * modules/c-stack-tests: New file.
39860         * lib/c-stack.c [DEBUG]: Move test program...
39861         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39862         fail test if sigaltstack is lacking.
39863         * tests/test-c-stack.sh: New driver file.
39864
39865 2008-06-16  Eric Blake  <ebb9@byu.net>
39866
39867         Use raise module consistently.
39868         * modules/fatal-signal (Depends-on): Add raise.
39869         * modules/sigprocmask (Depends-on): Likewise.
39870         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39871         * lib/sigprocmask.c (sigprocmask): Likewise.
39872         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39873         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39874
39875         Fix compliance bug in sigpending.
39876         * lib/sigprocmask.c (sigpending): Return pending array via
39877         parameter, not return value.
39878
39879 2008-06-14  Eric Blake  <ebb9@byu.net>
39880
39881         Improve obstack-printf test code.
39882         * tests/test-obstack-printf.c (test_function): Fix comment, and
39883         simplify usage of obstack_* in macros.  Add a test for coverage.
39884         Reported by Bruno Haible.
39885
39886 2008-06-14  Bruno Haible  <bruno@clisp.org>
39887
39888         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39889         array size as a constant, not as a const variable.
39890         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39891         AC_USE_SYSTEM_EXTENSIONS.
39892         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39893         Test whether the obstack_printf function actually exists.
39894         * modules/obstack-printf (Depends-on): Add extensions.
39895         (Include): Remove obstack.h.
39896         * modules/obstack-printf-posix (Depends-on): Add extensions.
39897         (Include): Remove obstack.h.
39898
39899 2008-06-13  Eric Blake  <ebb9@byu.net>
39900
39901         Add obstack-printf and obstack-printf-posix modules.
39902         * modules/obstack-printf: New file.
39903         * modules/obstack-printf-posix: Likewise.
39904         * MODULES.html.sh (Misc): Mention them.
39905         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39906         Likewise.
39907         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39908         Likewise.
39909         * modules/stdio (Makefile.am): Accomodate new modules.
39910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39911         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39912         Declare.
39913         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39914         functions.
39915         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39916         (gl_REPLACE_OBSTACK_PRINTF): New macros
39917         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39918         * tests/test-obstack-printf.c: New file.
39919         * modules/obstack-printf-tests: Likewise.
39920         * modules/obstack-printf-posix-tests: Likewise.
39921
39922 2008-06-11  Bruno Haible  <bruno@clisp.org>
39923
39924         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39925         * lib/open.c: Include errno.h.
39926         (open): Fail when attempting to write to a file that has a trailing
39927         slash.
39928         * tests/test-open.c (main): Test against trailing slash bug.
39929         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39930
39931 2008-06-10  Bruno Haible  <bruno@clisp.org>
39932
39933         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39934         for $? to work inside the trap command, with various /bin/sh-s.
39935         * tests/test-vc-list-files-cvs.sh: Likewise.
39936
39937 2008-06-10  Bruno Haible  <bruno@clisp.org>
39938
39939         * lib/acl-internal.h: Don't include gettext.h here.
39940         * lib/set-mode-acl.c: Include gettext.h here.
39941         * lib/copy-acl.c: Likewise.
39942
39943 2008-06-10  Bruno Haible  <bruno@clisp.org>
39944
39945         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39946         * lib/wait-process.c (wait_subprocess): Likewise.
39947         * lib/execute.h (execute): Add termsigp argument.
39948         * lib/execute.c (execute): Likewise.
39949         * lib/csharpcomp.c (compile_csharp_using_pnet,
39950         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39951         * lib/csharpexec.c (execute_csharp_using_pnet,
39952         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39953         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39954         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39955         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39956         is_jikes_present): Update.
39957         * lib/javaexec.c (execute_java_class): Update.
39958         * lib/javaversion.c (execute_and_read_line): Update.
39959         * NEWS: Document the changes.
39960         Reported by Eric Blake.
39961
39962 2008-06-10  Eric Blake  <ebb9@byu.net>
39963
39964         Add missing include.
39965         * tests/test-strstr.c (includes): Add <signal.h>.
39966         * tests/test-strcasestr.c (includes): Likewise.
39967         * tests/test-memmem.c (includes): Likewise.
39968
39969 2008-06-10  Bruno Haible  <bruno@clisp.org>
39970
39971         * lib/wait-process.c (wait_subprocess): Add an assertion.
39972
39973 2008-06-10  Bruno Haible  <bruno@clisp.org>
39974
39975         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39976
39977 2008-06-10  Bruno Haible  <bruno@clisp.org>
39978
39979         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39980         using alarm().
39981         * tests/test-strcasestr.c (main): Likewise.
39982         * tests/test-strstr.c (main): Likewise.
39983
39984 2008-06-09  Bruno Haible  <bruno@clisp.org>
39985
39986         Work around the Solaris 10 ACE ACLs ABI change.
39987         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39988         declare if ACL_NO_TRIVIAL is present.
39989         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39990         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39991         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39992         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39993         define if ACL_NO_TRIVIAL is present.
39994         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39995         and use the current ABI.
39996         (file_has_acl): Use same #if condition as elsewhere.
39997         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39998         in use, and use the current ABI.
39999         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
40000         Reported by Jim Meyering.
40001
40002 2008-06-09  Eric Blake  <ebb9@byu.net>
40003
40004         Work around environments that (stupidly) ignore SIGALRM.
40005         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
40006         before using alarm().
40007         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40008         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40009         Reported by Ian Beckwith <ianb@erislabs.net>.
40010
40011         Produce autobuild blurb earlier in log.
40012         * modules/autobuild (configure.ac-early): Move AB_INIT here.
40013
40014 2008-06-09  Jim Meyering  <meyering@redhat.com>
40015         and OndÅ™ej Vašík  <ovasik@redhat.com>
40016
40017         utimens.c: correct kernel bug work-around
40018         OndÅ™ej Vašík found that the invalid return value of 280 indicates
40019         failure, not success, and the kernel bug we're trying to work
40020         around affects not just the utimensat call, but also the fallback
40021         futimens call.
40022         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
40023         not success.
40024         [HAVE_FUTIMENS]: Use the same work-around, here.
40025
40026 2008-06-09  Jim Meyering  <meyering@redhat.com>
40027
40028         add more guards around definition of ACE_-related code
40029         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
40030         ALLOW and ACE_OWNER are also defined.
40031
40032 2008-06-08  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/acl-internal.h: Add me as co-author.
40035         * lib/file-has-acl.c: Likewise.
40036         * lib/set-mode-acl.c: Likewise.
40037         * lib/copy-acl.c: Likewise.
40038
40039 2008-06-08  Bruno Haible  <bruno@clisp.org>
40040
40041         Add support for AIX ACLs.
40042         * lib/acl-internal.h (acl_nontrivial): New declaration.
40043         * lib/file-has-acl.c (acl_nontrivial): New function.
40044         (file_has_acl): Add implementation using AIX 4 ACL API.
40045         * lib/set-mode-acl.c (qset_acl): Likewise.
40046         * lib/copy-acl.c (qcopy_acl): Likewise.
40047
40048 2008-06-08  Bruno Haible  <bruno@clisp.org>
40049
40050         Add support for HP-UX ACLs.
40051         * lib/acl-internal.h (acl_nontrivial): New declaration.
40052         * lib/file-has-acl.c (acl_nontrivial): New function.
40053         (file_has_acl): Add implementation using HP-UX 11 ACL API.
40054         * lib/set-mode-acl.c (qset_acl): Likewise.
40055         * lib/copy-acl.c (qcopy_acl): Likewise.
40056
40057 2008-06-08  Bruno Haible  <bruno@clisp.org>
40058
40059         Add support for Cygwin ACLs.
40060         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
40061         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
40062         the chmod_or_fchmod call.
40063         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
40064
40065 2008-06-08  Bruno Haible  <bruno@clisp.org>
40066
40067         Fix bug with setuid modes in Solaris 10+ code.
40068         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
40069         succeeded, when the mode contains some special bits.
40070
40071 2008-06-08  Bruno Haible  <bruno@clisp.org>
40072
40073         Add support for Solaris 7..10 ACLs.
40074         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
40075         declarations.
40076         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
40077         functions.
40078         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
40079         * lib/set-mode-acl.c (qset_acl): Likewise.
40080         * lib/copy-acl.c (qcopy_acl): Likewise.
40081
40082 2008-06-08  Bruno Haible  <bruno@clisp.org>
40083
40084         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
40085         declaration.
40086         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
40087         (acl_access_nontrivial): Remove MacOS X case.
40088         (file_has_acl): Use acl_extended_nontrivial.
40089         * lib/copy-acl.c (qcopy_acl): Likewise.
40090
40091 2008-06-08  Bruno Haible  <bruno@clisp.org>
40092
40093         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
40094
40095 2008-06-08  Jim Meyering  <meyering@redhat.com>
40096
40097         * modules/acl (Maintainer): Add Bruno Haible.
40098
40099 2008-06-07  Bruno Haible  <bruno@clisp.org>
40100
40101         Improve support for Tru64 ACLs.
40102         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
40103         ACL on OSF/1.
40104
40105 2008-06-07  Bruno Haible  <bruno@clisp.org>
40106
40107         Add support for MacOS X ACLs.
40108         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
40109         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
40110         * lib/set-mode-acl.c (qset_acl): Likewise.
40111         * lib/copy-acl.c (qcopy_acl): Likewise.
40112
40113 2008-06-07  Bruno Haible  <bruno@clisp.org>
40114
40115         Fix memory leak introduced on 2008-05-22.
40116         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
40117         use.
40118
40119 2008-06-07  Bruno Haible  <bruno@clisp.org>
40120
40121         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
40122         to construct an empty ACL.
40123
40124 2008-06-07  Bruno Haible  <bruno@clisp.org>
40125
40126         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
40127         precisely.
40128         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
40129
40130 2008-06-07  Bruno Haible  <bruno@clisp.org>
40131
40132         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
40133         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
40134
40135 2008-06-07  Bruno Haible  <bruno@clisp.org>
40136
40137         * doc/posix-functions/_setjmp.texi: Explain the use of this function
40138         regardless of POSIX.
40139         * doc/posix-functions/_longjmp.texi: Likewise.
40140         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
40141         SystemV platform in this case.
40142
40143 2008-06-06  Eric Blake  <ebb9@byu.net>
40144
40145         Document abort() bugs.
40146         * doc/posix-functions/abort.texi (abort): Mention anomalies.
40147
40148         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
40149         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
40150         sigsetjmp.
40151         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
40152         siglongjmp, but only as a macro.
40153         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
40154         is obsolete.
40155         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
40156
40157         Tweak documentation to cover cygwin argz bugs.
40158         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
40159         argz bug fix; no code change needed since no cygwin releases
40160         occurred between the last fix and the bug being tested.
40161         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
40162         module and recently fixed cygwin bugs.
40163         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
40164         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
40165         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
40166         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
40167         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
40168         Likewise.
40169         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
40170         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
40171         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
40172         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
40173         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40174         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
40175         Likewise.
40176
40177         Avoid gcc warning on cygwin.
40178         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
40179         !ACL_NO_TRIVIAL]: Avoid unused variable.
40180
40181 2008-06-05  Eric Blake  <ebb9@byu.net>
40182
40183         Be tolerant of UNKNOWN version in gnulib-tool test dir.
40184         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
40185         git-version-gen fails to come up with a version.
40186         Reported by Simon Josefsson.
40187
40188 2008-06-05  Jim Meyering  <meyering@redhat.com>
40189             Paul Eggert  <eggert@cs.ucla.edu>
40190
40191         utimens.c: work around a probable Linux kernel bug
40192         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
40193         appears to be a kernel bug that causes utimensat to return 280
40194         instead of 0, indicating success.
40195
40196 2008-06-04  Bruno Haible  <bruno@clisp.org>
40197
40198         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
40199         2008-06-01 commit.
40200
40201 2008-06-04  Bruno Haible  <bruno@clisp.org>
40202
40203         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
40204         * lib/file-has-acl.c (acl_access_nontrivial): New function.
40205         (file_has_acl): Use it. Save errno afterwards.
40206         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
40207
40208 2008-06-03  Bruno Haible  <bruno@clisp.org>
40209
40210         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
40211         draft code. Simplify #ifs.
40212         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
40213         Put Solaris code after POSIX-draft code. Fix comments regarding
40214         Solaris 10, HP-UX. Mention Cygwin.
40215         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40216
40217 2008-06-03  Eric Blake  <ebb9@byu.net>
40218
40219         Provide fallback for older kernels.
40220         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40221         Provide runtime fallback if kernel lacks support.
40222         Reported by Mike Frysinger.
40223
40224 2008-06-02  Bruno Haible  <bruno@clisp.org>
40225
40226         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40227         it exists.
40228
40229 2008-06-02  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40232         * lib/copy-acl.c (qcopy_acl): Update comment.
40233
40234 2008-06-02  Bruno Haible  <bruno@clisp.org>
40235
40236         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40237         like ACL APIs.
40238
40239 2008-06-02  Bruno Haible  <bruno@clisp.org>
40240
40241         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40242         * tests/test-set-mode-acl.sh: Likewise.
40243         * tests/test-copy-acl.sh: Likewise.
40244         * tests/test-copy-file.sh: Likewise.
40245
40246 2008-06-02  Bruno Haible  <bruno@clisp.org>
40247
40248         * tests/test-file-has-acl.sh: Remove unused code.
40249
40250 2008-06-01  Bruno Haible  <bruno@clisp.org>
40251
40252         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40253         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40254         messages.
40255         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40256
40257 2008-06-01  Bruno Haible  <bruno@clisp.org>
40258
40259         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40260         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40261         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40262         APIs.
40263         * modules/acl-tests (configure.ac): Remove tests now contained in
40264         m4/acl.m4.
40265
40266 2008-06-02  Jim Meyering  <meyering@redhat.com>
40267
40268         announce-gen: use a better key-server host name
40269         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40270         it may be more consistently reliable.  Suggested by Werner Koch
40271         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40272
40273 2008-06-01  Bruno Haible  <bruno@clisp.org>
40274
40275         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40276         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40277
40278 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40279
40280         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40281
40282 2008-06-01  Bruno Haible  <bruno@clisp.org>
40283
40284         New ACL tests.
40285         * tests/test-file-has-acl.sh: New file.
40286         * tests/test-file-has-acl.c: New file.
40287         * tests/test-set-mode-acl.sh: New file.
40288         * tests/test-set-mode-acl.c: New file.
40289         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40290         * tests/test-copy-acl.c: New file.
40291         * modules/acl-tests: New file, based on modules/copy-file-tests.
40292         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40293         (Depends-on): Add acl-tests.
40294         (configure.ac): Remove checks.
40295         (Makefile.am): Don't create test-sameacls program here any more.
40296
40297 2008-06-01  Bruno Haible  <bruno@clisp.org>
40298
40299         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40300         * tests/test-sameacls.c: Include progname.h.
40301         (main): Invoke set_program_name. Portability fixes for MacOS X,
40302         Solaris, HP-UX.
40303
40304 2008-06-01  Bruno Haible  <bruno@clisp.org>
40305
40306         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40307         function.
40308         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40309
40310 2008-06-01  Bruno Haible  <bruno@clisp.org>
40311
40312         * modules/rpmatch (Depends-on): Add strdup.
40313
40314 2008-06-01  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/pipe.c: Include unistd-safer.h.
40317         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40318         * modules/pipe (Depends-on): Add unistd-safer.
40319
40320 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40321
40322         * modules/autobuild (configure.ac): Call AB_INIT.
40323
40324 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40325
40326         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40327         Suggested by Bruno Haible <bruno@clisp.org>.
40328
40329 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40330
40331         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40332         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40333         <bruno@clisp.org>.
40334
40335 2008-05-29  Eric Blake  <ebb9@byu.net>
40336
40337         Prefer new POSIX 200x interfaces over futimesat.
40338         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40339         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40340         when available.
40341         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40342
40343 2008-05-28  Bruno Haible  <bruno@clisp.org>
40344
40345         * modules/stpcpy (License): Change to LGPLv2+.
40346         Requested by David Lutterkort <dlutter@redhat.com>.
40347
40348 2008-05-27  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40351         current mingw.
40352         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40353
40354 2008-05-27  Bruno Haible  <bruno@clisp.org>
40355
40356         * modules/iconv_open (Link): New section, from module 'iconv'.
40357         * modules/striconv (Link): Likewise.
40358         * modules/striconveh (Link): Likewise.
40359         * modules/xstriconv (Link): Likewise.
40360         * modules/unicodeio (Link): Likewise.
40361         * modules/propername (Link): Likewise.
40362         Reported by Jim Meyering.
40363
40364 2008-05-26  Jim Meyering  <meyering@redhat.com>
40365
40366         sha256: do not artificially restrict buffer length to be < 2^32
40367         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40368         uint32_t to size_t.
40369         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40370         to match.
40371
40372         avoid unaligned access errors, e.g., on sparc
40373         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40374         direct access through a possibly-unaligned uint64* pointer.
40375         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40376         direct access through a possibly-unaligned uint32* pointer.
40377         Prompted by this patch from Tom "spot" Callaway:
40378         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40379
40380         sha512.c: fix typo in comment
40381         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40382
40383 2008-05-25  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40386         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40387         (Makefile.am): Update lib_SOURCES.
40388
40389 2008-05-25  Bruno Haible  <bruno@clisp.org>
40390
40391         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40392
40393 2008-05-25  Jim Meyering  <meyering@redhat.com>
40394
40395         useless-if-before-free: freed expr may have white-space differences
40396         * build-aux/useless-if-before-free: Recognize cases in which the
40397         freed expression differs from the tested one in embedded white
40398         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40399         $1 was used, so we can't make any regexp shy.  Improved tests now
40400         detect this.
40401
40402         useless-if-before-free: accept white space in the expression.
40403         * build-aux/useless-if-before-free: For now, any white space
40404         in the expression must be identical in the free argument.
40405
40406         useless-if-before-free: efficiency tweak
40407         * build-aux/useless-if-before-free: Make the expression-matching
40408         regexp "shy".
40409         Make the *outer* regexp shy, not the expr-matching one.
40410
40411         update code-in-comment to accept cast of free arg
40412         * build-aux/useless-if-before-free: Update regexp.
40413
40414 2008-05-25  Bruno Haible  <bruno@clisp.org>
40415
40416         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40417         * modules/copy-file-tests (Files, Makefile.am): Update.
40418         * tests/test-copy-file.c (func_test_copy): Update.
40419
40420 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40421
40422         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40423
40424 2008-05-23  Bruno Haible  <bruno@clisp.org>
40425
40426         Improve support for ACLs on OSF/1.
40427         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40428         Remove fallback for unknown flavors of ACLs.
40429
40430 2008-05-22  Bruno Haible  <bruno@clisp.org>
40431
40432         Add support for ACLs on OSF/1.
40433         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40434         replacements.
40435         (acl_free_text): New macro fallback.
40436         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40437         acl_free.
40438         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40439         acl_free_text function. Require AC_C_INLINE.
40440
40441 2008-05-22  Bruno Haible  <bruno@clisp.org>
40442
40443         Make copy_acl work on MacOS X 10.5.
40444         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40445         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40446         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40447         If MODE_INSIDE_ACL, don't assume that every system has the same text
40448         representation for ACLs as FreeBSD.
40449         * lib/copy-acl.c (copy_acl): Add support for platforms with
40450         !MODE_INSIDE_ACL.
40451         * lib/file-has-acl.c (file_has_acl): Likewise.
40452         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40453         FreeBSD, MacOS X, or IRIX, respectively.
40454
40455 2008-05-22  Bruno Haible  <bruno@clisp.org>
40456
40457         * lib/acl.h: Don't include <sys/acl.h>.
40458         (GETACLCNT): Move fallback to lib/acl-internal.h.
40459         * lib/acl-internal.h: Include <sys/acl.h> here.
40460         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40461
40462 2008-05-22  Bruno Haible  <bruno@clisp.org>
40463
40464         Split off copy_acl function to separate file.
40465         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40466         * lib/acl.c (copy_acl): Moved function to separate file.
40467         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40468         * modules/acl (Files): Add lib/copy-acl.c.
40469         (Makefiles.am): Augment lib_SOURCES.
40470
40471 2008-05-22  Bruno Haible  <bruno@clisp.org>
40472
40473         * modules/copy-file-tests: New file.
40474         * tests/test-copy-file.sh: New file.
40475         * tests/test-copy-file.c: New file.
40476         * tests/test-copy-file-sameacls.c: New file.
40477
40478 2008-05-22  Eric Blake  <ebb9@byu.net>
40479
40480         Avoid gcc warning.
40481         * tests/test-memcmp.c (main): Pass NULL indirectly.
40482
40483 2008-05-21  Bruno Haible  <bruno@clisp.org>
40484
40485         Add reference doc about ACLs.
40486         * doc/acl-resources.txt: New file.
40487         * doc/acl-cygwin.txt: New file.
40488
40489 2008-05-21  Bruno Haible  <bruno@clisp.org>
40490
40491         Avoid one more warning from gcc.
40492         * lib/vasnprintf.c (IF_LINT): Update comments.
40493         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40494
40495 2008-05-21  Jim Meyering  <meyering@redhat.com>
40496
40497         avoid a warning from gcc
40498         * lib/vasnprintf.c (IF_LINT): Define.
40499         (scale10_round_decimal_long_double):
40500         Use it to avoid a "may be used uninitialized" warning.
40501         (scale10_round_decimal_double): Likewise.
40502
40503 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40504
40505         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40506         declared.
40507
40508 2008-05-20  Bruno Haible  <bruno@clisp.org>
40509
40510         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40511         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40512
40513 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40514
40515         * modules/memcmp-tests: New file.
40516         * tests/test-memcmp.c: New file.
40517
40518 2008-05-19  Bruno Haible  <bruno@clisp.org>
40519
40520         * modules/propername (Notice, configure.ac): Put quoted "..." into
40521         --keyword option.
40522         * lib/propername.h: Update comments accordingly.
40523         Reported by Eric Blake.
40524
40525 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40526
40527         * modules/getpass-gnu (Depends-on): Add fseeko.
40528
40529 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40530
40531         * modules/base64-tests: New file.
40532
40533 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40534
40535         * lib/base64.c (base64_decode_ctx): If a decode context structure
40536         was passed in use it to ignore newlines.  If a context structure
40537         was _not_ passed in, continue to treat newlines as garbage (this
40538         is the historical behavior).  Formerly base64_decode.
40539         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40540         takes a decode context structure.
40541         * lib/base64.h (base64_decode): Macro for four-argument calls.
40542         (base64_decode_alloc): Likewise.
40543         * lib/base64.c (base64_decode_ctx): If a decode context structure
40544         was passed in use it to ignore newlines.  If a context structure
40545         was _not_ passed in, continue to treat newlines as garbage (this
40546         is the historical behavior).  Formerly base64_decode.
40547         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40548         takes a decode context structure.
40549         * lib/base64.h (base64_decode): Macro for four-argument calls.
40550         (base64_decode_alloc): Likewise.
40551
40552 2008-05-19  Jim Meyering  <meyering@redhat.com>
40553
40554         avoid a warning from gcc
40555         * lib/trim.c (IF_LINT): Define.
40556         (trim2): Use it to avoid a "may be used uninitialized" warning.
40557
40558         Fix doc typo.
40559         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40560
40561 2008-05-19  Bruno Haible  <bruno@clisp.org>
40562
40563         * doc/glibc-functions/getpass.texi: Document limits of other
40564         implementations.
40565
40566 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40567             Bruno Haible <bruno@clisp.org>
40568
40569         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40570
40571 2008-05-18  Bruno Haible  <bruno@clisp.org>
40572
40573         * modules/propername: New file, from GNU gettext.
40574         * lib/propername.h: New file, from GNU gettext.
40575         * lib/propername.c: New file, from GNU gettext.
40576         * MODULES.html.sh (Internationalization functions): Add propername.
40577
40578 2008-05-16  Jim Meyering  <meyering@redhat.com>
40579             Bruno Haible  <bruno@clisp.org>
40580
40581         Avoid some warnings from "gcc -Wshadow".
40582         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40583
40584 2008-05-15  Eric Blake  <ebb9@byu.net>
40585
40586         Extend previous patch to cygwin 1.7.0.
40587         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40588         fast implementation in cygwin >= 1.7.0.
40589         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40591
40592 2008-05-15  Bruno Haible  <bruno@clisp.org>
40593
40594         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40595         implementation in glibc >= 2.9.
40596         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40597         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40598
40599 2008-05-15  Bruno Haible  <bruno@clisp.org>
40600
40601         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40602         (Unicode string functions): Add unilbrk/*.
40603         Reported by Karl Berry.
40604
40605 2008-05-15  Eric Blake  <ebb9@byu.net>
40606
40607         Fix violation of <stdbool.h> replacement in regex.
40608         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40609         * lib/regexec.c (re_search_internal): Likewise.
40610         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40611
40612 2008-05-15  Jim Meyering  <meyering@redhat.com>
40613
40614         avoid distracting test output when git or cvs is not found
40615         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40616         * tests/test-vc-list-files-git.sh: Likewise.
40617
40618 2008-05-15  Eric Blake  <ebb9@byu.net>
40619
40620         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40621         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40622         glibc version.
40623         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40624         * doc/posix-functions/strstr.texi (strstr): Likewise.
40625         * lib/str-two-way.h (MAX): Sychronize with glibc.
40626
40627 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40628
40629         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40630         opr.ctx_type.
40631         (calc_first): Initialize constraint field.
40632         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40633         Fix grammar.
40634         (duplicate_node): Merge constraint field for all node types.
40635         (calc_eclosure_iter): Look at constraint field for all node types.
40636         * lib/regex_internal.c (create_cd_newstate): Don't look at
40637         opr.ctx_type.
40638
40639 2008-05-14  Bruno Haible  <bruno@clisp.org>
40640
40641         Help GCC to do better code generation.
40642         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40643         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40644         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40645         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40646         Declare with attribute 'malloc' if supported.
40647
40648 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40649
40650         use "echo STR|wc -c" rather than unportable "expr length STR"
40651         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40652         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40653
40654 2008-05-14  Jim Meyering  <meyering@redhat.com>
40655
40656         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40657         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40658         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40659         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40660         via Collin Lasse.
40661
40662 2008-05-14  Eric Blake  <ebb9@byu.net>
40663
40664         Avoid quadratic growth in gl_LIBSOURCES.
40665         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40666         Suggested by Bruno Haible.
40667
40668         Test xmemdup0.
40669         * modules/xmemdup0-tests: New file.
40670         * tests/test-xmemdup0.c: Likewise.
40671
40672 2008-05-13  Eric Blake  <ebb9@byu.net>
40673
40674         Split xmemdup0 into its own module.
40675         * modules/xmemdup0: New file.
40676         * lib/xmemdup0.h: Likewise.
40677         * lib/xmemdup0.c: Likewise.
40678         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40679         * lib/xalloc.h (xmemdup0): Remove.
40680         * lib/xmalloc.c (xmemdup0): Likewise.
40681
40682 2008-05-13  Eric Blake  <ebb9@byu.net>
40683             Bruno Haible  <bruno@clisp.org>
40684
40685         Reduce number of forks required during autoconf.
40686         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40687         and gl_LIBSOURCES_DIR.
40688         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40689         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40690         m4_syscmd per file.
40691         <m4_foreach_w>: Move...
40692         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40693
40694 2008-05-13  Eric Blake  <ebb9@byu.net>
40695
40696         * gnulib-tool: Fix various comment typos.
40697
40698 2008-05-12  Bruno Haible  <bruno@clisp.org>
40699
40700         Tailor the linebreaking algorithm.
40701         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40702
40703 2008-05-12  Bruno Haible  <bruno@clisp.org>
40704
40705         Update to Unicode 5.0.0.
40706         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40707         LBP_JV, LBP_JT. Redistribute values.
40708         (unilbrk_table): Change size.
40709         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40710         Unicode TR#14 rev. 22.
40711         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40712         LBP_JV, LBP_JT. Redistribute values.
40713         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40714         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40715         Update.
40716         * lib/unilbrk/lbrkprop1.h: Regenerated.
40717         * lib/unilbrk/lbrkprop2.h: Regenerated.
40718         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40719         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40720         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40721         Likewise.
40722         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40723         Likewise.
40724         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40725         result.
40726         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40727         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40728         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40729         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40730         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40731         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40732
40733 2008-05-11  Bruno Haible  <bruno@clisp.org>
40734
40735         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40736
40737 2008-05-11  Bruno Haible  <bruno@clisp.org>
40738
40739         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40740         * modules/unilbrk/gen-lbrk: New file.
40741
40742 2008-05-11  Bruno Haible  <bruno@clisp.org>
40743
40744         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40745         * m4/sha512.m4 (gl_SHA512): Likewise.
40746
40747 2008-05-11  Jim Meyering  <meyering@redhat.com>
40748
40749         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40750         * modules/crypto/sha256: New file.
40751         * modules/crypto/sha512: Likewise.
40752         * lib/sha256.c: Likewise.
40753         * lib/sha256.h: Likewise.
40754         * lib/sha512.c: Likewise.
40755         * lib/sha512.h: Likewise.
40756         * lib/u64.h: Likewise.
40757         * m4/sha256.m4: Likewise.
40758         * m4/sha512.m4: Likewise.
40759         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40760
40761 2008-05-10  Bruno Haible  <bruno@clisp.org>
40762
40763         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40764         (Input/Output <stdio.h>): Add xprintf.
40765         (Signal handling <signal.h>): Add strsignal.
40766         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40767         (Core language properties): Add func.
40768         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40769         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40770         strings.
40771         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40772         (Input/output): New section.
40773         (File system functions): Add openat-die, stat-macros.
40774         (Networking functions): Add sockets.
40775         (Unicode string functions): Add unictype/*.
40776         (Support for building libraries and executables): Add gperf.
40777         (Support for building documentation): Add agpl-3.0.
40778         (Misc): Add nocrash.
40779
40780 2008-05-10  Bruno Haible  <bruno@clisp.org>
40781
40782         * modules/unictype/gen-ctype: New file.
40783
40784 2008-05-10  Jim Meyering  <meyering@redhat.com>
40785
40786         Make chdir-safer.c more efficient on a system with no symlinks.
40787         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40788         also if ELOOP is zero.  Suggested by Bruno Haible.
40789
40790         Make chdir-safer.c slightly safer.
40791         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40792         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40793
40794         Avoid compile failure on systems without ELOOP (like mingw).
40795         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40796         Reported by Bruno Haible.
40797
40798 2008-05-10  Bruno Haible  <bruno@clisp.org>
40799
40800         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40801         (is_utf8_encoding): Use a case-insensitive comparison.
40802         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40803         streq.
40804
40805 2008-05-10  Bruno Haible  <bruno@clisp.org>
40806
40807         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40808         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40809         * lib/unilbrk/ulc-common.h (iconv_string_length,
40810         iconv_string_keeping_offsets): Remove declarations.
40811         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40812         Don't include <iconv.h>, streq.h, xsize.h.
40813         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40814         conversion.
40815         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40816         <iconv.h>, streq.h, xsize.h.
40817         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40818         conversion.
40819         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40820         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40821         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40822         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40823
40824 2008-05-10  Bruno Haible  <bruno@clisp.org>
40825
40826         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40827         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40828
40829         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40830         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40831
40832         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40833         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40834
40835         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40836         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40837
40838         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40839         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40840
40841         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40842         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40843
40844         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40845         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40846
40847         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40848         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40849
40850 2008-05-10  Bruno Haible  <bruno@clisp.org>
40851
40852         Split up 'linebreak' module.
40853         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40854         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40855         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40856         modifications.
40857         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40858         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40859         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40860         lib/linebreak.c.
40861         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40862         lib/linebreak.c.
40863         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40864         lib/linebreak.c.
40865         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40866         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40867         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40868         lib/linebreak.c.
40869         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40870         lib/linebreak.c.
40871         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40872         lib/linebreak.c.
40873         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40874         lib/linebreak.c.
40875         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40876         lib/linebreak.c.
40877         * modules/unilbrk/base: New file.
40878         * modules/unilbrk/tables: New file.
40879         * modules/unilbrk/u8-possible-linebreaks: New file.
40880         * modules/unilbrk/u16-possible-linebreaks: New file.
40881         * modules/unilbrk/u32-possible-linebreaks: New file.
40882         * modules/unilbrk/ulc-common: New file.
40883         * modules/unilbrk/ulc-possible-linebreaks: New file.
40884         * modules/unilbrk/u8-width-linebreaks: New file.
40885         * modules/unilbrk/u16-width-linebreaks: New file.
40886         * modules/unilbrk/u32-width-linebreaks: New file.
40887         * modules/unilbrk/ulc-width-linebreaks: New file.
40888         * lib/linebreak.h: Remove file.
40889         * lib/linebreak.c: Remove file.
40890         * m4/linebreak.m4: Remove file.
40891         * modules/linebreak: Remove file.
40892         * NEWS: Mention the changes.
40893
40894 2008-05-09  Eric Blake  <ebb9@byu.net>
40895
40896         Add xmemdup0.
40897         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40898         implementation.
40899         * lib/xmalloc.c (xmemdup0): New C implementation.
40900
40901 2008-05-08  Bruno Haible  <bruno@clisp.org>
40902
40903         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40904
40905 2008-05-07  Eric Blake  <ebb9@byu.net>
40906
40907         Support cross-compilation of <wctype.h>.
40908         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40909         AC_CACHE_CHECK.
40910
40911 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40912
40913         * build-aux/vc-list-files: Add support for bzr.
40914
40915 2008-05-03  Jim Meyering  <meyering@redhat.com>
40916
40917         avoid failed assertion with tight malloc
40918         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40919
40920 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40921
40922         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40923         are needed from arpa/inet.h.
40924         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40925         Reported by Bruno Haible.
40926
40927 2008-05-02  Jim Meyering  <meyering@redhat.com>
40928
40929         avoid compilation error on FreeBSD 6
40930         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40931
40932 2008-05-01  Jim Meyering  <meyering@redhat.com>
40933
40934         useless-if-before-free: correct --help's exit status description
40935         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40936         for one or more matches, etc.  Reported by Bruno Haible.
40937
40938         vc-list-files: make the stand-alone gnulib test work
40939         * modules/vc-list-files-tests (configure.ac):
40940         Define and AC_SUBST abs_aux_dir.
40941         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40942         $(abs_top_srcdir) to each script and having each of them
40943         duplicate the work of setting PATH, set PATH here, using
40944         the new variable, abs_aux_dir instead.
40945         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40946         * tests/test-vc-list-files-git.sh: Likewise.
40947         Reported by Bruno Haible.
40948
40949 2008-05-01  Bruno Haible  <bruno@clisp.org>
40950
40951         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40952         reallocation. Rename 'done' to 'found_delimiter'.
40953
40954 2008-05-01  Jim Meyering  <meyering@redhat.com>
40955
40956         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40957         * build-aux/vc-list-files: Use `...`, not $(...).
40958
40959 2008-04-30  Jim Meyering  <meyering@redhat.com>
40960
40961         add tests for vc-list-files
40962         * modules/vc-list-files-tests: New module.
40963         * tests/test-vc-list-files-cvs.sh: New file.
40964         * tests/test-vc-list-files-git.sh: New file.
40965
40966         avoid a warning from gcc
40967         * lib/getndelim2.c (IF_LINT): Define.
40968         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40969
40970         vc-list-files: work properly with build-aux/cvsu, too
40971         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40972         to all cvs-based clauses.
40973
40974         vc-list-files: work properly in the CVS+awk case, too
40975         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40976
40977         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40978         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40979         take more than one file argument, so .  Add quotes, just in case $dir
40980         ever contains a shell meta-character.  Prompted by Soren Hansen in
40981         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40982
40983 2008-04-29  Eric Blake  <ebb9@byu.net>
40984
40985         Optimize getndelim2 to use block operations when possible.
40986         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40987         freadseek, and memchr2.
40988         * lib/getndelim2.c (getndelim2): Use them for block reads.
40989
40990 2008-04-29  Bruno Haible  <bruno@clisp.org>
40991
40992         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40993         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40994         * modules/inet_ntop (Depends-on): Add extensions.
40995         * modules/inet_pton (Depends-on): Likewise.
40996         Reported by Simon Josefsson.
40997
40998 2008-04-29  Jim Meyering  <meyering@redhat.com>
40999
41000         When the is more than one match in a block, match all of them.
41001         * build-aux/useless-if-before-free: Iterate through each block
41002         until there are no more matches.
41003
41004         Fix broken useless-if-before-free script.
41005         * build-aux/useless-if-before-free: Fix typo: missing "?" after
41006         the expression to match cast of argument to free-like function.
41007
41008 2008-04-29  Eric Blake  <ebb9@byu.net>
41009
41010         Use new header.
41011         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
41012
41013 2008-04-29  Jim Meyering  <meyering@redhat.com>
41014
41015         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
41016         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
41017         by gnulib to exist and to declare e.g., inet_ntop.
41018         Don't include "inet_ntop.h", now removed.
41019
41020         * m4/arpa_inet_h.m4: Remove trailing blanks.
41021
41022 2008-04-29  Eric Blake  <ebb9@byu.net>
41023
41024         Silence valgrind on safe reads beyond potential array bounds.
41025         * lib/rawmemchr.valgrind: New file.
41026         * lib/strchrnul.valgrind: Likewise.
41027         * modules/rawmemchr (Files): Distribute new file.
41028         * modules/strchrnul (Files): Likewise.
41029         Suggested by Bruno Haible.
41030
41031 2008-04-29  Bruno Haible  <bruno@clisp.org>
41032
41033         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
41034         (inet_ntop, inet_pton): Change portability warning's wording.
41035         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
41036         Invoke gl_CHECK_NEXT_HEADERS.
41037         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
41038         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
41039         set ARPA_INET_H.
41040         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41041         * modules/arpa_inet (Description): No longer only for systems that
41042         lack it.
41043         (Depends-on): Add include_next.
41044         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
41045         HAVE_ARPA_INET_H.
41046
41047 2008-04-29  Jim Meyering  <meyering@redhat.com>
41048
41049         * modules/mkdir (License): Re-license as LGPLv2+.
41050
41051 2008-04-29  Bruno Haible  <bruno@clisp.org>
41052
41053         * modules/rawmemchr (Maintainer): Set to Eric.
41054         * modules/strchrnul (Maintainer): Likewise.
41055
41056 2008-04-29  Simon Josefsson  <simon@josefsson.org>
41057
41058         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
41059         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
41060
41061         * modules/arpa_inet (arpa/inet.h): Use them.
41062
41063 2008-04-28  Eric Blake  <ebb9@byu.net>
41064
41065         Test getndelim2.
41066         * modules/getndelim2-tests: New file.
41067         * tests/test-getndelim2.c: Likewise.
41068         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
41069         stream.
41070         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
41071
41072         * MODULES.html.sh: Document new module.
41073
41074 2008-04-20  Bruno Haible  <bruno@clisp.org>
41075
41076         * lib/c-stack.c (die): Use raise.
41077         * modules/c-stack (Depends-on): Add raise.
41078
41079 2008-04-28  Bruno Haible  <bruno@clisp.org>
41080
41081         Expect rpmatch to be declared.
41082         * lib/yesno.c (rpmatch): Remove declaration.
41083
41084         Declare rpmatch.
41085         * lib/stdlib.in.h (rpmatch): New declaration.
41086         * lib/rpmatch.c: Include <stdlib.h> first.
41087         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
41088         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
41089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
41090         HAVE_RPMATCH.
41091         * modules/rpmatch (Depends-on): Add stdlib, extensions.
41092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41093         (Include): Set to <stdlib.h>.
41094         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
41095         HAVE_RPMATCH.
41096         * NEWS: Document the change.
41097
41098 2008-04-28  Bruno Haible  <bruno@clisp.org>
41099
41100         Change rpmatch to use nl_langinfo when appropriate.
41101         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
41102         (N_): New macro.
41103         (localized_pattern): New function/macro.
41104         (try): Remove match, nomatch arguments. Copy the pattern into safe
41105         memory before caching it.
41106         (rpmatch): Use localized_pattern. Add translator comments.
41107         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
41108         Suggested by Eric Blake.
41109         * modules/rpmatch (Depends-on): Add stdbool.
41110
41111 2008-04-28  Eric Blake  <ebb9@byu.net>
41112
41113         Add rawmemchr module, matching glibc.
41114         * modules/string (Makefile.am): New indicator.
41115         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
41116         * lib/string.in.h (rawmemchr): Declare when appropriate.
41117         * modules/rawmemchr: New file.
41118         * m4/rawmemchr.m4: Likewise.
41119         * lib/rawmemchr.c: Likewise.
41120         * modules/rawmemchr-tests: Likewise.
41121         * tests/test-rawmemchr.c: Likewise.
41122         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
41123         module.
41124         * modules/strchrnul (Depends-on): Add rawmemchr.
41125         * lib/strchrnul.c (strchrnul): Optimize a corner case.
41126
41127         Whitespace cleanup.
41128         * tests/test-strchrnul.c: Reindent.
41129         * lib/strchrnul.c: Likewise.
41130
41131         Optimize and test strchrnul.
41132         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
41133         * modules/strchrnul-tests: New file.
41134         * tests/test-strchrnul.c: Likewise.
41135
41136         Remove intprops dependency.
41137         * modules/memchr (Depends-on): Remove intprops.
41138         * modules/memrchr (Depends-on): Likewise.
41139         * modules/memchr2 (Depends-on): Likewise.
41140         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
41141         * lib/memrchr.c (__memrchr): Likewise.
41142         * lib/memrchr2.c (memchr2): Likewise.
41143         Reported by Simon Josefsson.
41144
41145 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41146
41147         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
41148         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41149
41150 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41151
41152         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
41153
41154         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
41155
41156         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
41157
41158         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
41159         declarations.
41160         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
41161
41162         * m4/inet_pton.m4: Don't check for header files.
41163
41164         * m4/inet_ntop.m4: Don't check for header files.
41165
41166 2008-04-28  Simon Josefsson  <simon@josefsson.org>
41167
41168         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
41169         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
41170         trigger for cygwin).
41171         Reported by Bruno Haible  <bruno@clisp.org>.
41172
41173 2008-04-28  Bruno Haible  <bruno@clisp.org>
41174
41175         * doc/posix-functions/strdup.texi: Mention mingw problem.
41176
41177 2008-04-27  Bruno Haible  <bruno@clisp.org>
41178
41179         * modules/stat-time-tests (Depends-on): Add sleep.
41180         * tests/test-stat-time.c (force_unlink): New function.
41181         (cleanup): Use it.
41182         (test_mtime): Remove the ctime related tests.
41183         (test_ctime): New function, containing the ctime related tests.
41184         (main): Call test_ctime, except on native Windows platforms.
41185
41186 2008-04-27  Bruno Haible  <bruno@clisp.org>
41187
41188         * lib/rpmatch.c (rpmatch): Add some comments.
41189         Reported by James Youngman <jay@gnu.org>.
41190
41191 2008-04-27  Bruno Haible  <bruno@clisp.org>
41192
41193         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
41194         quiet NaNs.
41195
41196 2008-04-27  Bruno Haible  <bruno@clisp.org>
41197
41198         Make test-yesno.sh work on mingw.
41199         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
41200         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
41201         (main): Set stdin to binary mode.
41202         * modules/yesno-tests (Depends-on): Add binary-io.
41203
41204 2008-04-27  Bruno Haible  <bruno@clisp.org>
41205
41206         Fix 'isfinite' on x86, x86_64, ia64 platforms.
41207         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
41208         argument that lie outside the IEEE 854 domain.
41209         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
41210         (gl_ISFINITE): Use it.
41211         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
41212
41213 2008-04-27  Bruno Haible  <bruno@clisp.org>
41214
41215         Allow local renaming in config.h.
41216         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41217
41218 2008-04-27  Bruno Haible  <bruno@clisp.org>
41219
41220         * lib/memchr.c (__memchr): Change type of 'i'.
41221         * lib/memchr2.c (memchr2): Likewise.
41222
41223 2008-04-26  Eric Blake  <ebb9@byu.net>
41224         and Bruno Haible  <bruno@clisp.org>
41225
41226         Optimize and test memrchr.
41227         * modules/memrchr (Depends-on): Add intprops.
41228         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41229         * modules/memrchr-tests: New file.
41230         * tests/test-memrchr.c: New file.
41231
41232 2008-04-26  Bruno Haible  <bruno@clisp.org>
41233
41234         Add tentative support for DragonFly BSD.
41235         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41236         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41237         fp.
41238         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41239         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41240         * lib/fpurge.c (fpurge): Likewise.
41241         * lib/freadable.c (freaadable): Likewise.
41242         * lib/freadahead.c (freadahead): Likewise.
41243         * lib/freading.c (freading): Likewise.
41244         * lib/freadptr.c (freadptr): Likewise.
41245         * lib/freadseek.c (freadptrinc): Likewise.
41246         * lib/fseeko.c (fseeko): Likewise.
41247         * lib/fseterr.c (fseterr): Likewise.
41248         * lib/fwritable.c (fwritable): Likewise.
41249         * lib/fwriting.c (fwriting): Likewise.
41250
41251 2008-04-26  Bruno Haible  <bruno@clisp.org>
41252
41253         * lib/stdio-impl.h: New file.
41254         * lib/fbufmode.c: Include stdio-impl.h.
41255         (fbufmode): Use fp_, remove redundant #defines.
41256         * lib/fflush.c: Include stdio-impl.h.
41257         (clear_ungetc_buffer): Remove redundant #defines.
41258         * lib/fpurge.c: Include stdio-impl.h.
41259         (fpurge): Remove redundant #defines.
41260         * lib/freadable.c: Include stdio-impl.h.
41261         (freadable): Remove redundant #defines.
41262         * lib/freadahead.c: Include stdio-impl.h.
41263         (freadahead): Remove redundant #defines.
41264         * lib/freading.c: Include stdio-impl.h.
41265         (freading): Remove redundant #defines.
41266         * lib/freadptr.c: Include stdio-impl.h.
41267         (freadptr): Remove redundant #defines.
41268         * lib/freadseek.c: Include stdio-impl.h.
41269         (freadptrinc): Remove redundant #defines.
41270         * lib/fseeko.c: Include stdio-impl.h.
41271         (rpl_fseeko): Remove redundant #defines.
41272         * lib/fseterr.c: Include stdio-impl.h.
41273         (fseterr): Remove redundant #defines.
41274         * lib/fwritable.c: Include stdio-impl.h.
41275         (fwritable: Remove redundant #defines.
41276         * lib/fwriting.c: Include stdio-impl.h.
41277         (fwriting): Remove redundant #defines.
41278         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41279         * modules/fflush (Files): Likewise.
41280         * modules/fpurge (Files): Likewise.
41281         * modules/freadable (Files): Likewise.
41282         * modules/freadahead (Files): Likewise.
41283         * modules/freading (Files): Likewise.
41284         * modules/freadptr (Files): Likewise.
41285         * modules/freadseek (Files): Likewise.
41286         * modules/fseeko (Files): Likewise.
41287         * modules/fseterr (Files): Likewise.
41288         * modules/fwritable (Files): Likewise.
41289         * modules/fwriting (Files): Likewise.
41290
41291 2008-04-26  Bruno Haible  <bruno@clisp.org>
41292
41293         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41294         restore_seek_optimization, update_fpos_cache): New functions, extracted
41295         from rpl_fflush.
41296         (rpl_fflush): Use them.
41297         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41298         (gl_REPLACE_FFLUSH): Use it.
41299
41300 2008-04-26  Bruno Haible  <bruno@clisp.org>
41301
41302         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41303         on Solaris.
41304         * tests/test-xstrtoimax.sh: Likewise.
41305         * tests/test-xstrtoumax.sh: Likewise.
41306         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41307
41308 2008-04-26  Bruno Haible  <bruno@clisp.org>
41309
41310         * modules/memchr-tests: New file.
41311         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41312
41313 2008-04-26  Eric Blake  <ebb9@byu.net>
41314             Bruno Haible  <bruno@clisp.org>
41315
41316         * lib/memchr.c: Include intprops.h.
41317         (__memchr): Optimize parallel detection of matching bytes. Rename local
41318         variables. Add explanatory comments.
41319
41320 2008-04-26  Bruno Haible  <bruno@clisp.org>
41321
41322         Fix module 'memchr', broken since 2000-10-28.
41323         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41324
41325 2008-04-26  Bruno Haible  <bruno@clisp.org>
41326
41327         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41328         comments.
41329
41330 2008-04-25  Eric Blake  <ebb9@byu.net>
41331
41332         Use native fstatat on cygwin 1.7.0.
41333         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41334         first.
41335
41336 2008-04-23  Eric Blake  <ebb9@byu.net>
41337
41338         Improve memchr2 performance.
41339         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41340         NUL bytes.
41341         * modules/memchr2 (Depends-on): Use intprops.h.
41342
41343 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41344
41345         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41346         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41347         <blp@cs.stanford.edu>.
41348
41349 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41350
41351         * lib/arpa_inet.in.h: New file.
41352
41353         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41354         (Makefile.am): Sed in substitute header file.
41355
41356         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41357         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41358
41359         * modules/inet_ntop (configure.ac): Use
41360         gl_ARPA_INET_MODULE_INDICATOR.
41361
41362         * modules/inet_pton (configure.ac): Use
41363         gl_ARPA_INET_MODULE_INDICATOR.
41364
41365 2008-04-22  Jim Meyering  <meyering@redhat.com>
41366
41367         * modules/verify (License): Re-license as LGPLv2+.
41368
41369 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41370
41371         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41372         parameter to void* as per POSIX standard (MinGW uses char*).
41373
41374 2008-04-21  Bruno Haible  <bruno@clisp.org>
41375
41376         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41377         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41378         Define to replacements if REPLACE_ISWCNTRL is 1.
41379         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41380         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41381         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41382         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41383         what it fixes.
41384         * doc/posix-functions/iswalpha.texi: Likewise.
41385         * doc/posix-functions/iswblank.texi: Likewise.
41386         * doc/posix-functions/iswcntrl.texi: Likewise.
41387         * doc/posix-functions/iswdigit.texi: Likewise.
41388         * doc/posix-functions/iswgraph.texi: Likewise.
41389         * doc/posix-functions/iswlower.texi: Likewise.
41390         * doc/posix-functions/iswprint.texi: Likewise.
41391         * doc/posix-functions/iswpunct.texi: Likewise.
41392         * doc/posix-functions/iswspace.texi: Likewise.
41393         * doc/posix-functions/iswupper.texi: Likewise.
41394         * doc/posix-functions/iswxdigit.texi: Likewise.
41395         Reported by Alain Guibert.
41396
41397 2008-04-21  Bruno Haible  <bruno@clisp.org>
41398
41399         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41400         Patch by Alain Guibert.
41401
41402 2008-04-21  Bruno Haible  <bruno@clisp.org>
41403
41404         Fix test failures on mingw.
41405         * tests/test-xstrtol.c (print_no_progname): New function.
41406         (main): Install it in error_print_progname hook.
41407         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41408         * tests/test-xstrtoimax.sh: Likewise.
41409         * tests/test-xstrtoumax.sh: Likewise.
41410
41411 2008-04-21  Bruno Haible  <bruno@clisp.org>
41412
41413         Fix test failure on mingw.
41414         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41415
41416 2008-04-21  Bruno Haible  <bruno@clisp.org>
41417
41418         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41419         Actually assign a value.
41420
41421 2008-04-20  Bruno Haible  <bruno@clisp.org>
41422
41423         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41424         take 2.
41425         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41426         'canonicalize-lgpl' module is also used.
41427         * lib/canonicalize-lgpl.c: Undo last change.
41428         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41429
41430 2008-04-20  Bruno Haible  <bruno@clisp.org>
41431
41432         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41433         config.h. Provide _mkdir based fallback for mingw.
41434         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41435         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41436         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41437         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41438         rather than defining mkdir in config.h.
41439         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41440         (gl_SYS_STAT_H_DEFAULTS): New macro.
41441         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41442         HAVE_IO_H any more.
41443         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41444         HAVE_DECL_MKDIR and HAVE_IO_H.
41445
41446 2008-04-20  Bruno Haible  <bruno@clisp.org>
41447
41448         * lib/isapipe.c: Port to native Windows platforms.
41449
41450 2008-04-20  Bruno Haible  <bruno@clisp.org>
41451
41452         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41453
41454 2008-04-21  Eric Blake  <ebb9@byu.net>
41455
41456         Work around preprocessors that don't handle UINTMAX_MAX.
41457         * lib/memchr2.c (memchr2): Avoid embedded #if.
41458         Reported by Alain Guibert, fix suggested by Bruno Haible.
41459
41460 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41461
41462         * doc/posix-functions/strftime.texi (strftime): Explain better
41463         Windows incompatibility.  Suggested by Micah Cowan
41464         <micah@cowan.name>.
41465
41466 2008-04-20  Bruno Haible  <bruno@clisp.org>
41467
41468         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41469         unistr/u8-mblen.
41470
41471 2008-04-20  Bruno Haible  <bruno@clisp.org>
41472
41473         Fix test failure on platforms with non-GNU iconv.
41474         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41475         (U_TO_U8): Use it, rather than u16_to_u8.
41476         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41477         units at the end of the input string.
41478         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41479
41480 2008-04-20  Bruno Haible  <bruno@clisp.org>
41481
41482         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41483         when the resulting length is 0.
41484         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41485
41486 2008-04-20  Bruno Haible  <bruno@clisp.org>
41487
41488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41489         works.
41490         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41491
41492 2008-04-20  Bruno Haible  <bruno@clisp.org>
41493
41494         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41495         * modules/tsearch-tests (configure.ac): Test for initstate function.
41496
41497 2008-04-20  Bruno Haible  <bruno@clisp.org>
41498
41499         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41500         for nlink_t if missing.
41501         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41502
41503 2008-04-19  Bruno Haible  <bruno@clisp.org>
41504
41505         Work around snprintf bug on Linux libc5.
41506         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41508         gl_SNPRINTF_SIZE1.
41509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41510         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41511         that test failed.
41512         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41513         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41514         * modules/snprintf (Files): Add m4/printf.m4.
41515         * modules/vsnprintf (Files): Likewise.
41516         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41517         * doc/posix-functions/vsnprintf.texi: Likewise.
41518
41519 2008-04-19  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41522         from 0.0058 to less than 10^-7.
41523
41524 2008-04-19  Bruno Haible  <bruno@clisp.org>
41525
41526         Fix rounding when a precision is given.
41527         * lib/vasnprintf.c (is_borderline): New function.
41528         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41529         9...9x.
41530         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41531         %e, %g.
41532         * tests/test-vasprintf-posix.c (test_function): Likewise.
41533         * tests/test-snprintf-posix.h (test_function): Likewise.
41534         * tests/test-sprintf-posix.h (test_function): Likewise.
41535         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41536         * tests/test-printf-posix.h (test_function): Likewise.
41537         * tests/test-printf-posix.output: Update.
41538         Reported by John Darrington <john@darrington.wattle.id.au> via
41539         Ben Pfaff <blp@cs.stanford.edu>.
41540
41541 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41542
41543         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41544         Suggested by Bruno Haible <bruno@clisp.org>.
41545
41546 2008-04-17  Bruno Haible  <bruno@clisp.org>
41547
41548         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41549         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41550         implementation.
41551         Patch by Bruce Merry <bmerry@gmail.com>.
41552
41553 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41554
41555         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41556         doesn't work under Windows.
41557
41558 2008-04-16  Bruno Haible  <bruno@clisp.org>
41559
41560         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41561         New macros.
41562         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41563         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41564         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41565         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41566         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41567         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41568         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41569         macros.
41570         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41571         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41572         Northern Sotho, Uighur.
41573
41574 2008-04-16  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41577         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41578         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41579         Reported by Daniel Bergström <daniel@octocode.com>.
41580
41581 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41582             Bruno Haible  <bruno@clisp.org>
41583
41584         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41585         function.
41586         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41587         New functions, mostly extracted from gl_locale_name_default.
41588         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41589
41590 2008-04-16  Eric Blake  <ebb9@byu.net>
41591
41592         Adjust strtod detection to catch glibc 2.7 bug.
41593         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41594         Reported by John Gatewood Ham.
41595
41596 2008-04-16  Bruno Haible  <bruno@clisp.org>
41597
41598         Add tentative support for Linux libc5.
41599         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41600         * lib/fpurge.c (fpurge): Likewise.
41601         * lib/freadable.c (freadable): Likewise.
41602         * lib/freadahead.c (freadahead): Likewise.
41603         * lib/freading.c (freading): Likewise.
41604         * lib/freadptr.c (freadptr): Likewise.
41605         * lib/freadseek.c (freadptrinc): Likewise.
41606         * lib/fseeko.c (rpl_fseeko): Likewise.
41607         * lib/fseterr.c (fseterr): Likewise.
41608         * lib/fwritable.c (fwritable): Likewise.
41609         * lib/fwriting.c (fwriting): Likewise.
41610         Reported by Alain Guibert <alguibert+bts@free.fr>.
41611
41612 2008-04-15  Bruno Haible  <bruno@clisp.org>
41613
41614         * modules/mathl (configure.ac): Define module indicator.
41615
41616 2008-04-15  Bruno Haible  <bruno@clisp.org>
41617
41618         * lib/logl.c (logl): Remove unused variables.
41619
41620 2008-04-15  Bruno Haible  <bruno@clisp.org>
41621
41622         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41623         fails.
41624
41625 2008-04-15  Bruno Haible  <bruno@clisp.org>
41626
41627         * lib/trim.c (trim2): Fix argument of isspace() macro.
41628
41629 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41630
41631         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41632         to 0.
41633         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41634
41635 2008-04-14  Bruno Haible  <bruno@clisp.org>
41636
41637         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41638         AC_LANG_PROGRAM argument.
41639         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41640         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41641         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41642         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41643         * m4/math_h.m4 (gl_MATH_H): Likewise.
41644         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41645         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41646         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41647         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41648         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41649         * m4/regex.m4 (gl_REGEX): Likewise.
41650         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41651         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41652         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41653         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41654         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41655         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41656         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41657         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41658
41659 2008-04-14  Jim Meyering  <meyering@redhat.com>
41660
41661         test-strtod: fix typos: s/abs/fabs/
41662         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41663
41664 2008-04-13  Bruno Haible  <bruno@clisp.org>
41665
41666         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41667         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41668         module is also used and while not building the reloc-wrapper.
41669
41670 2008-04-13  Bruno Haible  <bruno@clisp.org>
41671
41672         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41673
41674 2008-04-13  Bruno Haible  <bruno@clisp.org>
41675
41676         Fix AIX compilation failure introduced on 2008-04-02.
41677         * tests/test-frexp.c (exp): Undefine before redefining.
41678         * tests/test-frexpl.c (exp): Likewise.
41679
41680 2008-04-13  Bruno Haible  <bruno@clisp.org>
41681
41682         Work around a HP-UX stdio bug.
41683         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41684         * tests/test-ftello.c (main): Likewise.
41685         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41686         * doc/posix-functions/ftello.texi: Likewise.
41687
41688 2008-04-13  Bruno Haible  <bruno@clisp.org>
41689
41690         Make test-signbit pass on HP-UX/hppa.
41691         * tests/test-signbit.c (minus_zerol): New variable.
41692         (test_signbitl): Use it.
41693
41694 2008-04-13  Bruno Haible  <bruno@clisp.org>
41695
41696         Make truncl work on OSF/1 4.0.
41697         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41698         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41699         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41701         HAVE_DECL_TRUNCL.
41702         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41703         HAVE_DECL_TRUNCL.
41704         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41705
41706 2008-04-13  Bruno Haible  <bruno@clisp.org>
41707
41708         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41709
41710 2008-04-13  Bruno Haible  <bruno@clisp.org>
41711
41712         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41713         expression, so as to avoid HP-UX 11 cc compiler bug.
41714
41715 2008-04-13  Bruno Haible  <bruno@clisp.org>
41716
41717         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41718
41719 2008-04-13  Bruno Haible  <bruno@clisp.org>
41720
41721         * lib/git-merge-changelog.c: Remove empty declaration outside of
41722         functions.
41723
41724 2008-04-13  Bruno Haible  <bruno@clisp.org>
41725
41726         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41727
41728 2008-04-13  Bruno Haible  <bruno@clisp.org>
41729
41730         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41731         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41732         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41733         also if it exists but lacks definitions of the SHUT_* macros.
41734         * modules/sys_socket (Description): Update.
41735         Reported by Elbert Pol <e.pol@chello.nl>.
41736
41737 2008-04-13  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/localcharset.c (OS2): Don't redefine if already defined.
41740         Reported by Elbert Pol <e.pol@chello.nl>.
41741
41742 2008-04-13  Bruno Haible  <bruno@clisp.org>
41743
41744         * lib/binary-io.h [__EMX__]: Include <io.h>.
41745         Reported by Elbert Pol <e.pol@chello.nl>.
41746
41747 2008-04-12  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/fpucw.h: Enable the definitions also for x86_64.
41750         Needed for NetBSD/x86_64.
41751         Reported by Thomas Klausner <tk@giga.or.at>.
41752
41753 2008-04-12  Bruno Haible  <bruno@clisp.org>
41754
41755         * tests/test-strtod.c: Include isnand.h.
41756         (main): Use isnand instead of isnan.
41757         Reported by Jim Meyering.
41758
41759 2008-04-12  Bruno Haible  <bruno@clisp.org>
41760
41761         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41762         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41763
41764 2008-04-12  Jim Meyering  <meyering@redhat.com>
41765
41766         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41767
41768 2008-04-12  Bruno Haible  <bruno@clisp.org>
41769
41770         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41771         Reported by Elbert Pol <e.pol@chello.nl>.
41772
41773 2008-04-12  Eric Blake  <ebb9@byu.net>
41774
41775         Work around Solaris 10 math.h bug.
41776         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41777         (gl_MATH_H_DEFAULTS): Set up default.
41778         * modules/math (Makefile.am): Replace new indicators.
41779         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41780         * tests/test-math.c (main): Test this.
41781         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41782         * doc/posix-headers/math.texi (math.h): Mention bug.
41783         Reported by Nelson H. F. Beebe and Jim Meyering.
41784
41785 2008-04-11  Bruno Haible  <bruno@clisp.org>
41786
41787         Adapt to future versions of Apple GCC.
41788         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41789         Reported by Peter O'Gorman <peter@pogma.com>.
41790
41791 2008-04-11  Bruno Haible  <bruno@clisp.org>
41792
41793         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41794
41795 2008-04-11  Bruno Haible  <bruno@clisp.org>
41796
41797         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41798
41799         * modules/getaddrinfo-tests (Makefile.am): Define
41800         test_getaddrinfo_LDADD.
41801
41802 2008-04-11  Bruno Haible  <bruno@clisp.org>
41803
41804         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41805         (init): Fix syntax error.
41806         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41807         is declared.
41808
41809 2008-04-11  Bruno Haible  <bruno@clisp.org>
41810
41811         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41812         * modules/glob (Depends-on): Add stdbool.
41813
41814 2008-04-11  Bruno Haible  <bruno@clisp.org>
41815
41816         * lib/trim.c: Include <string.h>.
41817
41818 2008-04-11  Eric Blake  <ebb9@byu.net>
41819
41820         Avoid compile failure on OS/2.
41821         * lib/regex_internal.h (internal_function): Disable optimization
41822         on OS/2 (__EMX__), where it caused compiler error.
41823         Reported by Elbert Pol.
41824
41825 2008-04-11  Bruno Haible  <bruno@clisp.org>
41826
41827         Flush the standard error stream before aborting. Needed on mingw.
41828         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41829         * tests/test-array_list.c (ASSERT): Likewise.
41830         * tests/test-array_oset.c (ASSERT): Likewise.
41831         * tests/test-avltree_list.c (ASSERT): Likewise.
41832         * tests/test-avltree_oset.c (ASSERT): Likewise.
41833         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41834         * tests/test-binary-io.c (ASSERT): Likewise.
41835         * tests/test-byteswap.c (ASSERT): Likewise.
41836         * tests/test-c-ctype.c (ASSERT): Likewise.
41837         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41838         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41839         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41840         * tests/test-c-strstr.c (ASSERT): Likewise.
41841         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41842         * tests/test-canonicalize.c (ASSERT): Likewise.
41843         * tests/test-carray_list.c (ASSERT): Likewise.
41844         * tests/test-ceilf1.c (ASSERT): Likewise.
41845         * tests/test-ceilf2.c (ASSERT): Likewise.
41846         * tests/test-ceill.c (ASSERT): Likewise.
41847         * tests/test-count-one-bits.c (ASSERT): Likewise.
41848         * tests/test-fbufmode.c (ASSERT): Likewise.
41849         * tests/test-fflush2.c (ASSERT): Likewise.
41850         * tests/test-floorf1.c (ASSERT): Likewise.
41851         * tests/test-floorf2.c (ASSERT): Likewise.
41852         * tests/test-floorl.c (ASSERT): Likewise.
41853         * tests/test-fopen.c (ASSERT): Likewise.
41854         * tests/test-fpending.c (ASSERT): Likewise.
41855         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41856         * tests/test-fpurge.c (ASSERT): Likewise.
41857         * tests/test-freadable.c (ASSERT): Likewise.
41858         * tests/test-freadahead.c (ASSERT): Likewise.
41859         * tests/test-freading.c (ASSERT): Likewise.
41860         * tests/test-freadptr.c (ASSERT): Likewise.
41861         * tests/test-freadptr2.c (ASSERT): Likewise.
41862         * tests/test-freadseek.c (ASSERT): Likewise.
41863         * tests/test-freopen.c (ASSERT): Likewise.
41864         * tests/test-frexp.c (ASSERT): Likewise.
41865         * tests/test-frexpl.c (ASSERT): Likewise.
41866         * tests/test-fseek.c (ASSERT): Likewise.
41867         * tests/test-fseeko.c (ASSERT): Likewise.
41868         * tests/test-fstrcmp.c (ASSERT): Likewise.
41869         * tests/test-ftell.c (ASSERT): Likewise.
41870         * tests/test-ftello.c (ASSERT): Likewise.
41871         * tests/test-func.c (ASSERT): Likewise.
41872         * tests/test-fwritable.c (ASSERT): Likewise.
41873         * tests/test-fwriting.c (ASSERT): Likewise.
41874         * tests/test-getdelim.c (ASSERT): Likewise.
41875         * tests/test-getline.c (ASSERT): Likewise.
41876         * tests/test-i-ring.c (ASSERT): Likewise.
41877         * tests/test-iconv-utf.c (ASSERT): Likewise.
41878         * tests/test-iconv.c (ASSERT): Likewise.
41879         * tests/test-isfinite.c (ASSERT): Likewise.
41880         * tests/test-isnand.c (ASSERT): Likewise.
41881         * tests/test-isnanf.c (ASSERT): Likewise.
41882         * tests/test-isnanl.h (ASSERT): Likewise.
41883         * tests/test-ldexpl.c (ASSERT): Likewise.
41884         * tests/test-linked_list.c (ASSERT): Likewise.
41885         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41886         * tests/test-localename.c (ASSERT): Likewise.
41887         * tests/test-lseek.c (ASSERT): Likewise.
41888         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41889         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41890         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41891         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41892         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41893         * tests/test-mbschr.c (ASSERT): Likewise.
41894         * tests/test-mbscspn.c (ASSERT): Likewise.
41895         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41896         * tests/test-mbspbrk.c (ASSERT): Likewise.
41897         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41898         * tests/test-mbsrchr.c (ASSERT): Likewise.
41899         * tests/test-mbsspn.c (ASSERT): Likewise.
41900         * tests/test-mbsstr1.c (ASSERT): Likewise.
41901         * tests/test-mbsstr2.c (ASSERT): Likewise.
41902         * tests/test-mbsstr3.c (ASSERT): Likewise.
41903         * tests/test-memchr2.c (ASSERT): Likewise.
41904         * tests/test-memmem.c (ASSERT): Likewise.
41905         * tests/test-open.c (ASSERT): Likewise.
41906         * tests/test-printf-frexp.c (ASSERT): Likewise.
41907         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41908         * tests/test-printf-posix.c (ASSERT): Likewise.
41909         * tests/test-quotearg.c (ASSERT): Likewise.
41910         * tests/test-rbtree_list.c (ASSERT): Likewise.
41911         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41912         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41913         * tests/test-round1.c (ASSERT): Likewise.
41914         * tests/test-roundf1.c (ASSERT): Likewise.
41915         * tests/test-roundl.c (ASSERT): Likewise.
41916         * tests/test-signbit.c (ASSERT): Likewise.
41917         * tests/test-sleep.c (ASSERT): Likewise.
41918         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41919         * tests/test-snprintf.c (ASSERT): Likewise.
41920         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41921         * tests/test-stat-time.c (ASSERT): Likewise.
41922         * tests/test-strcasestr.c (ASSERT): Likewise.
41923         * tests/test-strerror.c (ASSERT): Likewise.
41924         * tests/test-striconv.c (ASSERT): Likewise.
41925         * tests/test-striconveh.c (ASSERT): Likewise.
41926         * tests/test-striconveha.c (ASSERT): Likewise.
41927         * tests/test-strsignal.c (ASSERT): Likewise.
41928         * tests/test-strstr.c (ASSERT): Likewise.
41929         * tests/test-strtod.c (ASSERT): Likewise.
41930         * tests/test-trunc1.c (ASSERT): Likewise.
41931         * tests/test-trunc2.c (ASSERT): Likewise.
41932         * tests/test-truncf1.c (ASSERT): Likewise.
41933         * tests/test-truncf2.c (ASSERT): Likewise.
41934         * tests/test-truncl.c (ASSERT): Likewise.
41935         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41936         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41937         * tests/test-vasnprintf.c (ASSERT): Likewise.
41938         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41939         * tests/test-vasprintf.c (ASSERT): Likewise.
41940         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41941         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41942         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41943         * tests/test-vsnprintf.c (ASSERT): Likewise.
41944         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41945         * tests/test-wcwidth.c (ASSERT): Likewise.
41946         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41947         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41948         * tests/test-xvasprintf.c (ASSERT): Likewise.
41949         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41950         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41951         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41952         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41953         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41954         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41955         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41956         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41957         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41958         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41959         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41960         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41961         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41962         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41963         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41964         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41965         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41966         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41967         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41968         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41969         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41970         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41971         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41972         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41973         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41974         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41975         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41976         * tests/unictype/test-combining.c (ASSERT): Likewise.
41977         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41978         * tests/unictype/test-digit.c (ASSERT): Likewise.
41979         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41980         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41981         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41982         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41983         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41984         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41985         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41986         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41987         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41988         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41989         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41990         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41991         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41992         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41993         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41994         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41995         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41996         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41997         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41998         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41999         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
42000         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
42001         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
42002         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
42003         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
42004         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
42005         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
42006         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
42007         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
42008         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
42009         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
42010         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
42011         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
42012         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
42013         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
42014         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
42015         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
42016         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
42017         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
42018         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
42019         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
42020         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
42021         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
42022         Reported by Eric Blake.
42023
42024 2008-04-11  Bruno Haible  <bruno@clisp.org>
42025
42026         * lib/wchar.in.h: Tweak comment.
42027
42028 2008-04-11  Bruno Haible  <bruno@clisp.org>
42029
42030         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
42031         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
42032         gl_COMMON.
42033         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
42034
42035 2008-04-11  Bruno Haible  <bruno@clisp.org>
42036
42037         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
42038
42039 2008-04-11  Simon Josefsson  <simon@josefsson.org>
42040
42041         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
42042         of attempting to use non-existing /dev/*random.  Based on patch
42043         from Adam Strzelecki <ono@java.pl> in
42044         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
42045
42046 2008-04-08  Bruno Haible  <bruno@clisp.org>
42047
42048         Add tentative support for emx+gcc.
42049         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
42050         * lib/fpurge.c (fpurge): Likewise.
42051         * lib/freadable.c (freadable): Likewise.
42052         * lib/freadahead.c (freadahead): Likewise.
42053         * lib/freading.c (freading): Likewise.
42054         * lib/freadptr.c (freadptr): Likewise.
42055         * lib/freadseek.c (freadptrinc): Likewise.
42056         * lib/fseeko.c (rpl_fseeko): Likewise.
42057         * lib/fseterr.c (fseterr): Likewise.
42058         * lib/fwritable.c (fwritable): Likewise.
42059         * lib/fwriting.c (fwriting): Likewise.
42060         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
42061
42062 2008-04-09  Eric Blake  <ebb9@byu.net>
42063
42064         Avoid some autoconf warnings.
42065         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
42066         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
42067         * m4/afs.m4 (gl_AFS): Likewise.
42068         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
42069         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
42070         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42071         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
42072         (gl_INTEGER_TYPE_SUFFIX): Likewise.
42073         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
42074         (AC_CHECK_DECLS_ONCE): Likewise.
42075         Rename file...
42076         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
42077         gnulib-tool requires autoconf 2.59 or better.
42078         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
42079
42080 2008-04-08  Eric Blake  <ebb9@byu.net>
42081
42082         Use 'git describe --match' if present (added in git 1.5.5).
42083         * build-aux/git-version-gen: Limit result to tags that match 'v*'
42084         if possible.
42085
42086 2008-04-08  Bruno Haible  <bruno@clisp.org>
42087
42088         Add tentative support for OpenServer.
42089         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
42090         _ptr, _cnt.
42091         * lib/fpurge.c (fpurge): Likewise.
42092         * lib/freadable.c (freadable): Likewise.
42093         * lib/freadahead.c (freadahead): Likewise.
42094         * lib/freading.c (freading): Likewise.
42095         * lib/freadptr.c (freadptr): Likewise.
42096         * lib/freadseek.c (freadptrinc): Likewise.
42097         * lib/fseeko.c (rpl_fseeko): Likewise.
42098         * lib/fseterr.c (fseterr): Likewise.
42099         * lib/fwritable.c (fwritable): Likewise.
42100         * lib/fwriting.c (fwriting): Likewise.
42101         Reported by Roger Cornelius <rac@tenzing.org> and
42102         Brian K. White <brian@aljex.com>.
42103
42104 2008-04-06  Jim Meyering  <meyering@redhat.com>
42105
42106         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
42107
42108 2008-04-06  Bruno Haible  <bruno@clisp.org>
42109
42110         Avoid possible error with non-ASCII bytes in UTF-8 locales.
42111         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
42112         * tests/test-printf-posix.sh: Likewise.
42113         * tests/test-vfprintf-posix.sh: Likewise.
42114         * tests/test-vprintf-posix.sh: Likewise.
42115         * tests/test-xprintf-posix.sh: Likewise.
42116
42117 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42118
42119         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
42120         hide error from 'ls', needed on OS/2.
42121         Report by Elbert Pol <elbert.pol@gmail.com>.
42122
42123 2008-04-04  Eric Blake  <ebb9@byu.net>
42124
42125         Make test-fseeko.c failures meaningful.
42126         * tests/test-fseeko.c: Print line number on failure.
42127         * tests/test-fseek.c: Likewise.
42128         Reported by Nelson H. F. Beebe.
42129
42130         Improve strtod bug detection check.
42131         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
42132         required for Solaris 10.
42133         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
42134
42135 2008-04-04  Bruno Haible  <bruno@clisp.org>
42136
42137         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
42138         by m4/setenv.m4.
42139
42140 2008-04-03  Eric Blake  <ebb9@byu.net>
42141
42142         Ensure sane .version contents.
42143         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
42144         version string.
42145         * build-aux/git-version-gen: Improve documentation.
42146
42147         Make GNU make output nicer.
42148         * top/GNUmakefile [!_have-Makefile]: Add dependency on
42149         MAKECMDGOALS to enforce message for all command line targets.  Set
42150         srcdir for use in maint.mk.
42151
42152         Another maintainer tweak.
42153         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
42154         a target that regenerates version.
42155
42156 2008-04-03  Jim Meyering  <meyering@redhat.com>
42157
42158         vc-list-files: don't cause coreutils "make po-check" failure
42159         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
42160
42161 2008-04-03  Eric Blake  <ebb9@byu.net>
42162
42163         Allow VPATH usage of vc-list-files.
42164         * build-aux/vc-list-files (scriptversion): Add timestamp.
42165         (options): Add --help, --version, -C.
42166         (CVS): Support installed cvsu.
42167
42168 2008-04-02  Bruno Haible  <bruno@clisp.org>
42169
42170         Avoid some "statement with no effect" warnings from gcc.
42171         * tests/test-wctype.c (main): Explicitly ignore unused values.
42172         Reported by Jim Meyering.
42173
42174 2008-04-02  Jim Meyering  <meyering@redhat.com>
42175
42176         Avoid some warnings from "gcc -Wshadow".
42177         * tests/test-frexp.c (exp): Define to a different identifier.
42178         * tests/test-frexpl.c (exp): Likewise.
42179
42180 2008-04-03  Jim Meyering  <meyering@redhat.com>
42181
42182         bootstrap: remove dangling *.[ch] symlinks from lib
42183         * build-aux/bootstrap [dangling symlink removal]: Move find's
42184         -depth option to precede all others, to avoid a warning.
42185         Remove *.[ch] files too, and from "$source_base" (usually lib/).
42186
42187 2008-04-02  Bruno Haible  <bruno@clisp.org>
42188
42189         Avoid some warnings from "gcc -Wshadow".
42190         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
42191         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
42192         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
42193         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
42194         Reported by Jim Meyering.
42195
42196 2008-04-01  Bruno Haible  <bruno@clisp.org>
42197
42198         Fix test to work on IRIX 6.5 with cc.
42199         * tests/test-math.c (numeric_equal): New function.
42200         (main): Use it.
42201
42202 2008-04-01  Bruno Haible  <bruno@clisp.org>
42203
42204         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
42205
42206 2008-04-01  Bruno Haible  <bruno@clisp.org>
42207
42208         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
42209         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42210         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
42211         (Depends-on): Remove math.
42212
42213         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42214         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42215         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42216         (Depends-on): Remove math.
42217
42218         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42219         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42220         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42221         (Depends-on): Remove math.
42222         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42223         (Depends-on): Remove math.
42224
42225         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42226         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42227         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42228         (Depends-on): Remove math.
42229         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42230         (Depends-on): Remove math.
42231
42232         * tests/test-round1.c: Include nan.h.
42233         (main): Use NaNd instead of NAN.
42234         * modules/round-tests (Files): Add tests/nan.h.
42235
42236         * tests/test-trunc1.c: Include nan.h.
42237         (main): Use NaNd instead of NAN.
42238         * modules/trunc-tests (Files): Add tests/nan.h.
42239
42240         * tests/test-roundf1.c: Include nan.h.
42241         (main): Use NaNf instead of NAN.
42242         * modules/roundf-tests (Files): Add tests/nan.h.
42243
42244         * tests/test-truncf1.c: Include nan.h.
42245         (main): Use NaNf instead of NAN.
42246         * modules/truncf-tests (Files): Add tests/nan.h.
42247
42248         * tests/test-ceilf1.c: Include nan.h.
42249         (main): Use NaNf instead of NAN.
42250         * modules/ceilf-tests (Files): Add tests/nan.h.
42251
42252         * tests/test-floorf1.c: Include nan.h.
42253         (main): Use NaNf instead of NAN.
42254         * modules/floorf-tests (Files): Add tests/nan.h.
42255
42256         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42257         (main): Use NaNf instead of NAN.
42258         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42259
42260         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42261         (main): Use NaNd instead of NAN.
42262         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42263
42264         * tests/test-frexp.c: Include nan.h.
42265         (main): Use NaNd instead of NAN.
42266         * modules/frexp-tests (Files): Add tests/nan.h.
42267
42268         * lib/isnan.c: Don't include <math.h>.
42269         (FUNC): Don't use NAN macro.
42270         * modules/isnand-nolibm (Depends-on): Remove math.
42271         * modules/isnanf-nolibm (Depends-on): Remove math.
42272         * modules/isnanl (Depends-on): Remove math.
42273         * modules/isnanl-nolibm (Depends-on): Remove math.
42274
42275         * tests/nan.h: New file.
42276
42277 2008-04-01  Eric Blake  <ebb9@byu.net>
42278
42279         Fix typos.
42280         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42281         values to be the right type.
42282
42283         For now, cater to gnulib strtod inaccuracies.
42284         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42285         fractional results.  While not as nice from a QoI perspective, it
42286         is a quicker patch than correctly implementing decimal to binary
42287         rounding.
42288
42289 2008-03-31  Eric Blake  <ebb9@byu.net>
42290
42291         Guarantee a definition of NAN.
42292         * lib/math.in.h (NAN): Define if missing.
42293         * tests/test-math.c (main): Test it.
42294         * doc/posix-headers/math.texi (math.h): Document this.
42295         * lib/isnan.c (rpl_isnand): Use it.
42296         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42297         * tests/test-floorf1.c (NaN): Likewise.
42298         * tests/test-frexp.c (NaN): Likewise.
42299         * tests/test-isnand.c (NaN): Likewise.
42300         * tests/test-isnanf.c (NaN): Likewise.
42301         * tests/test-round1.c (NaN): Likewise.
42302         * tests/test-roundf1.c (NaN): Likewise.
42303         * tests/test-snprintf-posix.h (NaN): Likewise.
42304         * tests/test-sprintf-posix.h (NaN): Likewise.
42305         * tests/test-trunc1.c (NaN): Likewise.
42306         * tests/test-truncf1.c (NaN): Likewise.
42307         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42308         * tests/test-vasprintf-posix.c (NaN): Likewise.
42309         * modules/isnand-nolibm (Depends-on): Add math.
42310         * modules/isnanf-nolibm (Depends-on): Likewise.
42311         * modules/isnanl (Depends-on): Likewise.
42312         * modules/isnanl-nolibm (Depends-on): Likewise.
42313         * modules/snprintf-posix-tests (Depends-on): Likewise.
42314         * modules/sprintf-posix-tests (Depends-on): Likewise.
42315         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42316         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42317         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42318         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42319
42320 2008-03-31  Bruno Haible  <bruno@clisp.org>
42321
42322         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42323         * doc/posix-functions/strtod.texi: Likewise.
42324
42325 2008-03-31  Bruno Haible  <bruno@clisp.org>
42326
42327         * tests/test-strtod.c (main): Don't use C99 syntax.
42328
42329 2008-03-31  Bruno Haible  <bruno@clisp.org>
42330
42331         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42332         Reported by Eric Blake.
42333
42334 2008-03-31  Jim Meyering  <meyering@redhat.com>
42335
42336         Don't compare actual signbit return values.
42337         * tests/test-strtod.c (main): Rather, compare only their
42338         zero/non-zero nature.
42339
42340 2008-03-31  Eric Blake  <ebb9@byu.net>
42341
42342         More strtod documentation.
42343         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42344         failures as distinct bugs.
42345
42346 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42347
42348         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42349         Problem reported by Erik Benada in
42350         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42351
42352 2008-03-30  Bruno Haible  <bruno@clisp.org>
42353
42354         * tests/test-strtod.c: Add comments about which assertion fails on which
42355         platform.
42356         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42357
42358 2008-03-30  Eric Blake  <ebb9@byu.net>
42359
42360         Test signbit behavior on zeros.
42361         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42362         (test_signbitd, test_signbitl): Likewise.
42363
42364         More strtod touchups.
42365         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42366         sign of negative underflow, for now.  Use .5, not .1.
42367         * doc/posix-functions/strtod.texi (strtod): Mention these
42368         limitations.
42369         Reported by Jim Meyering.
42370
42371 2008-03-30  Bruno Haible  <bruno@clisp.org>
42372
42373         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42374         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42375
42376 2008-03-30  Bruno Haible  <bruno@clisp.org>
42377
42378         Avoid failure when attempting to return empty iconv results on some
42379         platforms.
42380         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42381         allocation, don't report ENOMEM when the resulting string is empty.
42382
42383 2008-03-30  Bruno Haible  <bruno@clisp.org>
42384
42385         Fix buffer overrun.
42386         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42387         Don't consider the width for tmp_length. Check count against tmp_length
42388         before doing the padding. Ensure enough allocation during padding.
42389
42390 2008-03-30  Eric Blake  <ebb9@byu.net>
42391
42392         strtod touchups.
42393         * lib/strtod.c (strtod): Avoid compiler warnings.
42394         Reported by Jim Meyering.
42395
42396 2008-03-30  Bruno Haible  <bruno@clisp.org>
42397
42398         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42399         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42400         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42401         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42402         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42403         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42404         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42405         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42406
42407         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42408         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42409         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42410         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42411         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42412         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42413         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42414         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42415
42416         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42417         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42418         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42419         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42420         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42421         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42422         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42423         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42424
42425         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42426         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42427
42428         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42429         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42430
42431         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42432         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42433
42434         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42435         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42436         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42437
42438         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42439         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42440         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42441
42442         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42443         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42444         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42445
42446         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42447         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42448         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42449
42450         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42451         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42452         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42453         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42454         (Depends-on): Add EOVERFLOW.
42455         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42456         (Depends-on): Add EOVERFLOW.
42457         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42458         (Depends-on): Add EOVERFLOW.
42459         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42460         (Depends-on): Add EOVERFLOW.
42461         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42462         (Depends-on): Add EOVERFLOW.
42463         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42464         (Depends-on): Add EOVERFLOW.
42465         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42466         (Depends-on): Add EOVERFLOW.
42467         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42468         (Depends-on): Add EOVERFLOW.
42469
42470         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42471         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42472         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42473
42474         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42475         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42476         * modules/snprintf (Depends-on): Add EOVERFLOW.
42477
42478         * lib/poll.c (EOVERFLOW): Remove fallback.
42479         * modules/poll (Depends-on): Add EOVERFLOW.
42480
42481         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42482         * modules/getugroups (Depends-on): Add EOVERFLOW.
42483
42484         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42485         * modules/getdelim (Depends-on): Add EOVERFLOW.
42486
42487         * lib/ftell.c (EOVERFLOW): Remove fallback.
42488         * modules/ftell (Depends-on): Add EOVERFLOW.
42489
42490         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42492         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42493
42494         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42495
42496         * modules/EOVERFLOW-tests: New file.
42497         * tests/test-EOVERFLOW.c: New file.
42498
42499         * modules/EOVERFLOW: New file.
42500         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42501
42502 2008-03-30  Bruno Haible  <bruno@clisp.org>
42503
42504         Fix bug introduced on 2007-06-10.
42505         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42506         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42507
42508 2008-03-30  Bruno Haible  <bruno@clisp.org>
42509
42510         Improve freadseek's efficiency after ungetc.
42511         * lib/freadseek.c: Include freadahead.h.
42512         (freadptrinc): New function, extracted from freadseek.
42513         (freadseek): Use it in a loop. Use freadahead to determine the number
42514         of loop iterations.
42515         * modules/freadseek (Depends-on): Add freadahead.
42516         (configure.ac): Require AC_C_INLINE.
42517
42518 2008-03-30  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/freadseek.c (freadseek): Don't ignore the return value of
42521         freadptr.
42522
42523 2008-03-29  Eric Blake  <ebb9@byu.net>
42524
42525         Add hex float support.
42526         * modules/strtod (Depends-on): Add c-ctype.
42527         (Link): Mention POW_LIB.
42528         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42529         whitespace between 'e' and exponent.
42530         * tests/test-strtod.c (main): Enable hex float tests.
42531         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42532         now provides.
42533
42534         Document various strtod bugs, with some fixes.
42535         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42536         "-0x", "inf", "nan", and hex constants.
42537         * doc/posix-functions/atof.texi (atof): Likewise.
42538         * modules/stdlib (Makefile.am): Support strtod.
42539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42540         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42541         detect additional strtod bugs.
42542         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42543         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42544         bool where appropriate.  Parse 'inf' and 'nan'.
42545         * tests/test-strtod.c: New file.
42546         * modules/strtod (Depends-on): Add stdbool, stdlib.
42547         (configure.ac): Turn on module indicator.
42548         * modules/strtod-tests: New module.
42549
42550 2008-03-29  Eric Blake  <ebb9@byu.net>
42551
42552         Fix ftell on mingw.
42553         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42554         * modules/ftell-tests (Depends-on): Add binary-io.
42555         * modules/ftello-tests (Depends-on): Likewise.
42556         * tests/test-ftell.c (main): Enhance test to cover behavior after
42557         ungetc.  Enforce binary mode.
42558         * tests/test-ftello.c (main): Likewise.
42559
42560         Pass test-freadseek on cygwin.
42561         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42562         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42563         ungetc buffer.
42564
42565         * tests/test-fflush2.c (main): Fix typo.
42566
42567 2008-03-29  Bruno Haible  <bruno@clisp.org>
42568
42569         * tests/test-fflush2.c (main): Temporarily disable the contents of
42570         this test.
42571         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42572         Reported by Eric Blake.
42573
42574 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42575
42576         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42577         (GC_SHA224_DIGEST_SIZE): Add.
42578
42579         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42580         (gc_hash_digest_length): Likewise.
42581         (gc_hash_buffer): Likewise.
42582
42583 2008-03-25  Bruno Haible  <bruno@clisp.org>
42584
42585         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42586         detail which gettext release to use.
42587         Reported by Simon Josefsson.
42588
42589 2008-03-26  Jim Meyering  <meyering@redhat.com>
42590
42591         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42592         * modules/gnumakefile (clean-GNUmakefile): Also, use
42593         test ... && ... || : syntax rather than if-then ... fi.
42594
42595         gnumakefile: Don't double-quote-expand $(VPATH) value.
42596         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42597
42598 2008-03-24  Eric Blake  <ebb9@byu.net>
42599
42600         Alter GNUmakefile to install into top directory.
42601         * modules/maintainer-makefile: Split, and add dependency...
42602         * modules/gnumakefile: to this new module.
42603         * build-aux/GNUmakefile: Move...
42604         * top/GNUmakefile: ...here.
42605         * build-aux/maint.mk: Move...
42606         * top/maint.mk: ...here.
42607         * MODULES.html.sh (Support for maintaining...): Document new
42608         module.
42609
42610 2008-03-23  Bruno Haible  <bruno@clisp.org>
42611
42612         * gnulib-tool: New options --vc-files, --no-vc-files.
42613         (func_usage): Document them.
42614         (vc_files): New variable.
42615         (func_import): Consider vc_files.
42616         (func_create_testdir): Set vc_files to empty.
42617         Suggested by Jim Meyering and Karl Berry.
42618
42619 2008-03-23  Bruno Haible  <bruno@clisp.org>
42620
42621         Fix regex compilation error on HP-UX 11.
42622         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42623         * modules/regex (Files): Add m4/mbstate_t.m4.
42624         Reported by Ton Voon <ton.voon@altinity.com>.
42625
42626 2008-03-23  Bruno Haible  <bruno@clisp.org>
42627
42628         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42629
42630 2008-03-23  Eric Blake  <ebb9@byu.net>
42631             Bruno Haible  <bruno@clisp.org>
42632
42633         Install files from top/ in the destination directory.
42634         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42635         augmentation also for the files from top/.
42636         (func_import, func_create_testdir): Rewrite file names:
42637         top/filename -> filename.
42638
42639 2008-03-23  Bruno Haible  <bruno@clisp.org>
42640
42641         Tweak "gnulib --version" output.
42642         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42643
42644 2008-03-23  Bruno Haible  <bruno@clisp.org>
42645
42646         Tweak "gnulib --version" output.
42647         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42648         rather than contents of ChangeLog, when possible.
42649
42650 2008-03-21  Eric Blake  <ebb9@byu.net>
42651
42652         More --version tweaks.
42653         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42654         date of last ChangeLog entry.
42655
42656 2008-03-21  Jim Meyering  <meyering@redhat.com>
42657
42658         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42659
42660 2008-03-20  Eric Blake  <ebb9@byu.net>
42661
42662         VPATH fix.
42663         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42664
42665 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42666
42667         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42668         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42669
42670 2008-03-20  Eric Blake  <ebb9@byu.net>
42671
42672         Sync GNUmakefile with coreutils.
42673         * build-aux/GNUmakefile (have-Makefile): Rename...
42674         (_have-Makefile): ...to this, for namespace consideration.
42675         (GNUmakefile.cfg): Include, if present.
42676         (_autoreconf): Define a default.
42677         (_is-dist-target): New rule for rebuilds to pick up intra-release
42678         version.
42679         (maint-cfg.mk): Rename...
42680         (cfg.mk): ...to this.
42681
42682 2008-03-18  Jim Meyering  <meyering@redhat.com>
42683
42684         New script and module: mktempd
42685         * MODULES.html.sh (maint+release support): Add mktempd.
42686         * build-aux/mktempd: New file.
42687         * modules/mktempd: New file.
42688
42689 2008-03-15  Jim Meyering  <meyering@redhat.com>
42690
42691         Undo last change.
42692         * lib/sha1.c, lib/md5.c: 63 != ~63.
42693         Reported by Andreas Schwab.
42694
42695         sha1.c, md5.c: Hoist a redundant expression.
42696         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42697         "ctx->buflen" only once, before calling *_process_block.
42698         * lib/md5.c (md5_process_bytes): Likewise.
42699
42700 2008-03-14  Eric Blake  <ebb9@byu.net>
42701
42702         Bump copyright year in files generated by gnulib-tool.
42703         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42704         gnulib-tool, rather than hard-coding it.
42705
42706         Fix 'gnulib-tool --version' output to work with git.
42707         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42708         (startup): ...here.
42709         (func_version): Use it to invoke git-version-gen, rather than
42710         relying on CVS keyword expansion.  Modernize wording.
42711         (cvsdatestamp, last_checkin_date, version): Kill unused
42712         variables.
42713
42714 2008-03-12  Jim Meyering  <meyering@redhat.com>
42715
42716         Recognize optional cast of the argument to free.
42717         * build-aux/useless-if-before-free: Update regexps.
42718
42719         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42720
42721 2008-03-11  Bruno Haible  <bruno@clisp.org>
42722
42723         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42724         by a single package.
42725         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42726         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42727         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42728         Reported by Sam Steingold <sds@gnu.org>.
42729
42730 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42731
42732         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42733         repositories.
42734
42735 2008-03-11  Bruno Haible  <bruno@clisp.org>
42736
42737         Avoid conflicts between local macro definitions.
42738         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42739         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42740
42741 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42742             Bruno Haible  <bruno@clisp.org>
42743
42744         Make va_copy work with some version of xlc on AIX 5.1.
42745         * lib/stdarg.in.h: New file.
42746         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42747         On AIX, use a <stdarg.h> file substitute.
42748         * modules/stdarg (Files): Add lib/stdarg.in.h.
42749         (Depends-on): Add include_next.
42750         (Makefile.am): Build a stdarg.h substitute if requested.
42751         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42752
42753 2008-03-10  Bruno Haible  <bruno@clisp.org>
42754
42755         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42756         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42757         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42758
42759 2008-03-10  Bruno Haible  <bruno@clisp.org>
42760
42761         * modules/stdlib (Depends-on): Add include_next, remove
42762         absolute-header.
42763
42764 2008-03-09  Bruno Haible  <bruno@clisp.org>
42765
42766         * lib/freadahead.h (freadahead): Document more precisely.
42767         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42768         the sum of both buffer sizes.
42769         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42770         * NEWS: Document the change.
42771
42772 2008-03-09  Bruno Haible  <bruno@clisp.org>
42773
42774         Extend freadptr to return also the buffer size.
42775         * lib/freadptr.h (freadptr): Add sizep argument.
42776         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42777         (freadptr): Add sizep argument. Determine buffer size like freadahead
42778         does.
42779         * tests/test-freadptr.c: Don't include freadahead.h.
42780         (main): Adapt for new calling convention of freadptr.
42781         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42782         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42783         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42784         tests/test-freadptr2.sh.
42785         (Depends): Remove freadahead.
42786         (TESTS): Add test-freadptr2.sh.
42787         (check_PROGRAMS): Add test-freadptr2.
42788
42789 2008-03-09  Bruno Haible  <bruno@clisp.org>
42790
42791         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42792         Report and solution by Simon Josefsson.
42793
42794 2008-03-06  Bruno Haible  <bruno@clisp.org>
42795
42796         Make fflush after ungetc work on BSD platforms.
42797         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42798         * tests/test-fflush2.c: New file.
42799         * tests/test-fflush2.sh: New file.
42800         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42801         tests/test-fflush2.c.
42802         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42803         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42804
42805 2008-03-06  Eric Blake  <ebb9@byu.net>
42806
42807         Likewise for ftello.
42808         * modules/ftello (Dependencies): Add extensions.
42809         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42810
42811 2008-03-06  Bruno Haible  <bruno@clisp.org>
42812
42813         * modules/fseeko (Dependencies): Add extensions.
42814         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42815         Needed on glibc systems.
42816
42817 2008-03-06  Bruno Haible  <bruno@clisp.org>
42818
42819         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42820         email address.
42821         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42822
42823 2008-03-06  Bruno Haible  <bruno@clisp.org>
42824
42825         * users.txt: Add libgnupdf.
42826
42827 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42828
42829         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42830         (Header File Substitutes, Function Substitutes,
42831         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42832         (Build robot for gnulib): Fix typo.
42833
42834 2008-03-06  Bruno Haible  <bruno@clisp.org>
42835
42836         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42837         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42838
42839 2008-03-06  Bruno Haible  <bruno@clisp.org>
42840
42841         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42842         * doc/gnulib.texi: Include it.
42843
42844 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42845
42846         * modules/func (License): Change license to unlimited; there was
42847         no LGPL parts in the module anyway.
42848
42849 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42850
42851         * modules/__func__: Renamed to modules/func.
42852         * modules/__func__-tests: Renamed to modules/func-tests.
42853         * tests/test-__func__.c: Renamed to tests/test-func.c.
42854         * m4/__func__.m4: Renamed to m4/func.m4.
42855         * doc/gnulib.texi (__func__): Section renamed to func.
42856         Suggested by Eric Blake <ebb9@byu.net>.
42857
42858 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42859
42860         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42861         about __func__.  Make example self-contained.  Suggested by Eric
42862         Blake <ebb9@byu.net>.
42863
42864         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42865         Suggested by Eric Blake <ebb9@byu.net>.
42866
42867 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42868
42869         * modules/__func__: New file.
42870         * modules/__func__-tests: New file.
42871         * tests/test-__func__.c: New file.
42872         * m4/__func__.m4: New file.
42873         * doc/gnulib.texi (__func__): Document __func__ module.
42874
42875 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42876
42877         * modules/byteswap (License): Re-license as LGPLv2+.
42878
42879 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42880
42881         * doc/Makefile: Add pdf target.
42882
42883 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42884
42885         * modules/inline (License): Use 'unlimited', since there are only
42886         *.m4 files in this module.
42887
42888 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42889             Bruno Haible  <bruno@clisp.org>
42890
42891         Add support for HP C 7.1 on OpenVMS 8.3.
42892         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42893
42894 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42895
42896         Update VMS specifics.
42897         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42898
42899 2008-03-02  Jim Meyering  <meyering@redhat.com>
42900
42901         Remove the last dependency on the "free" module.
42902         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42903         Reported by Bob Proulx.
42904
42905         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42906
42907         Remove useless "if" tests before free.  Deprecate "free" module.
42908         * doc/posix-functions/free.texi: Mention that this
42909         module is no longer useful.
42910         * modules/free (Notice): Say this module is obsolete.
42911         * modules/readutmp (Depends-on): Remove free.
42912         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42913         * lib/putenv.c (putenv): Likewise.
42914         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42915         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42916         * tests/test-c-strcasestr.c (main): Likewise.
42917         * tests/test-c-strstr.c (main): Likewise.
42918         * tests/test-mbscasestr1.c (main): Likewise.
42919         * tests/test-mbscasestr2.c (main): Likewise.
42920         * tests/test-mbsstr1.c (main): Likewise.
42921         * tests/test-mbsstr2.c (main): Likewise.
42922         * tests/test-memmem.c (main): Likewise.
42923         * tests/test-strcasestr.c (main): Likewise.
42924         * tests/test-striconv.c (main): Likewise.
42925         * tests/test-striconveh.c (main): Likewise.
42926         * tests/test-striconveha.c (main): Likewise.
42927         * tests/test-strstr.c (main): Likewise.
42928
42929         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42930
42931         bootstrap: sync from coreutils again
42932         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42933
42934 2008-03-01  Jim Meyering  <meyering@redhat.com>
42935
42936         bootstrap: sync from coreutils
42937         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42938         also when the target doesn't exist.
42939
42940 2008-03-01  Eric Blake  <ebb9@byu.net>
42941
42942         Fix bugs in last patch.
42943         * lib/memchr2.c (memchr2): Fix typo.
42944         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42945         extension.
42946         Reported by Bruce Korb.
42947
42948         New module 'memchr2'.
42949         * modules/memchr2: New file.
42950         * modules/memchr2-tests: Likewise.
42951         * lib/memchr2.h: Likewise.
42952         * lib/memchr2.c: Likewise, based on memchr.c.
42953         * tests/test-memchr2.c: New test.
42954         * MODULES.html.sh (String handling): Add memchr2.
42955
42956 2008-02-29  Bruno Haible  <bruno@clisp.org>
42957
42958         * modules/freadseek-tests: New file.
42959         * tests/test-freadseek.sh: New file.
42960         * tests/test-freadseek.c: New file.
42961
42962         New module 'freadseek'.
42963         * modules/freadseek: New file.
42964         * lib/freadseek.h: New file.
42965         * lib/freadseek.c: New file.
42966         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42967
42968 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42969
42970         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42971         wydawca.
42972
42973         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42974         program_invocation_name and program_invocation_short_name are
42975         present.
42976
42977 2008-02-28  Bruno Haible  <bruno@clisp.org>
42978
42979         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42980         * tests/test-freadptr.sh: Also test non-seekable stdin.
42981
42982 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42983
42984         * build-aux/bootstrap (source_base, m4_base)
42985         (doc_base, tests_base): New variables.
42986         (gnulib_tool_options): Do not hardcode base directories, use
42987         the above variables instead.
42988
42989 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42990
42991         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42992
42993 2008-02-28  Bruno Haible  <bruno@clisp.org>
42994
42995         * modules/freadptr-tests: New file.
42996         * tests/test-freadptr.sh: New file.
42997         * tests/test-freadptr.c: New file.
42998
42999         New module 'freadptr'.
43000         * modules/freadptr: New file.
43001         * lib/freadptr.h: New file.
43002         * lib/freadptr.c: New file.
43003         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
43004
43005 2008-02-26  Karl Berry  <karl@freefriends.org>
43006
43007         Sync from Libtool:
43008         * libltdl/argz.c (argz_add, argz_count): New functions.
43009         * libltdl/argz.in.h: Declare them.
43010         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
43011
43012 2008-02-22  Bruno Haible  <bruno@clisp.org>
43013
43014         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
43015         is a pointer type.  Needed for HP-UX 10.
43016         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
43017         * doc/posix-functions/gmtime_r.texi: Likewise.
43018         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
43019
43020 2008-02-24  Bruno Haible  <bruno@clisp.org>
43021
43022         * modules/environ-tests: New file.
43023         * tests/test-environ.c: New file.
43024
43025         New module 'environ'.
43026         * modules/environ: New file.
43027         * lib/unistd.in.h (environ): New declaration.
43028         * m4/environ.m4: New file.
43029         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
43030         after use.
43031         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
43032         HAVE_DECL_ENVIRON.
43033         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
43034         HAVE_DECL_ENVIRON.
43035         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
43036         wrong claim that 'environ' is missing on some systems.
43037         * modules/execute (Depends-on): Add environ.
43038         * lib/execute.c (environ): Remove fallback declaration.
43039         * modules/pipe (Depends-on): Add environ.
43040         * lib/pipe.c (environ): Remove fallback declaration.
43041         * modules/setenv (Depends-on): Add environ.
43042         * lib/setenv.c (environ): Remove fallback declaration.
43043         * modules/unsetenv (Depends-on): Add environ.
43044         * lib/unsetenv.c (environ): Remove fallback declaration.
43045         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
43046         m4/environ.m4.
43047         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
43048         (gl_PREREQ_UNSETENV): Likewise.
43049
43050 2008-02-24  Bruno Haible  <bruno@clisp.org>
43051
43052         * doc/posix-functions/environ.texi: Document the MacOS X problem.
43053
43054 2008-02-20  Bob Proulx  <bob@proulx.com>
43055
43056         Enable use of older two part flavor 'git describe'.
43057         * build-aux/git-version-gen: If using the older two part flavor of
43058         git version then recreate the third part now present in the
43059         newer three part flavor of git describe.
43060
43061 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
43062
43063         * lib/fts.c (fts_build): Typo correction to comment.
43064
43065 2008-02-17  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
43068         generating no-op conflicts.
43069
43070 2008-02-17  Bruno Haible  <bruno@clisp.org>
43071
43072         Speed up by 10%.
43073         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
43074         result_entries, rather than an index-based loop.
43075
43076 2008-02-17  Bruno Haible  <bruno@clisp.org>
43077
43078         Speed up by 25%.
43079         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
43080         'hashcode_cached'.
43081         (entry_create): New function.
43082         (entry_hashcode): Use the cached hashcode if possible.
43083         (read_changelog_file, try_split_merged_entry): Use entry_create.
43084
43085 2008-02-17  Bruno Haible  <bruno@clisp.org>
43086
43087         Speed up from O(n^2) to O(n) for long ChangeLog files.
43088         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
43089         (read_changelog_file): Change implementation of entries_reversed list
43090         to rbtreehash.
43091         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
43092
43093 2008-02-17  Bruno Haible  <bruno@clisp.org>
43094
43095         New option --split-merged-entry.
43096         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
43097         (find_paragraph_end, try_split_merged_entry): New functions.
43098         (long_options): Add option --split-merged-entry.
43099         (usage): Document option --split-merged-entry.
43100         (main): Implement option --split-merged-entry.
43101         Reported by Eric Blake.
43102
43103 2008-02-17  Bruno Haible  <bruno@clisp.org>
43104
43105         * lib/git-merge-changelog.c: Include c-strstr.h.
43106         (main): Support the "git pull --rebase" situation.
43107         * modules/git-merge-changelog (Depends-on): Add c-strstr.
43108         Reported by Eric Blake.
43109
43110 2008-02-16  Eric Blake  <ebb9@byu.net>
43111
43112         Avoid doubling \ in common case of "c-maybe" quoting style.
43113         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
43114         eliding outer quotes.
43115         * lib/quotearg.h: Document this.
43116         * tests/test-quotearg.c (result_strings, inputs, results_g)
43117         (flag_results, locale_results): Test it by adding a new string to
43118         each test group.
43119         (compare_strings): Test new string.
43120
43121 2008-02-13  Eric Blake  <ebb9@byu.net>
43122
43123         Avoid trigraph quoting in default output.
43124         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
43125         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
43126         unless explicitly requested.
43127         * tests/test-quotearg.c (flag_results, main): Add additional tests.
43128
43129 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
43130
43131         Don't rely on signed integer overflowing to negative value.
43132         * lib/getugroups.c (getugroups): Include <limits.h>.
43133         Instead, compare against INT_MAX, and increment only if the test passes.
43134
43135 2008-02-13  Jim Meyering  <meyering@redhat.com>
43136         and Eric Blake  <ebb9@byu.net>
43137
43138         Avoid shadowing warning and compile errors on Linux.
43139         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
43140         forwarding macros on Linux.
43141         (dcgettext): Define a stub, for Linux.
43142         (results_g, main): Avoid warnings.
43143
43144 2008-02-12  Eric Blake  <ebb9@byu.net>
43145
43146         Silence warning in last patch.
43147         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
43148
43149         Quotearg part 4: add tests, fix c-maybe colon quoting.
43150         * lib/quotearg.h: Improve documentation.
43151         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
43152         escapes when adding outer quotes.  When quoting trigraphs, use
43153         valid C notation.  When quoting NUL, omit extra characters if next
43154         character is not digit.  Alter prototype.
43155         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
43156         callers.
43157         * modules/quotearg-tests: New module.
43158         * tests/test-quotearg.c: New test.
43159
43160 2008-02-07  Eric Blake  <ebb9@byu.net>
43161
43162         Quotearg part 3: add flag to control outer quote elision.
43163         * lib/quotearg.h (c_maybe_quoting_style): New style.
43164         (enum quoting_flags): Better documentation of flags.
43165         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
43166         c-maybe style.
43167         (quotearg_buffer_restyled): Handle new flag to elide outer
43168         quotes.
43169
43170         Quotearg part 2: add flag that can control NUL elision.
43171         * lib/quotearg.h (set_quoting_flags): New prototype.
43172         * lib/quotearg.c (struct quoting_options): Add flag field.
43173         (set_quoting_flags): New function.
43174         (quotearg_buffer_restyled): Add flags parameter.
43175         (quotearg_alloc_mem): Set the flag if length cannot be returned.
43176         (quotearg_n_options): Set the flag, since length cannot be
43177         returned.
43178         (quoting_options_from_style): Default flags correctly.
43179
43180         Quotearg part 1: more wrappers, restore quotearg_char state.
43181         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
43182         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
43183         (quotearg_colon_mem): New wrappers.
43184         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
43185         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
43186         functions.
43187         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
43188         (quotearg_colon_mem): New functions.
43189
43190 2008-02-11  Bruno Haible  <bruno@clisp.org>
43191
43192         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
43193         library in the current directory: it does not work with parallel make.
43194         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43195
43196 2008-02-11  Bruno Haible  <bruno@clisp.org>
43197
43198         * .gitattributes: New file.
43199
43200 2008-02-11  Jim Meyering  <meyering@redhat.com>
43201
43202         useless-if-before-free: Fix reversed exit values.
43203         * build-aux/useless-if-before-free: Use correct values
43204         for EXIT_MATCH and EXIT_NO_MATCH.
43205
43206         * build-aux/useless-if-before-free: Close stdout carefully.
43207
43208 2008-02-10  Bruno Haible  <bruno@clisp.org>
43209
43210         New module 'git-merge-changelog'.
43211         * modules/git-merge-changelog: New file.
43212         * lib/git-merge-changelog.c: New file.
43213
43214 2008-02-10  Jim Meyering  <meyering@redhat.com>
43215
43216         useless-if-before-free: New option: --list (-l).
43217
43218         useless-if-before-free: Don't exit immediately upon open failure.
43219         * build-aux/useless-if-before-free: Exit 2 for errors.
43220         Upon failure to open a file, don't exit immediately.
43221         Rather, just warn and continue with any remaining files.
43222
43223 2008-02-10  Bruno Haible  <bruno@clisp.org>
43224
43225         New abstract list operation 'node_set_value'.
43226         * lib/gl_list.h (gl_list_node_set_value): New function.
43227         (struct gl_list_implementation): New field node_set_value.
43228         * lib/gl_list.c (gl_list_node_set_value): New function.
43229         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43230         (gl_array_list_implementation): Update.
43231         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43232         (gl_carray_list_implementation): Update.
43233         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43234         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43235         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43236         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43237         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43238         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43239         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43240         Update.
43241         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43242         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43243         (gl_sublist_list_implementation): Update.
43244
43245 2008-02-10  Bruno Haible  <bruno@clisp.org>
43246
43247         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43248         Needed when ELEMENT is #defined to 'some_type *'.
43249
43250 2008-02-10  Jim Meyering  <meyering@redhat.com>
43251
43252         New script and module: useless-if-before-free
43253         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43254         * build-aux/useless-if-before-free: New file.
43255         * modules/useless-if-before-free: New file.
43256
43257         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43258
43259         xstrtol_error: Fix typo.
43260         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43261         s/exit_failure/exit_status/.
43262
43263 2008-02-09  Jim Meyering  <meyering@redhat.com>
43264
43265         New script and module: gitlog-to-changelog
43266         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43267         * modules/gitlog-to-changelog: New file.
43268         * build-aux/gitlog-to-changelog: New file.
43269
43270 2008-02-08  Jim Meyering  <meyering@redhat.com>
43271
43272         Avoid two "parameter unused" warnings.
43273         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43274         Mark "st" as used.
43275
43276         Use "git COMMAND", not "git-COMMAND".
43277         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43278         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43279         * build-aux/git-version-gen: Use "git status", not "git-status".
43280
43281 2008-02-07  Bruno Haible  <bruno@clisp.org>
43282
43283         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43284         Avoids a crash on Windows Vista.
43285         Reported by Adam Strzelecki <ono@java.pl> via
43286         Simon Josefsson <simon@josefsson.org>.
43287
43288 2008-02-06  Bruno Haible  <bruno@clisp.org>
43289
43290         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43291         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43292         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43294         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43295         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43296         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43297         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43298         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43305         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43306         left-adjust flag.
43307         * tests/test-snprintf-posix.h (test_function): Likewise.
43308         * tests/test-sprintf-posix.h (test_function): Likewise.
43309         * tests/test-vasprintf-posix.c (test_function): Likewise.
43310         * doc/posix-functions/fprintf.texi: Update.
43311         * doc/posix-functions/printf.texi: Update.
43312         * doc/posix-functions/snprintf.texi: Update.
43313         * doc/posix-functions/sprintf.texi: Update.
43314         * doc/posix-functions/vfprintf.texi: Update.
43315         * doc/posix-functions/vprintf.texi: Update.
43316         * doc/posix-functions/vsnprintf.texi: Update.
43317         * doc/posix-functions/vsprintf.texi: Update.
43318         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43319
43320 2008-02-06  Bruno Haible  <bruno@clisp.org>
43321
43322         Fix bug introduced on 2008-01-26.
43323         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43324
43325 2008-02-06  Bruno Haible  <bruno@clisp.org>
43326
43327         Fix bug introduced on 2007-06-10.
43328         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43329         !NEED_PRINTF_FLAG_ZERO.
43330
43331 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43332
43333         getloadavg: use libperfstat on AIX5
43334         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43335
43336 2008-02-03  Bruno Haible  <bruno@clisp.org>
43337
43338         * lib/diffseq.h: Add comments about required #includes.
43339         Reported by Michael Biggs <gnulib@doubleplum.net>.
43340
43341 2008-02-01  Bruno Haible  <bruno@clisp.org>
43342
43343         * users.txt: Add gnuit.
43344
43345 2008-01-31  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/md4.c (set_uint32): Mark as inline.
43348         * lib/md5.c (set_uint32): Likewise.
43349         * lib/sha1.c (set_uint32): Likewise.
43350         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43351         * m4/md5.m4 (gl_MD5): Likewise.
43352         * m4/sha1.m4 (gl_SHA1): Likewise.
43353
43354 2008-01-31  Jim Meyering  <meyering@redhat.com>
43355
43356         Use "sizeof VAR", rather than a literal "4".
43357         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43358         * lib/md4.c (md4_read_ctx): Likewise.
43359         * lib/sha1.c (sha1_read_ctx): Likewise.
43360
43361 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43362
43363         * tests/test-sha1.c: New file, based on test-md5.c.
43364
43365         * modules/crypto/sha1-tests: New file.
43366
43367 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43368
43369         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43370
43371 2008-01-31  Jim Meyering  <meyering@redhat.com>
43372
43373         Prefer "sizeof v" over the equivalent "4".
43374         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43375         * lib/md5.c (set_uint32): Likewise.
43376         * lib/sha1.c (set_uint32): Likewise.
43377
43378 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43379
43380         * lib/sha1.c (set_uint32): Mark function as static.
43381
43382 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43383
43384         md2: clarify comments to say that alignment is not required.
43385         * lib/md2.h: Remove warning about alignment in comment.
43386         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43387         never been required.
43388
43389 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43390
43391         md4: adapt alignment constraint fix from sha1.
43392         * lib/md4.c (set_uint32): New function, from sha1.c
43393         (md4_read_ctx): Use it.
43394         (md4_finish_ctx): Doc fix.
43395         * lib/md4.h: Doc fix.
43396
43397 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43398
43399         md5: adapt alignment constraint fix from sha1.
43400         * lib/md5.c (set_uint32): New function, from sha1.c
43401         (md5_read_ctx): Use it.
43402         (md5_finish_ctx): Doc fix.
43403         * lib/md5.h: Doc fix.
43404
43405 2008-01-30  Peter Palfrader  <weasel@debian.org>
43406
43407         sha1: remove the result buffer alignment constraint
43408         * lib/sha1.c (set_uint32): New function.
43409         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43410         constraint.
43411         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43412         * lib/sha1.h: Likewise.
43413
43414 2008-01-30  Andreas Schwab  <schwab@suse.de>
43415             Bruno Haible  <bruno@clisp.org>
43416
43417         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43418         correct definition of LDBL_MIN_EXP.
43419
43420 2008-01-30  Karl Berry  <karl@gnu.org>
43421
43422         * config/srclist-update: try to preserve x bit on updates.
43423         * config/srclistvars.sh: update for karl.
43424
43425 2008-01-29  Jim Meyering  <meyering@redhat.com>
43426
43427         vasnprintf.c: Avoid warning about unused label
43428         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43429         "overflow" label definition and associated code with the
43430         same cpp condition that guards the sole use of that label.
43431
43432 2008-01-26  Bruno Haible  <bruno@clisp.org>
43433
43434         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43435         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43436         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43437         * lib/isnanl-nolibm.h (isnanl): Likewise.
43438         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43439
43440 2008-01-26  Bruno Haible  <bruno@clisp.org>
43441
43442         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43443         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43444
43445 2008-01-26  Bruno Haible  <bruno@clisp.org>
43446
43447         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43448         GCC >= 4.0 built-in.
43449         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43450
43451 2008-01-26  Bruno Haible  <bruno@clisp.org>
43452
43453         Rename isnan, applicable to 'double' only, to isnand.
43454         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43455         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43456         (configure.ac): Update.
43457         (Include): Replace "isnan.h" with "isnand.h".
43458         * m4/isnand.m4: Renamed from m4/isnan.m4.
43459         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43460         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43461         instead of isnan.c.
43462         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43463         instead of HAVE_ISNAN_IN_LIBC.
43464         (isnand): Renamed from isnan.
43465         * lib/isnand.c: New file.
43466         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43467         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43468         (Makefile.am): Update.
43469         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43470         Include isnand.h instead of isnan.h.
43471         (main): Test isnand instead of isnan.
43472         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43473         isnan-nolibm.
43474         * modules/frexp (Depends-on): Likewise.
43475         * modules/frexp-tests (Depends-on): Likewise.
43476         * modules/frexp-nolibm (Depends-on): Likewise.
43477         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43478         * modules/isfinite (Depends-on): Likewise.
43479         * modules/round-tests (Depends-on): Likewise.
43480         * modules/signbit (Depends-on): Likewise.
43481         * modules/signbit-tests (Depends-on): Likewise.
43482         * modules/snprintf-posix (Depends-on): Likewise.
43483         * modules/sprintf-posix (Depends-on): Likewise.
43484         * modules/trunc-tests (Depends-on): Likewise.
43485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43486         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43487         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43488         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43489         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43490         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43491         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43492         * modules/vasnprintf-posix (Depends-on): Likewise.
43493         * modules/vasprintf-posix (Depends-on): Likewise.
43494         * modules/vfprintf-posix (Depends-on): Likewise.
43495         * modules/vsnprintf-posix (Depends-on): Likewise.
43496         * modules/vsprintf-posix (Depends-on): Likewise.
43497         * lib/frexp.c: Include isnand.h instead of isnan.h.
43498         (ISNAN): Set to isnand instead of isnan.
43499         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43500         (gl_isfinited): Use isnand instead of isnan.
43501         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43502         (gl_signbitd): Use isnand instead of isnan.
43503         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43504         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43505         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43506         (main): Use isnand instead of isnan.
43507         * tests/test-round1.c: Include isnand.h.
43508         (main): Use isnand instead of isnan.
43509         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43510         (ISNAN): Set to isnand instead of isnan.
43511         * tests/test-trunc1.c: Include isnand.h.
43512         (main): Use isnand instead of isnan.
43513         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43514         (equal): Use isnand instead of isnan.
43515         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43516         isnand-nolibm.
43517         * NEWS: Mention the change.
43518
43519 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43520             Bruno Haible  <bruno@clisp.org>
43521
43522         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43523         the GCC builtins for signbits are present and set
43524         REPLACE_SIGNBIT_USING_GCC if so.
43525         * lib/math.in.h (signbit): Define using GCC builtins if
43526         REPLACE_SIGNBIT_USING_GCC is set.
43527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43528         REPLACE_SIGNBIT_USING_GCC.
43529         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43530
43531 2008-01-25  Jim Meyering  <meyering@redhat.com>
43532
43533         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43534         * lib/poll.c: Include <config.h>, not "config.h".
43535         * tests/test-getaddrinfo.c: Likewise.
43536
43537 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43538
43539         * modules/sockets-tests: New file.
43540
43541 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43542
43543         * modules/sockets: New module, can be used to call WSA_Startup and
43544         WSA_Cleanup when needed.
43545
43546         * lib/sockets.h, lib/sockets.c: New files.
43547
43548         * m4/sockets.m4: New file.
43549
43550         * tests/test-sockets.c: New file.
43551
43552 2008-01-19  Bruno Haible  <bruno@clisp.org>
43553
43554         * doc/posix-headers: Renamed from doc/headers.
43555         * doc/posix-functions: Renamed from doc/functions.
43556         * doc/gnulib.texi: Update.
43557
43558 2008-01-19  Bruno Haible  <bruno@clisp.org>
43559
43560         * doc/glibc-functions/strcasestr.texi: Include contents of
43561         doc/functions/strcasestr.texi, fixing the list of platforms.
43562         * doc/functions/strcasestr.texi: Remove file.
43563
43564 2008-01-19  Bruno Haible  <bruno@clisp.org>
43565
43566         * doc/glibc-functions/memmem.texi: Include contents of
43567         doc/functions/memmem.texi.
43568         * doc/functions/memmem.texi: Remove file.
43569
43570 2008-01-18  Bruno Haible  <bruno@clisp.org>
43571
43572         * doc/glibc-functions/*.texi: New files.
43573         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43574         to use the new files.
43575
43576 2008-01-17  Bruno Haible  <bruno@clisp.org>
43577
43578         * tests/test-gethostname.c (main): Fix printf statement.
43579
43580 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43581
43582         * modules/gethostname-tests: New file.
43583
43584         * tests/test-gethostname.c: New file.
43585
43586 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43587
43588         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43589         used by the UNAME case.  Reported by Bruno Haible
43590         <bruno@clisp.org>.
43591
43592 2008-01-17  Eric Blake  <ebb9@byu.net>
43593
43594         Convert c-strcasestr to be more efficient.
43595         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43596         (Depends-on): Add c-strcase, remove malloca, strnlen.
43597         * tests/test-c-strcasestr.c (main): Enhance test.
43598         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43599
43600 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43601
43602         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43603         Use it in creating po/Makevars.
43604
43605 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43606
43607         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43608         Applications that requires it should initialize libgcrypt
43609         manually.
43610
43611 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43612
43613         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43614
43615 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43616
43617         Fix problem with getdate on mingw32 reported by Simon Josefsson
43618         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43619         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43620         tzname", when deciding whether to declare tzname.
43621         * lib/strftime.c (tzname): Likewise.
43622
43623 2008-01-15  Bruno Haible  <bruno@clisp.org>
43624
43625         Work around a MacOS X 10.5 bug in frexpl().
43626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43627         * doc/functions/frexpl.texi: Document the bug.
43628         Reported by Elias Pipping <pipping@gentoo.org>.
43629
43630 2008-01-14  Eric Blake  <ebb9@byu.net>
43631
43632         Touch up previous patch.
43633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43634         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43635
43636         Convert strcasestr module to use Two-Way algorithm.
43637         * modules/strcasestr-simple: New module, based on the old
43638         strcasestr, but with Two-Way rather than KMP.
43639         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43640         * lib/string.in.h (rpl_strcasestr): Declare.
43641         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43642         performance.
43643         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43644         * modules/string (Makefile.am): Support strcasestr.
43645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43646         * modules/strcasestr-tests (Depends-on): Check for alarm.
43647         * tests/test-strcasestr.c: Augment test.
43648         * lib/str-two-way.h: Clean up stray macro.
43649         * NEWS: Document new module.
43650         * MODULES.html.sh (string handling): Likewise.
43651         * doc/functions/strcasestr.texi: New file.
43652         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43653         here, since it is not a POSIX function.
43654
43655 2008-01-14  Colin Watson  <cjwatson@debian.org>
43656             Bruno Haible  <bruno@clisp.org>
43657
43658         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43659         works fine; if not, set REPLACE_STRSIGNAL.
43660         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43661         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43662         REPLACE_STRSIGNAL.
43663         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43664         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43665         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43666
43667 2008-01-14  Bruno Haible  <bruno@clisp.org>
43668
43669         * modules/strsignal (Include): Change to <string.h>.
43670
43671 2008-01-14  Colin Watson  <cjwatson@debian.org>
43672
43673         * modules/argp (Notice): Add a notice recommending to change
43674         XGETTEXT_OPTIONS.
43675         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43676
43677 2008-01-13  Colin Watson  <cjwatson@debian.org>
43678
43679         * modules/strsignal-tests: New file.
43680         * tests/test-strsignal.c: New file.
43681
43682         * lib/strsignal.c: New file, from glibc with modifications.
43683         * lib/siglist.h: New file, from glibc with modifications.
43684         * lib/string.in.h (strsignal): New declaration.
43685         * m4/strsignal.m4: New file.
43686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43687         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43688         * modules/strsignal: New file.
43689         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43690         HAVE_DECL_STRSIGNAL.
43691
43692 2008-01-13  Bruno Haible  <bruno@clisp.org>
43693
43694         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43695         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43696         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43697         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43698
43699 2008-01-13  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43702         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43703         * lib/argp.h (__attribute__): Likewise.
43704         * lib/c-stack.c (__attribute__): Likewise.
43705         * lib/error.h (__attribute__): Likewise.
43706         * lib/fts.c (__attribute__): Likewise.
43707         * lib/openat.h (__attribute__): Likewise.
43708         * lib/stdio.in.h (__attribute__): Likewise.
43709         * lib/string.in.h (__attribute__): Likewise.
43710         * lib/utimens.c (__attribute__): Likewise.
43711         * lib/vasnprintf.h (__attribute__): Likewise.
43712         * lib/xalloc.h (__attribute__): Likewise.
43713         * lib/xprintf.h (__attribute__): Likewise.
43714         * lib/xstrtol.h (__attribute__): Likewise.
43715         * lib/xvasprintf.h (__attribute__): Likewise.
43716
43717 2008-01-12  Bruno Haible  <bruno@clisp.org>
43718
43719         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43720         * doc/glibc-headers/a.out.texi: New file.
43721         * doc/glibc-headers/aliases.texi: New file.
43722         * doc/glibc-headers/alloca.texi: New file.
43723         * doc/glibc-headers/ar.texi: New file.
43724         * doc/glibc-headers/argp.texi: New file.
43725         * doc/glibc-headers/argz.texi: New file.
43726         * doc/glibc-headers/byteswap.texi: New file.
43727         * doc/glibc-headers/crypt.texi: New file.
43728         * doc/glibc-headers/endian.texi: New file.
43729         * doc/glibc-headers/envz.texi: New file.
43730         * doc/glibc-headers/err.texi: New file.
43731         * doc/glibc-headers/error.texi: New file.
43732         * doc/glibc-headers/execinfo.texi: New file.
43733         * doc/glibc-headers/fpu_control.texi: New file.
43734         * doc/glibc-headers/fstab.texi: New file.
43735         * doc/glibc-headers/fts.texi: New file.
43736         * doc/glibc-headers/getopt.texi: New file.
43737         * doc/glibc-headers/ieee754.texi: New file.
43738         * doc/glibc-headers/ifaddrs.texi: New file.
43739         * doc/glibc-headers/libintl.texi: New file.
43740         * doc/glibc-headers/mcheck.texi: New file.
43741         * doc/glibc-headers/mntent.texi: New file.
43742         * doc/glibc-headers/obstack.texi: New file.
43743         * doc/glibc-headers/paths.texi: New file.
43744         * doc/glibc-headers/printf.texi: New file.
43745         * doc/glibc-headers/pty.texi: New file.
43746         * doc/glibc-headers/resolv.texi: New file.
43747         * doc/glibc-headers/shadow.texi: New file.
43748         * doc/glibc-headers/sysexits.texi: New file.
43749         * doc/glibc-headers/ttyent.texi: New file.
43750
43751 2008-01-12  Jim Meyering  <meyering@redhat.com>
43752
43753         announce-gen: emit Gnulib's git-based version string.
43754         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43755         New option --gnulib-version=V, where V is expected to be
43756         the output of running git describe in the gnulib directory.
43757         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43758         not useful, and plan to stop publishing an xdelta file with each
43759         coreutils release.
43760
43761         * build-aux/announce-gen: Also check for lzma-compressed files.
43762
43763 2008-01-11  Bruno Haible  <bruno@clisp.org>
43764
43765         * tests/test-memmem.c (main): Increase maximum allowed time.
43766         * tests/test-strstr.c (main): Likewise.
43767
43768 2008-01-11  Bruno Haible  <bruno@clisp.org>
43769
43770         * doc/functions/memmem.texi: Add more precisions about platforms.
43771         * doc/functions/strstr.texi: Likewise.
43772
43773 2008-01-10  Eric Blake  <ebb9@byu.net>
43774
43775         * m4/strstr.m4: Delete cruft from copy-n-paste.
43776         Reported by Bruno Haible.
43777
43778 2008-01-10  Bruno Haible  <bruno@clisp.org>
43779
43780         Make c-strstr rely on strstr.
43781         * lib/c-strstr.c: Don't include str-kmp.h.
43782         (c_strstr): Define in terms of strstr.
43783         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43784         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43785
43786 2008-01-10  Bruno Haible  <bruno@clisp.org>
43787
43788         * doc/gnulib.texi (String Functions in C Locale): New section.
43789         * doc/c-ctype.texi: New file.
43790         * doc/c-strcase.texi: New file.
43791         * doc/c-strcaseeq.texi: New file.
43792         * doc/c-strcasestr.texi: New file.
43793         * doc/c-strstr.texi: New file.
43794         * doc/c-strtod.texi: New file.
43795         * doc/c-strtold.texi: New file.
43796
43797 2008-01-10  Eric Blake  <ebb9@byu.net>
43798
43799         * lib/relocatable.h: Fix a comment.
43800
43801 2008-01-10  Eric Blake  <ebb9@byu.net>
43802
43803         Share two-way algorithm.
43804         * lib/str-two-way.h: New file, merged from...
43805         * lib/memmem.c: ...here...
43806         * lib/strstr.c: ...and here.
43807         * modules/memmem (Files): Use it.
43808         * modules/strstr (Files): Likewise.
43809
43810         Avoid quadratic strstr implementations.
43811         * lib/strstr.c: New file.
43812         * m4/strstr.m4: Likewise.
43813         * modules/strstr: Likewise.
43814         * modules/strstr-tests: Likewise.
43815         * tests/test-strstr.c: Likewise.
43816         * lib/string.in.h (rpl_strstr): Declare.
43817         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43818         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43819         * modules/string (Makefile.am): Likewise.
43820         * MODULES.html.sh (string handling): Mention new module.
43821         * doc/functions/strstr.texi (strstr): Document the bug.
43822
43823 2008-01-10  Bruno Haible  <bruno@clisp.org>
43824
43825         * lib/relocatable.h (relocate): State whether result is freshly
43826         allocated or not.
43827         * lib/relocatable.c (relocate): Return a freshly allocated string
43828         instead of a pointer to a privately held string.
43829         Reported by Sylvain Beucler <beuc@gnu.org>.
43830
43831 2008-01-10  Colin Watson  <cjwatson@debian.org>
43832
43833         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43834         s/S_ISNLK/S_ISLNK/.
43835
43836 2008-01-09  Bruno Haible  <bruno@clisp.org>
43837
43838         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43839         and other files.
43840         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43841         if it's only a guess.
43842         * modules/memmem: Simplify by depending on memmem-simple.
43843
43844 2008-01-09  Bruno Haible  <bruno@clisp.org>
43845
43846         Work around OpenBSD 4.0 tdelete() bug.
43847         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43848         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43849         macros and don't redefine the enum values.
43850         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43851         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43852         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43853
43854 2008-01-09  Bruno Haible  <bruno@clisp.org>
43855
43856         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43857         (main): Don't perform the tests if setlocale did not install a UTF-8
43858         locale. Needed on OpenBSD 4.0.
43859         * modules/wcwidth-tests (Depends-on): Add localcharset.
43860
43861 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43862
43863         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43864         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43865         * NEWS: announce this.
43866         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43867
43868 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43869         and Eric Blake  <ebb9@byu.net>
43870
43871         Add memmem-simple module.
43872         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43873         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43874         * modules/memmem-simple: New file.
43875         * modules/memmem (Description): Tweak.
43876         * MODULES.html.sh (string handling): Mention new module.
43877         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43878         addressed by memmem-simple.
43879         * NEWS: Document the difference.
43880
43881 2008-01-09  Eric Blake  <ebb9@byu.net>
43882
43883         Give gcc some memmem optimization hints.
43884         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43885         (strcasestr): Declare as pure.
43886         * modules/memmem (Maintainer): Claim my implementation.
43887
43888 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43889
43890         Support AIX 6.1 and higher.
43891         * build-aux/config.libpath: Likewise.
43892         * build-aux/config.rpath: Likewise.
43893
43894 2008-01-08  Jim Meyering  <meyering@redhat.com>
43895             Bruno Haible  <bruno@clisp.org>
43896
43897         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43898         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43899         Reported by Peter Fales in
43900         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43901
43902 2008-01-08  Bruno Haible  <bruno@clisp.org>
43903
43904         * modules/unictype/category-of (Depends-on): Add
43905         unictype/category-none.
43906         * modules/unictype/category-and-tests (Depends-on): Add
43907         unictype/category-{L,N,Lu,Nd}.
43908         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43909         * modules/unictype/category-or-tests (Depends-on): Add
43910         unictype/category-{L,N}.
43911         * modules/unictype/category-name-tests (Depends-on): Add
43912         unictype/category-{Z,Nl}.
43913         Reported by Simon Josefsson.
43914
43915 2008-01-08  Bruno Haible  <bruno@clisp.org>
43916
43917         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43918         convention better.
43919         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43920         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43921         Reported by Peter Miller <millerp@canb.auug.org.au>.
43922
43923 2008-01-08  Eric Blake  <ebb9@byu.net>
43924
43925         Rewrite memmem to guarantee linear complexity without malloc.
43926         * lib/memmem.c (memmem): Use Two-Way rather than
43927         Knuth-Morris-Pratt, to allow O(1) space usage.
43928         (critical_factorization, two_way_short_needle)
43929         (two_way_long_needle): New functions.
43930         (knuth_morris_pratt): Delete.
43931         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43932         Add stdint.
43933         * tests/test-memmem.c (main): Add tests for periodic needle and
43934         sublinear performance.
43935         * doc/functions/memmem.texi (memmem): Document other deficiencies
43936         in cygwin and older glibc.
43937
43938 2008-01-08  Bruno Haible  <bruno@clisp.org>
43939
43940         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43941         augmentation.
43942
43943 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43944
43945         Add a configure time option: --disable-acl.
43946         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43947         AC_ARG_ENABLE(acl).
43948
43949 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43950
43951         * tests/test-localename.c: Don't include obsolete "setenv.h".
43952
43953         * modules/localename-tests (Depends-on): Need unsetenv.
43954
43955 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43956
43957         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43958
43959 2008-01-06  Colin Watson  <cjwatson@debian.org>
43960
43961         * users.txt: Add man-db.
43962
43963 2008-01-07  Bruno Haible  <bruno@clisp.org>
43964
43965         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43966         previous section name.
43967
43968 2008-01-07  Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/progname.c (set_program_name): Don't strip off a leading
43971         "lt-" prefix outside a .libs directory.
43972         Suggested by Paul Eggert.
43973
43974 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43975             Bruno Haible  <bruno@clisp.org>
43976
43977         Improve memory cleanup in 'relocatable' module.
43978         * lib/relocatable.h (compute_curr_prefix): Change return type to
43979         'char *'.
43980         * lib/relocatable.c (compute_curr_prefix): Change return type to
43981         'char *'. Free curr_installdir after use.
43982         (relocate): Free curr_prefix_better after use.
43983         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43984
43985 2008-01-01  Bruno Haible  <bruno@clisp.org>
43986
43987         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43988         failure on older glibc systems.
43989         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43990
43991 2008-01-05  Eric Blake  <ebb9@byu.net>
43992
43993         Avoid quadratic system memmem.
43994         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43995         Reported by Ralf Wildenhues.
43996
43997         Fix memmem test for mingw.
43998         * modules/memmem-tests (configure.ac): Check for alarm.
43999         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
44000         it.
44001         * doc/functions/memmem.texi: New file.
44002         * doc/gnulib.texi (Function Substitutes): Add memmem.
44003         Reported by Bruno Haible.
44004
44005 2008-01-04  Bruno Haible  <bruno@clisp.org>
44006
44007         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
44008         Require gl_HEADER_STRINGS_H_DEFAULTS, not
44009         gl_HEADER_STRING_H_DEFAULTS.
44010
44011 2008-01-04  Eric Blake  <ebb9@byu.net>
44012
44013         Shorten duration of memmem test.
44014         * tests/test-memmem.c (main): Use alarm to declare failure if test
44015         is taking too long.
44016         Reported by Ralf Wildenhues.
44017
44018 2007-12-21  Simon Josefsson  <simon@josefsson.org>
44019
44020         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
44021         string, needed by strerror.
44022
44023 2008-01-03  Colin Watson  <cjwatson@debian.org>
44024             Bruno Haible  <bruno@clisp.org>
44025
44026         * doc/gnulib-tool.texi (Localization): New section.
44027
44028 2008-01-02  Bruno Haible  <bruno@clisp.org>
44029
44030         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
44031         variables to 'unsigned char *' type.
44032         Reported by Paul Eggert.
44033
44034 2008-01-02  Jim Meyering  <jim@meyering.net>
44035
44036         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
44037
44038 2007-12-31  Jim Meyering  <jim@meyering.net>
44039
44040         Avoid use of private FTS type name.
44041         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
44042
44043 2007-12-30  Karl Berry  <karl@gnu.org>
44044
44045         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
44046         work around defect in Texinfo and/or the standalone Info browser.
44047
44048 2007-12-30  Bruno Haible  <bruno@clisp.org>
44049
44050         Unify 5 copies of the KMP code.
44051         * lib/str-kmp.h: New file.
44052         * lib/c-strcasestr.c: Include str-kmp.h.
44053         (knuth_morris_pratt): Remove function.
44054         (c_strcasestr): Update.
44055         * lib/c-strstr.c: Include str-kmp.h.
44056         (knuth_morris_pratt): Remove function.
44057         (c_strcasestr): Update.
44058         * lib/mbscasestr.c: Include str-kmp.h.
44059         (knuth_morris_pratt_unibyte): Remove function.
44060         * lib/mbsstr.c: Include str-kmp.h.
44061         (knuth_morris_pratt_unibyte): Remove function.
44062         * lib/strcasestr.c: Include str-kmp.h.
44063         (knuth_morris_pratt): Remove function.
44064         (strcasestr): Update.
44065         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
44066         * modules/c-strstr (Files): Likewise.
44067         * modules/mbscasestr (Files): Likewise.
44068         * modules/mbsstr (Files): Likewise.
44069         * modules/strcasestr (Files): Likewise.
44070         Suggested by Paul Eggert.
44071
44072 2007-12-30  Bruno Haible  <bruno@clisp.org>
44073
44074         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
44075         defined.
44076
44077 2007-12-30  Bruno Haible  <bruno@clisp.org>
44078
44079         * lib/xmalloca.h: Include xalloc.h.
44080         (xnmalloca): New macro.
44081
44082 2007-12-30  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/malloca.h (nmalloca): New macro.
44085         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
44086         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
44087         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
44088         knuth_morris_pratt_multibyte): Likewise.
44089         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
44090         knuth_morris_pratt_multibyte): Likewise.
44091         * lib/memmem.c (knuth_morris_pratt): Likewise.
44092         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
44093
44094 2007-12-25  Bruno Haible  <bruno@clisp.org>
44095
44096         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
44097         * lib/glob.c: Don't include openat.h.
44098         (link_exists2_p): Add back the code that deals with the
44099         !GLOB_ALTDIRFUNC case.
44100         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
44101         let it do the filename concatenation.
44102         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
44103         * modules/glob (Depends-on): Remove openat.
44104
44105 2007-12-31  Bruno Haible  <bruno@clisp.org>
44106
44107         * modules/dirfd (License): Change to LGPLv2+.
44108         Approved by Jim Meyering.
44109
44110 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44111
44112         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
44113         when multiplying M by sizeof (size_t).
44114
44115 2007-12-10  Martin Lambers  <marlam@marlam.de>
44116
44117         Override getpagesize on mingw.
44118         * lib/getpagesize.c: New file.
44119         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
44120         * modules/getpagesize (Files): Add lib/getpagesize.c.
44121         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
44122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44123         REPLACE_GETPAGESIZE.
44124         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
44125
44126 2007-12-25  Bruno Haible  <bruno@clisp.org>
44127
44128         * modules/localcharset (Notice): New field.
44129         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
44130         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
44131
44132 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44133             Bruno Haible  <bruno@clisp.org>
44134
44135         Avoid using the syntax symbol() in formatted documentation.
44136         * MODULES.html.sh (func_module): When replacing symbol() with a
44137         hyperlink, remove the parentheses. Show an error if some remain.
44138         Recognize and render the '...' syntax.
44139         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
44140         Rework. Add paragraph about GCC's inlining.
44141         * doc/alloca.texi: Likewise.
44142         * doc/error.texi: Remove parentheses from symbol reference.
44143         * doc/gnulib-intro.texi: Likewise.
44144         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
44145         * modules/fnmatch (Description): Reword to say "the ... function".
44146         * modules/full-read (Description): Likewise.
44147         * modules/full-write (Description): Likewise.
44148         * modules/safe-read (Description): Likewise.
44149         * modules/safe-write (Description): Likewise.
44150         * modules/strchrnul (Description): Likewise.
44151         * modules/trim (Description): Likewise.
44152         * modules/error (Description): Remove parentheses from symbol
44153         references.
44154         * modules/verror (Description): Likewise.
44155         Reported by Karl Berry.
44156
44157 2007-12-25  Bruno Haible  <bruno@clisp.org>
44158
44159         Fixup after 2007-10-16 commit.
44160         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
44161
44162 2007-12-24  Bruno Haible  <bruno@clisp.org>
44163
44164         Make --enable-relocatable work with DESTDIR.
44165         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
44166         to compute installdir from destprog.
44167         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
44168         also set the RELOC_DESTDIR variable.
44169         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44170
44171 2007-12-24  Bruno Haible  <bruno@clisp.org>
44172
44173         Fix link error due to xalloc_die().
44174         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
44175         of xreadlink.
44176         * lib/relocwrapper.c: Update comments.
44177         * build-aux/install-reloc: Remove xreadlink.c from file list.
44178         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
44179         xreadlink.c.
44180         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44181
44182 2007-12-24  Bruno Haible  <bruno@clisp.org>
44183
44184         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
44185         * lib/setenv.h: Remove file.
44186         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
44187         lib/setenv.h.
44188         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
44189         (Depends-on): Add stdlib.
44190         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
44191         gl_FUNC_UNSETENV.
44192         (Include): Replace setenv.h with <stdlib.h>.
44193         * modules/unsetenv: New file.
44194         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
44195         * lib/unsetenv.c: Include <stdlib.h> first.
44196         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
44197         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
44198         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
44199         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
44200         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
44201         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
44203         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
44204         * doc/functions/unsetenv.texi: Update.
44205         * modules/xsetenv (Depends-on): Add unsetenv.
44206         * modules/getdate (Depends-on): Likewise.
44207         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
44208         * lib/xsetenv.c: Don't include setenv.h.
44209         * lib/getdate.y: Likewise.
44210         * lib/relocwrapper.c: Likewise.
44211         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
44212         (Depends-on): Add stdlib.
44213         * NEWS: Mention the changes.
44214         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44215
44216 2007-12-23  Bruno Haible  <bruno@clisp.org>
44217
44218         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44219         indentation.
44220
44221 2007-12-23  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/c-strcasestr.c: Add more comments.
44224         * lib/c-strstr.c: Likewise.
44225         * lib/mbscasestr.c: Likewise.
44226         * lib/mbsstr.c: Likewise.
44227         * lib/strcasestr.c: Likewise.
44228         * lib/memmem.c: Likewise.
44229
44230 2007-12-23  Bruno Haible  <bruno@clisp.org>
44231
44232         * tests/test-memmem.c: Include <string.h> first.
44233
44234 2007-12-22  Bruno Haible  <bruno@clisp.org>
44235
44236         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44237         the contents of $testsbase.
44238         Reported by Ralf Wildenhues.
44239
44240 2007-12-22  Bruno Haible  <bruno@clisp.org>
44241
44242         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44243         two variables local_ldadd_before, local_ldadd_last.
44244
44245 2007-12-20  Eric Blake  <ebb9@byu.net>
44246
44247         Work around circular library issue when cross-compiling.
44248         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44249         that progname.o does not need to pull in rpl_memcmp.
44250
44251 2007-12-19  Eric Blake  <ebb9@byu.net>
44252
44253         Fix memmem to avoid O(n^2) worst-case complexity.
44254         * lib/memmem.c (knuth_morris_pratt): New function.
44255         (memmem): Use it if first few naive iterations fail.
44256         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44257         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44258         * modules/memchr (License): Likewise.
44259         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44260         malloca.
44261         * tests/test-memmem.c: Rewrite, borrowing ideas from
44262         test-mbsstr1.c; the old version wouldn't even compile!
44263         * modules/memmem-tests: New file.
44264         * lib/string.in.h (rpl_memmem): Add declaration.
44265         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44267         REPLACE_MEMMEM.
44268
44269 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44270
44271         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44272         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44273         before any system include files, and undef after them all.  This
44274         should fix a problem on VMS reported by John E. Malmberg in
44275         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44276
44277 2007-12-17  Eric Blake  <ebb9@byu.net>
44278
44279         Revert addition of verify, for BSD/OS.
44280         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44281         can't handle large files, for the sake of obsolete platforms.
44282         * modules/fseeko (Depends-on): Remove verify.
44283         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44284         * doc/functions/ftello.texi (ftello): Likewise.
44285         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44286         Reported by Larry Jones.
44287
44288 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44289
44290         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44291         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44292
44293 2007-12-17  Jim Meyering  <meyering@redhat.com>
44294
44295         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44296         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44297         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44298         * modules/getcwd (Depends-on): Add openat.
44299         Reported by Petr Salinger.
44300
44301 2007-12-17  Bruno Haible  <bruno@clisp.org>
44302
44303         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44304         avoid a segmentation fault of the configure test on x86_64 systems.
44305
44306 2007-12-15  Jim Meyering  <meyering@redhat.com>
44307
44308         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44309
44310 2007-12-13  Eric Blake  <ebb9@byu.net>
44311
44312         Another fseek test.
44313         * tests/test-fseek.c (main): Also test ungetc handling.
44314         * tests/test-fseeko.c (main): Likewise.
44315         * modules/fseeko (Depends-on): Add verify.
44316         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44317         large.
44318         Reported by Larry Jones.
44319
44320         Fix fseeko on mingw.
44321         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44322         seek.
44323
44324         Beef up fseek tests.
44325         * tests/test-fseek.c (main): Also test eof handling.
44326         * tests/test-fseeko.c (main): Likewise.
44327         Reported by Larry Jones.
44328
44329 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44330
44331         Fix fseeko on BSD-based platforms.
44332         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44333         successful seek.
44334
44335 2007-12-12  Eric Blake  <ebb9@byu.net>
44336
44337         Allow circular dependency of separate libtests.a
44338         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44339         when use_libtests.
44340
44341 2007-12-11  Eric Blake  <ebb9@byu.net>
44342
44343         Fix bug with -0.0L in previous patch.
44344         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44345         * tests/test-isnan.c (main): Also test on zeroes.
44346         * tests/test-isnanf.c (main): Likewise.
44347         * tests/test-isnanl.h (main): Likewise.
44348
44349         Detect pseudo-denormals on x86 even when cross-compiling.
44350         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44351         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44352         invalid bit patterns that happen to satisfy ==.
44353
44354         Avoid link failures with separate libtests.a.
44355         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44356         last, to satisfy circular dependencies.
44357
44358 2007-12-11  Eric Blake  <ebb9@byu.net>
44359         and Bruno Haible  <bruno@clisp.org>
44360
44361         Fix OpenBSD 4.0 <float.h> handling of long double.
44362         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44363         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44364         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44365
44366 2007-12-11  Jim Meyering  <meyering@redhat.com>
44367
44368         * users.txt: Add libvirt.
44369
44370         Support versions of autoconf prior to 2.59c.
44371         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44372         if it is not already defined.
44373
44374 2007-12-09  Bruno Haible  <bruno@clisp.org>
44375
44376         Let 'gnulib-tool --import' collect sources needed for the tests in
44377         tests/ rather than in lib/.
44378         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44379         argument. If true, add rules to generate libtests.a, and put libtests.a
44380         into $(LDADD). Consider source files in subdirectories and set
44381         uses_subdirs.
44382         (func_emit_initmacro_start, func_emit_initmacro_end,
44383         func_emit_initmacro_done): Pass all arguments explicitly.
44384         (func_import): Determine two module lists main_modules,
44385         testsrelated_modules. Determine use_libtests. Determine two variables
44386         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44387         instead of just sed_transform_lib_file. Determine two variables
44388         main_files and testsrelated_files. Compute 'files' as the union of
44389         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44390         func_add_or_update. In the generated gnulib-comp.m4, collect the
44391         object files for tests/ in different variables than those for lib/.
44392         Substitute LIBTESTS_LIBDEPS.
44393         (func_create_testdir): Combine the uses_subdirs results from
44394         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44395
44396 2007-12-09  Bruno Haible  <bruno@clisp.org>
44397
44398         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44399         the build-aux directory.
44400
44401 2007-12-09  Bruno Haible  <bruno@clisp.org>
44402
44403         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44404         introduced on 2006-09-09.
44405
44406 2007-12-07  Jim Meyering  <meyering@redhat.com>
44407
44408         Let these macros work also with autoconf-2.59.
44409         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44410         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44411         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44412
44413 2007-12-06  Jim Meyering  <meyering@redhat.com>
44414
44415         Avoid a configure-time syntax error in gl_FUNC_ACL.
44416         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44417         function in each branch, before testing the cache variable.
44418
44419 2007-12-04  Eric Blake  <ebb9@byu.net>
44420
44421         Make scripts executable.
44422         * build-aux/config.guess: Add execute permissions.
44423         * build-aux/config.sub: Likewise.
44424         * build-aux/gendocs.sh: Likewise.
44425
44426         Fix frexp on mingw.
44427         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44428         cross-compiling.
44429         * doc/functions/frexp.texi (frexp): Document the bug.
44430
44431         Make cygwin fseeko check more reliable.
44432         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44433         version numbers, rather than unrelated feature check.
44434         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44435         * doc/functions/ftello.texi (ftello): Likewise.
44436         Reported by Bruno Haible.
44437
44438         * m4/strerror.m4: Bump version number.
44439
44440 2007-12-03  Bruno Haible  <bruno@clisp.org>
44441
44442         * doc/functions/mprotect.texi: Mention the mingw problem.
44443
44444 2007-12-03  Eric Blake  <ebb9@byu.net>
44445
44446         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44447         REPLACE_STRERROR is initialized before this macro.
44448
44449 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44450
44451         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44452         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44453         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44454         put -lsec in even for programs other than 'ls'.  This fixes a problem
44455         for gettext reported by Bruno Haible in
44456         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44457         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44458         Add support for Solaris 10.  This isn't efficient, but should get the
44459         job done for now.
44460
44461 2007-12-03  James Youngman  <jay@gnu.org>
44462
44463         * doc/regexprops-generic.texi: change "an close-group" to "a
44464         close-group" and "illegal" to "not allowed".
44465
44466 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44467
44468         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44469         pr_byname.h. Needed for the rare case when the maintainer has done
44470         "make maintainer-clean" in the source directory and then attempts a
44471         build outside the source directory.
44472         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44473         scripts_byname.h.
44474
44475 2007-12-02  Martin Lambers <marlam@marlam.de>
44476             Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/getpagesize.h: Remove file.
44479         * lib/unistd.in.h: Include declaration of getpagesize here.
44480         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44481         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44482         HAVE_SYS_PARAM_H.
44483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44484         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44485         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44486         (Depends-on): Add unistd.
44487         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44488         (Include): Use <unistd.h> instead of getpagesize.h.
44489         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44490         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44491         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44492         gl_GETPAGESIZE invocation, already handled by module dependency.
44493         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44494
44495 2007-12-02  Bruno Haible  <bruno@clisp.org>
44496
44497         * modules/strings-tests: New file.
44498         * tests/test-strings.c: New file.
44499
44500         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44501         * lib/strings.in.h: New file.
44502         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44503         * m4/strings_h.m4: New file.
44504         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44505         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44506         * modules/strings: New file.
44507         * modules/string (Makefile.am): Update.
44508         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44509         Reported by Karl Berry.
44510
44511 2007-12-01  Eric Blake  <ebb9@byu.net>
44512
44513         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44514         accomodate fix in cygwin 1.5.25.
44515
44516 2007-12-01  Jim Meyering  <meyering@redhat.com>
44517
44518         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44519         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44520         that would inhibit utf8-optimization of a regexp containing line-
44521         or buffer-anchors, e.g., `^', `$'.
44522
44523 2007-11-30  Bruno Haible  <bruno@clisp.org>
44524
44525         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44526         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44527         glthread_recursive_lock_init.
44528         * lib/lock.c (glthread_recursive_lock_init)
44529         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44530         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44531
44532 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         New function qset_acl, like set_acl but with syscall semantics.
44535         * lib/acl.h (qset_acl): New decl.
44536         * lib/acl.c (qset_acl): New function.
44537         (set_acl): Use new function.  Use more-consistent diagnostics.
44538
44539 2007-11-28  Jim Meyering  <meyering@redhat.com>
44540
44541         * modules/physmem (License): Change from GPL to LGPLv2+.
44542
44543 2007-11-26  Bruno Haible  <bruno@clisp.org>
44544
44545         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44546         'long double' type has excess precision.
44547         Reported by Jim Meyering in
44548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44549
44550 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44551
44552         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44553         Sync from <http://gnu.org/licenses>.
44554         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44555         with license text from same location.
44556         * doc/maintain.texi, doc/standards.texi:  Sync from
44557         <http://savannah.gnu.org/projects/gnustandards>.
44558
44559 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44560         and Jim Meyering  <meyering@redhat.com>
44561
44562         Adjust getdate' grammar to accept a slightly more regular language.
44563         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44564         Before, the former was rejected.
44565         * lib/getdate.y (digits_to_date_time): New function, factored
44566         out of ...
44567         (number): ...here.  Just call digits_to_date_time.
44568         (hybrid): New non-terminal to handle an <unsigned number,
44569         signed relative offset> sequence consistently.
44570
44571 2007-11-18  Jim Meyering  <meyering@redhat.com>
44572
44573         Pull my changes from coreutils:
44574         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44575         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44576         use of $gnulib_tool_option_extras, so that it's separated from the
44577         preceding argument.
44578
44579         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44580         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44581         parent destination directories before copying a file into place.
44582
44583 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44584
44585         bootstrap: work also with 4-argument variant of AC_INIT
44586         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44587
44588 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44589
44590         Port test-getaddrinfo to Solaris.
44591         Problem reported by Bruno Haible in
44592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44593         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44594         explanation of setting 'hints'.
44595         Don't reject an implementation merely because it returns EAI_SERVICE.
44596         (EAI_SERVICE): Define to 0 if not defined.
44597
44598 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44599
44600         The license of gnu-make and posix-shell is now "GPLed build tool".
44601         * modules/gnu-make (License): Likewise.
44602         * modules/posix-shell (License): Likewise.
44603
44604         New module posix-shell, for determining a POSIX shell
44605         or perhaps something that is close enough to a POSIX shell.
44606         * m4/posix-shell.m4: New file.
44607         * modules/posix-shell: New file.
44608
44609         * MODULES.html.sh: Mention new module.
44610
44611         New module gnu-make, for determining whether we're using GNU Make.
44612         * m4/gnu-make.m4: New file.
44613         * modules/gnu-make: New file.
44614         * MODULES.html.sh: Mention new module.
44615
44616 2007-11-14  Jim Meyering  <meyering@redhat.com>
44617
44618         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44619         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44620         use this macro to create a function _definition_.
44621         Remove useless "#undef ARGMATCH_DIE".
44622
44623 2007-11-14  Bruno Haible  <bruno@clisp.org>
44624
44625         * lib/config.charset: Update for OpenBSD 4.1.
44626         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44627
44628 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44629
44630         Document 64-bit #if problems in stdint.texi.
44631         * doc/headers/stdint.texi (stdint.h): Mention problems with
44632         64-bit-#if, and how to work around them.
44633
44634         Don't insist on 'long long int' support in the preprocessor.  It
44635         breaks too many things.  For example, PRIdMAX still uses a 'long
44636         long int' format with the latest Sun compiler, even though
44637         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44638         preprocessor problem.  This causes the latest coreutils to dump
44639         core on Solaris 10 sparc with the Sun C compiler.
44640         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44641         the troublesome expressions at configure-time, not at #if-time.
44642         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44643         preprocessor.
44644         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44645         compile-time C checks, done at 'configure'-time.
44646         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44647         * modules/inttypes (Makefile): Substitute the new symbols that
44648         gl_INTTYPES_H now generates.
44649         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44650
44651 2007-11-12  Bruno Haible  <bruno@clisp.org>
44652
44653         Tests for Unicode character classification functions.
44654
44655         * modules/unictype/bidicategory-byname-tests: New file.
44656         * modules/unictype/bidicategory-name-tests: New file.
44657         * modules/unictype/bidicategory-of-tests: New file.
44658         * modules/unictype/bidicategory-test-tests: New file.
44659         * modules/unictype/block-list-tests: New file.
44660         * modules/unictype/block-of-tests: New file.
44661         * modules/unictype/block-test-tests: New file.
44662         * modules/unictype/category-C-tests: New file.
44663         * modules/unictype/category-Cc-tests: New file.
44664         * modules/unictype/category-Cf-tests: New file.
44665         * modules/unictype/category-Cn-tests: New file.
44666         * modules/unictype/category-Co-tests: New file.
44667         * modules/unictype/category-Cs-tests: New file.
44668         * modules/unictype/category-L-tests: New file.
44669         * modules/unictype/category-Ll-tests: New file.
44670         * modules/unictype/category-Lm-tests: New file.
44671         * modules/unictype/category-Lo-tests: New file.
44672         * modules/unictype/category-Lt-tests: New file.
44673         * modules/unictype/category-Lu-tests: New file.
44674         * modules/unictype/category-M-tests: New file.
44675         * modules/unictype/category-Mc-tests: New file.
44676         * modules/unictype/category-Me-tests: New file.
44677         * modules/unictype/category-Mn-tests: New file.
44678         * modules/unictype/category-N-tests: New file.
44679         * modules/unictype/category-Nd-tests: New file.
44680         * modules/unictype/category-Nl-tests: New file.
44681         * modules/unictype/category-No-tests: New file.
44682         * modules/unictype/category-P-tests: New file.
44683         * modules/unictype/category-Pc-tests: New file.
44684         * modules/unictype/category-Pd-tests: New file.
44685         * modules/unictype/category-Pe-tests: New file.
44686         * modules/unictype/category-Pf-tests: New file.
44687         * modules/unictype/category-Pi-tests: New file.
44688         * modules/unictype/category-Po-tests: New file.
44689         * modules/unictype/category-Ps-tests: New file.
44690         * modules/unictype/category-S-tests: New file.
44691         * modules/unictype/category-Sc-tests: New file.
44692         * modules/unictype/category-Sk-tests: New file.
44693         * modules/unictype/category-Sm-tests: New file.
44694         * modules/unictype/category-So-tests: New file.
44695         * modules/unictype/category-Z-tests: New file.
44696         * modules/unictype/category-Zl-tests: New file.
44697         * modules/unictype/category-Zp-tests: New file.
44698         * modules/unictype/category-Zs-tests: New file.
44699         * modules/unictype/category-and-not-tests: New file.
44700         * modules/unictype/category-and-tests: New file.
44701         * modules/unictype/category-byname-tests: New file.
44702         * modules/unictype/category-name-tests: New file.
44703         * modules/unictype/category-none-tests: New file.
44704         * modules/unictype/category-of-tests: New file.
44705         * modules/unictype/category-or-tests: New file.
44706         * modules/unictype/category-test-withtable-tests: New file.
44707         * modules/unictype/combining-class-tests: New file.
44708         * modules/unictype/ctype-alnum-tests: New file.
44709         * modules/unictype/ctype-alpha-tests: New file.
44710         * modules/unictype/ctype-blank-tests: New file.
44711         * modules/unictype/ctype-cntrl-tests: New file.
44712         * modules/unictype/ctype-digit-tests: New file.
44713         * modules/unictype/ctype-graph-tests: New file.
44714         * modules/unictype/ctype-lower-tests: New file.
44715         * modules/unictype/ctype-print-tests: New file.
44716         * modules/unictype/ctype-punct-tests: New file.
44717         * modules/unictype/ctype-space-tests: New file.
44718         * modules/unictype/ctype-upper-tests: New file.
44719         * modules/unictype/ctype-xdigit-tests: New file.
44720         * modules/unictype/decimal-digit-tests: New file.
44721         * modules/unictype/digit-tests: New file.
44722         * modules/unictype/mirror-tests: New file.
44723         * modules/unictype/numeric-tests: New file.
44724         * modules/unictype/property-alphabetic-tests: New file.
44725         * modules/unictype/property-ascii-hex-digit-tests: New file.
44726         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44727         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44728         * modules/unictype/property-bidi-block-separator-tests: New file.
44729         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44730         * modules/unictype/property-bidi-common-separator-tests: New file.
44731         * modules/unictype/property-bidi-control-tests: New file.
44732         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44733         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44734         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44735         * modules/unictype/property-bidi-european-digit-tests: New file.
44736         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44737         * modules/unictype/property-bidi-left-to-right-tests: New file.
44738         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44739         * modules/unictype/property-bidi-other-neutral-tests: New file.
44740         * modules/unictype/property-bidi-pdf-tests: New file.
44741         * modules/unictype/property-bidi-segment-separator-tests: New file.
44742         * modules/unictype/property-bidi-whitespace-tests: New file.
44743         * modules/unictype/property-byname-tests: New file.
44744         * modules/unictype/property-combining-tests: New file.
44745         * modules/unictype/property-composite-tests: New file.
44746         * modules/unictype/property-currency-symbol-tests: New file.
44747         * modules/unictype/property-dash-tests: New file.
44748         * modules/unictype/property-decimal-digit-tests: New file.
44749         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44750         * modules/unictype/property-deprecated-tests: New file.
44751         * modules/unictype/property-diacritic-tests: New file.
44752         * modules/unictype/property-extender-tests: New file.
44753         * modules/unictype/property-format-control-tests: New file.
44754         * modules/unictype/property-grapheme-base-tests: New file.
44755         * modules/unictype/property-grapheme-extend-tests: New file.
44756         * modules/unictype/property-grapheme-link-tests: New file.
44757         * modules/unictype/property-hex-digit-tests: New file.
44758         * modules/unictype/property-hyphen-tests: New file.
44759         * modules/unictype/property-id-continue-tests: New file.
44760         * modules/unictype/property-id-start-tests: New file.
44761         * modules/unictype/property-ideographic-tests: New file.
44762         * modules/unictype/property-ids-binary-operator-tests: New file.
44763         * modules/unictype/property-ids-trinary-operator-tests: New file.
44764         * modules/unictype/property-ignorable-control-tests: New file.
44765         * modules/unictype/property-iso-control-tests: New file.
44766         * modules/unictype/property-join-control-tests: New file.
44767         * modules/unictype/property-left-of-pair-tests: New file.
44768         * modules/unictype/property-line-separator-tests: New file.
44769         * modules/unictype/property-logical-order-exception-tests: New file.
44770         * modules/unictype/property-lowercase-tests: New file.
44771         * modules/unictype/property-math-tests: New file.
44772         * modules/unictype/property-non-break-tests: New file.
44773         * modules/unictype/property-not-a-character-tests: New file.
44774         * modules/unictype/property-numeric-tests: New file.
44775         * modules/unictype/property-other-alphabetic-tests: New file.
44776         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44777         * modules/unictype/property-other-grapheme-extend-tests: New file.
44778         * modules/unictype/property-other-id-continue-tests: New file.
44779         * modules/unictype/property-other-id-start-tests: New file.
44780         * modules/unictype/property-other-lowercase-tests: New file.
44781         * modules/unictype/property-other-math-tests: New file.
44782         * modules/unictype/property-other-uppercase-tests: New file.
44783         * modules/unictype/property-paired-punctuation-tests: New file.
44784         * modules/unictype/property-paragraph-separator-tests: New file.
44785         * modules/unictype/property-pattern-syntax-tests: New file.
44786         * modules/unictype/property-pattern-white-space-tests: New file.
44787         * modules/unictype/property-private-use-tests: New file.
44788         * modules/unictype/property-punctuation-tests: New file.
44789         * modules/unictype/property-quotation-mark-tests: New file.
44790         * modules/unictype/property-radical-tests: New file.
44791         * modules/unictype/property-sentence-terminal-tests: New file.
44792         * modules/unictype/property-soft-dotted-tests: New file.
44793         * modules/unictype/property-space-tests: New file.
44794         * modules/unictype/property-terminal-punctuation-tests: New file.
44795         * modules/unictype/property-test-tests: New file.
44796         * modules/unictype/property-titlecase-tests: New file.
44797         * modules/unictype/property-unassigned-code-value-tests: New file.
44798         * modules/unictype/property-unified-ideograph-tests: New file.
44799         * modules/unictype/property-uppercase-tests: New file.
44800         * modules/unictype/property-variation-selector-tests: New file.
44801         * modules/unictype/property-white-space-tests: New file.
44802         * modules/unictype/property-xid-continue-tests: New file.
44803         * modules/unictype/property-xid-start-tests: New file.
44804         * modules/unictype/property-zero-width-tests: New file.
44805         * modules/unictype/scripts-tests: New file.
44806         * modules/unictype/syntax-c-ident-tests: New file.
44807         * modules/unictype/syntax-c-whitespace-tests: New file.
44808         * modules/unictype/syntax-java-ident-tests: New file.
44809         * modules/unictype/syntax-java-whitespace-tests: New file.
44810         * tests/unictype/test-bidi_byname.c: New file.
44811         * tests/unictype/test-bidi_name.c: New file.
44812         * tests/unictype/test-bidi_of.c: New file.
44813         * tests/unictype/test-bidi_test.c: New file.
44814         * tests/unictype/test-block_list.c: New file.
44815         * tests/unictype/test-block_of.c: New file.
44816         * tests/unictype/test-block_test.c: New file.
44817         * tests/unictype/test-categ_and.c: New file.
44818         * tests/unictype/test-categ_and_not.c: New file.
44819         * tests/unictype/test-categ_byname.c: New file.
44820         * tests/unictype/test-categ_name.c: New file.
44821         * tests/unictype/test-categ_none.c: New file.
44822         * tests/unictype/test-categ_of.c: New file.
44823         * tests/unictype/test-categ_or.c: New file.
44824         * tests/unictype/test-categ_test_withtable.c: New file.
44825         * tests/unictype/test-combining.c: New file.
44826         * tests/unictype/test-decdigit.c: New file.
44827         * tests/unictype/test-digit.c: New file.
44828         * tests/unictype/test-mirror.c: New file.
44829         * tests/unictype/test-numeric.c: New file.
44830         * tests/unictype/test-pr_byname.c: New file.
44831         * tests/unictype/test-pr_test.c: New file.
44832         * tests/unictype/test-predicate-part1.h: New file.
44833         * tests/unictype/test-predicate-part2.h: New file.
44834         * tests/unictype/test-scripts.c: New file.
44835         * tests/unictype/test-sy_c_ident.c: New file.
44836         * tests/unictype/test-sy_java_ident.c: New file.
44837
44838         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44839         for Unicode 5.0.0.
44840         * tests/unictype/test-categ_Cc.c: Likewise.
44841         * tests/unictype/test-categ_Cf.c: Likewise.
44842         * tests/unictype/test-categ_Cn.c: Likewise.
44843         * tests/unictype/test-categ_Co.c: Likewise.
44844         * tests/unictype/test-categ_Cs.c: Likewise.
44845         * tests/unictype/test-categ_L.c: Likewise.
44846         * tests/unictype/test-categ_Ll.c: Likewise.
44847         * tests/unictype/test-categ_Lm.c: Likewise.
44848         * tests/unictype/test-categ_Lo.c: Likewise.
44849         * tests/unictype/test-categ_Lt.c: Likewise.
44850         * tests/unictype/test-categ_Lu.c: Likewise.
44851         * tests/unictype/test-categ_M.c: Likewise.
44852         * tests/unictype/test-categ_Mc.c: Likewise.
44853         * tests/unictype/test-categ_Me.c: Likewise.
44854         * tests/unictype/test-categ_Mn.c: Likewise.
44855         * tests/unictype/test-categ_N.c: Likewise.
44856         * tests/unictype/test-categ_Nd.c: Likewise.
44857         * tests/unictype/test-categ_Nl.c: Likewise.
44858         * tests/unictype/test-categ_No.c: Likewise.
44859         * tests/unictype/test-categ_P.c: Likewise.
44860         * tests/unictype/test-categ_Pc.c: Likewise.
44861         * tests/unictype/test-categ_Pd.c: Likewise.
44862         * tests/unictype/test-categ_Pe.c: Likewise.
44863         * tests/unictype/test-categ_Pf.c: Likewise.
44864         * tests/unictype/test-categ_Pi.c: Likewise.
44865         * tests/unictype/test-categ_Po.c: Likewise.
44866         * tests/unictype/test-categ_Ps.c: Likewise.
44867         * tests/unictype/test-categ_S.c: Likewise.
44868         * tests/unictype/test-categ_Sc.c: Likewise.
44869         * tests/unictype/test-categ_Sk.c: Likewise.
44870         * tests/unictype/test-categ_Sm.c: Likewise.
44871         * tests/unictype/test-categ_So.c: Likewise.
44872         * tests/unictype/test-categ_Z.c: Likewise.
44873         * tests/unictype/test-categ_Zl.c: Likewise.
44874         * tests/unictype/test-categ_Zp.c: Likewise.
44875         * tests/unictype/test-categ_Zs.c: Likewise.
44876         * tests/unictype/test-ctype_alnum.c: Likewise.
44877         * tests/unictype/test-ctype_alpha.c: Likewise.
44878         * tests/unictype/test-ctype_blank.c: Likewise.
44879         * tests/unictype/test-ctype_cntrl.c: Likewise.
44880         * tests/unictype/test-ctype_digit.c: Likewise.
44881         * tests/unictype/test-ctype_graph.c: Likewise.
44882         * tests/unictype/test-ctype_lower.c: Likewise.
44883         * tests/unictype/test-ctype_print.c: Likewise.
44884         * tests/unictype/test-ctype_punct.c: Likewise.
44885         * tests/unictype/test-ctype_space.c: Likewise.
44886         * tests/unictype/test-ctype_upper.c: Likewise.
44887         * tests/unictype/test-ctype_xdigit.c: Likewise.
44888         * tests/unictype/test-decdigit.h: Likewise.
44889         * tests/unictype/test-digit.h: Likewise.
44890         * tests/unictype/test-numeric.h: Likewise.
44891         * tests/unictype/test-pr_alphabetic.c: Likewise.
44892         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44893         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44894         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44895         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44896         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44897         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44898         * tests/unictype/test-pr_bidi_control.c: Likewise.
44899         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44900         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44901         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44902         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44903         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44904         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44905         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44906         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44907         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44908         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44909         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44910         * tests/unictype/test-pr_combining.c: Likewise.
44911         * tests/unictype/test-pr_composite.c: Likewise.
44912         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44913         * tests/unictype/test-pr_dash.c: Likewise.
44914         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44915         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44916         * tests/unictype/test-pr_deprecated.c: Likewise.
44917         * tests/unictype/test-pr_diacritic.c: Likewise.
44918         * tests/unictype/test-pr_extender.c: Likewise.
44919         * tests/unictype/test-pr_format_control.c: Likewise.
44920         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44921         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44922         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44923         * tests/unictype/test-pr_hex_digit.c: Likewise.
44924         * tests/unictype/test-pr_hyphen.c: Likewise.
44925         * tests/unictype/test-pr_id_continue.c: Likewise.
44926         * tests/unictype/test-pr_id_start.c: Likewise.
44927         * tests/unictype/test-pr_ideographic.c: Likewise.
44928         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44929         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44930         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44931         * tests/unictype/test-pr_iso_control.c: Likewise.
44932         * tests/unictype/test-pr_join_control.c: Likewise.
44933         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44934         * tests/unictype/test-pr_line_separator.c: Likewise.
44935         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44936         * tests/unictype/test-pr_lowercase.c: Likewise.
44937         * tests/unictype/test-pr_math.c: Likewise.
44938         * tests/unictype/test-pr_non_break.c: Likewise.
44939         * tests/unictype/test-pr_not_a_character.c: Likewise.
44940         * tests/unictype/test-pr_numeric.c: Likewise.
44941         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44942         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44943         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44944         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44945         * tests/unictype/test-pr_other_id_start.c: Likewise.
44946         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44947         * tests/unictype/test-pr_other_math.c: Likewise.
44948         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44949         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44950         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44951         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44952         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44953         * tests/unictype/test-pr_private_use.c: Likewise.
44954         * tests/unictype/test-pr_punctuation.c: Likewise.
44955         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44956         * tests/unictype/test-pr_radical.c: Likewise.
44957         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44958         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44959         * tests/unictype/test-pr_space.c: Likewise.
44960         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44961         * tests/unictype/test-pr_titlecase.c: Likewise.
44962         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44963         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44964         * tests/unictype/test-pr_uppercase.c: Likewise.
44965         * tests/unictype/test-pr_variation_selector.c: Likewise.
44966         * tests/unictype/test-pr_white_space.c: Likewise.
44967         * tests/unictype/test-pr_xid_continue.c: Likewise.
44968         * tests/unictype/test-pr_xid_start.c: Likewise.
44969         * tests/unictype/test-pr_zero_width.c: Likewise.
44970         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44971         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44972
44973 2007-11-12  Bruno Haible  <bruno@clisp.org>
44974
44975         Unicode character classification functions.
44976         * lib/unictype.h: New file.
44977         * modules/unictype/base: New file.
44978         * modules/unictype/category-L: New file.
44979         * modules/unictype/category-Lu: New file.
44980         * modules/unictype/category-Ll: New file.
44981         * modules/unictype/category-Lt: New file.
44982         * modules/unictype/category-Lm: New file.
44983         * modules/unictype/category-Lo: New file.
44984         * modules/unictype/category-M: New file.
44985         * modules/unictype/category-Mn: New file.
44986         * modules/unictype/category-Mc: New file.
44987         * modules/unictype/category-Me: New file.
44988         * modules/unictype/category-N: New file.
44989         * modules/unictype/category-Nd: New file.
44990         * modules/unictype/category-Nl: New file.
44991         * modules/unictype/category-No: New file.
44992         * modules/unictype/category-P: New file.
44993         * modules/unictype/category-Pc: New file.
44994         * modules/unictype/category-Pd: New file.
44995         * modules/unictype/category-Ps: New file.
44996         * modules/unictype/category-Pe: New file.
44997         * modules/unictype/category-Pi: New file.
44998         * modules/unictype/category-Pf: New file.
44999         * modules/unictype/category-Po: New file.
45000         * modules/unictype/category-S: New file.
45001         * modules/unictype/category-Sm: New file.
45002         * modules/unictype/category-Sc: New file.
45003         * modules/unictype/category-Sk: New file.
45004         * modules/unictype/category-So: New file.
45005         * modules/unictype/category-Z: New file.
45006         * modules/unictype/category-Zs: New file.
45007         * modules/unictype/category-Zl: New file.
45008         * modules/unictype/category-Zp: New file.
45009         * modules/unictype/category-C: New file.
45010         * modules/unictype/category-Cc: New file.
45011         * modules/unictype/category-Cf: New file.
45012         * modules/unictype/category-Cs: New file.
45013         * modules/unictype/category-Co: New file.
45014         * modules/unictype/category-Cn: New file.
45015         * modules/unictype/category-or: New file.
45016         * modules/unictype/category-of: New file.
45017         * modules/unictype/category-test: New file.
45018         * modules/unictype/category-test-withtable: New file.
45019         * modules/unictype/category-byname: New file.
45020         * modules/unictype/category-none: New file.
45021         * modules/unictype/category-and: New file.
45022         * modules/unictype/category-and-not: New file.
45023         * modules/unictype/category-name: New file.
45024         * modules/unictype/combining-class: New file.
45025         * modules/unictype/category-all: New file.
45026         * modules/unictype/bidicategory-all: New file.
45027         * modules/unictype/bidicategory-byname: New file.
45028         * modules/unictype/bidicategory-name: New file.
45029         * modules/unictype/bidicategory-of: New file.
45030         * modules/unictype/bidicategory-test: New file.
45031         * modules/unictype/decimal-digit: New file.
45032         * modules/unictype/digit: New file.
45033         * modules/unictype/numeric: New file.
45034         * modules/unictype/mirror: New file.
45035         * modules/unictype/property-white-space: New file.
45036         * modules/unictype/property-alphabetic: New file.
45037         * modules/unictype/property-other-alphabetic: New file.
45038         * modules/unictype/property-not-a-character: New file.
45039         * modules/unictype/property-default-ignorable-code-point: New file.
45040         * modules/unictype/property-other-default-ignorable-code-point: New
45041         file.
45042         * modules/unictype/property-deprecated: New file.
45043         * modules/unictype/property-logical-order-exception: New file.
45044         * modules/unictype/property-variation-selector: New file.
45045         * modules/unictype/property-private-use: New file.
45046         * modules/unictype/property-unassigned-code-value: New file.
45047         * modules/unictype/property-uppercase: New file.
45048         * modules/unictype/property-other-uppercase: New file.
45049         * modules/unictype/property-lowercase: New file.
45050         * modules/unictype/property-other-lowercase: New file.
45051         * modules/unictype/property-titlecase: New file.
45052         * modules/unictype/property-soft-dotted: New file.
45053         * modules/unictype/property-id-start: New file.
45054         * modules/unictype/property-other-id-start: New file.
45055         * modules/unictype/property-id-continue: New file.
45056         * modules/unictype/property-other-id-continue: New file.
45057         * modules/unictype/property-xid-start: New file.
45058         * modules/unictype/property-xid-continue: New file.
45059         * modules/unictype/property-pattern-white-space: New file.
45060         * modules/unictype/property-pattern-syntax: New file.
45061         * modules/unictype/property-join-control: New file.
45062         * modules/unictype/property-grapheme-base: New file.
45063         * modules/unictype/property-grapheme-extend: New file.
45064         * modules/unictype/property-other-grapheme-extend: New file.
45065         * modules/unictype/property-grapheme-link: New file.
45066         * modules/unictype/property-bidi-control: New file.
45067         * modules/unictype/property-bidi-left-to-right: New file.
45068         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
45069         * modules/unictype/property-bidi-arabic-right-to-left: New file.
45070         * modules/unictype/property-bidi-european-digit: New file.
45071         * modules/unictype/property-bidi-eur-num-separator: New file.
45072         * modules/unictype/property-bidi-eur-num-terminator: New file.
45073         * modules/unictype/property-bidi-arabic-digit: New file.
45074         * modules/unictype/property-bidi-common-separator: New file.
45075         * modules/unictype/property-bidi-block-separator: New file.
45076         * modules/unictype/property-bidi-segment-separator: New file.
45077         * modules/unictype/property-bidi-whitespace: New file.
45078         * modules/unictype/property-bidi-non-spacing-mark: New file.
45079         * modules/unictype/property-bidi-boundary-neutral: New file.
45080         * modules/unictype/property-bidi-pdf: New file.
45081         * modules/unictype/property-bidi-embedding-or-override: New file.
45082         * modules/unictype/property-bidi-other-neutral: New file.
45083         * modules/unictype/property-hex-digit: New file.
45084         * modules/unictype/property-ascii-hex-digit: New file.
45085         * modules/unictype/property-ideographic: New file.
45086         * modules/unictype/property-unified-ideograph: New file.
45087         * modules/unictype/property-radical: New file.
45088         * modules/unictype/property-ids-binary-operator: New file.
45089         * modules/unictype/property-ids-trinary-operator: New file.
45090         * modules/unictype/property-zero-width: New file.
45091         * modules/unictype/property-space: New file.
45092         * modules/unictype/property-non-break: New file.
45093         * modules/unictype/property-iso-control: New file.
45094         * modules/unictype/property-format-control: New file.
45095         * modules/unictype/property-dash: New file.
45096         * modules/unictype/property-hyphen: New file.
45097         * modules/unictype/property-punctuation: New file.
45098         * modules/unictype/property-line-separator: New file.
45099         * modules/unictype/property-paragraph-separator: New file.
45100         * modules/unictype/property-quotation-mark: New file.
45101         * modules/unictype/property-sentence-terminal: New file.
45102         * modules/unictype/property-terminal-punctuation: New file.
45103         * modules/unictype/property-currency-symbol: New file.
45104         * modules/unictype/property-math: New file.
45105         * modules/unictype/property-other-math: New file.
45106         * modules/unictype/property-paired-punctuation: New file.
45107         * modules/unictype/property-left-of-pair: New file.
45108         * modules/unictype/property-combining: New file.
45109         * modules/unictype/property-composite: New file.
45110         * modules/unictype/property-decimal-digit: New file.
45111         * modules/unictype/property-numeric: New file.
45112         * modules/unictype/property-diacritic: New file.
45113         * modules/unictype/property-extender: New file.
45114         * modules/unictype/property-ignorable-control: New file.
45115         * modules/unictype/property-test: New file.
45116         * modules/unictype/property-byname: New file.
45117         * modules/unictype/property-all: New file.
45118         * modules/unictype/scripts: New file.
45119         * modules/unictype/scripts-all: New file.
45120         * modules/unictype/block-of: New file.
45121         * modules/unictype/block-test: New file.
45122         * modules/unictype/block-list: New file.
45123         * modules/unictype/block-all: New file.
45124         * modules/unictype/syntax-c-whitespace: New file.
45125         * modules/unictype/syntax-java-whitespace: New file.
45126         * modules/unictype/syntax-c-ident: New file.
45127         * modules/unictype/syntax-java-ident: New file.
45128         * modules/unictype/ctype-alnum: New file.
45129         * modules/unictype/ctype-alpha: New file.
45130         * modules/unictype/ctype-cntrl: New file.
45131         * modules/unictype/ctype-digit: New file.
45132         * modules/unictype/ctype-graph: New file.
45133         * modules/unictype/ctype-lower: New file.
45134         * modules/unictype/ctype-print: New file.
45135         * modules/unictype/ctype-punct: New file.
45136         * modules/unictype/ctype-space: New file.
45137         * modules/unictype/ctype-upper: New file.
45138         * modules/unictype/ctype-xdigit: New file.
45139         * modules/unictype/ctype-blank: New file.
45140         * lib/unictype/bidi_byname.c: New file.
45141         * lib/unictype/bidi_name.c: New file.
45142         * lib/unictype/bidi_of.c: New file.
45143         * lib/unictype/bidi_test.c: New file.
45144         * lib/unictype/bitmap.h: New file.
45145         * lib/unictype/block_test.c: New file.
45146         * lib/unictype/blocks.c: New file.
45147         * lib/unictype/categ_C.c: New file.
45148         * lib/unictype/categ_Cc.c: New file.
45149         * lib/unictype/categ_Cf.c: New file.
45150         * lib/unictype/categ_Cn.c: New file.
45151         * lib/unictype/categ_Co.c: New file.
45152         * lib/unictype/categ_Cs.c: New file.
45153         * lib/unictype/categ_L.c: New file.
45154         * lib/unictype/categ_Ll.c: New file.
45155         * lib/unictype/categ_Lm.c: New file.
45156         * lib/unictype/categ_Lo.c: New file.
45157         * lib/unictype/categ_Lt.c: New file.
45158         * lib/unictype/categ_Lu.c: New file.
45159         * lib/unictype/categ_M.c: New file.
45160         * lib/unictype/categ_Mc.c: New file.
45161         * lib/unictype/categ_Me.c: New file.
45162         * lib/unictype/categ_Mn.c: New file.
45163         * lib/unictype/categ_N.c: New file.
45164         * lib/unictype/categ_Nd.c: New file.
45165         * lib/unictype/categ_Nl.c: New file.
45166         * lib/unictype/categ_No.c: New file.
45167         * lib/unictype/categ_P.c: New file.
45168         * lib/unictype/categ_Pc.c: New file.
45169         * lib/unictype/categ_Pd.c: New file.
45170         * lib/unictype/categ_Pe.c: New file.
45171         * lib/unictype/categ_Pf.c: New file.
45172         * lib/unictype/categ_Pi.c: New file.
45173         * lib/unictype/categ_Po.c: New file.
45174         * lib/unictype/categ_Ps.c: New file.
45175         * lib/unictype/categ_S.c: New file.
45176         * lib/unictype/categ_Sc.c: New file.
45177         * lib/unictype/categ_Sk.c: New file.
45178         * lib/unictype/categ_Sm.c: New file.
45179         * lib/unictype/categ_So.c: New file.
45180         * lib/unictype/categ_Z.c: New file.
45181         * lib/unictype/categ_Zl.c: New file.
45182         * lib/unictype/categ_Zp.c: New file.
45183         * lib/unictype/categ_Zs.c: New file.
45184         * lib/unictype/categ_and.c: New file.
45185         * lib/unictype/categ_and_not.c: New file.
45186         * lib/unictype/categ_byname.c: New file.
45187         * lib/unictype/categ_name.c: New file.
45188         * lib/unictype/categ_none.c: New file.
45189         * lib/unictype/categ_of.c: New file.
45190         * lib/unictype/categ_or.c: New file.
45191         * lib/unictype/categ_test.c: New file.
45192         * lib/unictype/combining.c: New file.
45193         * lib/unictype/ctype_alnum.c: New file.
45194         * lib/unictype/ctype_alpha.c: New file.
45195         * lib/unictype/ctype_blank.c: New file.
45196         * lib/unictype/ctype_cntrl.c: New file.
45197         * lib/unictype/ctype_digit.c: New file.
45198         * lib/unictype/ctype_graph.c: New file.
45199         * lib/unictype/ctype_lower.c: New file.
45200         * lib/unictype/ctype_print.c: New file.
45201         * lib/unictype/ctype_punct.c: New file.
45202         * lib/unictype/ctype_space.c: New file.
45203         * lib/unictype/ctype_upper.c: New file.
45204         * lib/unictype/ctype_xdigit.c: New file.
45205         * lib/unictype/decdigit.c: New file.
45206         * lib/unictype/digit.c: New file.
45207         * lib/unictype/identsyntaxmap.h: New file.
45208         * lib/unictype/mirror.c: New file.
45209         * lib/unictype/numeric.c: New file.
45210         * lib/unictype/pr_alphabetic.c: New file.
45211         * lib/unictype/pr_ascii_hex_digit.c: New file.
45212         * lib/unictype/pr_bidi_arabic_digit.c: New file.
45213         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45214         * lib/unictype/pr_bidi_block_separator.c: New file.
45215         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45216         * lib/unictype/pr_bidi_common_separator.c: New file.
45217         * lib/unictype/pr_bidi_control.c: New file.
45218         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45219         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45220         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45221         * lib/unictype/pr_bidi_european_digit.c: New file.
45222         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45223         * lib/unictype/pr_bidi_left_to_right.c: New file.
45224         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45225         * lib/unictype/pr_bidi_other_neutral.c: New file.
45226         * lib/unictype/pr_bidi_pdf.c: New file.
45227         * lib/unictype/pr_bidi_segment_separator.c: New file.
45228         * lib/unictype/pr_bidi_whitespace.c: New file.
45229         * lib/unictype/pr_byname.c: New file.
45230         * lib/unictype/pr_byname.gperf: New file.
45231         * lib/unictype/pr_combining.c: New file.
45232         * lib/unictype/pr_composite.c: New file.
45233         * lib/unictype/pr_currency_symbol.c: New file.
45234         * lib/unictype/pr_dash.c: New file.
45235         * lib/unictype/pr_decimal_digit.c: New file.
45236         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45237         * lib/unictype/pr_deprecated.c: New file.
45238         * lib/unictype/pr_diacritic.c: New file.
45239         * lib/unictype/pr_extender.c: New file.
45240         * lib/unictype/pr_format_control.c: New file.
45241         * lib/unictype/pr_grapheme_base.c: New file.
45242         * lib/unictype/pr_grapheme_extend.c: New file.
45243         * lib/unictype/pr_grapheme_link.c: New file.
45244         * lib/unictype/pr_hex_digit.c: New file.
45245         * lib/unictype/pr_hyphen.c: New file.
45246         * lib/unictype/pr_id_continue.c: New file.
45247         * lib/unictype/pr_id_start.c: New file.
45248         * lib/unictype/pr_ideographic.c: New file.
45249         * lib/unictype/pr_ids_binary_operator.c: New file.
45250         * lib/unictype/pr_ids_trinary_operator.c: New file.
45251         * lib/unictype/pr_ignorable_control.c: New file.
45252         * lib/unictype/pr_iso_control.c: New file.
45253         * lib/unictype/pr_join_control.c: New file.
45254         * lib/unictype/pr_left_of_pair.c: New file.
45255         * lib/unictype/pr_line_separator.c: New file.
45256         * lib/unictype/pr_logical_order_exception.c: New file.
45257         * lib/unictype/pr_lowercase.c: New file.
45258         * lib/unictype/pr_math.c: New file.
45259         * lib/unictype/pr_non_break.c: New file.
45260         * lib/unictype/pr_not_a_character.c: New file.
45261         * lib/unictype/pr_numeric.c: New file.
45262         * lib/unictype/pr_other_alphabetic.c: New file.
45263         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45264         * lib/unictype/pr_other_grapheme_extend.c: New file.
45265         * lib/unictype/pr_other_id_continue.c: New file.
45266         * lib/unictype/pr_other_id_start.c: New file.
45267         * lib/unictype/pr_other_lowercase.c: New file.
45268         * lib/unictype/pr_other_math.c: New file.
45269         * lib/unictype/pr_other_uppercase.c: New file.
45270         * lib/unictype/pr_paired_punctuation.c: New file.
45271         * lib/unictype/pr_paragraph_separator.c: New file.
45272         * lib/unictype/pr_pattern_syntax.c: New file.
45273         * lib/unictype/pr_pattern_white_space.c: New file.
45274         * lib/unictype/pr_private_use.c: New file.
45275         * lib/unictype/pr_punctuation.c: New file.
45276         * lib/unictype/pr_quotation_mark.c: New file.
45277         * lib/unictype/pr_radical.c: New file.
45278         * lib/unictype/pr_sentence_terminal.c: New file.
45279         * lib/unictype/pr_soft_dotted.c: New file.
45280         * lib/unictype/pr_space.c: New file.
45281         * lib/unictype/pr_terminal_punctuation.c: New file.
45282         * lib/unictype/pr_test.c: New file.
45283         * lib/unictype/pr_titlecase.c: New file.
45284         * lib/unictype/pr_unassigned_code_value.c: New file.
45285         * lib/unictype/pr_unified_ideograph.c: New file.
45286         * lib/unictype/pr_uppercase.c: New file.
45287         * lib/unictype/pr_variation_selector.c: New file.
45288         * lib/unictype/pr_white_space.c: New file.
45289         * lib/unictype/pr_xid_continue.c: New file.
45290         * lib/unictype/pr_xid_start.c: New file.
45291         * lib/unictype/pr_zero_width.c: New file.
45292         * lib/unictype/scripts.c: New file.
45293         * lib/unictype/sy_c_ident.c: New file.
45294         * lib/unictype/sy_c_whitespace.c: New file.
45295         * lib/unictype/sy_java_ident.c: New file.
45296         * lib/unictype/sy_java_whitespace.c: New file.
45297
45298         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45299         Unicode 5.0.0.
45300         * lib/unictype/blocks.h: Likewise.
45301         * lib/unictype/categ_C.h: Likewise.
45302         * lib/unictype/categ_Cc.h: Likewise.
45303         * lib/unictype/categ_Cf.h: Likewise.
45304         * lib/unictype/categ_Cn.h: Likewise.
45305         * lib/unictype/categ_Co.h: Likewise.
45306         * lib/unictype/categ_Cs.h: Likewise.
45307         * lib/unictype/categ_L.h: Likewise.
45308         * lib/unictype/categ_Ll.h: Likewise.
45309         * lib/unictype/categ_Lm.h: Likewise.
45310         * lib/unictype/categ_Lo.h: Likewise.
45311         * lib/unictype/categ_Lt.h: Likewise.
45312         * lib/unictype/categ_Lu.h: Likewise.
45313         * lib/unictype/categ_M.h: Likewise.
45314         * lib/unictype/categ_Mc.h: Likewise.
45315         * lib/unictype/categ_Me.h: Likewise.
45316         * lib/unictype/categ_Mn.h: Likewise.
45317         * lib/unictype/categ_N.h: Likewise.
45318         * lib/unictype/categ_Nd.h: Likewise.
45319         * lib/unictype/categ_Nl.h: Likewise.
45320         * lib/unictype/categ_No.h: Likewise.
45321         * lib/unictype/categ_P.h: Likewise.
45322         * lib/unictype/categ_Pc.h: Likewise.
45323         * lib/unictype/categ_Pd.h: Likewise.
45324         * lib/unictype/categ_Pe.h: Likewise.
45325         * lib/unictype/categ_Pf.h: Likewise.
45326         * lib/unictype/categ_Pi.h: Likewise.
45327         * lib/unictype/categ_Po.h: Likewise.
45328         * lib/unictype/categ_Ps.h: Likewise.
45329         * lib/unictype/categ_S.h: Likewise.
45330         * lib/unictype/categ_Sc.h: Likewise.
45331         * lib/unictype/categ_Sk.h: Likewise.
45332         * lib/unictype/categ_Sm.h: Likewise.
45333         * lib/unictype/categ_So.h: Likewise.
45334         * lib/unictype/categ_Z.h: Likewise.
45335         * lib/unictype/categ_Zl.h: Likewise.
45336         * lib/unictype/categ_Zp.h: Likewise.
45337         * lib/unictype/categ_Zs.h: Likewise.
45338         * lib/unictype/categ_of.h: Likewise.
45339         * lib/unictype/combining.h: Likewise.
45340         * lib/unictype/ctype_alnum.h: Likewise.
45341         * lib/unictype/ctype_alpha.h: Likewise.
45342         * lib/unictype/ctype_blank.h: Likewise.
45343         * lib/unictype/ctype_cntrl.h: Likewise.
45344         * lib/unictype/ctype_digit.h: Likewise.
45345         * lib/unictype/ctype_graph.h: Likewise.
45346         * lib/unictype/ctype_lower.h: Likewise.
45347         * lib/unictype/ctype_print.h: Likewise.
45348         * lib/unictype/ctype_punct.h: Likewise.
45349         * lib/unictype/ctype_space.h: Likewise.
45350         * lib/unictype/ctype_upper.h: Likewise.
45351         * lib/unictype/ctype_xdigit.h: Likewise.
45352         * lib/unictype/decdigit.h: Likewise.
45353         * lib/unictype/digit.h: Likewise.
45354         * lib/unictype/mirror.h: Likewise.
45355         * lib/unictype/numeric.h: Likewise.
45356         * lib/unictype/pr_alphabetic.h: Likewise.
45357         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45358         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45359         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45360         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45361         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45362         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45363         * lib/unictype/pr_bidi_control.h: Likewise.
45364         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45365         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45366         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45367         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45368         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45369         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45370         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45371         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45372         * lib/unictype/pr_bidi_pdf.h: Likewise.
45373         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45374         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45375         * lib/unictype/pr_combining.h: Likewise.
45376         * lib/unictype/pr_composite.h: Likewise.
45377         * lib/unictype/pr_currency_symbol.h: Likewise.
45378         * lib/unictype/pr_dash.h: Likewise.
45379         * lib/unictype/pr_decimal_digit.h: Likewise.
45380         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45381         * lib/unictype/pr_deprecated.h: Likewise.
45382         * lib/unictype/pr_diacritic.h: Likewise.
45383         * lib/unictype/pr_extender.h: Likewise.
45384         * lib/unictype/pr_format_control.h: Likewise.
45385         * lib/unictype/pr_grapheme_base.h: Likewise.
45386         * lib/unictype/pr_grapheme_extend.h: Likewise.
45387         * lib/unictype/pr_grapheme_link.h: Likewise.
45388         * lib/unictype/pr_hex_digit.h: Likewise.
45389         * lib/unictype/pr_hyphen.h: Likewise.
45390         * lib/unictype/pr_id_continue.h: Likewise.
45391         * lib/unictype/pr_id_start.h: Likewise.
45392         * lib/unictype/pr_ideographic.h: Likewise.
45393         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45394         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45395         * lib/unictype/pr_ignorable_control.h: Likewise.
45396         * lib/unictype/pr_iso_control.h: Likewise.
45397         * lib/unictype/pr_join_control.h: Likewise.
45398         * lib/unictype/pr_left_of_pair.h: Likewise.
45399         * lib/unictype/pr_line_separator.h: Likewise.
45400         * lib/unictype/pr_logical_order_exception.h: Likewise.
45401         * lib/unictype/pr_lowercase.h: Likewise.
45402         * lib/unictype/pr_math.h: Likewise.
45403         * lib/unictype/pr_non_break.h: Likewise.
45404         * lib/unictype/pr_not_a_character.h: Likewise.
45405         * lib/unictype/pr_numeric.h: Likewise.
45406         * lib/unictype/pr_other_alphabetic.h: Likewise.
45407         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45408         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45409         * lib/unictype/pr_other_id_continue.h: Likewise.
45410         * lib/unictype/pr_other_id_start.h: Likewise.
45411         * lib/unictype/pr_other_lowercase.h: Likewise.
45412         * lib/unictype/pr_other_math.h: Likewise.
45413         * lib/unictype/pr_other_uppercase.h: Likewise.
45414         * lib/unictype/pr_paired_punctuation.h: Likewise.
45415         * lib/unictype/pr_paragraph_separator.h: Likewise.
45416         * lib/unictype/pr_pattern_syntax.h: Likewise.
45417         * lib/unictype/pr_pattern_white_space.h: Likewise.
45418         * lib/unictype/pr_private_use.h: Likewise.
45419         * lib/unictype/pr_punctuation.h: Likewise.
45420         * lib/unictype/pr_quotation_mark.h: Likewise.
45421         * lib/unictype/pr_radical.h: Likewise.
45422         * lib/unictype/pr_sentence_terminal.h: Likewise.
45423         * lib/unictype/pr_soft_dotted.h: Likewise.
45424         * lib/unictype/pr_space.h: Likewise.
45425         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45426         * lib/unictype/pr_titlecase.h: Likewise.
45427         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45428         * lib/unictype/pr_unified_ideograph.h: Likewise.
45429         * lib/unictype/pr_uppercase.h: Likewise.
45430         * lib/unictype/pr_variation_selector.h: Likewise.
45431         * lib/unictype/pr_white_space.h: Likewise.
45432         * lib/unictype/pr_xid_continue.h: Likewise.
45433         * lib/unictype/pr_xid_start.h: Likewise.
45434         * lib/unictype/pr_zero_width.h: Likewise.
45435         * lib/unictype/scripts.h: Likewise.
45436         * lib/unictype/scripts_byname.gperf: Likewise.
45437         * lib/unictype/sy_c_ident.h: Likewise.
45438         * lib/unictype/sy_c_whitespace.h: Likewise.
45439         * lib/unictype/sy_java_ident.h: Likewise.
45440         * lib/unictype/sy_java_whitespace.h: Likewise.
45441
45442         * lib/unictype/Makefile: New file.
45443         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45444         glibc.
45445         * lib/unictype/3level.h: New file, copied from glibc.
45446         * lib/unictype/3levelbit.h: New file.
45447
45448 2007-11-11  Bruno Haible  <bruno@clisp.org>
45449
45450         * modules/gperf: New file.
45451         * modules/iconv_open (Depends-on): Add it.
45452         (Makefile.am): Remove the GPERF definition.
45453
45454 2007-11-11  Bruno Haible  <bruno@clisp.org>
45455
45456         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45457         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45458
45459 2007-11-11  Bruno Haible  <bruno@clisp.org>
45460
45461         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45462         (usage): Remove function.
45463
45464 2007-11-11  Bruno Haible  <bruno@clisp.org>
45465
45466         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45467         gl_FUNC_CEILF_LIBS.
45468         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45469         gl_FUNC_CEIL_LIBS.
45470         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45471         gl_FUNC_CEILL_LIBS.
45472         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45473         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45474         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45475
45476 2007-11-11  Bruno Haible  <bruno@clisp.org>
45477
45478         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45479         roundf were declared but do not exist on functions.
45480         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45481         roundl were declared but do not exist on functions.
45482         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45483         HAVE_FLOORL_AND_CEILL, respectively.
45484         Needed for Sun C on Solaris 10.
45485
45486 2007-11-11  Bruno Haible  <bruno@clisp.org>
45487
45488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45489         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45490         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45491         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45493         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45494         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45495         HAVE_DECL_ROUNDF.
45496         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45497         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45499         of HAVE_DECL_ROUND*.
45500         * modules/math (Makefile.am): Update.
45501
45502 2007-11-10  Bruno Haible  <bruno@clisp.org>
45503
45504         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45505         ptrdiff_t as m4/intl.m4.
45506
45507 2007-11-10  Jim Meyering  <meyering@redhat.com>
45508
45509         Avoid link failure for the argmatch test.
45510         * tests/test-argmatch.c (usage): Define function to avoid a link
45511         failure: argmatch_die requires a usage function.
45512
45513 2007-11-09  Bruno Haible  <bruno@clisp.org>
45514
45515         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45516         * doc/functions/vsnprintf.texi: Likewise.
45517         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45518         with a size argument < 2.
45519
45520 2007-11-09  Bruno Haible  <bruno@clisp.org>
45521
45522         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45523         buffer. Fixes an inefficiency introduced on 2007-11-03.
45524
45525 2007-11-09  Bruno Haible  <bruno@clisp.org>
45526
45527         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45528         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45529
45530 2007-11-08  Jim Meyering  <meyering@redhat.com>
45531
45532         Change cache variable name prefix "jm_" to "gl_" everywhere.
45533         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45534         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45535         * m4/uptime.m4: s/gl_/jm_/
45536
45537 2007-11-07  Bruno Haible  <bruno@clisp.org>
45538
45539         Update to GNU gettext 0.17.
45540         * m4/intl.m4: Update to GNU gettext 0.17.
45541         * m4/po.m4: Likewise.
45542         * modules/gettext (Files): Remove m4/ulonglong.m4.
45543         (configure.ac): Require gettext infrastructure from version 0.17.
45544
45545 2007-11-06  Bruno Haible  <bruno@clisp.org>
45546
45547         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45548         symbolic values are not defined in a public header.
45549         * lib/freadable.c (freadable) [QNX]: Likewise.
45550         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45551         * lib/freading.c (freading) [QNX]: Likewise.
45552         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45553         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45554         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45555         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45556         Reported by Alain Magloire.
45557
45558         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45559
45560 2007-11-05  Bruno Haible  <bruno@clisp.org>
45561
45562         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45563         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45564         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45565         Reported by Eric Blake.
45566
45567 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45568             Bruno Haible  <bruno@clisp.org>
45569
45570         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45571         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45572         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45573         (malloc): Undefine also before including <stdlib.h>.
45574         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45575         Needed on OSF/1 4.0.
45576
45577 2007-11-05  Jim Meyering  <meyering@redhat.com>
45578
45579         git-version-gen: sync from coreutils.
45580         * build-aux/git-version-gen: Add comments.
45581         Change the first '-' to '.' in the snapshot version string,
45582         e.g., 6.9-377-08144 -> 6.9.377-08144
45583         Remove first parameter.
45584         Don't declare a version "-dirty" merely because a time
45585         stamp has changed.
45586
45587 2007-11-04  Bruno Haible  <bruno@clisp.org>
45588
45589         * lib/lock.h: Protect all macro definitions containing an 'if'
45590         statement through a "do { ... } while (0)".
45591         * lib/tls.h: Likewise.
45592
45593 2007-11-04  Bruno Haible  <bruno@clisp.org>
45594
45595         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45596
45597 2007-11-04  Bruno Haible  <bruno@clisp.org>
45598
45599         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45600         * modules/fprintf-posix (Depends-on): Add nocrash.
45601         * modules/snprintf-posix (Depends-on): Likewise.
45602         * modules/sprintf-posix (Depends-on): Likewise.
45603         * modules/vasnprintf-posix (Depends-on): Likewise.
45604         * modules/vasprintf-posix (Depends-on): Likewise.
45605         * modules/vfprintf-posix (Depends-on): Likewise.
45606         * modules/vsnprintf-posix (Depends-on): Likewise.
45607         * modules/vsprintf-posix (Depends-on): Likewise.
45608         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45609         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45610         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45611         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45612         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45613         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45614         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45615
45616 2007-11-04  Bruno Haible  <bruno@clisp.org>
45617
45618         * modules/nocrash: New file.
45619         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45620         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45621
45622 2007-11-04  Bruno Haible  <bruno@clisp.org>
45623
45624         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45625         precision handling.
45626         * tests/test-vasprintf-posix.c (test_function): Likewise.
45627         * tests/test-snprintf-posix.h (test_function): Likewise.
45628         * tests/test-sprintf-posix.h (test_function): Likewise.
45629
45630         Fix *printf behaviour for large precisions on mingw and BeOS.
45631         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45632         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45634         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45635         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45636         gl_PRINTF_PRECISION and test its result. Invoke
45637         gl_PREREQ_VASNPRINTF_PRECISION.
45638         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45639         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45640         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45641         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45642         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45643         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45644         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45645         * doc/functions/fprintf.texi: Update.
45646         * doc/functions/printf.texi: Update.
45647         * doc/functions/snprintf.texi: Update.
45648         * doc/functions/sprintf.texi: Update.
45649         * doc/functions/vfprintf.texi: Update.
45650         * doc/functions/vprintf.texi: Update.
45651         * doc/functions/vsnprintf.texi: Update.
45652         * doc/functions/vsprintf.texi: Update.
45653
45654 2007-11-04  Bruno Haible  <bruno@clisp.org>
45655
45656         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45657
45658 2007-11-04  Bruno Haible  <bruno@clisp.org>
45659
45660         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45661         Reported by Sylvain Beucler <beuc@gnu.org>.
45662
45663 2007-11-03  Bruno Haible  <bruno@clisp.org>
45664
45665         * tests/test-fprintf-posix2.sh: New file.
45666         * tests/test-fprintf-posix2.c: New file.
45667         * modules/fprintf-posix-tests (Files): Add them.
45668         (TESTS): Add test-fprintf-posix2.sh.
45669         (configure.ac): Check for getrlimit and setrlimit.
45670         (check_PROGRAMS): Add test-fprintf-posix2.
45671
45672         * tests/test-printf-posix2.sh: New file.
45673         * tests/test-printf-posix2.c: New file.
45674         * modules/printf-posix-tests (Files): Add them.
45675         (TESTS): Add test-printf-posix2.sh.
45676         (configure.ac): Check for getrlimit and setrlimit.
45677         (check_PROGRAMS): Add test-printf-posix2.
45678
45679         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45680         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45681         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45682         (decode_double): New function, copied from decode_long_double.
45683         (scale10_round_decimal_decoded): New function, extracted from
45684         scale10_round_decimal_long_double.
45685         (scale10_round_decimal_long_double): Use it.
45686         (scale10_round_decimal_double): New function.
45687         (floorlog10): New function.
45688         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45690         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45692         gl_PRINTF_ENOMEM and test its result. Invoke
45693         gl_PREREQ_VASNPRINTF_ENOMEM.
45694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45698         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45700         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45701         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45702         * modules/snprintf-posix (Depends-on): Likewise.
45703         * modules/sprintf-posix (Depends-on): Likewise.
45704         * modules/vasnprintf-posix (Depends-on): Likewise.
45705         * modules/vasprintf-posix (Depends-on): Likewise.
45706         * modules/vfprintf-posix (Depends-on): Likewise.
45707         * modules/vsnprintf-posix (Depends-on): Likewise.
45708         * modules/vsprintf-posix (Depends-on): Likewise.
45709         * doc/functions/fprintf.texi: Update.
45710         * doc/functions/printf.texi: Update.
45711         * doc/functions/snprintf.texi: Update.
45712         * doc/functions/sprintf.texi: Update.
45713         * doc/functions/vfprintf.texi: Update.
45714         * doc/functions/vprintf.texi: Update.
45715         * doc/functions/vsnprintf.texi: Update.
45716         * doc/functions/vsprintf.texi: Update.
45717
45718 2007-11-03  Bruno Haible  <bruno@clisp.org>
45719
45720         * modules/frexp-nolibm-tests: New file.
45721
45722         * modules/frexp-nolibm: New file.
45723         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45724
45725 2007-11-03  Bruno Haible  <bruno@clisp.org>
45726
45727         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45728         value is C99 compliant.
45729         Needed for OSF/1 5.1.
45730
45731 2007-11-03  Bruno Haible  <bruno@clisp.org>
45732
45733         Fix out-of-memory handling of vasnprintf.
45734         * lib/printf-parse.c: Include <errno.h>.
45735         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45736         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45737         is already set.
45738
45739 2007-11-02  Eric Blake  <ebb9@byu.net>
45740
45741         Fix tests on cygwin.
45742         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45743
45744 2007-11-01  Bruno Haible  <bruno@clisp.org>
45745
45746         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45747         warning.
45748         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45749         needed for POSIX compatibility.
45750
45751 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45752
45753         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45754         for compatibility with GNU.
45755
45756 2007-11-01  Bruno Haible  <bruno@clisp.org>
45757
45758         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45759         (putenv): Renamed from rpl_putenv. Change argument type from
45760         'const char *' to 'char *'.
45761         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45762         of defining putenv in config.h, just set REPLACE_PUTENV.
45763         * modules/putenv (Depends-on): Add stdlib.
45764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45765         (Include): Use <stdlib.h>.
45766         * lib/stdlib.in.h (putenv): New declaration.
45767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45768         REPLACE_PUTENV.
45769         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45770         REPLACE_PUTENV.
45771         Needed for MacOS X 10.5.0.
45772         Reported by Peter O'Gorman <peter@pogma.com>.
45773
45774 2007-11-01  Jim Meyering  <meyering@redhat.com>
45775
45776         Treat an empty date string exactly like "0".
45777         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45778         if the remaining date string (to be parsed) is empty, use "0".
45779         Reported by Mischa Molhoek and discussed in this thread:
45780         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45781
45782 2007-10-31  Bruno Haible  <bruno@clisp.org>
45783
45784         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45785         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45786         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45787         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45788         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45789         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45790
45791 2007-10-31  Bruno Haible  <bruno@clisp.org>
45792
45793         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45794         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45795         (AC_TYPE_LONG_LONG_INT): Use it.
45796         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45797         it as well.
45798         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45799         to m4/longlong.m4.
45800         * modules/stdint (Files): Remove m4/ulonglong.m4.
45801         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45802         m4/ulonglong.m4.
45803         * modules/strtoumax (Files): Likewise.
45804
45805 2007-10-30  Bruno Haible  <bruno@clisp.org>
45806
45807         * modules/xvasprintf-posix: New file.
45808         Suggested by Eric Blake.
45809
45810 2007-10-30  Bruno Haible  <bruno@clisp.org>
45811
45812         * modules/xprintf-posix-tests: New file.
45813         * tests/test-xprintf-posix.sh: New file.
45814         * tests/test-xprintf-posix.c: New file.
45815         * tests/test-xfprintf-posix.c: New file.
45816
45817         * modules/xprintf-posix: New file.
45818
45819 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45820
45821         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45822         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45823         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45824
45825 2007-10-29  Bruno Haible  <bruno@clisp.org>
45826
45827         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45828         contain the special marker '_cv_'.
45829         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45830         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45831         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45832         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45833         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45834         Reported by Ralf Wildenhues.
45835
45836 2007-10-29  Bruno Haible  <bruno@clisp.org>
45837
45838         * gnulib-tool (func_import): When --lgpl is not specified, set
45839         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45840         GPLv3.
45841         Reported by Simon Josefsson.
45842
45843 2007-10-28  Bruno Haible  <bruno@clisp.org>
45844
45845         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45846         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45847         HAVE_DECL_ISFINITE.
45848         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45849         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45850         HAVE_DECL_ISFINITE.
45851
45852 2007-10-28  Bruno Haible  <bruno@clisp.org>
45853
45854         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45855         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45856
45857 2007-10-28  Bruno Haible  <bruno@clisp.org>
45858
45859         Fix link errors with Sun C 5.0 on Solaris 10.
45860         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45861         function is declared but not present in the compiler's libm.
45862         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45863         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45864         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45865         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45866         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45867         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45868         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45870         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45871         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45872         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45873         HAVE_DECL_FLOORL.
45874
45875 2007-10-28  Bruno Haible  <bruno@clisp.org>
45876
45877         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45878         gl_FUNC_FLOORL. Cache the result.
45879         (gl_FUNC_FLOORL): Use it.
45880         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45881         gl_FUNC_CEILL. Cache the result.
45882         (gl_FUNC_CEILL): Use it.
45883
45884         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45885         gl_FUNC_FLOOR. Cache the result.
45886         (gl_FUNC_FLOOR): Use it.
45887         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45888         gl_FUNC_CEIL. Cache the result.
45889         (gl_FUNC_CEIL): Use it.
45890
45891         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45892         gl_FUNC_FLOORF. Cache the result.
45893         (gl_FUNC_FLOORF): Use it.
45894         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45895         gl_FUNC_CEILF. Cache the result.
45896         (gl_FUNC_CEILF): Use it.
45897
45898 2007-10-28  Bruno Haible  <bruno@clisp.org>
45899
45900         * gnulib-tool: Allow specifying the LGPL version number through
45901         --lgpl=2 or --lgpl=3.
45902         (func_usage): Document --lgpl with argument.
45903         Handle --lgpl=... arguments.
45904         (func_import): Recognize also gl_LGPL calls with an argument. When
45905         --lgpl=2 is used and the module's license is just LGPL, report an
45906         error. Set sed_transform_lib_file according to the lgpl variable. In
45907         the generated files, use --lgpl or gl_LGPL invocations with argument,
45908         if necessary.
45909         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45910         an LGPv2+ license.
45911         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45912         gl_LGPL macro.
45913
45914 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45915             Bruno Haible  <bruno@clisp.org>
45916
45917         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45918         (u16_uctomb_aux): Likewise.
45919         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45920         !HAVE_INLINE.
45921         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45922
45923 2007-10-28  Bruno Haible  <bruno@clisp.org>
45924
45925         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45926         Invoke AM_GETTEXT_OPTION if it exists.
45927         * modules/vasprintf: Likewise.
45928         * modules/verror: Likewise.
45929         * modules/xprintf: Likewise.
45930         * modules/xvasprintf: Likewise.
45931
45932 2007-10-27  Ben Pfaff  <blp@gnu.org>
45933
45934         * lib/math.in.h: Define isfinite macro and prototypes for
45935         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45936         implementations.
45937         * m4/math_h.m4: New substitutions for isfinite module.
45938         * lib/isfinite.c: New file.
45939         * m4/isfinite.m4: New file.
45940         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45941         * modules/isfinite: New file.
45942         * modules/isfinite-tests: New file.
45943         * tests/tests-isfinite.c: New file.
45944         * doc/functions/isfinite.texi: Mention isfinite module.
45945         * MODULES.html.sh: Mention new module.
45946
45947 2007-10-27  Ben Pfaff  <blp@gnu.org>
45948
45949         Ralf Wildenhues reported that Tru64 4.0D declares the round
45950         functions but does not have definitions.
45951         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45952         cannot be found in any library, set the output variable to
45953         "missing" instead of "".
45954         * m4/round.m4: Also use our substitute if we cannot find round in
45955         any library, even if it is declared.
45956         * m4/roundf.m4: Likewise for roundf.
45957         * m4/roundl.m4: Likewise for roundl.
45958         * lib/math.in.h: Undefine roundf, round, roundl before defining
45959         their replacements, to allow for hypothetical systems where these
45960         may be defined as macros but not available in libraries.
45961
45962 2007-10-27  Bruno Haible  <bruno@clisp.org>
45963
45964         * doc/gnulib.texi: Invoke @firstparagraphindent.
45965         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45966         changes in gnulib.
45967         (Source changes): New section.
45968
45969 2007-10-26  Bruno Haible  <bruno@clisp.org>
45970
45971         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45972         borrowed from autoconf.
45973
45974 2007-10-26  Bruno Haible  <bruno@clisp.org>
45975
45976         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45977         strerror returned the empty string. Needed on HP-UX 11.00.
45978
45979 2007-10-24  Micah Cowan  <micah@cowan.name>
45980
45981         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45982         * build-aux/bootstrap: Remove support for now-unnecessary option,
45983         --cvs-user, and envvars CVS_USER, CVS_RSH.
45984
45985 2007-10-24  Jim Meyering  <meyering@redhat.com>
45986
45987         Avoid diagnostics from sha1sum when there is no cached checksum.
45988         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45989         if the po.s1 file hasn't been created yet.
45990
45991         * build-aux/bootstrap: Sync from coreutils:
45992         2007-10-24  Jim Meyering  <meyering@redhat.com>
45993         Get gnulib from the git repository, not from an obsolete cvs one.
45994         * build-aux/bootstrap: Suggestion from Micah Cowan.
45995         2007-10-04  Jim Meyering  <jim@meyering.net>
45996         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45997         (update_po_files): Work also when there are no .po files in po/.
45998
45999 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46000
46001         * README: Append ".git" to git and cg examples.
46002         Problem reported by Benoit Sigoure.
46003
46004 2007-10-23  Micah Cowan  <micah@cowan.name>
46005
46006         * users.txt: Add wget.
46007
46008 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46009
46010         Fix linking of some unistdio tests on FreeBSD.
46011         * modules/unistdio/u16-vsnprintf-tests
46012         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
46013         * modules/unistdio/u16-vsprintf-tests
46014         (test_u16_vsnprintf1_LDADD): Likewise.
46015         * modules/unistdio/u32-vsnprintf-tests
46016         (test_u32_vsnprintf1_LDADD): Likewise.
46017         * modules/unistdio/u32-vsprintf-tests
46018         (test_u32_vsprintf1_LDADD): Likewise.
46019         * modules/unistdio/u8-vsnprintf-tests
46020         (test_u8_vsnprintf1_LDADD): Likewise.
46021         * modules/unistdio/u8-vsprintf-tests
46022         (test_u8_vsprintf1_LDADD): Likewise.
46023         * modules/unistdio/ulc-vsnprintf-tests
46024         (test_ulc_vsnprintf1_LDADD): Likewise.
46025         * modules/unistdio/ulc-vsprintf-tests
46026         (test_ulc_vsprintf1_LDADD): Likewise.
46027
46028         Fix linking of some uniconv tests on FreeBSD.
46029         * modules/uniconv/u16-conv-from-enc-tests
46030         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
46031         * modules/uniconv/u16-conv-to-enc-tests
46032         (test_u16_conv_to_enc_LDADD): Likewise.
46033         * modules/uniconv/u16-strconv-from-enc-tests
46034         (test_u16_strconv_from_enc_LDADD): Likewise.
46035         * modules/uniconv/u16-strconv-to-enc-tests
46036         (test_u16_strconv_to_enc_LDADD): Likewise.
46037         * modules/uniconv/u32-conv-from-enc-tests
46038         (test_u32_conv_from_enc_LDADD): Likewise.
46039         * modules/uniconv/u32-conv-to-enc-tests
46040         (test_u32_conv_to_enc_LDADD): Likewise.
46041         * modules/uniconv/u32-strconv-from-enc-tests
46042         (test_u32_strconv_from_enc_LDADD): Likewise.
46043         * modules/uniconv/u32-strconv-to-enc-tests
46044         (test_u32_strconv_to_enc_LDADD): Likewise.
46045         * modules/uniconv/u8-conv-from-enc-tests
46046         (test_u8_conv_from_enc_LDADD): Likewise.
46047         * modules/uniconv/u8-conv-to-enc-tests
46048         (test_u8_conv_to_enc_LDADD): Likewise.
46049         * modules/uniconv/u8-strconv-from-enc-tests
46050         (test_u8_strconv_from_enc_LDADD): Likewise.
46051         * modules/uniconv/u8-strconv-to-enc-tests
46052         (test_u8_strconv_to_enc_LDADD): Likewise.
46053
46054 2007-10-22  Bruno Haible  <bruno@clisp.org>
46055
46056         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
46057         size.
46058
46059 2007-10-22  Eric Blake  <ebb9@byu.net>
46060
46061         Tweak x*printf documentation.
46062         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
46063         variable name and comments.
46064         Suggested by Bruno Haible.
46065
46066 2007-10-22  Bruno Haible  <bruno@clisp.org>
46067
46068         * lib/acl.c (copy_acl): Fix file name in comment.
46069
46070 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46071
46072         Fix Tru64 problem with stdbool.h.
46073         * lib/stdbool.in.h (false, true):
46074         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
46075         Don't declare as an enum in this situation; it runs afoul of Tru64.
46076         Problem reported by Steven M. Schweda in
46077         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
46078
46079 2007-10-22  Eric Blake  <ebb9@byu.net>
46080
46081         Also wrap vf?printf.
46082         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
46083         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
46084         (xvprintf, xvfprintf): New functions.
46085
46086 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46087
46088         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
46089         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
46090
46091         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
46092         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
46093
46094 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
46095
46096         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
46097         by Bruno Haible.
46098
46099 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46100
46101         * lib/getloadavg.c
46102         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
46103         Undef `sys' after including sys/table.h, for Tru64 4.0D.
46104
46105         * tests/test-i-ring.c: Work for C89.
46106
46107 2007-10-22  Bruno Haible  <bruno@clisp.org>
46108
46109         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
46110         -1u, in preprocessor expression, so that we don't test for the bug
46111         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
46112         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
46113
46114 2007-10-22  Eric Blake  <ebb9@byu.net>
46115
46116         * tests/test-yesno.sh: Silence stderr during test.
46117
46118 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46119
46120         * modules/crypto/gc-camellia: New file.
46121
46122         * m4/gc-camellia.m4: New file.
46123
46124         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
46125
46126         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
46127
46128 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46129
46130         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
46131         --help to stdout.  Reported by sms@antinode.org (Steven
46132         M. Schweda).
46133
46134 2007-10-22  Simon Josefsson  <simon@josefsson.org>
46135
46136         * users.txt: Fix link to libksba.
46137
46138 2007-10-21  Ben Pfaff  <blp@gnu.org>
46139
46140         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
46141         round.c roundf implementation that depends on floorf and ceilf to
46142         be tested unconditionally.
46143
46144 2007-10-21  Ben Pfaff  <blp@gnu.org>
46145
46146         * m4/check-libm-func.m4: Removed.
46147         * m4/check-math-lib.m4: New file.
46148         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
46149         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
46150         definition and lack of AC_LIBOBJ([roundf]).
46151         * m4/roundl.m4: Ditto, and similarly for roundl.
46152         * modules/round: Reference new m4 file.
46153         * modules/roundf: Ditto.
46154         * modules/roundl: Ditto.
46155         * tests/test-round2.c (main): Use ROUND instead of round.
46156         Bug report from Bruno Haible.
46157
46158 2007-10-21  Bruno Haible  <bruno@clisp.org>
46159
46160         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
46161         context.
46162
46163 2007-10-21  Bruno Haible  <bruno@clisp.org>
46164
46165         * tests/test-wcwidth.c (main): Allow negative result for some control
46166         characters.
46167
46168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
46169         Needed on OSF/1 5.1.
46170
46171 2007-10-21  Bruno Haible  <bruno@clisp.org>
46172
46173         * tests/test-floorf1.c: Include isnanf.h.
46174         (main): Use isnanf() instead of isnan().
46175         * tests/test-ceilf1.c: Include isnanf.h.
46176         (main): Use isnanf() instead of isnan().
46177         * tests/test-truncf1.c: Include isnanf.h.
46178         (main): Use isnanf() instead of isnan().
46179         * tests/test-roundf1.c: Include isnanf.h.
46180         (main): Use isnanf() instead of isnan().
46181
46182 2007-10-21  Eric Blake  <ebb9@byu.net>
46183
46184         * users.txt: Update URL for m4.
46185
46186 2007-10-21  Bruno Haible  <bruno@clisp.org>
46187
46188         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
46189
46190 2007-10-21  Bruno Haible  <bruno@clisp.org>
46191
46192         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
46193         Git's management files if the CVS files are not present.
46194
46195 2007-10-20  Bruno Haible  <bruno@clisp.org>
46196
46197         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
46198         gcc-3.4.x.
46199
46200 2007-10-20  Ben Pfaff  <blp@gnu.org>
46201
46202         * lib/math.in.h: Declare round, roundf, roundl if we are providing
46203         implementations.
46204         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
46205         * lib/round.c: New file.
46206         * lib/roundf.c: New file.
46207         * lib/roundl.c: New file.
46208         * m4/round.m4: New file.
46209         * m4/roundf.m4: New file.
46210         * m4/roundl.m4: New file.
46211         * m4/check-libm-func-m4: New file.
46212         * modules/math: Replace round, roundf, roundl related @VARS@ in
46213         math.in.h.
46214         * modules/round: New file.
46215         * modules/round-tests: New file.
46216         * modules/roundf: New file.
46217         * modules/roundf-tests: New file.
46218         * modules/roundl: New file.
46219         * modules/roundl-tests: New file.
46220         * tests/test-round1.c: New file.
46221         * tests/test-round2.c: New file.
46222         * tests/test-roundf1.c: New file.
46223         * tests/test-roundf2.c: New file.
46224         * tests/test-roundl.c: New file.
46225         * doc/functions/round.texi: Mention round module.
46226         * doc/functions/roundf.texi: Mention roundf module.
46227         * doc/functions/roundl.texi: Mention roundl module.
46228         * MODULES.html.sh: Mention new modules.
46229         Thanks to Bruno Haible for suggestions.
46230
46231 2007-10-20  Jim Meyering  <meyering@redhat.com>
46232
46233         * lib/xprintf.c: Include <config.h> unconditionally.
46234
46235         Change xprintf's license to GPL.
46236         * modules/xprintf (License): s/LGPL/GPL/, since this module
46237         depends on modules (exit and exitfail) which are GPL.
46238         Suggestion from Bruno Haible.
46239
46240         xprintf fixes.
46241         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46242         Use a clearer diagnostic.
46243         Patch from Bruno Haible.
46244
46245 2007-10-20  Bruno Haible  <bruno@clisp.org>
46246
46247         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46248         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46249         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46250
46251 2007-10-20  Bruno Haible  <bruno@clisp.org>
46252
46253         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46254         precision in the comparison result > x - 1 or similar.
46255         * tests/test-ceilf2.c (correct_result_p): Likewise.
46256         * tests/test-truncf2.c (correct_result_p): Likewise.
46257         * tests/test-trunc2.c (correct_result_p): Likewise.
46258         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46259
46260 2007-10-20  Bruno Haible  <bruno@clisp.org>
46261
46262         * modules/ceil: New file.
46263         * m4/ceil.m4: New file.
46264         * doc/functions/ceil.texi: Mention the 'ceil' module.
46265
46266 2007-10-20  Bruno Haible  <bruno@clisp.org>
46267
46268         * modules/floor: New file.
46269         * m4/floor.m4: New file.
46270         * doc/functions/floor.texi: Mention the 'floor' module.
46271
46272 2007-10-20  Bruno Haible  <bruno@clisp.org>
46273
46274         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46275         of %a.
46276         * modules/floorf-tests (Depends-on): Likewise.
46277         * modules/truncf-tests (Depends-on): Likewise.
46278         * modules/trunc-tests (Depends-on): Likewise.
46279         Reported by Ben Pfaff.
46280
46281 2007-10-19  Jim Meyering  <meyering@redhat.com>
46282
46283         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46284         Don't bother testing specific errno values.  Just test ferror.
46285
46286         New module: xprintf
46287         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46288
46289 2007-10-19  Bruno Haible  <bruno@clisp.org>
46290
46291         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46292         syntax.
46293         * modules/javaexec (Makefile.am): Likewise.
46294         * modules/relocatable-prog (Makefile.am): Likewise.
46295         Suggested by Jim Meyering.
46296
46297 2007-10-18  Bruno Haible  <bruno@clisp.org>
46298
46299         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46300         Reported by Jim Meyering.
46301
46302 2007-10-18  Eric Blake  <ebb9@byu.net>
46303
46304         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46305
46306 2007-10-18  Bruno Haible  <bruno@clisp.org>
46307
46308         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46309         the format string into writable memory. Needed in Fortify conditions.
46310
46311 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46312             Bruno Haible  <bruno@clisp.org>
46313
46314         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46315         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46316         * modules/trim (Depends-on): Add mbchar.
46317         (configure.ac): Add gl_FUNC_MBRTOWC.
46318         (Makefile.am): Augment lib_SOURCES.
46319
46320 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46321
46322         Modify glob.c to use fstatat and dirfd, to simplify it.
46323         Suggested by Eric Blake.
46324         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46325         Don't include <stdbool.h>; not used.
46326         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46327         (link_exists_p): Simplify implementation, since we can now assume
46328         dirfd and fstatat.
46329         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46330
46331 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46332
46333         * gnulib-tool (func_get_dependencies): Fix sed script to
46334         match only tests.
46335
46336 2007-10-17  Bruno Haible  <bruno@clisp.org>
46337
46338         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46339         allow locale names without encoding suffix.
46340         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46341         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46342
46343 2007-10-16  Bruno Haible  <bruno@clisp.org>
46344
46345         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46346         * lib/getgroups.c (getgroups): Likewise.
46347         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46348
46349 2007-10-16  Bruno Haible  <bruno@clisp.org>
46350
46351         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46352         * modules/malloc-posix (License): Likewise.
46353         * modules/realloc-posix (License): Likewise.
46354         * modules/calloc-posix (License): Likewise.
46355         * modules/intprops (License): Change from GPL to LGPL, with
46356         Paul Eggert's approval.
46357
46358 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46359
46360         Merge glibc changes into lib/glob.c.
46361
46362         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46363         2007-10-15 04:59:03 UTC.  Here are the changes:
46364
46365         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46366
46367         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46368
46369         * lib/glob.c: Add some branch prediction throughout.
46370
46371         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46372
46373         [BZ #5103]
46374         * lib/glob.c (glob): Recognize patterns starting \/.
46375
46376         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46377
46378         [BZ #3996]
46379         * lib/glob.c (attribute_hidden): Define if not defined.
46380         (glob): Unescape dirname, filename or username when needed and not
46381         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46382         is NULL.  Handle unescaped [ in pattern without closing ].
46383         Don't pass GLOB_CHECK down to recursive glob for directories.
46384         (__glob_pattern_type): New function.
46385         (__glob_pattern_p): Implement using __glob_pattern_type.
46386         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46387         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46388         Remove unreachable code.
46389
46390         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46391
46392         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46393         explain why there are no leaks.
46394
46395         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46396
46397         [BZ #3253]
46398         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46399         time, rather allocate increasingly bigger arrays of pointers, if
46400         possible with alloca, if too large with malloc.
46401
46402 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46403
46404         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46405         Problem reported by H.Merijn Brand in
46406         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46407         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46408         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46409
46410 2007-10-15  Bruno Haible  <bruno@clisp.org>
46411
46412         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46413         with explicit rpl_ prefix.
46414         * lib/fopen.c (fopen): Likewise.
46415         * lib/freopen.c (freopen): Likewise.
46416         * lib/iconv.c (iconv): Likewise.
46417         * lib/iconv_close.c (iconv_close): Likewise.
46418
46419 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46420
46421         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46422
46423 2007-10-15  Bruno Haible  <bruno@clisp.org>
46424
46425         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46426         <stddef.h> instead of <stdlib.h> since we only need NULL.
46427         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46428
46429 2007-10-15  Bruno Haible  <bruno@clisp.org>
46430
46431         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46432         Replace paragraph talking about LIBOBJS.
46433         Reported by Colin Watson <cjwatson@debian.org>.
46434
46435 2007-10-15  Bruno Haible  <bruno@clisp.org>
46436
46437         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46438         <stdlib.h> before using NULL.
46439
46440 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46441
46442         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46443         Reported by Albert Chin <china@thewrittenword.com>.
46444
46445 2007-10-14  Bruno Haible  <bruno@clisp.org>
46446
46447         * modules/iconv_open-utf-tests: New file.
46448         * tests/test-iconv-utf.c: New file.
46449
46450         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46451         * modules/iconv_open-utf: New file.
46452         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46453         (iconv, iconv_close): New declarations.
46454         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46455         be defined.
46456         (iconv_open): Add special handling of conversion between UTF-8 and
46457         UTF-{16,32}{BE,LE}.
46458         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46459         * lib/iconv_close.c: New file.
46460         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46461         gl_FUNC_ICONV_OPEN.
46462         (gl_FUNC_ICONV_OPEN): Use it.
46463         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46464         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46465         and REPLACE_ICONV_UTF.
46466         * modules/iconv_open (Depends-on): Add c-strcase.
46467         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46468         ICONV_CONST.
46469         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46470
46471 2007-10-13  Albert Chin  <china@thewrittenword.com>
46472             Bruno Haible  <bruno@clisp.org>
46473
46474         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46475         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46476
46477 2007-10-13  Bruno Haible  <bruno@clisp.org>
46478
46479         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46480         defined, use the ISO C99 inline semantics.
46481         * lib/argp.h (ARGP_EI): Likewise.
46482
46483 2007-10-13  Bruno Haible  <bruno@clisp.org>
46484
46485         Handle 'inline' change in gcc 4.3.0.
46486         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46487         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46488         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46489         argp_fmtstream_point): Disable 'extern' declaration if the function
46490         definition is going to be provided inline.
46491         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46492         semantics, not the ISO C99 inline semantics.
46493         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46494         'extern' declaration if the function definition is going to be provided
46495         inline.
46496         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46497         the GNU C inline semantics, not the ISO C99 inline semantics. With
46498         GCC 4.2, avoid a warning.
46499
46500 2007-10-13  Bruno Haible  <bruno@clisp.org>
46501
46502         * lib/freading.h (freading): Enable the use of __freading for
46503         glibc >= 2.7.
46504         * lib/freading.c (freading): Likewise.
46505
46506 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46507
46508         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46509         "warning: C99 inline functions are not supported; using GNU89".
46510
46511 2007-10-12  Bruno Haible  <bruno@clisp.org>
46512
46513         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46514         of 2.
46515         * tests/test-ceilf2.c: New file.
46516         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46517
46518         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46519         * modules/ceilf-tests: Update.
46520
46521 2007-10-12  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46524         of 2.
46525         * tests/test-floorf2.c: New file.
46526         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46527
46528         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46529         * modules/floorf-tests: Update.
46530
46531 2007-10-12  Bruno Haible  <bruno@clisp.org>
46532
46533         * tests/test-trunc2.c: New file.
46534         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46535
46536         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46537         * modules/trunc-tests: Update.
46538
46539 2007-10-12  Bruno Haible  <bruno@clisp.org>
46540
46541         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46542         of 2.
46543         * tests/test-truncf2.c: New file.
46544         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46545
46546         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46547         * modules/truncf-tests: Update.
46548
46549 2007-10-11  Eric Blake  <ebb9@byu.net>
46550
46551         Don't claim strerror is broken on Interix.
46552         * doc/functions/strerror.texi (strerror): Known broken systems are
46553         now Solaris 8, and not Interix.
46554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46555         Interix on cross-compile.
46556         Reported by Martin Koeppe in
46557         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46558
46559 2007-10-11  Bruno Haible  <bruno@clisp.org>
46560
46561         * modules/i-ring-tests: New file.
46562         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46563         instead of assert.
46564
46565 2007-10-11  Bruno Haible  <bruno@clisp.org>
46566
46567         * modules/filenamecat-tests: New file.
46568         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46569         * lib/filenamecat.c: Remove test code.
46570
46571 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46572
46573         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46574
46575         * lib/strerror.c: Include <string.h> always, to test interface,
46576         and to remove the need for the dummy.
46577         Include intprops.h to compute width instead of doing it ourselves
46578         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46579         (strerror): Define it to return NULL if there's no system strerror.
46580         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46581         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46582         ancient pre-strerror Unix systems well any more.  Saying "unknown
46583         system error" is enough.
46584         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46585         simpler strerror.c implementation.
46586         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46587         Simplify the tests to reflect the simpler strerror implementation.
46588         * modules/strerror (Depends-on): Add intprops.
46589
46590 2007-10-09  Eric Blake  <ebb9@byu.net>
46591
46592         Silence test-fpending.
46593         * modules/fpending-tests (Files): Add wrapper script.
46594         * tests/test-fpending.sh: New file.
46595
46596 2007-10-09  Bruno Haible  <bruno@clisp.org>
46597
46598         * MODULES.html.sh (func_module): Don't create a hyperlink for
46599         function names like 'printf_frexp'.
46600         (Misc): Add crc, memxor.
46601         (Characteristics of floating types): New section.
46602         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46603         isnanf-nolibm, signbit, trunc, truncf, truncl.
46604         (Enhancements for ISO C 99 functions): New subsection Input/output.
46605         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46606         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46607         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46608         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46609         (Enhancements for POSIX:2001 functions): Add chdir-long.
46610         (File system functions): Add areadlink, chdir-safer, read-file.
46611         Remove cycle-check.
46612         (File system as inode set): New section.
46613         (Date and time): Add gethrxtime.
46614         (Multithreading): Add openmp.
46615         (Internationalization functions): Add localename.
46616         (Unicode string functions): Add unistr/u*-mbsnlen.
46617         (Support for maintaining and releasing projects): Add git-version-gen.
46618         (Lone files): Remove directories.
46619
46620 2007-10-08  Ben Pfaff  <blp@gnu.org>
46621
46622         * lib/xmalloca.h: Fix typo in comment.
46623
46624 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46625
46626         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46627         when avoiding problems with integer overflow.  Use a portable test
46628         instead.
46629
46630 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46631
46632         * modules/dummy (License): Change to LGPLv2+.
46633         * modules/float (License): Likewise
46634         * modules/realloc (License): Likewise
46635         * modules/stdlib (License): Likewise
46636
46637 2007-10-07  Bruno Haible  <bruno@clisp.org>
46638
46639         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46640         * floor.c (TWO_MANT_DIG): Likewise.
46641         * ceil.c (TWO_MANT_DIG): Likewise.
46642         Reported by Ben Pfaff.
46643
46644 2007-10-07  Bruno Haible  <bruno@clisp.org>
46645
46646         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46647         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46648         * lib/frexp.c (FUNC): Likewise.
46649         * lib/printf-frexp.h (printf_frexp): Likewise.
46650         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46651         * lib/printf-frexp.c (FUNC): Likewise.
46652         Suggested by Jim Meyering.
46653
46654 2007-10-07  Jim Meyering  <meyering@redhat.com>
46655
46656         Make xnanosleep's integer overflow test more robust.
46657         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46658         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46659
46660 2007-10-07  Bruno Haible  <bruno@clisp.org>
46661
46662         * NEWS: Mention the license change.
46663
46664         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46665         abbreviations in the modules files.
46666
46667         Change copyright notice from GPLv2+ to GPLv3+.
46668         * README: Change copyright notice.
46669         * MODULES.html.sh: Likewise.
46670         * build-aux/bootstrap.conf: Likewise.
46671         * build-aux/config.libpath: Likewise.
46672         * build-aux/csharpcomp.sh.in: Likewise.
46673         * build-aux/csharpexec.sh.in: Likewise.
46674         * build-aux/install-reloc: Likewise.
46675         * build-aux/javacomp.sh.in: Likewise.
46676         * build-aux/javaexec.sh.in: Likewise.
46677         * build-aux/ldd.sh.in: Likewise.
46678         * build-aux/reloc-ldflags: Likewise.
46679         * build-aux/relocatable.sh.in: Likewise.
46680         * build-aux/x-to-1.in: Likewise.
46681         * check-module: Likewise.
46682         * config/srclistvars.sh: Likewise.
46683         * gnulib-tool: Likewise.
46684         * lib/acl-internal.h: Likewise.
46685         * lib/acl.c: Likewise.
46686         * lib/acl.h: Likewise.
46687         * lib/acl_entries.c: Likewise.
46688         * lib/areadlink-with-size.c: Likewise.
46689         * lib/areadlink.c: Likewise.
46690         * lib/areadlink.h: Likewise.
46691         * lib/argmatch.c: Likewise.
46692         * lib/argmatch.h: Likewise.
46693         * lib/argp-ba.c: Likewise.
46694         * lib/argp-eexst.c: Likewise.
46695         * lib/argp-fmtstream.c: Likewise.
46696         * lib/argp-fmtstream.h: Likewise.
46697         * lib/argp-fs-xinl.c: Likewise.
46698         * lib/argp-help.c: Likewise.
46699         * lib/argp-namefrob.h: Likewise.
46700         * lib/argp-parse.c: Likewise.
46701         * lib/argp-pin.c: Likewise.
46702         * lib/argp-pv.c: Likewise.
46703         * lib/argp-pvh.c: Likewise.
46704         * lib/argp-xinl.c: Likewise.
46705         * lib/argp.h: Likewise.
46706         * lib/at-func.c: Likewise.
46707         * lib/atanl.c: Likewise.
46708         * lib/backupfile.c: Likewise.
46709         * lib/backupfile.h: Likewise.
46710         * lib/basename.c: Likewise.
46711         * lib/binary-io.h: Likewise.
46712         * lib/byteswap.in.h: Likewise.
46713         * lib/c-stack.c: Likewise.
46714         * lib/c-stack.h: Likewise.
46715         * lib/c-strcasestr.c: Likewise.
46716         * lib/c-strcasestr.h: Likewise.
46717         * lib/c-strstr.c: Likewise.
46718         * lib/c-strstr.h: Likewise.
46719         * lib/c-strtod.c: Likewise.
46720         * lib/calloc.c: Likewise.
46721         * lib/canon-host.c: Likewise.
46722         * lib/canon-host.h: Likewise.
46723         * lib/canonicalize-lgpl.c: Likewise.
46724         * lib/canonicalize.c: Likewise.
46725         * lib/canonicalize.h: Likewise.
46726         * lib/ceil.c: Likewise.
46727         * lib/ceilf.c: Likewise.
46728         * lib/ceill.c: Likewise.
46729         * lib/chdir-long.c: Likewise.
46730         * lib/chdir-long.h: Likewise.
46731         * lib/chdir-safer.c: Likewise.
46732         * lib/chdir-safer.h: Likewise.
46733         * lib/chown.c: Likewise.
46734         * lib/classpath.c: Likewise.
46735         * lib/classpath.h: Likewise.
46736         * lib/clean-temp.c: Likewise.
46737         * lib/clean-temp.h: Likewise.
46738         * lib/cloexec.c: Likewise.
46739         * lib/close-stream.c: Likewise.
46740         * lib/closein.c: Likewise.
46741         * lib/closein.h: Likewise.
46742         * lib/closeout.c: Likewise.
46743         * lib/closeout.h: Likewise.
46744         * lib/concat-filename.c: Likewise.
46745         * lib/copy-file.c: Likewise.
46746         * lib/copy-file.h: Likewise.
46747         * lib/count-one-bits.h: Likewise.
46748         * lib/crc.c: Likewise.
46749         * lib/crc.h: Likewise.
46750         * lib/creat-safer.c: Likewise.
46751         * lib/csharpcomp.c: Likewise.
46752         * lib/csharpcomp.h: Likewise.
46753         * lib/csharpexec.c: Likewise.
46754         * lib/csharpexec.h: Likewise.
46755         * lib/cycle-check.c: Likewise.
46756         * lib/cycle-check.h: Likewise.
46757         * lib/diacrit.c: Likewise.
46758         * lib/diacrit.h: Likewise.
46759         * lib/diffseq.h: Likewise.
46760         * lib/dirchownmod.c: Likewise.
46761         * lib/dirent.in.h: Likewise.
46762         * lib/dirfd.c: Likewise.
46763         * lib/dirfd.h: Likewise.
46764         * lib/dirname.c: Likewise.
46765         * lib/dirname.h: Likewise.
46766         * lib/dummy.c: Likewise.
46767         * lib/dup-safer.c: Likewise.
46768         * lib/dup2.c: Likewise.
46769         * lib/eealloc.h: Likewise.
46770         * lib/error.c: Likewise.
46771         * lib/error.h: Likewise.
46772         * lib/euidaccess.c: Likewise.
46773         * lib/exclude.c: Likewise.
46774         * lib/exclude.h: Likewise.
46775         * lib/execute.c: Likewise.
46776         * lib/execute.h: Likewise.
46777         * lib/exitfail.c: Likewise.
46778         * lib/exitfail.h: Likewise.
46779         * lib/expl.c: Likewise.
46780         * lib/fatal-signal.c: Likewise.
46781         * lib/fatal-signal.h: Likewise.
46782         * lib/fbufmode.c: Likewise.
46783         * lib/fbufmode.h: Likewise.
46784         * lib/fchdir.c: Likewise.
46785         * lib/fchmodat.c: Likewise.
46786         * lib/fchownat.c: Likewise.
46787         * lib/fcntl--.h: Likewise.
46788         * lib/fcntl-safer.h: Likewise.
46789         * lib/fcntl.in.h: Likewise.
46790         * lib/fd-safer.c: Likewise.
46791         * lib/fflush.c: Likewise.
46792         * lib/file-has-acl.c: Likewise.
46793         * lib/file-set.c: Likewise.
46794         * lib/file-type.c: Likewise.
46795         * lib/file-type.h: Likewise.
46796         * lib/fileblocks.c: Likewise.
46797         * lib/filemode.c: Likewise.
46798         * lib/filemode.h: Likewise.
46799         * lib/filename.h: Likewise.
46800         * lib/filenamecat.c: Likewise.
46801         * lib/filenamecat.h: Likewise.
46802         * lib/findprog.c: Likewise.
46803         * lib/findprog.h: Likewise.
46804         * lib/float.in.h: Likewise.
46805         * lib/floor.c: Likewise.
46806         * lib/floorf.c: Likewise.
46807         * lib/floorl.c: Likewise.
46808         * lib/fopen-safer.c: Likewise.
46809         * lib/fopen.c: Likewise.
46810         * lib/fpending.c: Likewise.
46811         * lib/fpending.h: Likewise.
46812         * lib/fprintf.c: Likewise.
46813         * lib/fprintftime.h: Likewise.
46814         * lib/fpucw.h: Likewise.
46815         * lib/fpurge.c: Likewise.
46816         * lib/fpurge.h: Likewise.
46817         * lib/freadable.c: Likewise.
46818         * lib/freadable.h: Likewise.
46819         * lib/freadahead.c: Likewise.
46820         * lib/freadahead.h: Likewise.
46821         * lib/freading.c: Likewise.
46822         * lib/freading.h: Likewise.
46823         * lib/free.c: Likewise.
46824         * lib/freopen.c: Likewise.
46825         * lib/frexp.c: Likewise.
46826         * lib/frexpl.c: Likewise.
46827         * lib/fseek.c: Likewise.
46828         * lib/fseterr.c: Likewise.
46829         * lib/fseterr.h: Likewise.
46830         * lib/fstatat.c: Likewise.
46831         * lib/fstrcmp.c: Likewise.
46832         * lib/fstrcmp.h: Likewise.
46833         * lib/fsusage.c: Likewise.
46834         * lib/fsusage.h: Likewise.
46835         * lib/ftell.c: Likewise.
46836         * lib/ftello.c: Likewise.
46837         * lib/fts-cycle.c: Likewise.
46838         * lib/fts.c: Likewise.
46839         * lib/fts_.h: Likewise.
46840         * lib/full-read.c: Likewise.
46841         * lib/full-read.h: Likewise.
46842         * lib/full-write.c: Likewise.
46843         * lib/full-write.h: Likewise.
46844         * lib/fwritable.c: Likewise.
46845         * lib/fwritable.h: Likewise.
46846         * lib/fwriteerror.c: Likewise.
46847         * lib/fwriteerror.h: Likewise.
46848         * lib/fwriting.c: Likewise.
46849         * lib/fwriting.h: Likewise.
46850         * lib/gcd.c: Likewise.
46851         * lib/gcd.h: Likewise.
46852         * lib/getcwd.c: Likewise.
46853         * lib/getdate.h: Likewise.
46854         * lib/getdate.y: Likewise.
46855         * lib/getdomainname.c: Likewise.
46856         * lib/getdomainname.h: Likewise.
46857         * lib/getgroups.c: Likewise.
46858         * lib/gethostname.c: Likewise.
46859         * lib/gethrxtime.c: Likewise.
46860         * lib/gethrxtime.h: Likewise.
46861         * lib/getloadavg.c: Likewise.
46862         * lib/getndelim2.c: Likewise.
46863         * lib/getndelim2.h: Likewise.
46864         * lib/getnline.c: Likewise.
46865         * lib/getnline.h: Likewise.
46866         * lib/getopt.c: Likewise.
46867         * lib/getopt.in.h: Likewise.
46868         * lib/getopt1.c: Likewise.
46869         * lib/getopt_int.h: Likewise.
46870         * lib/getpagesize.h: Likewise.
46871         * lib/getsubopt.c: Likewise.
46872         * lib/gettime.c: Likewise.
46873         * lib/getugroups.c: Likewise.
46874         * lib/getugroups.h: Likewise.
46875         * lib/getusershell.c: Likewise.
46876         * lib/gl_anyavltree_list1.h: Likewise.
46877         * lib/gl_anyavltree_list2.h: Likewise.
46878         * lib/gl_anyhash_list1.h: Likewise.
46879         * lib/gl_anyhash_list2.h: Likewise.
46880         * lib/gl_anylinked_list1.h: Likewise.
46881         * lib/gl_anylinked_list2.h: Likewise.
46882         * lib/gl_anyrbtree_list1.h: Likewise.
46883         * lib/gl_anyrbtree_list2.h: Likewise.
46884         * lib/gl_anytree_list1.h: Likewise.
46885         * lib/gl_anytree_list2.h: Likewise.
46886         * lib/gl_anytree_oset.h: Likewise.
46887         * lib/gl_anytreehash_list1.h: Likewise.
46888         * lib/gl_anytreehash_list2.h: Likewise.
46889         * lib/gl_array_list.c: Likewise.
46890         * lib/gl_array_list.h: Likewise.
46891         * lib/gl_array_oset.c: Likewise.
46892         * lib/gl_array_oset.h: Likewise.
46893         * lib/gl_avltree_list.c: Likewise.
46894         * lib/gl_avltree_list.h: Likewise.
46895         * lib/gl_avltree_oset.c: Likewise.
46896         * lib/gl_avltree_oset.h: Likewise.
46897         * lib/gl_avltreehash_list.c: Likewise.
46898         * lib/gl_avltreehash_list.h: Likewise.
46899         * lib/gl_carray_list.c: Likewise.
46900         * lib/gl_carray_list.h: Likewise.
46901         * lib/gl_linked_list.c: Likewise.
46902         * lib/gl_linked_list.h: Likewise.
46903         * lib/gl_linkedhash_list.c: Likewise.
46904         * lib/gl_linkedhash_list.h: Likewise.
46905         * lib/gl_list.c: Likewise.
46906         * lib/gl_list.h: Likewise.
46907         * lib/gl_oset.c: Likewise.
46908         * lib/gl_oset.h: Likewise.
46909         * lib/gl_rbtree_list.c: Likewise.
46910         * lib/gl_rbtree_list.h: Likewise.
46911         * lib/gl_rbtree_oset.c: Likewise.
46912         * lib/gl_rbtree_oset.h: Likewise.
46913         * lib/gl_rbtreehash_list.c: Likewise.
46914         * lib/gl_rbtreehash_list.h: Likewise.
46915         * lib/gl_sublist.c: Likewise.
46916         * lib/gl_sublist.h: Likewise.
46917         * lib/group-member.c: Likewise.
46918         * lib/group-member.h: Likewise.
46919         * lib/hard-locale.c: Likewise.
46920         * lib/hard-locale.h: Likewise.
46921         * lib/hash-pjw.c: Likewise.
46922         * lib/hash-pjw.h: Likewise.
46923         * lib/hash-triple.c: Likewise.
46924         * lib/hash.c: Likewise.
46925         * lib/hash.h: Likewise.
46926         * lib/human.c: Likewise.
46927         * lib/human.h: Likewise.
46928         * lib/i-ring.c: Likewise.
46929         * lib/i-ring.h: Likewise.
46930         * lib/idcache.c: Likewise.
46931         * lib/imaxabs.c: Likewise.
46932         * lib/imaxdiv.c: Likewise.
46933         * lib/inet_pton.c: Likewise.
46934         * lib/inet_pton.h: Likewise.
46935         * lib/intprops.h: Likewise.
46936         * lib/inttostr.c: Likewise.
46937         * lib/inttostr.h: Likewise.
46938         * lib/inttypes.in.h: Likewise.
46939         * lib/isapipe.c: Likewise.
46940         * lib/isdir.c: Likewise.
46941         * lib/isnan.c: Likewise.
46942         * lib/isnan.h: Likewise.
46943         * lib/isnanf.c: Likewise.
46944         * lib/isnanf.h: Likewise.
46945         * lib/isnanl-nolibm.h: Likewise.
46946         * lib/isnanl.c: Likewise.
46947         * lib/isnanl.h: Likewise.
46948         * lib/javacomp.c: Likewise.
46949         * lib/javacomp.h: Likewise.
46950         * lib/javaexec.c: Likewise.
46951         * lib/javaexec.h: Likewise.
46952         * lib/javaversion.c: Likewise.
46953         * lib/javaversion.h: Likewise.
46954         * lib/javaversion.java: Likewise.
46955         * lib/lbrkprop.h: Likewise.
46956         * lib/lchmod.h: Likewise.
46957         * lib/lchown.c: Likewise.
46958         * lib/ldexpl.c: Likewise.
46959         * lib/linebreak.c: Likewise.
46960         * lib/linebreak.h: Likewise.
46961         * lib/linebuffer.c: Likewise.
46962         * lib/linebuffer.h: Likewise.
46963         * lib/locale.in.h: Likewise.
46964         * lib/logl.c: Likewise.
46965         * lib/long-options.c: Likewise.
46966         * lib/long-options.h: Likewise.
46967         * lib/lstat.c: Likewise.
46968         * lib/lstat.h: Likewise.
46969         * lib/math.in.h: Likewise.
46970         * lib/mbchar.c: Likewise.
46971         * lib/mbchar.h: Likewise.
46972         * lib/mbfile.h: Likewise.
46973         * lib/mbiter.h: Likewise.
46974         * lib/mbscasecmp.c: Likewise.
46975         * lib/mbscasestr.c: Likewise.
46976         * lib/mbschr.c: Likewise.
46977         * lib/mbscspn.c: Likewise.
46978         * lib/mbslen.c: Likewise.
46979         * lib/mbsncasecmp.c: Likewise.
46980         * lib/mbsnlen.c: Likewise.
46981         * lib/mbspbrk.c: Likewise.
46982         * lib/mbspcasecmp.c: Likewise.
46983         * lib/mbsrchr.c: Likewise.
46984         * lib/mbssep.c: Likewise.
46985         * lib/mbsspn.c: Likewise.
46986         * lib/mbsstr.c: Likewise.
46987         * lib/mbstok_r.c: Likewise.
46988         * lib/mbswidth.c: Likewise.
46989         * lib/mbswidth.h: Likewise.
46990         * lib/mbuiter.h: Likewise.
46991         * lib/memcasecmp.c: Likewise.
46992         * lib/memcasecmp.h: Likewise.
46993         * lib/memchr.c: Likewise.
46994         * lib/memcmp.c: Likewise.
46995         * lib/memcoll.c: Likewise.
46996         * lib/memcoll.h: Likewise.
46997         * lib/memcpy.c: Likewise.
46998         * lib/memrchr.c: Likewise.
46999         * lib/mkancesdirs.c: Likewise.
47000         * lib/mkdir-p.c: Likewise.
47001         * lib/mkdir-p.h: Likewise.
47002         * lib/mkdir.c: Likewise.
47003         * lib/mkdirat.c: Likewise.
47004         * lib/mkdtemp.c: Likewise.
47005         * lib/mkstemp-safer.c: Likewise.
47006         * lib/mkstemp.c: Likewise.
47007         * lib/modechange.c: Likewise.
47008         * lib/modechange.h: Likewise.
47009         * lib/mountlist.c: Likewise.
47010         * lib/mountlist.h: Likewise.
47011         * lib/mpsort.c: Likewise.
47012         * lib/nanosleep.c: Likewise.
47013         * lib/obstack.c: Likewise.
47014         * lib/obstack.h: Likewise.
47015         * lib/open-safer.c: Likewise.
47016         * lib/open.c: Likewise.
47017         * lib/openat-die.c: Likewise.
47018         * lib/openat-priv.h: Likewise.
47019         * lib/openat-proc.c: Likewise.
47020         * lib/openat.c: Likewise.
47021         * lib/openat.h: Likewise.
47022         * lib/pagealign_alloc.c: Likewise.
47023         * lib/pagealign_alloc.h: Likewise.
47024         * lib/physmem.c: Likewise.
47025         * lib/physmem.h: Likewise.
47026         * lib/pipe-safer.c: Likewise.
47027         * lib/pipe.c: Likewise.
47028         * lib/pipe.h: Likewise.
47029         * lib/posixtm.c: Likewise.
47030         * lib/posixtm.h: Likewise.
47031         * lib/posixver.c: Likewise.
47032         * lib/printf-frexp.c: Likewise.
47033         * lib/printf-frexp.h: Likewise.
47034         * lib/printf-frexpl.c: Likewise.
47035         * lib/printf-frexpl.h: Likewise.
47036         * lib/printf.c: Likewise.
47037         * lib/progname.c: Likewise.
47038         * lib/progname.h: Likewise.
47039         * lib/progreloc.c: Likewise.
47040         * lib/putenv.c: Likewise.
47041         * lib/quote.c: Likewise.
47042         * lib/quote.h: Likewise.
47043         * lib/quotearg.c: Likewise.
47044         * lib/quotearg.h: Likewise.
47045         * lib/raise.c: Likewise.
47046         * lib/readline.c: Likewise.
47047         * lib/readline.h: Likewise.
47048         * lib/readlink.c: Likewise.
47049         * lib/readtokens.c: Likewise.
47050         * lib/readtokens.h: Likewise.
47051         * lib/readtokens0.c: Likewise.
47052         * lib/readtokens0.h: Likewise.
47053         * lib/readutmp.c: Likewise.
47054         * lib/readutmp.h: Likewise.
47055         * lib/realloc.c: Likewise.
47056         * lib/relocwrapper.c: Likewise.
47057         * lib/rename-dest-slash.c: Likewise.
47058         * lib/rename.c: Likewise.
47059         * lib/rmdir.c: Likewise.
47060         * lib/rpmatch.c: Likewise.
47061         * lib/safe-read.c: Likewise.
47062         * lib/safe-read.h: Likewise.
47063         * lib/safe-write.c: Likewise.
47064         * lib/safe-write.h: Likewise.
47065         * lib/same-inode.h: Likewise.
47066         * lib/same.c: Likewise.
47067         * lib/same.h: Likewise.
47068         * lib/save-cwd.c: Likewise.
47069         * lib/save-cwd.h: Likewise.
47070         * lib/savedir.c: Likewise.
47071         * lib/savedir.h: Likewise.
47072         * lib/savewd.c: Likewise.
47073         * lib/savewd.h: Likewise.
47074         * lib/search.in.h: Likewise.
47075         * lib/setenv.c: Likewise.
47076         * lib/setenv.h: Likewise.
47077         * lib/settime.c: Likewise.
47078         * lib/sh-quote.c: Likewise.
47079         * lib/sh-quote.h: Likewise.
47080         * lib/sig2str.c: Likewise.
47081         * lib/sig2str.h: Likewise.
47082         * lib/signal.in.h: Likewise.
47083         * lib/signbitd.c: Likewise.
47084         * lib/signbitf.c: Likewise.
47085         * lib/signbitl.c: Likewise.
47086         * lib/sigprocmask.c: Likewise.
47087         * lib/sincosl.c: Likewise.
47088         * lib/sleep.c: Likewise.
47089         * lib/sprintf.c: Likewise.
47090         * lib/sqrtl.c: Likewise.
47091         * lib/stat-time.h: Likewise.
47092         * lib/stdio--.h: Likewise.
47093         * lib/stdio-safer.h: Likewise.
47094         * lib/stdlib--.h: Likewise.
47095         * lib/stdlib-safer.h: Likewise.
47096         * lib/stdlib.in.h: Likewise.
47097         * lib/stpcpy.c: Likewise.
47098         * lib/stpncpy.c: Likewise.
47099         * lib/strchrnul.c: Likewise.
47100         * lib/strcspn.c: Likewise.
47101         * lib/strerror.c: Likewise.
47102         * lib/strftime.c: Likewise.
47103         * lib/strftime.h: Likewise.
47104         * lib/striconveh.c: Likewise.
47105         * lib/striconveh.h: Likewise.
47106         * lib/striconveha.c: Likewise.
47107         * lib/striconveha.h: Likewise.
47108         * lib/stripslash.c: Likewise.
47109         * lib/strnlen1.c: Likewise.
47110         * lib/strnlen1.h: Likewise.
47111         * lib/strtod.c: Likewise.
47112         * lib/strtoimax.c: Likewise.
47113         * lib/strtok_r.c: Likewise.
47114         * lib/strtol.c: Likewise.
47115         * lib/strtoll.c: Likewise.
47116         * lib/strtoul.c: Likewise.
47117         * lib/strtoull.c: Likewise.
47118         * lib/sysexits.in.h: Likewise.
47119         * lib/tempname.c: Likewise.
47120         * lib/tempname.h: Likewise.
47121         * lib/timespec.h: Likewise.
47122         * lib/tls.c: Likewise.
47123         * lib/tls.h: Likewise.
47124         * lib/tmpdir.c: Likewise.
47125         * lib/tmpdir.h: Likewise.
47126         * lib/tmpfile-safer.c: Likewise.
47127         * lib/tmpfile.c: Likewise.
47128         * lib/trigl.c: Likewise.
47129         * lib/trigl.h: Likewise.
47130         * lib/trim.c: Likewise.
47131         * lib/trim.h: Likewise.
47132         * lib/trunc.c: Likewise.
47133         * lib/truncf.c: Likewise.
47134         * lib/truncl.c: Likewise.
47135         * lib/tsearch.c: Likewise.
47136         * lib/unicodeio.c: Likewise.
47137         * lib/unicodeio.h: Likewise.
47138         * lib/unistd--.h: Likewise.
47139         * lib/unistd-safer.h: Likewise.
47140         * lib/unistdio/ulc-fprintf.c: Likewise.
47141         * lib/unistdio/ulc-vfprintf.c: Likewise.
47142         * lib/unlinkdir.c: Likewise.
47143         * lib/unlinkdir.h: Likewise.
47144         * lib/unlocked-io.h: Likewise.
47145         * lib/unsetenv.c: Likewise.
47146         * lib/userspec.c: Likewise.
47147         * lib/utime.c: Likewise.
47148         * lib/utimecmp.c: Likewise.
47149         * lib/utimecmp.h: Likewise.
47150         * lib/utimens.c: Likewise.
47151         * lib/verify.h: Likewise.
47152         * lib/verror.c: Likewise.
47153         * lib/verror.h: Likewise.
47154         * lib/version-etc-fsf.c: Likewise.
47155         * lib/version-etc.c: Likewise.
47156         * lib/version-etc.h: Likewise.
47157         * lib/vfprintf.c: Likewise.
47158         * lib/vprintf.c: Likewise.
47159         * lib/vsprintf.c: Likewise.
47160         * lib/w32spawn.h: Likewise.
47161         * lib/wait-process.c: Likewise.
47162         * lib/wait-process.h: Likewise.
47163         * lib/wcwidth.c: Likewise.
47164         * lib/write-any-file.c: Likewise.
47165         * lib/xalloc-die.c: Likewise.
47166         * lib/xalloc.h: Likewise.
47167         * lib/xasprintf.c: Likewise.
47168         * lib/xgetcwd.c: Likewise.
47169         * lib/xgetcwd.h: Likewise.
47170         * lib/xgetdomainname.c: Likewise.
47171         * lib/xgetdomainname.h: Likewise.
47172         * lib/xgethostname.c: Likewise.
47173         * lib/xmalloc.c: Likewise.
47174         * lib/xmalloca.c: Likewise.
47175         * lib/xmalloca.h: Likewise.
47176         * lib/xmemcoll.c: Likewise.
47177         * lib/xnanosleep.c: Likewise.
47178         * lib/xreadlink.c: Likewise.
47179         * lib/xreadlink.h: Likewise.
47180         * lib/xsetenv.c: Likewise.
47181         * lib/xsetenv.h: Likewise.
47182         * lib/xstriconv.c: Likewise.
47183         * lib/xstriconv.h: Likewise.
47184         * lib/xstrndup.c: Likewise.
47185         * lib/xstrndup.h: Likewise.
47186         * lib/xstrtod.c: Likewise.
47187         * lib/xstrtod.h: Likewise.
47188         * lib/xstrtol-error.c: Likewise.
47189         * lib/xstrtol.c: Likewise.
47190         * lib/xstrtol.h: Likewise.
47191         * lib/xtime.h: Likewise.
47192         * lib/xvasprintf.c: Likewise.
47193         * lib/xvasprintf.h: Likewise.
47194         * lib/yesno.c: Likewise.
47195         * lib/yesno.h: Likewise.
47196         * posix-modules: Likewise.
47197         * tests/test-alloca-opt.c: Likewise.
47198         * tests/test-arcfour.c: Likewise.
47199         * tests/test-arctwo.c: Likewise.
47200         * tests/test-argmatch.c: Likewise.
47201         * tests/test-argp-2.sh: Likewise.
47202         * tests/test-argp.c: Likewise.
47203         * tests/test-arpa_inet.c: Likewise.
47204         * tests/test-array_list.c: Likewise.
47205         * tests/test-array_oset.c: Likewise.
47206         * tests/test-atexit.c: Likewise.
47207         * tests/test-avltree_list.c: Likewise.
47208         * tests/test-avltree_oset.c: Likewise.
47209         * tests/test-avltreehash_list.c: Likewise.
47210         * tests/test-base64.c: Likewise.
47211         * tests/test-binary-io.c: Likewise.
47212         * tests/test-byteswap.c: Likewise.
47213         * tests/test-c-ctype.c: Likewise.
47214         * tests/test-c-strcasecmp.c: Likewise.
47215         * tests/test-c-strcasestr.c: Likewise.
47216         * tests/test-c-strncasecmp.c: Likewise.
47217         * tests/test-c-strstr.c: Likewise.
47218         * tests/test-canonicalize-lgpl.c: Likewise.
47219         * tests/test-canonicalize.c: Likewise.
47220         * tests/test-carray_list.c: Likewise.
47221         * tests/test-ceilf.c: Likewise.
47222         * tests/test-ceill.c: Likewise.
47223         * tests/test-count-one-bits.c: Likewise.
47224         * tests/test-crc.c: Likewise.
47225         * tests/test-dirname.c: Likewise.
47226         * tests/test-fbufmode.c: Likewise.
47227         * tests/test-fcntl.c: Likewise.
47228         * tests/test-fflush.c: Likewise.
47229         * tests/test-floorf.c: Likewise.
47230         * tests/test-floorl.c: Likewise.
47231         * tests/test-fopen.c: Likewise.
47232         * tests/test-fprintf-posix.c: Likewise.
47233         * tests/test-fprintf-posix.h: Likewise.
47234         * tests/test-fpurge.c: Likewise.
47235         * tests/test-freadable.c: Likewise.
47236         * tests/test-freadahead.c: Likewise.
47237         * tests/test-freading.c: Likewise.
47238         * tests/test-freopen.c: Likewise.
47239         * tests/test-frexp.c: Likewise.
47240         * tests/test-frexpl.c: Likewise.
47241         * tests/test-fseek.c: Likewise.
47242         * tests/test-fseeko.c: Likewise.
47243         * tests/test-fseterr.c: Likewise.
47244         * tests/test-fstrcmp.c: Likewise.
47245         * tests/test-ftell.c: Likewise.
47246         * tests/test-ftello.c: Likewise.
47247         * tests/test-fwritable.c: Likewise.
47248         * tests/test-fwriting.c: Likewise.
47249         * tests/test-getaddrinfo.c: Likewise.
47250         * tests/test-getpass.c: Likewise.
47251         * tests/test-gettimeofday.c: Likewise.
47252         * tests/test-hmac-md5.c: Likewise.
47253         * tests/test-hmac-sha1.c: Likewise.
47254         * tests/test-iconv.c: Likewise.
47255         * tests/test-iconvme.c: Likewise.
47256         * tests/test-inttypes.c: Likewise.
47257         * tests/test-isnan.c: Likewise.
47258         * tests/test-isnanf.c: Likewise.
47259         * tests/test-isnanl-nolibm.c: Likewise.
47260         * tests/test-isnanl.c: Likewise.
47261         * tests/test-isnanl.h: Likewise.
47262         * tests/test-ldexpl.c: Likewise.
47263         * tests/test-linked_list.c: Likewise.
47264         * tests/test-linkedhash_list.c: Likewise.
47265         * tests/test-locale.c: Likewise.
47266         * tests/test-localename.c: Likewise.
47267         * tests/test-lock.c: Likewise.
47268         * tests/test-lseek.c: Likewise.
47269         * tests/test-malloca.c: Likewise.
47270         * tests/test-math.c: Likewise.
47271         * tests/test-mbscasecmp.c: Likewise.
47272         * tests/test-mbscasestr1.c: Likewise.
47273         * tests/test-mbscasestr2.c: Likewise.
47274         * tests/test-mbscasestr3.c: Likewise.
47275         * tests/test-mbscasestr4.c: Likewise.
47276         * tests/test-mbschr.c: Likewise.
47277         * tests/test-mbscspn.c: Likewise.
47278         * tests/test-mbsncasecmp.c: Likewise.
47279         * tests/test-mbspbrk.c: Likewise.
47280         * tests/test-mbspcasecmp.c: Likewise.
47281         * tests/test-mbsrchr.c: Likewise.
47282         * tests/test-mbsspn.c: Likewise.
47283         * tests/test-mbsstr1.c: Likewise.
47284         * tests/test-mbsstr2.c: Likewise.
47285         * tests/test-mbsstr3.c: Likewise.
47286         * tests/test-md5.c: Likewise.
47287         * tests/test-memmem.c: Likewise.
47288         * tests/test-netinet_in.c: Likewise.
47289         * tests/test-open.c: Likewise.
47290         * tests/test-printf-frexp.c: Likewise.
47291         * tests/test-printf-frexpl.c: Likewise.
47292         * tests/test-printf-posix.c: Likewise.
47293         * tests/test-printf-posix.h: Likewise.
47294         * tests/test-rbtree_list.c: Likewise.
47295         * tests/test-rbtree_oset.c: Likewise.
47296         * tests/test-rbtreehash_list.c: Likewise.
47297         * tests/test-read-file.c: Likewise.
47298         * tests/test-rijndael.c: Likewise.
47299         * tests/test-search.c: Likewise.
47300         * tests/test-signbit.c: Likewise.
47301         * tests/test-sleep.c: Likewise.
47302         * tests/test-snprintf-posix.c: Likewise.
47303         * tests/test-snprintf-posix.h: Likewise.
47304         * tests/test-snprintf.c: Likewise.
47305         * tests/test-sprintf-posix.c: Likewise.
47306         * tests/test-sprintf-posix.h: Likewise.
47307         * tests/test-stat-time.c: Likewise.
47308         * tests/test-stdbool.c: Likewise.
47309         * tests/test-stdint.c: Likewise.
47310         * tests/test-stdio.c: Likewise.
47311         * tests/test-stdlib.c: Likewise.
47312         * tests/test-stpncpy.c: Likewise.
47313         * tests/test-strcasestr.c: Likewise.
47314         * tests/test-striconv.c: Likewise.
47315         * tests/test-striconveh.c: Likewise.
47316         * tests/test-striconveha.c: Likewise.
47317         * tests/test-string.c: Likewise.
47318         * tests/test-sys_select.c: Likewise.
47319         * tests/test-sys_socket.c: Likewise.
47320         * tests/test-sys_stat.c: Likewise.
47321         * tests/test-sys_time.c: Likewise.
47322         * tests/test-sysexits.c: Likewise.
47323         * tests/test-time.c: Likewise.
47324         * tests/test-tls.c: Likewise.
47325         * tests/test-trunc.c: Likewise.
47326         * tests/test-truncf.c: Likewise.
47327         * tests/test-truncl.c: Likewise.
47328         * tests/test-unistd.c: Likewise.
47329         * tests/test-vasnprintf-posix.c: Likewise.
47330         * tests/test-vasnprintf-posix2.c: Likewise.
47331         * tests/test-vasnprintf.c: Likewise.
47332         * tests/test-vasprintf-posix.c: Likewise.
47333         * tests/test-vasprintf.c: Likewise.
47334         * tests/test-verify.c: Likewise.
47335         * tests/test-vfprintf-posix.c: Likewise.
47336         * tests/test-vprintf-posix.c: Likewise.
47337         * tests/test-vsnprintf-posix.c: Likewise.
47338         * tests/test-vsnprintf.c: Likewise.
47339         * tests/test-vsprintf-posix.c: Likewise.
47340         * tests/test-wchar.c: Likewise.
47341         * tests/test-wctype.c: Likewise.
47342         * tests/test-wcwidth.c: Likewise.
47343         * tests/test-xstrtol.c: Likewise.
47344         * tests/test-xvasprintf.c: Likewise.
47345         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47346         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47347         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47348         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47349         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47350         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47351         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47352         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47353         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47354         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47355         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47356         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47357         * tests/uniname/test-uninames.c: Likewise.
47358         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47359         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47360         * tests/unistdio/test-u16-printf1.h: Likewise.
47361         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47362         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47363         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47364         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47365         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47366         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47367         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47368         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47369         * tests/unistdio/test-u32-printf1.h: Likewise.
47370         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47371         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47372         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47373         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47374         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47375         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47376         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47377         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47378         * tests/unistdio/test-u8-printf1.h: Likewise.
47379         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47380         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47381         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47382         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47383         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47384         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47385         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47386         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47387         * tests/unistdio/test-ulc-printf1.h: Likewise.
47388         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47389         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47390         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47391         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47392         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47393         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47394         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47395         * tests/uniwidth/test-u16-width.c: Likewise.
47396         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47397         * tests/uniwidth/test-u32-width.c: Likewise.
47398         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47399         * tests/uniwidth/test-u8-width.c: Likewise.
47400         * tests/uniwidth/test-uc_width.c: Likewise.
47401         * config/srclist-update: Likewise.
47402         (fixlicense): Update to GPLv3+.
47403
47404         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47405         * tests/test-tsearch.c: Change copyright notice.
47406
47407         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47408         * lib/c-strcaseeq.h: Change copyright notice.
47409         * lib/streq.h: Likewise.
47410         * lib/uniconv.h: Likewise.
47411         * lib/uniconv/u-conv-from-enc.h: Likewise.
47412         * lib/uniconv/u-conv-to-enc.h: Likewise.
47413         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47414         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47415         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47416         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47417         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47418         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47419         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47420         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47421         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47422         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47423         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47424         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47425         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47426         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47427         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47428         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47429         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47430         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47431         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47432         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47433         * lib/uniname.h: Likewise.
47434         * lib/uniname/uniname.c: Likewise.
47435         * lib/unistdio.h: Likewise.
47436         * lib/unistdio/u-asnprintf.h: Likewise.
47437         * lib/unistdio/u-asprintf.h: Likewise.
47438         * lib/unistdio/u-printf-args.c: Likewise.
47439         * lib/unistdio/u-printf-args.h: Likewise.
47440         * lib/unistdio/u-printf-parse.h: Likewise.
47441         * lib/unistdio/u-snprintf.h: Likewise.
47442         * lib/unistdio/u-sprintf.h: Likewise.
47443         * lib/unistdio/u-vasprintf.h: Likewise.
47444         * lib/unistdio/u-vsnprintf.h: Likewise.
47445         * lib/unistdio/u-vsprintf.h: Likewise.
47446         * lib/unistdio/u16-asnprintf.c: Likewise.
47447         * lib/unistdio/u16-asprintf.c: Likewise.
47448         * lib/unistdio/u16-printf-parse.c: Likewise.
47449         * lib/unistdio/u16-snprintf.c: Likewise.
47450         * lib/unistdio/u16-sprintf.c: Likewise.
47451         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47452         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47453         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47454         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47455         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47456         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47457         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47458         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47459         * lib/unistdio/u16-vasnprintf.c: Likewise.
47460         * lib/unistdio/u16-vasprintf.c: Likewise.
47461         * lib/unistdio/u16-vsnprintf.c: Likewise.
47462         * lib/unistdio/u16-vsprintf.c: Likewise.
47463         * lib/unistdio/u32-asnprintf.c: Likewise.
47464         * lib/unistdio/u32-asprintf.c: Likewise.
47465         * lib/unistdio/u32-printf-parse.c: Likewise.
47466         * lib/unistdio/u32-snprintf.c: Likewise.
47467         * lib/unistdio/u32-sprintf.c: Likewise.
47468         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47469         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47470         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47471         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47472         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47473         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47474         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47475         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47476         * lib/unistdio/u32-vasnprintf.c: Likewise.
47477         * lib/unistdio/u32-vasprintf.c: Likewise.
47478         * lib/unistdio/u32-vsnprintf.c: Likewise.
47479         * lib/unistdio/u32-vsprintf.c: Likewise.
47480         * lib/unistdio/u8-asnprintf.c: Likewise.
47481         * lib/unistdio/u8-asprintf.c: Likewise.
47482         * lib/unistdio/u8-printf-parse.c: Likewise.
47483         * lib/unistdio/u8-snprintf.c: Likewise.
47484         * lib/unistdio/u8-sprintf.c: Likewise.
47485         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47486         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47487         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47488         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47489         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47490         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47491         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47492         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47493         * lib/unistdio/u8-vasnprintf.c: Likewise.
47494         * lib/unistdio/u8-vasprintf.c: Likewise.
47495         * lib/unistdio/u8-vsnprintf.c: Likewise.
47496         * lib/unistdio/u8-vsprintf.c: Likewise.
47497         * lib/unistdio/ulc-asnprintf.c: Likewise.
47498         * lib/unistdio/ulc-asprintf.c: Likewise.
47499         * lib/unistdio/ulc-printf-parse.c: Likewise.
47500         * lib/unistdio/ulc-snprintf.c: Likewise.
47501         * lib/unistdio/ulc-sprintf.c: Likewise.
47502         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47503         * lib/unistdio/ulc-vasprintf.c: Likewise.
47504         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47505         * lib/unistdio/ulc-vsprintf.c: Likewise.
47506         * lib/unistr.h: Likewise.
47507         * lib/unistr/u-cpy-alloc.h: Likewise.
47508         * lib/unistr/u-cpy.h: Likewise.
47509         * lib/unistr/u-endswith.h: Likewise.
47510         * lib/unistr/u-move.h: Likewise.
47511         * lib/unistr/u-set.h: Likewise.
47512         * lib/unistr/u-startswith.h: Likewise.
47513         * lib/unistr/u-stpcpy.h: Likewise.
47514         * lib/unistr/u-stpncpy.h: Likewise.
47515         * lib/unistr/u-strcat.h: Likewise.
47516         * lib/unistr/u-strcpy.h: Likewise.
47517         * lib/unistr/u-strcspn.h: Likewise.
47518         * lib/unistr/u-strdup.h: Likewise.
47519         * lib/unistr/u-strlen.h: Likewise.
47520         * lib/unistr/u-strncat.h: Likewise.
47521         * lib/unistr/u-strncpy.h: Likewise.
47522         * lib/unistr/u-strnlen.h: Likewise.
47523         * lib/unistr/u-strpbrk.h: Likewise.
47524         * lib/unistr/u-strspn.h: Likewise.
47525         * lib/unistr/u-strstr.h: Likewise.
47526         * lib/unistr/u-strtok.h: Likewise.
47527         * lib/unistr/u16-check.c: Likewise.
47528         * lib/unistr/u16-chr.c: Likewise.
47529         * lib/unistr/u16-cmp.c: Likewise.
47530         * lib/unistr/u16-cpy-alloc.c: Likewise.
47531         * lib/unistr/u16-cpy.c: Likewise.
47532         * lib/unistr/u16-endswith.c: Likewise.
47533         * lib/unistr/u16-mblen.c: Likewise.
47534         * lib/unistr/u16-mbsnlen.c: Likewise.
47535         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47536         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47537         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47538         * lib/unistr/u16-mbtouc.c: Likewise.
47539         * lib/unistr/u16-mbtoucr.c: Likewise.
47540         * lib/unistr/u16-move.c: Likewise.
47541         * lib/unistr/u16-next.c: Likewise.
47542         * lib/unistr/u16-prev.c: Likewise.
47543         * lib/unistr/u16-set.c: Likewise.
47544         * lib/unistr/u16-startswith.c: Likewise.
47545         * lib/unistr/u16-stpcpy.c: Likewise.
47546         * lib/unistr/u16-stpncpy.c: Likewise.
47547         * lib/unistr/u16-strcat.c: Likewise.
47548         * lib/unistr/u16-strchr.c: Likewise.
47549         * lib/unistr/u16-strcmp.c: Likewise.
47550         * lib/unistr/u16-strcpy.c: Likewise.
47551         * lib/unistr/u16-strcspn.c: Likewise.
47552         * lib/unistr/u16-strdup.c: Likewise.
47553         * lib/unistr/u16-strlen.c: Likewise.
47554         * lib/unistr/u16-strmblen.c: Likewise.
47555         * lib/unistr/u16-strmbtouc.c: Likewise.
47556         * lib/unistr/u16-strncat.c: Likewise.
47557         * lib/unistr/u16-strncmp.c: Likewise.
47558         * lib/unistr/u16-strncpy.c: Likewise.
47559         * lib/unistr/u16-strnlen.c: Likewise.
47560         * lib/unistr/u16-strpbrk.c: Likewise.
47561         * lib/unistr/u16-strrchr.c: Likewise.
47562         * lib/unistr/u16-strspn.c: Likewise.
47563         * lib/unistr/u16-strstr.c: Likewise.
47564         * lib/unistr/u16-strtok.c: Likewise.
47565         * lib/unistr/u16-to-u32.c: Likewise.
47566         * lib/unistr/u16-to-u8.c: Likewise.
47567         * lib/unistr/u16-uctomb-aux.c: Likewise.
47568         * lib/unistr/u16-uctomb.c: Likewise.
47569         * lib/unistr/u32-check.c: Likewise.
47570         * lib/unistr/u32-chr.c: Likewise.
47571         * lib/unistr/u32-cmp.c: Likewise.
47572         * lib/unistr/u32-cpy-alloc.c: Likewise.
47573         * lib/unistr/u32-cpy.c: Likewise.
47574         * lib/unistr/u32-endswith.c: Likewise.
47575         * lib/unistr/u32-mblen.c: Likewise.
47576         * lib/unistr/u32-mbsnlen.c: Likewise.
47577         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47578         * lib/unistr/u32-mbtouc.c: Likewise.
47579         * lib/unistr/u32-mbtoucr.c: Likewise.
47580         * lib/unistr/u32-move.c: Likewise.
47581         * lib/unistr/u32-next.c: Likewise.
47582         * lib/unistr/u32-prev.c: Likewise.
47583         * lib/unistr/u32-set.c: Likewise.
47584         * lib/unistr/u32-startswith.c: Likewise.
47585         * lib/unistr/u32-stpcpy.c: Likewise.
47586         * lib/unistr/u32-stpncpy.c: Likewise.
47587         * lib/unistr/u32-strcat.c: Likewise.
47588         * lib/unistr/u32-strchr.c: Likewise.
47589         * lib/unistr/u32-strcmp.c: Likewise.
47590         * lib/unistr/u32-strcpy.c: Likewise.
47591         * lib/unistr/u32-strcspn.c: Likewise.
47592         * lib/unistr/u32-strdup.c: Likewise.
47593         * lib/unistr/u32-strlen.c: Likewise.
47594         * lib/unistr/u32-strmblen.c: Likewise.
47595         * lib/unistr/u32-strmbtouc.c: Likewise.
47596         * lib/unistr/u32-strncat.c: Likewise.
47597         * lib/unistr/u32-strncmp.c: Likewise.
47598         * lib/unistr/u32-strncpy.c: Likewise.
47599         * lib/unistr/u32-strnlen.c: Likewise.
47600         * lib/unistr/u32-strpbrk.c: Likewise.
47601         * lib/unistr/u32-strrchr.c: Likewise.
47602         * lib/unistr/u32-strspn.c: Likewise.
47603         * lib/unistr/u32-strstr.c: Likewise.
47604         * lib/unistr/u32-strtok.c: Likewise.
47605         * lib/unistr/u32-to-u16.c: Likewise.
47606         * lib/unistr/u32-to-u8.c: Likewise.
47607         * lib/unistr/u32-uctomb.c: Likewise.
47608         * lib/unistr/u8-check.c: Likewise.
47609         * lib/unistr/u8-chr.c: Likewise.
47610         * lib/unistr/u8-cmp.c: Likewise.
47611         * lib/unistr/u8-cpy-alloc.c: Likewise.
47612         * lib/unistr/u8-cpy.c: Likewise.
47613         * lib/unistr/u8-endswith.c: Likewise.
47614         * lib/unistr/u8-mblen.c: Likewise.
47615         * lib/unistr/u8-mbsnlen.c: Likewise.
47616         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47617         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47618         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47619         * lib/unistr/u8-mbtouc.c: Likewise.
47620         * lib/unistr/u8-mbtoucr.c: Likewise.
47621         * lib/unistr/u8-move.c: Likewise.
47622         * lib/unistr/u8-next.c: Likewise.
47623         * lib/unistr/u8-prev.c: Likewise.
47624         * lib/unistr/u8-set.c: Likewise.
47625         * lib/unistr/u8-startswith.c: Likewise.
47626         * lib/unistr/u8-stpcpy.c: Likewise.
47627         * lib/unistr/u8-stpncpy.c: Likewise.
47628         * lib/unistr/u8-strcat.c: Likewise.
47629         * lib/unistr/u8-strchr.c: Likewise.
47630         * lib/unistr/u8-strcmp.c: Likewise.
47631         * lib/unistr/u8-strcpy.c: Likewise.
47632         * lib/unistr/u8-strcspn.c: Likewise.
47633         * lib/unistr/u8-strdup.c: Likewise.
47634         * lib/unistr/u8-strlen.c: Likewise.
47635         * lib/unistr/u8-strmblen.c: Likewise.
47636         * lib/unistr/u8-strmbtouc.c: Likewise.
47637         * lib/unistr/u8-strncat.c: Likewise.
47638         * lib/unistr/u8-strncmp.c: Likewise.
47639         * lib/unistr/u8-strncpy.c: Likewise.
47640         * lib/unistr/u8-strnlen.c: Likewise.
47641         * lib/unistr/u8-strpbrk.c: Likewise.
47642         * lib/unistr/u8-strrchr.c: Likewise.
47643         * lib/unistr/u8-strspn.c: Likewise.
47644         * lib/unistr/u8-strstr.c: Likewise.
47645         * lib/unistr/u8-strtok.c: Likewise.
47646         * lib/unistr/u8-to-u16.c: Likewise.
47647         * lib/unistr/u8-to-u32.c: Likewise.
47648         * lib/unistr/u8-uctomb-aux.c: Likewise.
47649         * lib/unistr/u8-uctomb.c: Likewise.
47650         * lib/unitypes.h: Likewise.
47651         * lib/uniwidth.h: Likewise.
47652         * lib/uniwidth/cjk.h: Likewise.
47653         * lib/uniwidth/u16-strwidth.c: Likewise.
47654         * lib/uniwidth/u16-width.c: Likewise.
47655         * lib/uniwidth/u32-strwidth.c: Likewise.
47656         * lib/uniwidth/u32-width.c: Likewise.
47657         * lib/uniwidth/u8-strwidth.c: Likewise.
47658         * lib/uniwidth/u8-width.c: Likewise.
47659         * lib/uniwidth/width.c: Likewise.
47660
47661 2007-10-07  Bruno Haible  <bruno@clisp.org>
47662
47663         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47664         The file is still under LGPL (see modules/inttypes).
47665
47666 2007-10-06  Bruno Haible  <bruno@clisp.org>
47667
47668         * modules/trunc (Dependencies): Add 'extensions'.
47669         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47670         Reported by Ben Pfaff <blp@gnu.org>.
47671
47672 2007-10-06  Bruno Haible  <bruno@clisp.org>
47673
47674         * modules/freopen-tests: New file.
47675         * tests/test-freopen.c: New file.
47676
47677         * modules/fopen-tests: New file.
47678         * tests/test-fopen.c: New file.
47679
47680         * modules/fopen: New file.
47681         * lib/fopen.c: New file.
47682         * m4/fopen.m4: New file.
47683         * modules/freopen: New file.
47684         * lib/freopen.c: New file.
47685         * m4/freopen.m4: New file.
47686         * lib/stdio.in.h (fopen, freopen): New declarations.
47687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47688         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47689         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47690         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47691         * doc/functions/fopen.texi: Mention the 'fopen' module.
47692         * doc/functions/freopen.texi: Mention the 'freopen' module.
47693
47694 2007-10-06  Bruno Haible  <bruno@clisp.org>
47695
47696         * modules/open-tests: New file.
47697         * tests/test-open.c: New file.
47698
47699         * modules/open: New file.
47700         * lib/open.c: New file.
47701         * m4/open.m4: New file.
47702         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47703         lib/open.c does.
47704         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47705         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47706         macros.
47707         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47708         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47709         REPLACE_OPEN.
47710         * doc/functions/open.texi: Mention the 'open' module.
47711
47712 2007-10-04  Bruno Haible  <bruno@clisp.org>
47713
47714         * modules/ceill-tests: New file.
47715         * tests/test-ceill.c: New file.
47716
47717         * modules/ceill: New file.
47718         * lib/ceill.c: Replace entire file.
47719         * m4/ceill.m4: New file.
47720         * lib/math.in.h (ceill): Replace declaration.
47721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47722         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47723         * doc/functions/ceill.texi: Mention the 'ceill' module.
47724         * modules/mathl (Files): Remove lib/ceill.c.
47725         (Depends-on): Add ceill.
47726
47727 2007-10-04  Bruno Haible  <bruno@clisp.org>
47728
47729         * modules/ceilf-tests: New file.
47730         * tests/test-ceilf.c: New file.
47731
47732         * modules/ceilf: New file.
47733         * lib/ceil.c: New file.
47734         * lib/ceilf.c: New file.
47735         * m4/ceilf.m4: New file.
47736         * lib/math.in.h (ceilf): New declaration.
47737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47738         HAVE_DECL_CEILF.
47739         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47740         HAVE_DECL_CEILF.
47741         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47742
47743 2007-10-04  Bruno Haible  <bruno@clisp.org>
47744
47745         * modules/floorl-tests: New file.
47746         * tests/test-floorl.c: New file.
47747
47748         * modules/floorl: New file.
47749         * lib/floorl.c: Replace entire file.
47750         * m4/floorl.m4: New file.
47751         * lib/math.in.h (floorl): Replace declaration.
47752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47753         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47754         * doc/functions/floorl.texi: Mention the 'floorl' module.
47755         * modules/mathl (Files): Remove lib/floorl.c.
47756         (Depends-on): Add floorl.
47757
47758 2007-10-04  Bruno Haible  <bruno@clisp.org>
47759
47760         * modules/floorf-tests: New file.
47761         * tests/test-floorf.c: New file.
47762
47763         * modules/floorf: New file.
47764         * lib/floor.c: New file.
47765         * lib/floorf.c: New file.
47766         * m4/floorf.m4: New file.
47767         * lib/math.in.h (floorf): New declaration.
47768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47769         HAVE_DECL_FLOORF.
47770         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47771         HAVE_DECL_FLOORF.
47772         * doc/functions/floorf.texi: Mention the 'floorf' module.
47773
47774 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47775             Bruno Haible  <bruno@clisp.org>
47776
47777         Advertise for the Git server instead of the CVS server.
47778         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47779         repository instead of the CVS one.
47780         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47781         about all VCS systems generically.
47782         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47783
47784 2007-10-04  Bruno Haible  <bruno@clisp.org>
47785
47786         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47787         means.
47788         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47789
47790 2007-10-04  Bruno Haible  <bruno@clisp.org>
47791
47792         * modules/truncl-tests: New file.
47793         * tests/test-truncl.c: New file.
47794
47795         * modules/truncl: New file.
47796         * lib/truncl.c: New file.
47797         * m4/truncl.m4: New file.
47798         * lib/math.in.h (truncl): New declaration.
47799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47800         HAVE_DECL_TRUNCL.
47801         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47802         HAVE_DECL_TRUNCL.
47803         * doc/functions/truncl.texi: Mention the 'truncl' module.
47804
47805 2007-10-04  Bruno Haible  <bruno@clisp.org>
47806
47807         * modules/truncf-tests: New file.
47808         * tests/test-truncf.c: New file.
47809
47810         * modules/truncf: New file.
47811         * lib/trunc.c: Make paramerizable through USE_* macros.
47812         * lib/truncf.c: New file.
47813         * m4/truncf.m4: New file.
47814         * lib/math.in.h (truncf): New declaration.
47815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47816         HAVE_DECL_TRUNCF.
47817         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47818         HAVE_DECL_TRUNCF.
47819         * doc/functions/truncf.texi: Mention the 'truncf' module.
47820
47821 2007-10-03  Bruno Haible  <bruno@clisp.org>
47822
47823         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47824         augmentation also for tests modules.
47825         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47826         * modules/atexit-tests (Makefile.am): Likewise.
47827         * modules/binary-io-tests (Makefile.am): Likewise.
47828         * modules/c-strcase-tests (Makefile.am): Likewise.
47829         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47830         * modules/canonicalize-tests (Makefile.am): Likewise.
47831         * modules/closein-tests (Makefile.am): Likewise.
47832         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47833         * modules/freadahead-tests (Makefile.am): Likewise.
47834         * modules/fseek-tests (Makefile.am): Likewise.
47835         * modules/fseeko-tests (Makefile.am): Likewise.
47836         * modules/ftell-tests (Makefile.am): Likewise.
47837         * modules/ftello-tests (Makefile.am): Likewise.
47838         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47839         * modules/isnanl-tests (Makefile.am): Likewise.
47840         * modules/lseek-tests (Makefile.am): Likewise.
47841         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47842         * modules/mbscasestr-tests (Makefile.am): Likewise.
47843         * modules/mbschr-tests (Makefile.am): Likewise.
47844         * modules/mbscspn-tests (Makefile.am): Likewise.
47845         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47846         * modules/mbspbrk-tests (Makefile.am): Likewise.
47847         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47848         * modules/mbsrchr-tests (Makefile.am): Likewise.
47849         * modules/mbsspn-tests (Makefile.am): Likewise.
47850         * modules/mbsstr-tests (Makefile.am): Likewise.
47851         * modules/printf-posix-tests (Makefile.am): Likewise.
47852         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47853         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47854         * modules/tsearch-tests (Makefile.am): Likewise.
47855         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47856         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47857         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47858         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47859         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47860         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47861         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47862         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47863         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47864         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47865         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47866         * modules/xstrtol-tests (Makefile.am): Likewise.
47867         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47868         * modules/yesno-tests (Makefile.am): Likewise.
47869
47870 2007-10-03  Bruno Haible  <bruno@clisp.org>
47871
47872         * modules/trunc-tests: New file.
47873         * tests/test-trunc.c: New file.
47874
47875         * modules/trunc: New file.
47876         * lib/trunc.c: New file.
47877         * m4/trunc.m4: New file.
47878         * lib/math.in.h (trunc): New declaration.
47879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47880         HAVE_DECL_TRUNC.
47881         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47882         HAVE_DECL_TRUNC.
47883         * doc/functions/trunc.texi: Mention the 'trunc' module.
47884
47885 2007-10-03  Bruno Haible  <bruno@clisp.org>
47886
47887         * tests/test-fpending.c: New file, mostly copied
47888         from coreutils/lib/t-fpending.c.
47889         * modules/fpending-tests: New file.
47890
47891 2007-10-03  Bruno Haible  <bruno@clisp.org>
47892
47893         Port the stdio extensions to QNX (untested).
47894         * lib/fseterr.c (fseterr): Add support for QNX.
47895         * lib/fbufmode.c (fbufmode): Likewise.
47896         * lib/freadable.c (freadable): Likewise.
47897         * lib/fwritable.c (fwritable): Likewise.
47898         * lib/freading.c (freading): Likewise.
47899         * lib/fwriting.c (fwriting): Likewise.
47900         * lib/freadahead.c (freadahed): Likewise.
47901         * lib/fpurge.c (fpurge): Likewise.
47902         * lib/fseeko.c (rpl_fseeko): Likewise.
47903
47904 2007-10-03  Bruno Haible  <bruno@clisp.org>
47905             Jim Meyering  <jim@meyering.net>
47906             Eric Blake  <ebb9@byu.net>
47907
47908         * doc/relocatable.texi: Use @command instead of @program.
47909
47910 2007-10-02  Jim Meyering  <jim@meyering.net>
47911
47912         Perform one more "_.h" -> ".in.h" substitution.
47913         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47914         instead of unistd_.h here, too.
47915
47916 2007-10-01  Bruno Haible  <bruno@clisp.org>
47917
47918         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47919         Needed for the alloca-opt module.
47920
47921 2007-09-30  Bruno Haible  <bruno@clisp.org>
47922
47923         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47924         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47925         alloca_.h.
47926         * lib/argz.in.h: Renamed from lib/argz_.h.
47927         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47928         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47929         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47930         byteswap_.h.
47931         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47932         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47933         dirent_.h.
47934         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47935         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47936         fcntl_.h.
47937         * lib/float.in.h: Renamed from lib/float_.h.
47938         * modules/float (Files, Makefile.am): Use float.in.h instead of
47939         float_.h.
47940         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47941         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47942         fnmatch_.h.
47943         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47944         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47945         getopt_.h.
47946         * lib/glob.in.h: Renamed from lib/glob_.h.
47947         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47948         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47949         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47950         iconv_.h.
47951         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47952         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47953         inttypes_.h.
47954         * lib/locale.in.h: Renamed from lib/locale_.h.
47955         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47956         locale_.h.
47957         * lib/math.in.h: Renamed from lib/math_.h.
47958         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47959         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47960         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47961         of netinet_in_.h. Add dependency.
47962         * lib/poll.in.h: Renamed from lib/poll_.h.
47963         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47964         * lib/search.in.h: Renamed from lib/search_.h.
47965         * modules/search (Files, Makefile.am): Use search.in.h instead of
47966         search_.h.
47967         * lib/signal.in.h: Renamed from lib/signal_.h.
47968         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47969         _signal.h.
47970         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47971         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47972         stdbool_.h.
47973         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47974         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47975         stdint_.h.
47976         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47977         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47978         stdio_.h.
47979         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47980         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47981         stdlib_.h.
47982         * lib/string.in.h: Renamed from lib/string_.h.
47983         * modules/string (Files, Makefile.am): Use string.in.h instead of
47984         string_.h.
47985         * doc/gnulib-tool.texi (Initial import): Update.
47986         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47987         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47988         of sys_select_.h. Add dependency.
47989         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47990         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47991         of sys_socket_.h.
47992         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47993         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47994         sys_stat_.h.
47995         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47996         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47997         sys_time_.h.
47998         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47999         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
48000         sysexits_.h.
48001         * lib/time.in.h: Renamed from lib/time_.h.
48002         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
48003         * lib/unistd.in.h: Renamed from lib/unistd_.h.
48004         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
48005         unistd_.h.
48006         * lib/wchar.in.h: Renamed from lib/wchar_.h.
48007         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
48008         wchar_.h.
48009         * lib/wctype.in.h: Renamed from lib/wctype_.h.
48010         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
48011         wctype_.h.
48012         * build-aux/bootstrap (slurp): Update.
48013         * lib/.cppi-disable: Update.
48014
48015 2007-09-30  Bruno Haible  <bruno@clisp.org>
48016
48017         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
48018         Needed on BeOS.
48019
48020 2007-09-30  Bruno Haible  <bruno@clisp.org>
48021
48022         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
48023
48024 2007-09-29  Bruno Haible  <bruno@clisp.org>
48025
48026         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
48027
48028 2007-09-29  Bruno Haible  <bruno@clisp.org>
48029
48030         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
48031         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
48032         * build-aux/install-reloc: Compile also areadlink.c.
48033         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
48034
48035 2007-09-29  Bruno Haible  <bruno@clisp.org>
48036
48037         * gnulib-tool (func_emit_initmacro_done): Indentation.
48038
48039 2007-09-29  Bruno Haible  <bruno@clisp.org>
48040
48041         * README: Add CVS checkout update instructions.
48042         Info from Bob Proulx <bob@proulx.com>.
48043
48044 2007-09-28  Eric Blake  <ebb9@byu.net>
48045
48046         Provide move-if-change.
48047         * build-aux/move-if-change: New file, based on best practice
48048         rather than any canonical upstream location.
48049
48050 2007-09-28  Jim Meyering  <jim@meyering.net>
48051
48052         Fix canonicalize loop-detection corner case.
48053         Do not attempt to stat the symlink values stored via seen_triple.
48054         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
48055         on linux-2.6.18, (but not 2.6.22).
48056         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
48057         triple_compare.  The former compares dev,ino,filename, while the latter
48058         would actually stat dirname(filename) when dev and ino were equal.
48059         * lib/hash-triple.c: Install <string.h>.
48060         (STREQ): Define.
48061         (triple_compare_ino_str): New function.
48062         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
48063
48064 2007-09-28  Eric Blake  <ebb9@byu.net>
48065
48066         Enforce that AC_REPLACE_FUNCS files exist.
48067         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
48068         override check for typos.
48069
48070         Fix test-closein on Solaris 10.
48071         * tests/test-closein.c (main): Don't assume stdin can be inherited
48072         closed on all systems.
48073         * tests/test-closein.sh: Likewise.
48074         Reported by Piotr Tarnowski.
48075
48076 2007-09-28  Jim Meyering  <jim@meyering.net>
48077
48078         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
48079
48080 2007-09-27  Jim Meyering  <jim@meyering.net>
48081
48082         canonicalize: Avoid a false-positive cycle failure.
48083         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
48084         Sort.  Remove cycle-check.
48085         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
48086         not cycle-check.h.
48087         (seen_triple): New function.
48088         (canonicalize_filename_mode): Use it instead of cycle-check.
48089         * tests/test-canonicalize.c: Add a test for this bug.
48090         * tests/test-canonicalize.sh: Set up and run the test.
48091
48092         New module, file-set, from coreutils.
48093         * modules/file-set: Define it.
48094         * lib/file-set.c, lib/file-set.h: Implement.
48095
48096         New module, hash-triple, from coreutils.
48097         * modules/hash-triple: Define it.
48098         * lib/hash-triple.c, lib/hash-triple.h: Implement.
48099
48100 2007-09-25  Eric Blake  <ebb9@byu.net>
48101
48102         Fix strerror on Interix.
48103         * lib/string_.h (strerror): Declare replacement.
48104         * doc/functions/strerror.texi (strerror): Document the Interix
48105         shortcoming.
48106         * modules/string (Makefile.am): Support new hooks.
48107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
48108         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
48109         gl_FUNC_STRERROR_SEPARATE.
48110         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
48111         * lib/strerror.c (rpl_strerror): Provide replacement.
48112         * modules/strerror (Depends-on): Add string.
48113         (configure.ac): Detect use of module.
48114         * tests/test-strerror.c: New file.
48115         * modules/strerror-tests: New test module.
48116         * modules/argp (Depends-on): Add strerror.
48117         * modules/error (Depends-on): Likewise.
48118         Reported by Martin Koeppe.
48119
48120 2007-09-24  Bruno Haible  <bruno@clisp.org>
48121
48122         * README: Update git instructions.
48123
48124 2007-09-24  Eric Blake  <ebb9@byu.net>
48125
48126         Revert fpending breakage from 2007-09-08.
48127         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
48128         __fpending.c.
48129
48130 2007-09-24  Jim Meyering  <jim@meyering.net>
48131
48132         filenamecat.c: Add a test.
48133         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
48134         showing how the function works when DIR is the empty string.
48135
48136 2007-09-21  Simon Josefsson  <simon@josefsson.org>
48137
48138         * tests/test-canonicalize.sh: Turn on executable bit.
48139
48140 2007-09-19  Eric Blake  <ebb9@byu.net>
48141
48142         * README: Update CVS instructions.
48143
48144 2007-09-18  Bruno Haible  <bruno@clisp.org>
48145
48146         * modules/areadlink: New file.
48147         * lib/areadlink.h (areadlink): New declaration.
48148         * lib/areadlink.c: New file, based on lib/xreadlink.c.
48149
48150 2007-09-17  Jim Meyering  <jim@meyering.net>
48151
48152         * lib/savewd.c (ESTALE) [!defined]: Define.
48153         Reported to be required on Interix by Martin Koeppe.
48154
48155 2007-09-17  Bruno Haible  <bruno@clisp.org>
48156
48157         * gnulib-tool (func_version): Use $version.
48158
48159 2007-09-16  Bruno Haible  <bruno@clisp.org>
48160
48161         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
48162         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
48163         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
48164         Reported by Greg Schafer <gschafer@zip.com.au>.
48165
48166 2007-09-15  Bruno Haible  <bruno@clisp.org>
48167
48168         * gnulib-tool (sed): Try a little harder to make bash understand the
48169         alias.
48170         Reported by Bruce Korb <bruce.korb@gmail.com>.
48171
48172 2007-09-13  Eric Blake  <ebb9@byu.net>
48173
48174         * ChangeLog: Remove conflict markers.
48175
48176 2007-09-13  Simon Josefsson  <simon@josefsson.org>
48177
48178         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
48179         Reported by Bruno Haible <bruno@clisp.org>.
48180
48181 2007-09-12  Bruno Haible  <bruno@clisp.org>
48182
48183         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
48184         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
48185         is not defined.
48186
48187 2007-09-12  Eric Blake  <ebb9@byu.net>
48188
48189         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
48190         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
48191         Autoconf definition.
48192         * modules/euidaccess (Depends-on): Add extensions, for
48193         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
48194         * modules/fnmatch (Depends-on): Likewise.
48195         * modules/getaddrinfo (Depends-on): Likewise.
48196         * modules/getdelim (Depends-on): Likewise.
48197         * modules/getline (Depends-on): Likewise.
48198         * modules/getsubopt (Depends-on): Likewise.
48199         * modules/gettext (Depends-on): Likewise.
48200         * modules/group-member (Depends-on): Likewise.
48201         * modules/mbchar (Depends-on): Likewise.
48202         * modules/memmem (Depends-on): Likewise.
48203         * modules/mempcpy (Depends-on): Likewise.
48204         * modules/memrchr (Depends-on): Likewise.
48205         * modules/pagealign_alloc (Depends-on): Likewise.
48206         * modules/readutmp (Depends-on): Likewise.
48207         * modules/stpcpy (Depends-on): Likewise.
48208         * modules/stpncpy (Depends-on): Likewise.
48209         * modules/strchrnul (Depends-on): Likewise.
48210         * modules/strndup (Depends-on): Likewise.
48211         * modules/strsep (Depends-on): Likewise.
48212         * modules/strverscmp (Depends-on): Likewise.
48213         * modules/vasprintf (Depends-on): Likewise.
48214         * modules/wcwidth (Depends-on): Likewise.
48215         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48216         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48217         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48218         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48219         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48220         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48221         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48222         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48223         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48224         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48225         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48226         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48227         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48228         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48229         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48230         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48231         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48232         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48234         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48235         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48236         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48237         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48238         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48239         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48241         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48242         so that lock.m4 can be used in gettext without extensions module.
48243
48244 2007-09-11  Bruno Haible  <bruno@clisp.org>
48245
48246         * m4/isc-posix.m4: Remove file.
48247         Suggested by Eric Blake.
48248
48249 2007-09-11  Eric Blake  <ebb9@byu.net>
48250
48251         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48252
48253 2007-09-10  Bruno Haible  <bruno@clisp.org>
48254
48255         * posix-modules: Fix typo in error message.
48256         Reported by Matt <mkraai@beckman.com>.
48257
48258 2007-09-09  Bruno Haible  <bruno@clisp.org>
48259
48260         * doc/functions/getdelim.texi: Update list of platforms lacking the
48261         function.
48262         * doc/functions/getline.texi: Likewise.
48263
48264 2007-09-09  Jim Meyering  <jim@meyering.net>
48265
48266         * lib/hash.c (hash_initialize): Detect calloc failure.
48267         Reported by Bruno Haible.
48268
48269 2007-09-09  Bruno Haible  <bruno@clisp.org>
48270
48271         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48272         malloc or realloc fails.
48273
48274 2007-09-09  Bruno Haible  <bruno@clisp.org>
48275
48276         * modules/getcwd (Depends-on): Add malloc-posix.
48277         * modules/glob (Depends-on): Likewise.
48278         * modules/putenv (Depends-on): Likewise.
48279         * modules/strdup (Depends-on): Likewise.
48280         * modules/getdelim (Depends-on): Add realloc-posix.
48281         * modules/read-file (Depends-on): Likewise.
48282
48283 2007-09-09  Bruno Haible  <bruno@clisp.org>
48284
48285         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48286         (gl_FUNC_MALLOC_POSIX): Require it.
48287         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48288         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48289         * modules/realloc (Files): Add m4/malloc.m4.
48290         * modules/calloc (Files): Likewise.
48291
48292 2007-09-09  Bruno Haible  <bruno@clisp.org>
48293
48294         * modules/malloc-posix: New file.
48295         * modules/malloc (Depends-on): Add malloc-posix.
48296         * lib/malloc.c: Include errno.h.
48297         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48298         and a POSIX-compatible malloc into a single function. Set ENOMEM
48299         when returning NULL.
48300         * m4/malloc.m4: New file.
48301         * doc/functions/malloc.texi: Mention the malloc-posix module.
48302         * lib/stdlib_.h (malloc): New declaration.
48303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48304         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48305         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48306         and HAVE_MALLOC_POSIX.
48307
48308 2007-09-09  Bruno Haible  <bruno@clisp.org>
48309
48310         * modules/realloc-posix: New file.
48311         * modules/realloc (Depends-on): Add realloc-posix.
48312         * lib/realloc.c: Include errno.h.
48313         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48314         and a POSIX-compatible realloc into a single function. Set ENOMEM
48315         when returning NULL.
48316         * m4/realloc.m4: New file.
48317         * doc/functions/realloc.texi: Mention the realloc-posix module.
48318         * lib/stdlib_.h (realloc): New declaration.
48319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48320         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48321         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48322         and HAVE_REALLOC_POSIX.
48323
48324 2007-09-09  Bruno Haible  <bruno@clisp.org>
48325
48326         * modules/calloc-posix: New file.
48327         * modules/calloc (Depends-on): Add calloc-posix.
48328         * lib/calloc.c: Include errno.h.
48329         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48330         and a POSIX-compatible calloc into a single function. Set ENOMEM
48331         when returning NULL.
48332         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48333         * doc/functions/calloc.texi: Mention the calloc-posix module.
48334         * lib/stdlib_.h (calloc): New declaration.
48335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48336         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48337         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48338         and HAVE_CALLOC_POSIX.
48339
48340 2007-09-09  Bruno Haible  <bruno@clisp.org>
48341
48342         Allow for modules to show an arbitrary notice.
48343         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48344         * gnulib-tool: New option --extract-notice.
48345         (func_usage): Document it.
48346         (sed_extract_prog): Update.
48347         (func_get_notice): New function.
48348         (func_modules_notice): New function.
48349         (func_import, func_create_testdir): Invoke it.
48350         Suggested by Jim Meyering.
48351
48352 2007-09-09  Bruno Haible  <bruno@clisp.org>
48353
48354         * gnulib-tool: New options --verbose, --quiet.
48355         (func_usage): Document them.
48356         (verbose): New variable.
48357         (func_execute_command): New function.
48358         (func_import): Don't show the module list and the file list if
48359         $verbose < 0.
48360         (func_create_testdir): Likewise. Use func_execute_command.
48361         (func_create_megatestdir): Use func_execute_command.
48362
48363 2007-09-08  Bruno Haible  <bruno@clisp.org>
48364
48365         * gnulib-tool (func_import): Prefer rsync over wget when available,
48366         for fetching the PO files.
48367
48368 2007-09-08  Bruno Haible  <bruno@clisp.org>
48369
48370         * posix-modules: New file. Portions copied from gnulib-tool.
48371         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48372
48373 2007-09-08  Jim Meyering  <jim@meyering.net>
48374
48375         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48376         * lib/fpending.h: Rename from __fpending.h.
48377         * lib/fpending.c: Rename from __fpending.c.
48378         Include "fpending.h", not "__fpending.h".
48379         * lib/__fpending.h, lib/__fpending.c: Remove files.
48380         * modules/fpending (Files): Reflect new file names.
48381         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48382
48383 2007-09-08  Bruno Haible  <bruno@clisp.org>
48384
48385         * m4/inttypes-h.m4: Remove stub file.
48386
48387 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48388
48389         * doc/headers/stdint.texi: Discuss #include_next issue.
48390
48391 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48392
48393         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48394
48395 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48396
48397         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48398         in variable name.
48399
48400 2007-09-03  Jim Meyering  <jim@meyering.net>
48401
48402         New module: git-version-gen.
48403         * modules/git-version-gen: New file.
48404
48405         Import changes from coreutils for bootstrap script.
48406
48407         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48408
48409         bootstrap: uses rsync to download the .po files
48410         * build-aux/bootstrap (po_download_command_format): New global.
48411         (download_po_files): Use rsync.
48412         (update_po_files): Don't remove .po files after download,
48413         so future rsync runs can take advantage of the copies.
48414
48415         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48416
48417         Solve the unnecessary-.po-file-regeneration problem once and for all.
48418         * build-aux/bootstrap (download_po_files): New function, renamed from
48419         get_translations.  Now, downloads, but doesn't update LINGUAS.
48420         (update_po_files): New function.
48421
48422         bootstrap: Ignore more.
48423         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48424         uniwidth to e.g., lib/.gitignore.
48425         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48426
48427         * build-aux/bootstrap: New setting: vc_ignore.
48428         (insert_sorted_if_absent): Create $file if absent.
48429         Adapt to new, possibly empty, list: $vc_ignore.
48430
48431         bootstrap: generate more ignorable names
48432         * build-aux/bootstrap (slurp): When generating ignorable names,
48433         also map .sin to .sed, .gperf to .c, and .y to .c.
48434
48435 2007-09-03  Jim Meyering  <jim@meyering.net>
48436
48437         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48438         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48439
48440 2007-09-02  Bruno Haible  <bruno@clisp.org>
48441
48442         Fix mis-recognition of 'mcs' on QNX 6.
48443         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48444         output contains the string "Mono".
48445         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48446         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48447
48448 2007-09-01  Bruno Haible  <bruno@clisp.org>
48449
48450         Fix collision between uniwidth/* and linebreak modules.
48451         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48452         u32_width): Remove declarations.
48453         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48454         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48455         streq3, streq2, streq1, streq0): Remove functions.
48456         (STREQ): Remove macro.
48457         (is_cjk_encoding): Remove function.
48458         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48459         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48460         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48461         * NEWS: Document the change.
48462
48463 2007-09-01  Bruno Haible  <bruno@clisp.org>
48464
48465         * lib/streq.h: Add double-inclusion guard.
48466
48467 2007-09-01  Karl Berry  <karl@gnu.org>
48468
48469         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48470
48471 2007-08-28  Jim Meyering  <jim@meyering.net>
48472
48473         Rename mreadlink_with_size to areadlink_with_size.
48474         * NEWS: Document the change.
48475         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48476         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48477         * lib/mreadlink.h: Rename this to...
48478         * lib/areadlink.h: ...this.
48479         * modules/mreadlink-with-size: Rename this to...
48480         * modules/areadlink-with-size: ...this.
48481         * lib/canonicalize.c: Reflect the renaming.
48482         * modules/canonicalize: Likewise.
48483
48484 2007-08-26  Bruno Haible  <bruno@clisp.org>
48485
48486         * gnulib-tool (func_import): When deciding which files to remove,
48487         consider also dangling symbolic links.
48488         Reported by Eric Blake.
48489
48490 2007-08-26  Bruno Haible  <bruno@clisp.org>
48491
48492         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48493
48494 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48495
48496         * lib/readline.c: Don't include getline.h, the prototype is now
48497         found in stdio.h.
48498
48499 2007-08-23  Jim Meyering  <jim@meyering.net>
48500
48501         Getdelim touchup.
48502         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48503         around the funlockfile call, since funlockfile never sets errno.
48504         Don't set errno upon failed realloc.
48505
48506 2007-08-22  Eric Blake  <ebb9@byu.net>
48507
48508         Getline touchups.
48509         * lib/getdelim.c (getdelim): Revert regression that required *n to
48510         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48511         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48512         getdelim, rather than whether implementation is missing.
48513         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48514         * lib/stdio_.h (getline): Also declare if replacement is
48515         required.
48516         * doc/functions/getdelim.texi: New file.
48517         * doc/functions/getline.texi: Likewise.
48518         * doc/gnulib.texi (Function Substitutes): Add new files.
48519         Reported by Bruno Haible.
48520
48521 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48522
48523         * users.txt: Add Guile.
48524
48525 2007-08-22  Eric Blake  <ebb9@byu.net>
48526
48527         * tests/test-getdelim.c (main): Use remove, not unlink.
48528         * tests/test-getline.c (main): Likewise.
48529
48530         Move getline and getdelim into stdio.h, per POSIX 200x.
48531         * modules/getline (Files): Remove getline.h.
48532         (Depends-on): Add stdio.
48533         (configure.ac): Add module indicator.
48534         * modules/getdelim (Files): Remove getdelim.h.
48535         (Depends-on): Add stdio.
48536         (configure.ac): Add module indicator.
48537         * modules/stdio (Makefile.am): Work with new indicators.
48538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48540         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48541         * lib/getdelim.h: Delete.
48542         * lib/getline.h: Delete.
48543         * lib/stdio_.h (getdelim, getline): Declare.
48544         * modules/getdelim-tests: New module.
48545         * modules/getline-tests: Likewise.
48546         * tests/test-getdelim.c: New file.
48547         * tests/test-getline.c: Likewise.
48548         * NEWS: Document the change.
48549         * lib/getline.c: Update choice of header.
48550         * lib/csharpcomp.c: Likewise.
48551         * lib/getpass.c: Likewise.
48552         * lib/javacomp.c: Likewise.
48553         * lib/javaversion.c: Likewise.
48554         * lib/yesno.c: Likewise.
48555         * lib/getdelim.c: Likewise.
48556         (getdelim): Set errno on failure, and avoid memory leak.
48557
48558 2007-08-19  Bruno Haible  <bruno@clisp.org>
48559
48560         * modules/closein (Depends-on): Add freadahead.
48561         * lib/closein.c: Include freadahead.h.
48562         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48563         is zero.
48564
48565 2007-08-19  Bruno Haible  <bruno@clisp.org>
48566
48567         * modules/freadahead-tests: New file.
48568         * tests/test-freadahead.sh: New file.
48569         * tests/test-freadahead.c: New file.
48570
48571         * modules/freadahead: New file.
48572         * lib/freadahead.h: New file.
48573         * lib/freadahead.c: New file.
48574         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48575         fbufmode, fpurge, freadable, fwritable.
48576
48577 2007-08-19  Eric Blake  <ebb9@byu.net>
48578
48579         Test yesno in combination with closein.
48580         * lib/yesno.c (yesno): Document use of stdin.
48581         * modules/yesno-tests (Files): New module.
48582         * tests/test-yesno.c (main): New file.
48583         * tests/test-yesno.sh: Likewise.
48584
48585 2007-08-19  Bruno Haible  <bruno@clisp.org>
48586
48587         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48588         * lib/fseeko.c (rpl_fseeko): Likewise.
48589         * lib/fseterr.c (fseterr): Likewise.
48590
48591 2007-08-19  Bruno Haible  <bruno@clisp.org>
48592
48593         * tests/test-lseek.c (main): Disable a test for BeOS.
48594         * doc/functions/lseek.texi: Document the BeOS bug.
48595
48596 2007-08-19  Bruno Haible  <bruno@clisp.org>
48597             Eric Blake  <ebb9@byu.net>
48598
48599         * lib/lseek.c: Include <sys/stat.h>.
48600         (rpl_lseek): Add workaround code also for Unix platforms.
48601         Needed for BeOS.
48602         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48603         * doc/functions/lseek.texi: Document BeOS definiency.
48604
48605 2007-08-18  Bruno Haible  <bruno@clisp.org>
48606
48607         * modules/fstrcmp-tests: New file.
48608         * tests/test-fstrcmp.c: New file.
48609
48610 2007-08-18  Bruno Haible  <bruno@clisp.org>
48611
48612         * modules/fstrcmp: New file, from GNU gettext with modifications.
48613         * lib/fstrcmp.h: New file, from GNU gettext.
48614         * lib/fstrcmp.c: New file, from GNU gettext.
48615         * MODULES.html.sh (String handling): Add fstrcmp.
48616
48617 2007-08-18  Bruno Haible  <bruno@clisp.org>
48618
48619         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48620         'bool'.
48621         (diag, compareseq): Remove const from the ctxt argument.
48622         (USE_HEURISTIC): Undefine at the end.
48623
48624 2007-08-18  Jim Meyering  <jim@meyering.net>
48625
48626         New file: lib/idcache.h
48627         * NEWS: Mention the addition.
48628         * modules/idcache (Files): Add lib/idcache.h
48629         * lib/idcache.c: Include "idcache.h".
48630         Don't include <sys/types.h>.
48631         Add a FIXME comment.
48632         Move file-scoped "static" declarations to the top.
48633         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48634
48635 2007-08-17  Bruno Haible  <bruno@clisp.org>
48636         and Paul Eggert  <eggert@cs.ucla.edu>
48637
48638         * MODULES.html.sh: Add diffseq.
48639         * modules/diffseq: New file.
48640         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48641         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48642
48643 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48644
48645         Import changes from coreutils for bootstrap script.
48646
48647         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48648
48649         * build-aux/bootstrap (slurp): Work even in environments where
48650         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48651         current code does not slurp files whose names start with ".", and
48652         this looks like it might be a troublesome area.
48653
48654         2007-07-11  Jim Meyering  <jim@meyering.net>
48655
48656         If there's a GPL vN copyright comment, require that N == 3.
48657
48658         2007-07-08  Jim Meyering  <jim@meyering.net>
48659
48660         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48661         * build-aux/bootstrap (mam_template): Move definition out of loop.
48662
48663         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48664
48665         * build-aux/bootstrap (symlink_to_dir): Rename function from
48666         symlink_to_gnulib.  Add a directory parameter.  Update all
48667         callers.
48668         (cp_mark_as_generated): Also check for -- and link to -- files in
48669         gl/.
48670
48671         2007-07-08  Jim Meyering  <jim@meyering.net>
48672
48673         Adapt to deeper hierarchy in gnulib.
48674         * build-aux/bootstrap (symlink_to_dir): If the destination
48675         directory doesn't exist, create it. This is required at least for
48676         "lib/uniwidth/cjk.h".
48677
48678         2007-05-15  Jim Meyering  <jim@meyering.net>
48679
48680         * build-aux/bootstrap: Now that generated Makefile.am files
48681         are no longer under version control, they must be created at
48682         bootstrap time.
48683
48684 2007-08-14  Ben Pfaff  <blp@gnu.org>
48685
48686         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48687
48688 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48689
48690         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48691         given the changes below.
48692         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48693         even on hosts that have padding bits beyond the supported 64.
48694
48695 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48696
48697         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48698         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48699         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48700         depends on it.
48701         (xstrtol_error): Remove.
48702         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48703         but with a different signature.
48704         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48705         * lib/xstrtol-error.c: Include exitfail.h.
48706         (xstrtol_fatal): New function, with a different signature from the
48707         old xstrtol_error, so that the caller need not worry about passing
48708         in an exit status, or about storage management of the option argument.
48709         (xstrtol_error): Now a static function.  Redo signature to
48710         implement xstrtol_fatal.  Output the correct number of hyphens in
48711         front of the option so that the caller need not worry about
48712         storage management.
48713         (N_): New macro.
48714         (_): Remove; not used now.
48715         * modules/xstrtol: Depend on getopt.
48716         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48717         of old STRTOL_FATAL_ERROR macro.
48718         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48719         of test program.
48720         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48721         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48722
48723 2007-08-08  Eric Blake  <ebb9@byu.net>
48724
48725         * lib/xstrtol-error.c: Add missing include.
48726
48727         Move xstrtol messages into gnulib domain, when --pobase is used.
48728         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48729         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48730         * modules/xstrtol (Files): Distribute new file.
48731         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48732         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48733         * tests/test-xstrtol.c: ...into new file.
48734         * tests/test-xstrtoul.c: Also test xstrtoul.
48735         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48736         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48737         * tests/test-xstrtol.sh: Drive the tests.
48738         * tests/test-xstrtoimax.sh: Likewise.
48739         * tests/test-xstrtoumax.sh: Likewise.
48740         * modules/xstrtol-tests: New module.
48741         * modules/xstrtoimax-tests: Likewise.
48742         * modules/xstrtoumax-tests: Likewise.
48743
48744 2007-08-08  Jim Meyering  <jim@meyering.net>
48745
48746         New function: mfile_name_concat.
48747         * lib/filenamecat.c (mfile_name_concat): New function, just like
48748         file_name_concat, but return NULL upon failure rather than exiting
48749         with a diagnostic.
48750         * lib/filenamecat.h: Declare it.
48751
48752 2007-08-07  Bruno Haible  <bruno@clisp.org>
48753
48754         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48755         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48756         warning from gcc.
48757         Reported by Eric Blake.
48758
48759 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48760
48761         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48762         * modules/crypto/arcfour (License): Likewise.
48763         * modules/crypto/des-tests (License): Likewise.
48764         * modules/crypto/gc-arctwo-tests (License): Likewise.
48765         * modules/crypto/gc-des-tests (License): Likewise.
48766         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48767         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48768         * modules/crypto/gc-md2-tests (License): Likewise.
48769         * modules/crypto/gc-md4-tests (License): Likewise.
48770         * modules/crypto/gc-md5-tests (License): Likewise.
48771         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48772         * modules/crypto/gc-rijndael-tests (License): Likewise.
48773         * modules/crypto/gc-sha1-tests (License): Likewise.
48774         * modules/crypto/gc-tests (License): Likewise.
48775         * modules/crypto/hmac-md5 (License): Likewise.
48776         * modules/crypto/hmac-sha1 (License): Likewise.
48777         * modules/crypto/md2-tests (License): Likewise.
48778         * modules/crypto/md4-tests (License): Likewise.
48779         * modules/crypto/md5 (License): Likewise.
48780         * modules/crypto/rijndael (License): Likewise.
48781         * modules/crypto/sha1 (License): Likewise.
48782         * modules/memxor (License): Likewise.
48783
48784 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48785         and Bruno Haible  <bruno@clisp.org>
48786
48787         * NEWS: Describe interface changes to human, xstrtol.
48788         * lib/human.h: Include <xstrtol.h>.
48789         (human_options): Return enum strtol_error, not int.  Remove
48790         bool arg; take int * instead.
48791         * lib/human.c: Don't include "gettext.h".
48792         (_): Remove; no longer used.
48793         Don't include <xstrtol.h>, since human.h does it.
48794         (human_options): Adjust to abovementioned interface changes.
48795         Do not report error to stderr; that's now the caller's
48796         responsibility.
48797         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48798         interface change.
48799         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48800         Str, Argument_type_string.  All uses changed.  Put " argument"
48801         in diagnostics to make them clearer.  Change wording of suffix
48802         message for clarity.
48803         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48804         Argument_type_string.
48805         (STRTOL_FATAL_WARN): Remove; no longer used.
48806         * modules/human (Depends-on): Remove gettext-h.
48807
48808 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48809
48810         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48811
48812 2007-07-31  Bruno Haible  <bruno@clisp.org>
48813
48814         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48815         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48816         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48817
48818 2007-07-31  Bruno Haible  <bruno@clisp.org>
48819
48820         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48821         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48822
48823 2007-07-30  Bruno Haible  <bruno@clisp.org>
48824
48825         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48826         * modules/c-ctype (License): Likewise.
48827         * modules/c-strcase (License): Likewise.
48828         * modules/check-version (License): Likewise.
48829         * modules/iconv (License): Likewise.
48830         * modules/iconv_open (License): Likewise.
48831         * modules/read-file (License): Likewise.
48832         * modules/striconv (License): Likewise.
48833         * modules/strverscmp (License): Likewise.
48834         * modules/vasprintf (License): Likewise.
48835         * modules/crypto/des (License): Likewise.
48836         * modules/crypto/gc (License): Likewise.
48837         * modules/crypto/gc-arcfour (License): Likewise.
48838         * modules/crypto/gc-arctwo (License): Likewise.
48839         * modules/crypto/gc-des (License): Likewise.
48840         * modules/crypto/gc-hmac-md5 (License): Likewise.
48841         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48842         * modules/crypto/gc-md2 (License): Likewise.
48843         * modules/crypto/gc-md4 (License): Likewise.
48844         * modules/crypto/gc-md5 (License): Likewise.
48845         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48846         * modules/crypto/gc-random (License): Likewise.
48847         * modules/crypto/gc-rijndael (License): Likewise.
48848         * modules/crypto/gc-sha1 (License): Likewise.
48849         * modules/crypto/md2 (License): Likewise.
48850         * modules/crypto/md4 (License): Likewise.
48851
48852 2007-07-30  Jim Meyering  <jim@meyering.net>
48853
48854         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48855         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48856         it has valid stat data.  This bug would cause du not to count the
48857         sizes of inaccessible directories.
48858         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48859         in <http://bugzilla.redhat.com/250077>.
48860
48861 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48862             Bruno Haible  <bruno@clisp.org>
48863
48864         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48865         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48866         #include_next, gives a diagnostic about it, but reports no error in
48867         the exit code.
48868         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48869
48870 2007-07-24  Ben Pfaff  <blp@gnu.org>
48871
48872         Improve name: "count-one-bits" is better than "popcount".
48873         * MODULES.html.sh: Update name.
48874         * lib/popcount.h: Renamed lib/count-one-bits.h.
48875         (popcount): Renamed count_one_bits.
48876         (popcountl): Renamed count_one_bits_l.
48877         (popcountll): Renamed count_one_bits_ll.
48878         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48879         * modules/popcount: Renamed module/count-one-bits.
48880         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48881         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48882
48883 2007-07-23  Ben Pfaff  <blp@gnu.org>
48884
48885         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48886         better code generation, and add U to large constants to avoid
48887         warnings, in non-GCC case.
48888         Suggested by Bruno Haible.
48889
48890 2007-07-23  Ben Pfaff  <blp@gnu.org>
48891
48892         * lib/popcount.h: Use verify_true instead of if...abort.
48893         * modules/popcount: Depend on verify module.
48894         Suggested by Jim Meyering.
48895
48896 2007-07-23  Bruno Haible  <bruno@clisp.org>
48897
48898         * gnulib-tool (func_import): Create a .cvsignore file also when the
48899         directory is not yet in CVS but the toplevel directory is. When
48900         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48901         Reported by Karl Berry.
48902
48903 2007-07-22  Ben Pfaff  <blp@gnu.org>
48904
48905         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48906         case.
48907         Suggested by Eric Blake.
48908
48909 2007-07-22  Ben Pfaff  <blp@gnu.org>
48910
48911         New module: popcount.
48912         * MODULES.html.sh: Add popcount.
48913         * modules/popcount: New file.
48914         * modules/popcount-tests: New file.
48915         * tests/test-popcount.c: New file.
48916         * lib/popcount.h: New file.
48917         * m4/popcount.m4: New file.
48918
48919 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48920
48921         * build-aux/announce-gen: Update to GPLv3.
48922
48923         * build-aux/config.guess: Update from config.
48924
48925 2007-07-21  Bruno Haible  <bruno@clisp.org>
48926
48927         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48928         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48929
48930 2007-07-20  Jim Meyering  <jim@meyering.net>
48931
48932         * check-module: Diagnose a self-dependency.
48933
48934 2007-07-19  Bruno Haible  <bruno@clisp.org>
48935
48936         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48937         empty.
48938         Reported by Eric Blake.
48939
48940 2007-07-18  Bruno Haible  <bruno@clisp.org>
48941
48942         * gnulib-tool: New options --po-base, --po-domain.
48943         (func_usage): Document them.
48944         (pobase, po_domain): New variables.
48945         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48946         DEFAULT_TEXT_DOMAIN.
48947         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48948         (func_import): Consider pobase and po_domain. Create a po/ directory.
48949         (func_create_testdir): Set pobase and po_domain to empty.
48950         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48951         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48952
48953 2007-07-18  Bruno Haible  <bruno@clisp.org>
48954
48955         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48956         EXTRA_DIST augmentation for files in build-aux/.
48957
48958 2007-07-16  Bruno Haible  <bruno@clisp.org>
48959
48960         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48961         * modules/getdelim (License): Likewise.
48962
48963 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48964
48965         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48966         * modules/d-type (License): Likewise.
48967         * modules/extensions (License): Likewise.
48968         * modules/fnmatch (License): Likewise.
48969         * modules/fseeko (License): Likewise.
48970         * modules/getaddrinfo (License): Likewise.
48971         * modules/getline (License): Likewise.
48972         * modules/getlogin_r (License): Likewise.
48973         * modules/getpass (License): Likewise.
48974         * modules/gettimeofday (License): Likewise.
48975         * modules/glob (License): Likewise.
48976         * modules/inet_ntop (License): Likewise.
48977         * modules/malloc (License): Likewise.
48978         * modules/malloca (License): Likewise.
48979         * modules/memmem (License): Likewise.
48980         * modules/mempcpy (License): Likewise.
48981         * modules/memset (License): Likewise.
48982         * modules/minmax (License): Likewise.
48983         * modules/mktime (License): Likewise.
48984         * modules/netinet_in (License): Likewise.
48985         * modules/pathmax (License): Likewise.
48986         * modules/poll (License): Likewise.
48987         * modules/regex (License): Likewise.
48988         * modules/snprintf (License): Likewise.
48989         * modules/stdbool (License): Likewise.
48990         * modules/stdint (License): Likewise.
48991         * modules/stdio (License): Likewise.
48992         * modules/strcase (License): Likewise.
48993         * modules/strcasestr (License): Likewise.
48994         * modules/strdup (License): Likewise.
48995         * modules/string (License): Likewise.
48996         * modules/strndup (License): Likewise.
48997         * modules/strnlen (License): Likewise.
48998         * modules/strpbrk (License): Likewise.
48999         * modules/strptime (License): Likewise.
49000         * modules/strsep (License): Likewise.
49001         * modules/sys_select (License): Likewise.
49002         * modules/sys_socket (License): Likewise.
49003         * modules/sys_stat (License): Likewise.
49004         * modules/sys_time (License): Likewise.
49005         * modules/time (License): Likewise.
49006         * modules/time_r (License): Likewise.
49007         * modules/timegm (License): Likewise.
49008         * modules/unistd (License): Likewise.
49009         * modules/vsnprintf (License): Likewise.
49010         * modules/wctype (License): Likewise.
49011
49012 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49013
49014         * modules/argz (License): LGPLv2+.
49015
49016 2007-07-15  Karl Berry  <karl@gnu.org>
49017
49018         * doc/gnulib.texi: revise node structure per new fdl.texi.
49019
49020 2007-07-14  Bruno Haible  <bruno@clisp.org>
49021
49022         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
49023         the output file.
49024         * lib/uniname/uninames.h: Regenerated.
49025
49026 2007-07-14  Karl Berry  <karl@gnu.org>
49027
49028         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
49029         omitting sectioning and index commands.
49030
49031 2007-07-13  Bruno Haible  <bruno@clisp.org>
49032
49033         New gnulib-tool option --more-symlinks.
49034         * gnulib-tool (func_usage): Document --more-symlinks.
49035         (do_copyrights): New variable.
49036         Recognize option --more-symlinks.
49037         (func_import): Don't add a copyright notice transform to
49038         sed_transform_lib_file if do_copyrights is empty.
49039
49040 2007-07-13  Bruno Haible  <bruno@clisp.org>
49041
49042         * lib/vasnprintf.c (decimal_point_char): Define also if
49043         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
49044         && !NEED_PRINTF_DIRECTIVE_A.
49045         Reported by Clemens Koller <clemens.koller@anagramm.de> via
49046         Gary V. Vaughan <gary@gnu.org>.
49047
49048 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
49049
49050         * lib/inttypes_.h: Undo previous change, since it was fixed
49051         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
49052
49053 2007-07-13  Bruno Haible  <bruno@clisp.org>
49054
49055         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
49056         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
49057
49058 2007-07-13  Jim Meyering  <jim@meyering.net>
49059
49060         df: Don't fail for Tru64's "file-on-file mount".
49061         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
49062         so we fall through and use statfs instead.  Details here:
49063         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
49064         Reported by Albert Chin.
49065
49066 2007-07-13  Bruno Haible  <bruno@clisp.org>
49067
49068         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
49069         * modules/configmake (License): Likewise.
49070         * modules/gettext (License): Likewise.
49071         * modules/gettext-h (License): Likewise.
49072         * modules/include_next (License): Likewise.
49073         * modules/link-warning (License): Likewise.
49074         * modules/localcharset (License): Likewise.
49075         * modules/localename (License): Likewise.
49076         * modules/lock (License): Likewise.
49077         * modules/relocatable-lib-lgpl (License): Likewise.
49078         * modules/size_max (License): Likewise.
49079         * modules/vasnprintf (License): Likewise.
49080         * modules/wchar (License): Likewise.
49081         * modules/xsize (License): Likewise.
49082
49083 2007-07-13  Bruno Haible  <bruno@clisp.org>
49084
49085         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
49086         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
49087
49088 2007-07-12  Bruno Haible  <bruno@clisp.org>
49089
49090         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
49091         in the modules files.
49092
49093 2007-07-11  Karl Berry  <karl@gnu.org>
49094
49095         * MODULES.html.sh (func_module): use
49096          sed -e '\|^'"${includefile}"'$|d'
49097          instead of /.../d, to avoid errors on $includefile's containing /.
49098
49099 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49100
49101         * gnulib-tool (func_import): Avoid duplication of --avoid
49102         statements
49103         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
49104         names to `_' in variable names.
49105
49106 2007-07-10  Eric Blake  <ebb9@byu.net>
49107
49108         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
49109         * NEWS: Document this change.
49110
49111 2007-07-08  Bruno Haible  <bruno@clisp.org>
49112
49113         Update to Unicode 5.0.
49114         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
49115         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
49116         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
49117         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
49118         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
49119         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
49120         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
49121         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
49122         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
49123         U+10A3F, U+1D242..U+1D244.
49124         (nonspacing_table_ind): Update.
49125         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
49126         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
49127
49128 2007-07-08  Bruno Haible  <bruno@clisp.org>
49129
49130         Update to Unicode 5.0.
49131         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
49132         code transform. Extend the name index field of unicode_name_to_code and
49133         unicode_code_to_name from 16 to 24 bits.
49134         * lib/uniname/uniname.c (unicode_character_name,
49135         unicode_name_character): Add the range 0x12xxx to the code transform.
49136         * lib/uniname/uninames.h: Regenerated.
49137         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
49138
49139 2007-07-07  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/wcwidth-tests: New file.
49142         * tests/test-wcwidth.c: New file.
49143
49144         Work around MacOS X wcwidth() bug.
49145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
49146         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
49147         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
49148         original wcwidth in non-UTF-8 locales.
49149         * modules/wcwidth (Depends-on): Add localcharset, streq,
49150         uniwidth/width.
49151         * doc/functions/wcwidth.texi: Update.
49152
49153 2007-07-07  Bruno Haible  <bruno@clisp.org>
49154
49155         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
49156         (wcwidth): New declaration.
49157         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
49158         macros.
49159         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
49160         here. Prepare for creating <wchar.h> unconditionally.
49161         * modules/wchar (Depends-on): Add link-warning.
49162         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
49163         REPLACE_WCWIDTH, and GL_LINK_WARNING.
49164         * lib/wcwidth.h: Remove file.
49165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
49166         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
49167         * modules/wcwidth (Files): Remove lib/wcwidth.h.
49168         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
49169         (Include): Replace wcwidth.h with <wchar.h>.
49170         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
49171         * lib/mbchar.h: Don't include wcwidth.h.
49172         * lib/mbswidth.c: Likewise.
49173         * NEWS: Mention the change.
49174
49175 2007-07-07  Bruno Haible  <bruno@clisp.org>
49176
49177         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
49178         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
49179         definition with an external declaration.
49180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
49181         defined as a function. Remove AC_C_INLINE requirement.
49182         * modules/wcwidth (Files): Add lib/wcwidth.c.
49183         (Makefile.am): Remove redundant statement.
49184
49185 2007-07-07  Bruno Haible  <bruno@clisp.org>
49186
49187         * MODULES.html.sh (Unicode string functions): Add the new modules.
49188
49189         * tests/uniwidth/test-u32-strwidth.c: New file.
49190         * modules/uniwidth/u32-strwidth-tests: New file.
49191
49192         * lib/uniwidth/u32-strwidth.c: New file.
49193         * modules/uniwidth/u32-strwidth: New file.
49194
49195         * tests/uniwidth/test-u16-strwidth.c: New file.
49196         * modules/uniwidth/u16-strwidth-tests: New file.
49197
49198         * lib/uniwidth/u16-strwidth.c: New file.
49199         * modules/uniwidth/u16-strwidth: New file.
49200
49201         * tests/uniwidth/test-u8-strwidth.c: New file.
49202         * modules/uniwidth/u8-strwidth-tests: New file.
49203
49204         * lib/uniwidth/u8-strwidth.c: New file.
49205         * modules/uniwidth/u8-strwidth: New file.
49206
49207         * tests/uniwidth/test-u32-width.c: New file.
49208         * modules/uniwidth/u32-width-tests: New file.
49209
49210         * lib/uniwidth/u32-width.c: New file.
49211         * modules/uniwidth/u32-width: New file.
49212
49213         * tests/uniwidth/test-u16-width.c: New file.
49214         * modules/uniwidth/u16-width-tests: New file.
49215
49216         * lib/uniwidth/u16-width.c: New file.
49217         * modules/uniwidth/u16-width: New file.
49218
49219         * tests/uniwidth/test-u8-width.c: New file.
49220         * modules/uniwidth/u8-width-tests: New file.
49221
49222         * lib/uniwidth/u8-width.c: New file.
49223         * modules/uniwidth/u8-width: New file.
49224
49225         * tests/uniwidth/test-uc_width.c: New file.
49226         * modules/uniwidth/width-tests: New file.
49227
49228         * lib/uniwidth/width.c: New file, from GNU libiconv.
49229         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49230         * modules/uniwidth/width: New file.
49231
49232         * lib/uniwidth.h: New file, from GNU libiconv.
49233         * modules/uniwidth/base: New file.
49234
49235 2007-07-07  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/uniname.h: New file, from GNU gettext.
49238         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49239         * lib/uniname/uninames.h: New file, from GNU gettext.
49240         * lib/uniname/uniname.c: New file, from GNU gettext.
49241         * tests/uniname/test-uninames.sh: New file.
49242         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49243         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49244         * modules/uniname/base: New file.
49245         * modules/uniname/uniname: New file.
49246         * modules/uniname/uniname-tests: New file.
49247         * MODULES.html.sh (Unicode string functions): Add the new modules.
49248
49249 2007-07-06  Bruno Haible  <bruno@clisp.org>
49250
49251         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49252
49253 2007-07-06  Bruno Haible  <bruno@clisp.org>
49254
49255         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49256         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49257         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49258         include <sys/time.h>.
49259         Reported by Eric Blake.
49260
49261 2007-07-06  Eric Blake  <ebb9@byu.net>
49262
49263         Fix testing canonicalize on cygwin.
49264         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49265         Revert patch from 2007-06-19.
49266         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49267         canonicalize module is also in use.
49268         * tests/test-canonicalize.c: New file.
49269         * tests/test-canonicalize.sh: Likewise.
49270         * modules/canonicalize-tests: Likewise.
49271
49272 2007-07-06  Jim Meyering  <jim@meyering.net>
49273
49274         * lib/getugroups.c (getugroups): Detect getgrent failure.
49275         Adjust comment to reflect reality: this function may return -1.
49276
49277 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49278
49279         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49280         the new TP address.
49281         (usage): Fix typo
49282         (gnulib_mk): New variable.
49283
49284 2007-07-05  Jim Meyering  <jim@meyering.net>
49285
49286         Don't let endgrent clobber errno, no matter how improbable.
49287         * lib/getugroups.c (getugroups): Save and restore errno around
49288         endgrent call.
49289
49290         Close the group DB even when failing with 2^31 or more members.
49291         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49292
49293 2007-07-04  Jim Meyering  <jim@meyering.net>
49294
49295         * lib/getugroups.h: New file.
49296         * lib/getugroups.c: Include "getugroups.h".
49297         Remove uses of "register" keyword.
49298         Move local variable, "cp", down into scope where used.
49299         Give "username" parameter the "const" attribute.
49300         * modules/getugroups (Files): Add lib/getugroups.h
49301
49302 2007-07-04  Karl Berry  <karl@gnu.org>
49303
49304         * MODULES.html.sh (func_all_modules): Complete rename of
49305         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49306
49307 2007-07-02  Bruno Haible  <bruno@clisp.org>
49308
49309         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49310         mode, when inttypes.h comes from gnulib.
49311         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49312
49313 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49314
49315         * NEWS: Mention lgpl module name change.
49316
49317         * modules/lgpl-2.1: Renamed from lgpl.
49318
49319         * NEWS: Mention gpl module name change.
49320
49321         * modules/gpl-3.0: New file, based on gpl-2.0.
49322
49323         * modules/gpl-2.0: Renamed from gpl.
49324
49325         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49326         doc/gpl-2.0.texi.
49327
49328 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49329
49330         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49331         #define __STDC_LIMIT_MACROS temporarily while including
49332         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49333         Problem reported by Joel E. Denny in
49334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49335
49336 2007-07-01  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/unistdio.h: New file.
49339         * lib/unistdio/u-asnprintf.h: New file.
49340         * lib/unistdio/u-asprintf.h: New file.
49341         * lib/unistdio/u-printf-args.c: New file.
49342         * lib/unistdio/u-printf-args.h: New file.
49343         * lib/unistdio/u-printf-parse.h: New file.
49344         * lib/unistdio/u-snprintf.h: New file.
49345         * lib/unistdio/u-sprintf.h: New file.
49346         * lib/unistdio/u-vasprintf.h: New file.
49347         * lib/unistdio/u-vsnprintf.h: New file.
49348         * lib/unistdio/u-vsprintf.h: New file.
49349         * lib/unistdio/ulc-asnprintf.c: New file.
49350         * lib/unistdio/ulc-asprintf.c: New file.
49351         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49352         * lib/unistdio/ulc-printf-parse.c: New file.
49353         * lib/unistdio/ulc-snprintf.c: New file.
49354         * lib/unistdio/ulc-sprintf.c: New file.
49355         * lib/unistdio/ulc-vasnprintf.c: New file.
49356         * lib/unistdio/ulc-vasprintf.c: New file.
49357         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49358         * lib/unistdio/ulc-vsnprintf.c: New file.
49359         * lib/unistdio/ulc-vsprintf.c: New file.
49360         * lib/unistdio/u8-asnprintf.c: New file.
49361         * lib/unistdio/u8-asprintf.c: New file.
49362         * lib/unistdio/u8-printf-parse.c: New file.
49363         * lib/unistdio/u8-snprintf.c: New file.
49364         * lib/unistdio/u8-sprintf.c: New file.
49365         * lib/unistdio/u8-vasnprintf.c: New file.
49366         * lib/unistdio/u8-vasprintf.c: New file.
49367         * lib/unistdio/u8-vsnprintf.c: New file.
49368         * lib/unistdio/u8-vsprintf.c: New file.
49369         * lib/unistdio/u8-u8-asnprintf.c: New file.
49370         * lib/unistdio/u8-u8-asprintf.c: New file.
49371         * lib/unistdio/u8-u8-snprintf.c: New file.
49372         * lib/unistdio/u8-u8-sprintf.c: New file.
49373         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49374         * lib/unistdio/u8-u8-vasprintf.c: New file.
49375         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49376         * lib/unistdio/u8-u8-vsprintf.c: New file.
49377         * lib/unistdio/u16-asnprintf.c: New file.
49378         * lib/unistdio/u16-asprintf.c: New file.
49379         * lib/unistdio/u16-printf-parse.c: New file.
49380         * lib/unistdio/u16-snprintf.c: New file.
49381         * lib/unistdio/u16-sprintf.c: New file.
49382         * lib/unistdio/u16-vasnprintf.c: New file.
49383         * lib/unistdio/u16-vasprintf.c: New file.
49384         * lib/unistdio/u16-vsnprintf.c: New file.
49385         * lib/unistdio/u16-vsprintf.c: New file.
49386         * lib/unistdio/u16-u16-asnprintf.c: New file.
49387         * lib/unistdio/u16-u16-asprintf.c: New file.
49388         * lib/unistdio/u16-u16-snprintf.c: New file.
49389         * lib/unistdio/u16-u16-sprintf.c: New file.
49390         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49391         * lib/unistdio/u16-u16-vasprintf.c: New file.
49392         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49393         * lib/unistdio/u16-u16-vsprintf.c: New file.
49394         * lib/unistdio/u32-asnprintf.c: New file.
49395         * lib/unistdio/u32-asprintf.c: New file.
49396         * lib/unistdio/u32-printf-parse.c: New file.
49397         * lib/unistdio/u32-snprintf.c: New file.
49398         * lib/unistdio/u32-sprintf.c: New file.
49399         * lib/unistdio/u32-vasnprintf.c: New file.
49400         * lib/unistdio/u32-vasprintf.c: New file.
49401         * lib/unistdio/u32-vsnprintf.c: New file.
49402         * lib/unistdio/u32-vsprintf.c: New file.
49403         * lib/unistdio/u32-u32-asnprintf.c: New file.
49404         * lib/unistdio/u32-u32-asprintf.c: New file.
49405         * lib/unistdio/u32-u32-snprintf.c: New file.
49406         * lib/unistdio/u32-u32-sprintf.c: New file.
49407         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49408         * lib/unistdio/u32-u32-vasprintf.c: New file.
49409         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49410         * lib/unistdio/u32-u32-vsprintf.c: New file.
49411         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49412         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49413         * tests/unistdio/test-ulc-printf1.h: New file.
49414         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49415         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49416         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49417         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49418         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49419         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49420         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49421         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49422         * tests/unistdio/test-u8-asnprintf1.c: New file.
49423         * tests/unistdio/test-u8-asnprintf1.h: New file.
49424         * tests/unistdio/test-u8-printf1.h: New file.
49425         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49426         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49427         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49428         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49429         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49430         * tests/unistdio/test-u8-vasprintf1.c: New file.
49431         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49432         * tests/unistdio/test-u8-vsprintf1.c: New file.
49433         * tests/unistdio/test-u16-asnprintf1.c: New file.
49434         * tests/unistdio/test-u16-asnprintf1.h: New file.
49435         * tests/unistdio/test-u16-printf1.h: New file.
49436         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49437         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49438         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49439         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49440         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49441         * tests/unistdio/test-u16-vasprintf1.c: New file.
49442         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49443         * tests/unistdio/test-u16-vsprintf1.c: New file.
49444         * tests/unistdio/test-u32-asnprintf1.c: New file.
49445         * tests/unistdio/test-u32-asnprintf1.h: New file.
49446         * tests/unistdio/test-u32-printf1.h: New file.
49447         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49448         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49449         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49450         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49451         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49452         * tests/unistdio/test-u32-vasprintf1.c: New file.
49453         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49454         * tests/unistdio/test-u32-vsprintf1.c: New file.
49455         * modules/unistdio/base: New file.
49456         * modules/unistdio/u-printf-args: New file.
49457         * modules/unistdio/ulc-asnprintf: New file.
49458         * modules/unistdio/ulc-asprintf: New file.
49459         * modules/unistdio/ulc-fprintf: New file.
49460         * modules/unistdio/ulc-printf-parse: New file.
49461         * modules/unistdio/ulc-snprintf: New file.
49462         * modules/unistdio/ulc-sprintf: New file.
49463         * modules/unistdio/ulc-vasnprintf: New file.
49464         * modules/unistdio/ulc-vasprintf: New file.
49465         * modules/unistdio/ulc-vfprintf: New file.
49466         * modules/unistdio/ulc-vsnprintf: New file.
49467         * modules/unistdio/ulc-vsprintf: New file.
49468         * modules/unistdio/u8-asnprintf: New file.
49469         * modules/unistdio/u8-asprintf: New file.
49470         * modules/unistdio/u8-printf-parse: New file.
49471         * modules/unistdio/u8-snprintf: New file.
49472         * modules/unistdio/u8-sprintf: New file.
49473         * modules/unistdio/u8-vasnprintf: New file.
49474         * modules/unistdio/u8-vasprintf: New file.
49475         * modules/unistdio/u8-vsnprintf: New file.
49476         * modules/unistdio/u8-vsprintf: New file.
49477         * modules/unistdio/u8-u8-asnprintf: New file.
49478         * modules/unistdio/u8-u8-asprintf: New file.
49479         * modules/unistdio/u8-u8-snprintf: New file.
49480         * modules/unistdio/u8-u8-sprintf: New file.
49481         * modules/unistdio/u8-u8-vasnprintf: New file.
49482         * modules/unistdio/u8-u8-vasprintf: New file.
49483         * modules/unistdio/u8-u8-vsnprintf: New file.
49484         * modules/unistdio/u8-u8-vsprintf: New file.
49485         * modules/unistdio/u16-asnprintf: New file.
49486         * modules/unistdio/u16-asprintf: New file.
49487         * modules/unistdio/u16-printf-parse: New file.
49488         * modules/unistdio/u16-snprintf: New file.
49489         * modules/unistdio/u16-sprintf: New file.
49490         * modules/unistdio/u16-vasnprintf: New file.
49491         * modules/unistdio/u16-vasprintf: New file.
49492         * modules/unistdio/u16-vsnprintf: New file.
49493         * modules/unistdio/u16-vsprintf: New file.
49494         * modules/unistdio/u16-u16-asnprintf: New file.
49495         * modules/unistdio/u16-u16-asprintf: New file.
49496         * modules/unistdio/u16-u16-snprintf: New file.
49497         * modules/unistdio/u16-u16-sprintf: New file.
49498         * modules/unistdio/u16-u16-vasnprintf: New file.
49499         * modules/unistdio/u16-u16-vasprintf: New file.
49500         * modules/unistdio/u16-u16-vsnprintf: New file.
49501         * modules/unistdio/u16-u16-vsprintf: New file.
49502         * modules/unistdio/u32-asnprintf: New file.
49503         * modules/unistdio/u32-asprintf: New file.
49504         * modules/unistdio/u32-printf-parse: New file.
49505         * modules/unistdio/u32-snprintf: New file.
49506         * modules/unistdio/u32-sprintf: New file.
49507         * modules/unistdio/u32-vasnprintf: New file.
49508         * modules/unistdio/u32-vasprintf: New file.
49509         * modules/unistdio/u32-vsnprintf: New file.
49510         * modules/unistdio/u32-vsprintf: New file.
49511         * modules/unistdio/u32-u32-asnprintf: New file.
49512         * modules/unistdio/u32-u32-asprintf: New file.
49513         * modules/unistdio/u32-u32-snprintf: New file.
49514         * modules/unistdio/u32-u32-sprintf: New file.
49515         * modules/unistdio/u32-u32-vasnprintf: New file.
49516         * modules/unistdio/u32-u32-vasprintf: New file.
49517         * modules/unistdio/u32-u32-vsnprintf: New file.
49518         * modules/unistdio/u32-u32-vsprintf: New file.
49519         * modules/unistdio/ulc-asnprintf-tests: New file.
49520         * modules/unistdio/ulc-vasnprintf-tests: New file.
49521         * modules/unistdio/ulc-vasprintf-tests: New file.
49522         * modules/unistdio/ulc-vsnprintf-tests: New file.
49523         * modules/unistdio/ulc-vsprintf-tests: New file.
49524         * modules/unistdio/u8-asnprintf-tests: New file.
49525         * modules/unistdio/u8-vasnprintf-tests: New file.
49526         * modules/unistdio/u8-vasprintf-tests: New file.
49527         * modules/unistdio/u8-vsnprintf-tests: New file.
49528         * modules/unistdio/u8-vsprintf-tests: New file.
49529         * modules/unistdio/u16-asnprintf-tests: New file.
49530         * modules/unistdio/u16-vasnprintf-tests: New file.
49531         * modules/unistdio/u16-vasprintf-tests: New file.
49532         * modules/unistdio/u16-vsnprintf-tests: New file.
49533         * modules/unistdio/u16-vsprintf-tests: New file.
49534         * modules/unistdio/u32-asnprintf-tests: New file.
49535         * modules/unistdio/u32-vasnprintf-tests: New file.
49536         * modules/unistdio/u32-vasprintf-tests: New file.
49537         * modules/unistdio/u32-vsnprintf-tests: New file.
49538         * modules/unistdio/u32-vsprintf-tests: New file.
49539         * MODULES.html.sh (Unicode string functions): Add the new modules.
49540
49541 2007-07-01  Bruno Haible  <bruno@clisp.org>
49542
49543         * lib/sprintf.c (sprintf): Limit the available length estimation,
49544         to avoid address wraparound.
49545         * lib/vsprintf.c (vsprintf): Likewise.
49546         * modules/sprintf-posix (Dependencies): Add stdint.
49547         * modules/vsprintf-posix (Dependencies): Likewise.
49548
49549 2007-07-01  Bruno Haible  <bruno@clisp.org>
49550
49551         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49552         Windows PATH as well. Conservative double-quoting. Comments.
49553
49554 2007-07-01  Bruno Haible  <bruno@clisp.org>
49555             Eric Blake  <ebb9@byu.net>
49556             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49557
49558         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49559         empty components in $PATH, denoting '.'.
49560
49561 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49562
49563         * gnulib-tool: Fix indentation.
49564         (func_create_megatestdir): Likewise.
49565         Report by Bruno Haible.
49566
49567 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49568
49569         Sync from Automake.
49570         * build-aux/gnupload: Fix shell portability issues with for loops.
49571         Report by Karl Berry.
49572
49573 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49574
49575         * build-aux/maint.mk (POURL): Use translationproject.org.
49576
49577 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49578             Bruno Haible  <bruno@clisp.org>
49579
49580         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49581         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49582         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49583         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49584         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49585
49586 2007-06-27  Bruno Haible  <bruno@clisp.org>
49587
49588         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49589         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49590
49591 2007-06-26  Karl Berry  <karl@gnu.org>
49592
49593         * MODULES.html.sh: remove xreadlink-with-size.
49594
49595 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49596
49597         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49598         method that I hope also handles the double-include problem noted
49599         by Bruno Haible in
49600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49601
49602 2007-06-23  Bruno Haible  <bruno@clisp.org>
49603
49604         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49605         Don't let the 'mostlyclean' target fail if the last subdirectory could
49606         not be removed.
49607         Reported by Karl Berry.
49608
49609 2007-06-23  Bruno Haible  <bruno@clisp.org>
49610
49611         * gnulib-tool (echo): Add a speedier workaround for ksh.
49612         * tests/test-echo.sh: Likewise.
49613
49614 2007-06-23  Bruno Haible  <bruno@clisp.org>
49615
49616         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49617         * tests/test-echo.sh: Likewise.
49618
49619 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49620
49621         * gnulib-tool (IFS): Initialize early, so we don't set it to
49622         empty later.
49623         (self_abspathname): Rewrite algorithm to set it, reindent.
49624         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49625         (func_create_megatestdir): Merge some sed scripts.
49626
49627 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49628
49629         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49630         exposed by Sun Studio 11 cc on Solaris 8.
49631
49632 2007-06-22  Bruno Haible  <bruno@clisp.org>
49633
49634         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49635         backslashes.
49636         * tests/test-echo.sh: New file.
49637
49638 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49639
49640         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49641         simplify `sed_replace_build_aux' scripts, they are portable but
49642         echoing them with `echo' is not.
49643         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49644
49645 2007-06-21  Karl Berry  <karl@gnu.org>
49646
49647         * config/srclist.txt: guess we can't handle the licenses via
49648         srclist at the moment.
49649
49650 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49651
49652         * MODULES.html.sh: Add include_next.
49653         * modules/include_next: New file.
49654
49655 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49656
49657         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49658         INCLUDE_NEXT.
49659         (gl_CHECK_NEXT_HEADERS): New macro.
49660         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49661         the obsolescent gl_ABSOLUTE_HEADER.
49662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49663         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49664         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49665         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49666         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49667         * m4/math_h.m4 (gl_MATH_H): Likewise.
49668         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49669         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49670         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49671         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49672         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49673         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49674         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49675         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49676         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49677         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49678         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49679         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49680         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49681         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49682         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49683         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49684         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49685         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49686         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49687         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49688         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49689         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49690         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49691         * lib/float_.h: Likewise.
49692         * lib/inttypes_.h: Likewise.
49693         * lib/math_.h: Likewise.
49694         * lib/search_.h: Likewise.
49695         * lib/signal_.h: Likewise.
49696         * lib/stdint_.h: Likewise.
49697         * lib/stdio_.h: Likewise.
49698         * lib/stdlib_.h: Likewise.
49699         * lib/string_.h: Likewise.
49700         * lib/sys_stat_.h: Likewise.
49701         * lib/sys_time_.h: Likewise.
49702         * lib/time_.h: Likewise.
49703         * lib/unistd_.h: Likewise.
49704         * lib/wchar_.h: Likewise.
49705         * lib/wctype_.h: Likewise.
49706         * lib/dirent_.h: Likewise.
49707         * lib/iconv_.h: Likewise.
49708         * lib/locale_.h: Likewise.
49709         * lib/netinet_in_.h: Likewise.
49710         * lib/sys_select_.h: Likewise.
49711         * lib/sys_socket_.h: Likewise.
49712         * lib/sysexits_.h: Likewise.
49713         * modules/fcntl (Depends-on): Depend on include_next, not
49714         absolute_header.
49715         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49716         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49717         * modules/fchdir: Likewise.
49718         * modules/float: Likewise.
49719         * modules/iconv_open: Likewise.
49720         * modules/inttypes: Likewise.
49721         * modules/locale: Likewise.
49722         * modules/math: Likewise.
49723         * modules/netinet_in: Likewise.
49724         * modules/search: Likewise.
49725         * modules/signal: Likewise.
49726         * modules/stdint: Likewise.
49727         * modules/stdio: Likewise.
49728         * modules/stdlib: Likewise.
49729         * modules/string: Likewise.
49730         * modules/sys_select: Likewise.
49731         * modules/sys_socket: Likewise.
49732         * modules/sys_stat: Likewise.
49733         * modules/sys_time: Likewise.
49734         * modules/sysexits: Likewise.
49735         * modules/time: Likewise.
49736         * modules/unistd: Likewise.
49737         * modules/wchar: Likewise.
49738         * modules/wctype: Likewise.
49739         * modules/sys_stat: Change maintainer to "all".
49740         * modules/unistd: Likewise.
49741
49742 2007-06-20  Karl Berry  <karl@gnu.org>
49743
49744         * config/srclist.txt: track www changes in license files.
49745
49746 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49747
49748         * build-aux/bootstrap: Remove stray dot.
49749         Make sure build_aux settings are honored when linking
49750         gnulib_extra_files.
49751
49752 2007-06-19  Eric Blake  <ebb9@byu.net>
49753
49754         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49755         Allow compilation on cygwin.
49756
49757 2007-06-19  Jim Meyering  <jim@meyering.net>
49758
49759         xreadlink-with-size: Remove module.  No longer used.
49760         Ex-callers now use xreadlink or mreadlink-with-size.
49761         * modules/xreadlink-with-size: Remove module.
49762         * lib/xreadlink-with-size.c: Remove file.
49763         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49764         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49765         just before the function definition *is* accurate.
49766
49767         Eliminate one way canonicalize_filename_mode could exit.
49768         * lib/canonicalize.c (canonicalize_filename_mode):
49769         Use mreadlink_with_size, not xreadlink_with_size.
49770
49771 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49772
49773         Detect porting problems to FreeBSD/arm, which has time_t wider than
49774         long int.  Original problem reported for GNU diff by Xin Li in
49775         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49776         * modules/getdate (Depends-on): Add intprops, verify.
49777         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49778         is an integer type no wider than long int.
49779
49780 2007-06-18  Jim Meyering  <jim@meyering.net>
49781
49782         New module: mreadlink-with-size.
49783         * MODULES.html.sh: Add mreadlink-with-size.
49784         * modules/mreadlink-with-size: New module
49785         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49786         not xreadlink-with-size.
49787         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49788
49789 2007-06-16  Bruno Haible  <bruno@clisp.org>
49790
49791         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49792         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49793         Reported by Gary V. Vaughan <gary@gnu.org>.
49794
49795 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49796
49797         Revamp lchown so that it lives in unistd.h where it belongs.
49798         * lib/lchown.h: Remove.
49799         * lib/dirchownmod.c: Don't include lib/lchown.h.
49800         * lib/fchownat.c: Likewise.
49801         * lib/openat.c: Likewise.
49802         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49803         does not follow symlinks.
49804         (EOPNOTSUPP): Define if not defined.
49805         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49806         is defined to 0.
49807         (lchown): New decl.
49808         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49809         Do not check for lchown decl.
49810         Set REPLACE_LCHOWN.
49811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49812         REPLACE_LCHOWN.
49813         * modules/chown: Make it clear it follows symlinks.
49814         * modules/lchown: Make it clear it doesn't follow symlinks.
49815         (Files): Remove lib/lchown.h
49816         (Depends-on): Add unistd.
49817         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49818         (Include): Include <unistd.h>, not "lchown.h".
49819         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49820         REPLACE_LCHOWN.
49821
49822 2007-06-15  Jim Meyering  <jim@meyering.net>
49823
49824         Change license (GPL to LGPL) of fsusage and dependents.
49825         * modules/fsusage (License): Change to LGPL.
49826         * modules/full-read (License): Likewise.
49827         * modules/full-write (License): Likewise.
49828         * modules/safe-read (License): Likewise.
49829         * modules/safe-write (License): Likewise.
49830
49831 2007-06-14  Ben Pfaff  <blp@gnu.org>
49832
49833         Missing part of allocsa -> malloca transition.
49834         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49835         gl_MALLOCA.
49836
49837 2007-06-12  Bruno Haible  <bruno@clisp.org>
49838
49839         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49840         to ia64, x86_64, i386.
49841         Reported by Eric Blake.
49842
49843 2007-06-12  Bruno Haible  <bruno@clisp.org>
49844
49845         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49846         cross-compiling to x86_64.
49847
49848 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49849
49850         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49851         glitch reported by Ralf Wildenhues in
49852         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49853
49854         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49855         Vin Shelton.
49856
49857 2007-06-11  Bruno Haible  <bruno@clisp.org>
49858
49859         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49860         replacement string.
49861         Reported by Eric Blake.
49862
49863 2007-06-10  Bruno Haible  <bruno@clisp.org>
49864
49865         Prepare vasnprintf code for use with Unicode strings.
49866         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49867         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49868         TYPE_U32_STRING.
49869         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49870         a_u32_string variants.
49871         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49872         * lib/printf-args.c: Don't include config.h and the specification
49873         header if PRINTF_FETCHARGS is already defined.
49874         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49875         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49876         TYPE_U16_STRING, TYPE_U32_STRING.
49877         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49878         u16_directive, u16_directives, u32_directive, u32_directives): New
49879         types.
49880         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49881         New declarations.
49882         * lib/printf-parse.c: Don't include config.h and the specification
49883         header if PRINTF_PARSE is already defined. Eliminate the set of
49884         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49885         them now. Include c-ctype.h.
49886         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49887         directive and CHAR_T_ONLY_ASCII.
49888         * lib/vasnprintf.c: Don't include config.h and the specification header
49889         if VASNPRINTF is already defined.
49890         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49891         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49892         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49893         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49894         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49895         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49896         code accordingly.
49897         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49898         pad_ourselves also in this case, with the 'c' and 's' directives, and
49899         with a different notion of "width".
49900         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49901
49902 2007-06-10  Bruno Haible  <bruno@clisp.org>
49903
49904         * modules/unistr/u32-mbsnlen: New file.
49905         * lib/unistr/u32-mbsnlen.c: New file.
49906
49907         * modules/unistr/u16-mbsnlen: New file.
49908         * lib/unistr/u16-mbsnlen.c: New file.
49909
49910         * modules/unistr/u8-mbsnlen: New file.
49911         * lib/unistr/u8-mbsnlen.c: New file.
49912
49913         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49914         declarations.
49915
49916 2007-06-10  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/string_.h (mbsnlen): New declaration.
49919         * lib/mbsnlen.c: New file.
49920         * m4/mbsnlen.m4: New file.
49921         * modules/mbsnlen: New file.
49922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49923         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49924         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49925
49926 2007-06-10  Bruno Haible  <bruno@clisp.org>
49927
49928         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49929
49930 2007-06-10  Bruno Haible  <bruno@clisp.org>
49931
49932         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49933         * lib/mbuiter.h: Likewise.
49934
49935 2007-06-10  Bruno Haible  <bruno@clisp.org>
49936
49937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49938         declaration.
49939
49940 2007-06-10  Karl Berry  <karl@gnu.org>
49941
49942         * config/srclist.txt: remove gettext entries, Bruno prefers
49943         to update individually.
49944
49945 2007-06-10  Bruno Haible  <bruno@clisp.org>
49946
49947         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49948         'maxlen'. Ensure only length + width bytes are allocated, not
49949         length + 1 + width.
49950
49951 2007-06-09  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49954         (CHAR_T): Remove macro.
49955         (VASNPRINTF): Update.
49956
49957 2007-06-09  Bruno Haible  <bruno@clisp.org>
49958
49959         * MODULES.html.sh (Unicode string functions): Add the new modules.
49960
49961         * modules/uniconv/u32-conv-to-enc: New file.
49962         * lib/uniconv/u32-conv-to-enc.c: New file.
49963         * modules/uniconv/u32-conv-to-enc-tests: New file.
49964         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49965
49966         * modules/uniconv/u16-conv-to-enc: New file.
49967         * lib/uniconv/u16-conv-to-enc.c: New file.
49968         * lib/uniconv/u-conv-to-enc.h: New file.
49969         * modules/uniconv/u16-conv-to-enc-tests: New file.
49970         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49971
49972         * modules/uniconv/u8-conv-to-enc: New file.
49973         * lib/uniconv/u8-conv-to-enc.c: New file.
49974         * modules/uniconv/u8-conv-to-enc-tests: New file.
49975         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49976
49977         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49978         u32_conv_to_encoding): New declarations.
49979
49980 2007-06-09  Bruno Haible  <bruno@clisp.org>
49981
49982         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49983
49984 2007-06-09  Bruno Haible  <bruno@clisp.org>
49985
49986         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49987         * modules/malloca: Renamed from modules/allocsa, updated.
49988         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49989         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49990         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49991         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49992         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49993         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49994         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49995         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49996         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49997         * modules/c-strcasestr (Depends-on): Update.
49998         * lib/c-strcasestr.c: Update.
49999         * modules/c-strstr (Depends-on): Update.
50000         * lib/c-strstr.c: Update.
50001         * modules/canonicalize-lgpl (Depends-on): Update.
50002         * lib/canonicalize-lgpl.c: Update.
50003         * modules/clean-temp (Depends-on): Update.
50004         * lib/clean-temp.c: Update.
50005         * modules/csharpcomp (Depends-on): Update.
50006         * lib/csharpcomp.c: Update.
50007         * modules/csharpexec (Depends-on): Update.
50008         * lib/csharpexec.c: Update.
50009         * modules/javacomp (Depends-on): Update.
50010         * lib/javacomp.c: Update.
50011         * modules/javaexec (Depends-on): Update.
50012         * lib/javaexec.c: Update.
50013         * modules/mbscasestr (Depends-on): Update.
50014         * lib/mbscasestr.c: Update.
50015         * modules/mbsstr (Depends-on): Update.
50016         * lib/mbsstr.c: Update.
50017         * modules/setenv (Depends-on): Update.
50018         * lib/setenv.c: Update.
50019         * modules/strcasestr (Depends-on): Update.
50020         * lib/strcasestr.c: Update.
50021         * modules/striconveha (Depends-on): Update.
50022         * lib/striconveha.c: Update.
50023         * modules/relocatable-prog-wrapper (Files): Update.
50024         * lib/relocwrapper.c: Update.
50025         * build-aux/install-reloc: Update.
50026         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
50027
50028 2007-06-08  Bruno Haible  <bruno@clisp.org>
50029
50030         Port to uClibc.
50031         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
50032         * lib/fpurge.c (fpurge): Likewise.
50033         * lib/freading.c (freading): Likewise.
50034         * lib/fseeko.c (rpl_fseeko): Likewise.
50035         * lib/fseterr.c (fseterr): Likewise.
50036         * lib/fwriting.c (fwriting): Likewise.
50037         * tests/test-fflush.c (main): Avoid a failure on uClibc.
50038
50039 2007-06-08  Bruno Haible  <bruno@clisp.org>
50040
50041         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
50042         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
50043         * modules/gettext (Files): Add m4/intlmacosx.m4.
50044
50045 2007-06-07  Bruno Haible  <bruno@clisp.org>
50046
50047         * modules/localename-tests: New file.
50048         * tests/test-localename.c: New file.
50049
50050         New module 'localename'.
50051         * lib/localename.h: New file.
50052         * lib/localename.c: New file, from GNU gettext.
50053         * m4/localename.m4: New file.
50054         * modules/localename: New file.
50055
50056 2007-06-07  Bruno Haible  <bruno@clisp.org>
50057
50058         Work around the lack of <wchar.h> on some builds of uClibc.
50059         * doc/headers/wchar.texi: Update.
50060         * lib/wchar_.h: Include <wchar.h> only if it exists.
50061         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
50062         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
50063         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
50064         doesn't exist.
50065         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
50066         * modules/mbfile (Depends-on): Add wchar.
50067         * modules/mbiter (Depends-on): Likewise.
50068         * modules/mbuiter (Depends-on): Likewise.
50069         Reported by Simon Josefsson.
50070
50071 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50072
50073         Work around problem reported by Steven M. Schweda in
50074         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
50075         Tru64 5.1B with the Compaq compiler environment installed declares
50076         an 'isblank' function but does not define it in the C library.
50077         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
50078         * lib/regex_internal.h (isblank): Likewise.
50079         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
50080         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
50081
50082 2007-06-05  Bruno Haible  <bruno@clisp.org>
50083
50084         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
50085         ia64.
50086         * modules/printf-safe: New file.
50087         * modules/fprintf-posix (Depends-on): Add printf-safe.
50088         * modules/printf-posix (Depends-on): Likewise.
50089         * modules/snprintf-posix (Depends-on): Likewise.
50090         * modules/sprintf-posix (Depends-on): Likewise.
50091         * modules/vasnprintf-posix (Depends-on): Likewise.
50092         * modules/vasprintf-posix (Depends-on): Likewise.
50093         * modules/vfprintf-posix (Depends-on): Likewise.
50094         * modules/vprintf-posix (Depends-on): Likewise.
50095         * modules/vsnprintf-posix (Depends-on): Likewise.
50096         * modules/vsprintf-posix (Depends-on): Likewise.
50097         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
50098         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
50099         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
50100         "no" on i386, x86_64, ia64.
50101         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
50102         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50103         on i386, x86_64, ia64.
50104         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
50105         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50106         on i386, x86_64, ia64.
50107         * tests/test-vasnprintf-posix.c: Include float.h.
50108         (LDBL80_WORDS): New macro.
50109         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50110         on i386, x86_64, ia64.
50111         * tests/test-vasprintf-posix.c: Include float.h.
50112         (LDBL80_WORDS): New macro.
50113         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
50114         on i386, x86_64, ia64.
50115         * tests/test-snprintf-posix.c: Include float.h.
50116         * tests/test-sprintf-posix.c: Likewise.
50117         * tests/test-vsnprintf-posix.c: Likewise.
50118         * tests/test-vsprintf-posix.c: Likewise.
50119
50120 2007-06-05  Bruno Haible  <bruno@clisp.org>
50121
50122         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
50123         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
50124         non-IEEE numbers on i386, x86_64, ia64.
50125         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
50126         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
50127         * tests/test-isnanl.h: Include float.h.
50128         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
50129
50130 2007-06-05  Bruno Haible  <bruno@clisp.org>
50131
50132         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
50133         also the %a / %A. Handle the %a / %A code before this extra handling.
50134
50135 2007-06-05  Bruno Haible  <bruno@clisp.org>
50136
50137         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
50138         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
50139
50140 2007-06-05  Bruno Haible  <bruno@clisp.org>
50141
50142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
50143         typo in variable name.
50144
50145 2007-06-05  Eric Blake  <ebb9@byu.net>
50146
50147         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
50148         Reported by Simon Josefsson.
50149
50150 2007-06-04  Bruno Haible  <bruno@clisp.org>
50151
50152         Avoid test failures on some PowerPC platforms.
50153         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
50154         Define differently for PowerPC.
50155         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
50156         Reported by Gary V. Vaughan <gary@gnu.org>.
50157
50158 2007-06-02  Bruno Haible  <bruno@clisp.org>
50159
50160         Fix test-stdint failure on FreeBSD/ia64.
50161         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
50162         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
50163         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
50164         * doc/headers/stdint.texi: Update.
50165
50166 2007-06-01  Bruno Haible  <bruno@clisp.org>
50167
50168         * tests/test-binary-io.c (main): Pass a third argument to open().
50169         Reported by Gary V. Vaughan <gary@gnu.org>.
50170
50171 2007-06-01  Bruno Haible  <bruno@clisp.org>
50172
50173         * doc/functions/frexpl.texi: Update for mingw.
50174
50175 2007-06-01  Bruno Haible  <bruno@clisp.org>
50176
50177         * tests/test-lseek.c (main): Disable test of errno for invalid third
50178         argument.
50179         * doc/functions/lseek.texi: Update.
50180         Reported by Gary V. Vaughan <gary@gnu.org>.
50181
50182 2007-05-28  Bruno Haible  <bruno@clisp.org>
50183
50184         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
50185
50186 2007-05-31  Eric Blake  <ebb9@byu.net>
50187
50188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
50189         cross compiling.
50190
50191 2007-05-30  Eric Blake  <ebb9@byu.net>
50192         and Bruno Haible  <bruno@clisp.org>
50193
50194         Work around mingw test failures exposed by m4-1.4.9b.
50195         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
50196         * tests/test-unistd.c: Disable uid_t and git_t tests for the
50197         moment.
50198
50199 2007-05-30  Bruno Haible  <bruno@clisp.org>
50200
50201         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
50202         assuming that they are closed. Needed on HP-UX 11.
50203
50204 2007-05-29  Bruno Haible  <bruno@clisp.org>
50205
50206         Fix a problem with #include_next.
50207         * lib/dirent_.h: Split the double-inclusion guard.
50208         * lib/fcntl_.h: Likewise.
50209         * lib/float_.h: Likewise.
50210         * lib/iconv_.h: Likewise.
50211         * lib/inttypes_.h: Likewise.
50212         * lib/locale_.h: Likewise.
50213         * lib/math_.h: Likewise.
50214         * lib/netinet_in_.h: Likewise.
50215         * lib/search_.h: Likewise.
50216         * lib/signal_.h: Likewise.
50217         * lib/stdint_.h: Likewise.
50218         * lib/stdio_.h: Likewise.
50219         * lib/stdlib_.h: Likewise.
50220         * lib/string_.h: Likewise.
50221         * lib/sys_select_.h: Likewise.
50222         * lib/sys_socket_.h: Likewise.
50223         * lib/sys_stat_.h: Likewise.
50224         * lib/sys_time_.h: Likewise.
50225         * lib/sysexits_.h: Likewise.
50226         * lib/time_.h: Likewise.
50227         * lib/unistd_.h: Likewise.
50228         * lib/wchar_.h: Likewise.
50229         * lib/wctype_.h: Likewise.
50230
50231 2007-05-29  Bruno Haible  <bruno@clisp.org>
50232
50233         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50234         for the moment.
50235
50236 2007-05-29  Bruno Haible  <bruno@clisp.org>
50237
50238         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50239         invocation.
50240         Reported by Eric Blake.
50241
50242 2007-05-29  Bruno Haible  <bruno@clisp.org>
50243
50244         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50245         compiling case.
50246
50247 2007-05-29  Eric Blake  <ebb9@byu.net>
50248             Bruno Haible  <bruno@clisp.org>
50249
50250         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50251         cross compiles.
50252
50253 2007-05-28  Eric Blake  <ebb9@byu.net>
50254
50255         * modules/closein-tests (test_closein_LDADD): Support test on
50256         cygwin with libtool.
50257
50258 2007-05-28  Bruno Haible  <bruno@clisp.org>
50259
50260         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50261         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50262         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50263         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50264         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50265         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50266         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50267         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50268         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50269
50270 2007-05-28  Eric Blake  <ebb9@byu.net>
50271
50272         Unconditionally include <config.h> in unit tests.
50273         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50274         * tests/test-allocsa.c, tests/test-arcfour.c,
50275         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50276         tests/test-array_list.c, tests/test-array_oset.c,
50277         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50278         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50279         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50280         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50281         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50282         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50283         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50284         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50285         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50286         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50287         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50288         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50289         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50290         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50291         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50292         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50293         test-md5.c, test-memmem.c, test-printf-posix.c,
50294         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50295         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50296         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50297         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50298         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50299         test-vasnprintf-posix2.c, test-vasnprintf.c,
50300         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50301         test-vfprintf-posix.c, test-vprintf-posix.c,
50302         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50303         test-xvasprintf.c: Likewise.
50304
50305 2007-05-28  Bruno Haible  <bruno@clisp.org>
50306
50307         * gnulib-tool (func_import): Remember the --with-tests command-line
50308         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50309         Reported by Eric Blake.
50310
50311 2007-05-28  Bruno Haible  <bruno@clisp.org>
50312
50313         * modules/ftell-tests: New file.
50314         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50315         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50316
50317         * lib/ftell.c: New file.
50318         * modules/ftell: New file.
50319         * m4/ftell.m4: New file.
50320         * doc/functions/ftell.texi: Update.
50321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50322         REPLACE_FTELL.
50323         * lib/stdio_.h (rpl_ftell): New declaration.
50324         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50325         REPLACE_FTELL.
50326
50327 2007-05-28  Eric Blake  <ebb9@byu.net>
50328
50329         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50330
50331 2007-05-28  Bruno Haible  <bruno@clisp.org>
50332
50333         * modules/fseek-tests: New file.
50334         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50335         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50336
50337         * lib/fseek.c: New file.
50338         * modules/fseek: New file.
50339         * m4/fseek.m4: New file.
50340         * doc/functions/fseek.texi: Update.
50341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50342         REPLACE_FSEEK.
50343         * lib/stdio_.h (rpl_fseek): New declaration.
50344         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50345         REPLACE_FSEEK.
50346
50347 2007-05-28  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/stdio_.h (fflush): More comments.
50350
50351 2007-05-28  Bruno Haible  <bruno@clisp.org>
50352
50353         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50354         runtime test.
50355
50356 2007-05-28  Eric Blake  <ebb9@byu.net>
50357
50358         Improve lseek module.
50359         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50360         * lib/unistd_.h (lseek): Scale back link warning message.
50361         * tests/test-lseek.c: Beef up test.
50362         * tests/test-lseek.sh: Exercise more facets of lseek.
50363         Reported by Bruno Haible.
50364
50365 2007-05-28  Bruno Haible  <bruno@clisp.org>
50366
50367         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50368         to define.
50369
50370 2007-05-27  Bruno Haible  <bruno@clisp.org>
50371
50372         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50373
50374 2007-05-27  Bruno Haible  <bruno@clisp.org>
50375
50376         * modules/openmp: New file.
50377         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50378         Noah Misch.
50379
50380 2007-05-26  Bruno Haible  <bruno@clisp.org>
50381
50382         * modules/chdir-long (Depends-on): Add fchdir.
50383         * modules/chdir-safer (Depends-on): Likewise.
50384         * modules/fts (Depends-on): Likewise.
50385         * modules/fts-lgpl (Depends-on): Likewise.
50386         * modules/openat (Depends-on): Likewise.
50387         * modules/savewd (Depends-on): Likewise.
50388
50389 2007-05-24  Eric Blake  <ebb9@byu.net>
50390
50391         Fix lseek on mingw.
50392         * modules/lseek: New module.
50393         * m4/lseek.m4: New file.
50394         * lib/lseek.c: New file.
50395         * modules/lseek-tests: New file.
50396         * tests/test-lseek.c: New file.
50397         * tests/test-lseek.sh: New file.
50398         * MODULES.html.sh: Document lseek module.
50399         * modules/fflush (Depends-on): Add lseek, fseeko.
50400         * modules/fseeko (Depends-on): Likewise.
50401         * modules/ftello (Depends-on): Likewise.
50402         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50403         broken.
50404         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50405         broken.
50406         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50407         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50408         * lib/ftello.c (rpl_ftello): Likewise.
50409         * tests/test-fseeko.c (main): Test this.
50410         * tests/test-fseeko.sh: Likewise.
50411         * tests/test-ftello.c (main): Likewise.
50412         * tests/test-ftello.sh: Likewise.
50413         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50414         implies replacing fseek.
50415         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50416         HAVE_FTELLO.
50417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50418         * modules/unistd (Makefile.am): Likewise.
50419         * lib/unistd_.h (lseek): Declare a replacement.
50420         * doc/functions/lseek.texi (lseek): Document this fix.
50421         * doc/functions/fseek.texi (fseek): Likewise.
50422         * doc/functions/ftell.texi (ftell): Likewise.
50423
50424 2007-05-24  Bruno Haible  <bruno@clisp.org>
50425
50426         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50427         in the printed representation of a NaN.
50428         * tests/test-vasprintf-posix.c (test_function): Likewise.
50429         * tests/test-snprintf-posix.h (test_function): Likewise.
50430         * tests/test-sprintf-posix.h (test_function): Likewise.
50431         Reported by Eric Blake.
50432
50433 2007-05-23  Eric Blake  <ebb9@byu.net>
50434
50435         Fix fseeko/ftello on cygwin 1.5.24.
50436         * doc/functions/fseeko.texi (fseeko): Document the fix.
50437         * doc/functions/ftello.texi (ftello): Document the fix.
50438         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50439         * doc/functions/stdout.text (stdout): New file.
50440         * doc/functions/stderr.text (stderr): New file.
50441         * doc/gnulib.texi (Function Substitutes): Use new files.
50442         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50443         prior to 1.7.0.
50444         * tests/test-ftello.c (main): Likewise for ftello.
50445         * tests/test-fseeko.sh: New file.
50446         * tests/test-ftello.sh: New file.
50447         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50448         with seekable stdin.
50449         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50450         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50451         (gl_REPLACE_FSEEKO): New macro.
50452         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50453         * modules/fseeko (Files): Distribute fseeko.c.
50454         * modules/ftello (Files): Distribute ftello.c.
50455         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50456         mode.
50457         * lib/ftello.c (rpl_ftello): New file.
50458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50459         fseeko, ftello.
50460         (gl_STDIN_LARGE_OFFSET): New macro.
50461         * modules/stdio (Makefile.am): Perform the replacement.
50462         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50463
50464 2007-05-23  Bruno Haible  <bruno@clisp.org>
50465
50466         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50467         GNULIB_POSIXCHECK is defined.
50468
50469 2007-05-21  Bruno Haible  <bruno@clisp.org>
50470
50471         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50472         Check also the output for NaN arguments. When cross-compiling, guess
50473         no on IRIX.
50474         * lib/vasnprintf.c: Update comments.
50475         * tests/test-vasnprintf-posix.c (strisnan): New function.
50476         (test_function): Use it.
50477         * tests/test-vasprintf-posix.c (strisnan): New function.
50478         (test_function): Use it.
50479         * tests/test-snprintf-posix.h (strisnan): New function.
50480         (test_function): Use it.
50481         * tests/test-sprintf-posix.h (strisnan): New function.
50482         (test_function): Use it.
50483         Reported by Eric Blake.
50484
50485 2007-05-20  Bruno Haible  <bruno@clisp.org>
50486
50487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50488         numbers that fails on BeOS.
50489         * doc/functions/frexpl.texi: Update.
50490
50491 2007-05-20  Jim Meyering  <jim@meyering.net>
50492
50493         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50494         forced upon us by glibc-2.6.
50495
50496 2007-05-20  Bruno Haible  <bruno@clisp.org>
50497
50498         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50499         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50500         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50501         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50502         NEED_PRINTF_INFINITE.
50503         (is_infinitel): New function.
50504         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50506         gl_PREREQ_VASNPRINTF_INFINITE.
50507         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50509         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50510         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50511         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50512         gl_PREREQ_VASNPRINTF_INFINITE.
50513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50520         * doc/functions/fprintf.texi: Update.
50521         * doc/functions/printf.texi: Update.
50522         * doc/functions/snprintf.texi: Update.
50523         * doc/functions/sprintf.texi: Update.
50524         * doc/functions/vfprintf.texi: Update.
50525         * doc/functions/vprintf.texi: Update.
50526         * doc/functions/vsnprintf.texi: Update.
50527         * doc/functions/vsprintf.texi: Update.
50528
50529 2007-05-20  Bruno Haible  <bruno@clisp.org>
50530
50531         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50532         was not found in libc.
50533         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50534
50535 2007-05-20  Bruno Haible  <bruno@clisp.org>
50536
50537         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50538         printed as "-nan" instead of "nan".
50539         * tests/test-vasprintf-posix.c (test_function): Likewise.
50540         * tests/test-snprintf-posix.h (test_function): Likewise.
50541         * tests/test-sprintf-posix.h (test_function): Likewise.
50542         Needed for HP-UX 11.
50543
50544 2007-05-20  Jim Meyering  <jim@meyering.net>
50545
50546         Fix buggy test for the fchownat-deref bug.
50547         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50548         symlink required for the run-test.  Without it, this test would
50549         always declare that fchownat doesn't work, and client code would
50550         unnecessarily use the replacement function with fixed libc.
50551         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50552         Reported by Greg Schafer.
50553
50554 2007-05-19  Bruno Haible  <bruno@clisp.org>
50555
50556         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50557         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50558         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50559         Needed for IRIX 6.5 and Solaris 2.5.1.
50560
50561 2007-05-19  Bruno Haible  <bruno@clisp.org>
50562
50563         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50564         (test_function): Skip tests involving -0.0 on platforms where
50565         -0.0 = 0.0.
50566         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50567         (test_function): Skip tests involving -0.0 on platforms where
50568         -0.0 = 0.0.
50569         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50570         (test_function): Skip tests involving -0.0 on platforms where
50571         -0.0 = 0.0.
50572         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50573         (test_function): Skip tests involving -0.0 on platforms where
50574         -0.0 = 0.0.
50575         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50576         tests.
50577         * tests/test-printf-posix.h (test_function): Likewise.
50578         * tests/test-printf-posix.output: Remove all -0.0 related results.
50579         Needed for IRIX 6.5.
50580
50581 2007-05-19  Bruno Haible  <bruno@clisp.org>
50582
50583         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50584         printed as "nan0x7fffffff" instead of "nan".
50585         * tests/test-vasprintf-posix.c (test_function): Likewise.
50586         * tests/test-snprintf-posix.h (test_function): Likewise.
50587         * tests/test-sprintf-posix.h (test_function): Likewise.
50588         * tests/test-fprintf-posix.h (NaN): Remove macro.
50589         (test_function): Remove all NaN related tests.
50590         * tests/test-printf-posix.h (NaN): Remove macro.
50591         (test_function): Remove all NaN related tests.
50592         * tests/test-printf-posix.output: Remove all NaN related results.
50593         Needed for IRIX 6.5.
50594
50595 2007-05-19  Bruno Haible  <bruno@clisp.org>
50596
50597         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50599
50600 2007-05-19  Bruno Haible  <bruno@clisp.org>
50601
50602         * lib/float_.h: New file.
50603         * m4/float_h.m4: New file.
50604         * modules/float: New file.
50605         * modules/isnanl (Dependencies): Add float.
50606         * modules/isnanl-nolibm (Dependencies): Likewise.
50607         * modules/mathl (Dependencies): Likewise.
50608         * modules/printf-frexpl (Dependencies): Likewise.
50609         * modules/signbit (Dependencies): Likewise.
50610         * modules/vasnprintf (Dependencies): Likewise.
50611         * doc/headers/float.texi: Update.
50612
50613 2007-05-19  Jim Meyering  <jim@meyering.net>
50614
50615         * lib/utimens.c (gl_futimens): Rename from futimens,
50616         now that glibc-2.6 declares futimens.
50617         * lib/utimens.h: Likewise.
50618
50619 2007-05-19  Bruno Haible  <bruno@clisp.org>
50620
50621         Avoid test failures on mingw.
50622         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50623         * tests/test-printf-posix.sh: Likewise.
50624         * tests/test-vfprintf-posix.sh: Likewise.
50625         * tests/test-vprintf-posix.sh: Likewise.
50626
50627 2007-05-19  Bruno Haible  <bruno@clisp.org>
50628
50629         Fix *printf result for NaN, Inf, -0.0 on mingw.
50630         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50631         * lib/vasnprintf.c: Include math.h and isnan.h.
50632         (is_infinite_or_zero): New function.
50633         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50634         values in the %f, %F, %e, %E, %g, %G directives.
50635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50636         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50637         gl_PRINTF_INFINITE and test its result. Invoke
50638         gl_PREREQ_VASNPRINTF_INFINITE.
50639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50640         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50646         * doc/functions/fprintf.texi: Update.
50647         * doc/functions/printf.texi: Update.
50648         * doc/functions/snprintf.texi: Update.
50649         * doc/functions/sprintf.texi: Update.
50650         * doc/functions/vfprintf.texi: Update.
50651         * doc/functions/vprintf.texi: Update.
50652         * doc/functions/vsnprintf.texi: Update.
50653         * doc/functions/vsprintf.texi: Update.
50654
50655 2007-05-19  Bruno Haible  <bruno@clisp.org>
50656
50657         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50658         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50659         Instead of multiplying with 10^k, set extra_zeroes to k.
50660         (scale10_round_long_double): Remove function.
50661
50662 2007-05-18  Bruno Haible  <bruno@clisp.org>
50663
50664         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50665         introduced on 2007-05-06.
50666
50667 2007-05-18  Bruno Haible  <bruno@clisp.org>
50668
50669         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50670         %g directives.
50671         * tests/test-vasprintf-posix.c (test_function): Likewise.
50672         * tests/test-snprintf-posix.h (test_function): Likewise.
50673         * tests/test-sprintf-posix.h (test_function): Likewise.
50674
50675 2007-05-18  Bruno Haible  <bruno@clisp.org>
50676
50677         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50678         (strmatch): New function.
50679         (test_function): Test the %f directive on numbers of various exponents.
50680         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50681         (strmatch): New function.
50682         (test_function): Test the %f directive on numbers of various exponents.
50683         * tests/test-snprintf-posix.h (strmatch): New function.
50684         (test_function): Test the %f directive on numbers of various exponents.
50685         * tests/test-sprintf-posix.h (strmatch): New function.
50686         (test_function): Test the %f directive on numbers of various exponents.
50687         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50688         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50689         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50690         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50691
50692 2007-05-18  Bruno Haible  <bruno@clisp.org>
50693
50694         Add support for 'long double' number output.
50695         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50696         * lib/vasnprintf.c: Include math.h and float+.h.
50697         (mp_limb_t): New type.
50698         (GMP_LIMB_BITS): New macro.
50699         (mp_twolimb_t): New type.
50700         (GMP_TWOLIMB_BITS): New macro.
50701         (mpn_t): New type.
50702         (multiply, divide, convert_to_decimal, decode_long_double,
50703         scale10_round_long_double, scale10_round_decimal_long_double,
50704         floorlog10l): New functions.
50705         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50706         for the %f, %F, %e, %E, %g, %G directives.
50707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50708         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50709         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50710         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50715         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50718         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50719         * modules/snprintf-posix (Depends-on): Likewise.
50720         * modules/sprintf-posix (Depends-on): Likewise.
50721         * modules/vasnprintf-posix (Depends-on): Likewise.
50722         * modules/vasprintf-posix (Depends-on): Likewise.
50723         * modules/vfprintf-posix (Depends-on): Likewise.
50724         * modules/vsnprintf-posix (Depends-on): Likewise.
50725         * modules/vsprintf-posix (Depends-on): Likewise.
50726         * modules/vasnprintf (Files): Add lib/float+.h.
50727         * doc/functions/fprintf.texi: Update.
50728         * doc/functions/printf.texi: Update.
50729         * doc/functions/snprintf.texi: Update.
50730         * doc/functions/sprintf.texi: Update.
50731         * doc/functions/vfprintf.texi: Update.
50732         * doc/functions/vprintf.texi: Update.
50733         * doc/functions/vsnprintf.texi: Update.
50734         * doc/functions/vsprintf.texi: Update.
50735
50736 2007-05-18  Bruno Haible  <bruno@clisp.org>
50737
50738         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50739
50740 2007-05-18  Bruno Haible  <bruno@clisp.org>
50741
50742         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50743         for printing 64-bit integers. Needed for mingw.
50744
50745 2007-05-18  Bruno Haible  <bruno@clisp.org>
50746
50747         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50748         gl_FUNC_FREXPL_WORKS.
50749         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50750
50751 2007-05-18  Bruno Haible  <bruno@clisp.org>
50752
50753         * modules/frexpl-nolibm-tests: New file.
50754
50755         * modules/frexpl-nolibm: New file.
50756         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50757
50758 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50759
50760         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50761         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50762         GCC 4.2, which otherwise issues a lot of warnings.
50763         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50764         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50765         Likewise.
50766         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50767         * modules/iconv_open (iconv.h): Likewise.
50768         * modules/locale (locale.h): Likewise.
50769         * modules/netinet_in (netinet/in.h): Likewise.
50770         * modules/sys_select (sys_select.h): Likewise.
50771         * modules/sys_socket (sys/socket.h): Likewise.
50772         * modules/sys_stat (sys/stat.h): Likewise.
50773         * modules/sysexits (sysexits.h): Likewise.
50774         * modules/unistd (unistd.h): Likewise.
50775
50776 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50777
50778         * modules/closein-tests (Makefile.am): Distribute
50779         `test-closein.sh'.
50780
50781 2007-05-17  Bruno Haible  <bruno@clisp.org>
50782
50783         * tests/test-printf-posix.output: Renamed from
50784         tests/test-fprintf-posix.out.
50785         * modules/fprintf-posix-tests: Update.
50786         * modules/printf-posix-tests: Update.
50787         * modules/vfprintf-posix-tests: Update.
50788         * modules/vprintf-posix-tests: Update.
50789         * tests/test-fprintf-posix.sh: Update.
50790         * tests/test-printf-posix.sh: Update.
50791         * tests/test-vfprintf-posix.sh: Update.
50792         * tests/test-vprintf-posix.sh: Update.
50793         Reported by Ralf Wildenhues.
50794
50795 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50796
50797         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50798         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50799         GCC 4.2, which otherwise issues a lot of warnings.
50800         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50801         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50802         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50803         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50804         it should no longer be needed.
50805         * lib/string_.h: Likewise.
50806         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50807         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50808         * modules/inttypes (inttypes.h): Likewise.
50809         * modules/math (math.h): Likewise.
50810         * modules/search (search.h): Likewise.
50811         * modules/signal (signal.h): Likewise.
50812         * modules/stdint (stdint.h): Likewise.
50813         * modules/stdio (stdio.h): Likewise.
50814         * modules/stdlib (stdlib.h): Likewise.
50815         * modules/string (string.h): Likewise.
50816         * modules/sys_time (sys/time.h): Likewise.
50817         * modules/time (time.h): Likewise.
50818         * modules/wchar (wchar.h): Likewise.
50819         * modules/wctype (wtype.h): Likewise.
50820
50821 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50822
50823         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50824
50825 2007-05-13  Bruno Haible  <bruno@clisp.org>
50826
50827         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50828         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50829         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50830         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50831         (gl_PREREQ_STRTOK_R): Don't require it here.
50832
50833 2007-05-13  Bruno Haible  <bruno@clisp.org>
50834
50835         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50836         when used in C++ mode.
50837
50838 2007-05-12  Bruno Haible  <bruno@clisp.org>
50839
50840         * lib/linebuffer.h: Tweak doc.
50841         * lib/linebuffer.c: Likewise.
50842
50843 2007-05-12  James Youngman  <jay@gnu.org>
50844
50845         * lib/linebuffer.c (readlinebuffer_delim): New function,
50846         like readlinebuffer, but use a caller-specified delimiter.
50847         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50848         as the delimiter.
50849         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50850
50851 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50852
50853         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50854         * modules/openat (Files): Remove openat-die.c.
50855         (Depends-on): Add openat-die.
50856         * modules/openat-die: New module.
50857
50858 2007-05-06  Bruno Haible  <bruno@clisp.org>
50859
50860         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50861         Update with info about Cygwin.
50862         * doc/functions/fprintf.texi: Update.
50863         * doc/functions/printf.texi: Update.
50864         * doc/functions/snprintf.texi: Update.
50865         * doc/functions/sprintf.texi: Update.
50866         * doc/functions/vfprintf.texi: Update.
50867         * doc/functions/vprintf.texi: Update.
50868         * doc/functions/vsnprintf.texi: Update.
50869         * doc/functions/vsprintf.texi: Update.
50870         Reported by Eric Blake.
50871
50872 2007-05-06  Bruno Haible  <bruno@clisp.org>
50873
50874         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50875         padding ourselves for the floating-point directives.
50876         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50878         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50879         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50880         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50881         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50882         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50885         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50887         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50888         * tests/test-snprintf-posix.h (test_function): Also check the width
50889         and some flags in the %f directive.
50890         * tests/test-sprintf-posix.h (test_function): Likewise.
50891         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50892         * tests/test-vasprintf-posix.c (test_function): Likewise.
50893         * doc/functions/fprintf.texi: Update.
50894         * doc/functions/printf.texi: Update.
50895         * doc/functions/snprintf.texi: Update.
50896         * doc/functions/sprintf.texi: Update.
50897         * doc/functions/vfprintf.texi: Update.
50898         * doc/functions/vprintf.texi: Update.
50899         * doc/functions/vsnprintf.texi: Update.
50900         * doc/functions/vsprintf.texi: Update.
50901
50902 2007-05-06  Bruno Haible  <bruno@clisp.org>
50903
50904         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50905         pass the ' flag character to sprintf or snprintf.
50906         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50909         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50910         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50912         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50918         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50919         flag.
50920         * tests/test-sprintf-posix.h (test_function): Likewise.
50921         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50922         * tests/test-vasprintf-posix.c (test_function): Likewise.
50923         * doc/functions/fprintf.texi: Update.
50924         * doc/functions/printf.texi: Update.
50925         * doc/functions/snprintf.texi: Update.
50926         * doc/functions/sprintf.texi: Update.
50927         * doc/functions/vfprintf.texi: Update.
50928         * doc/functions/vprintf.texi: Update.
50929         * doc/functions/vsnprintf.texi: Update.
50930         * doc/functions/vsprintf.texi: Update.
50931
50932 2007-05-01  Bruno Haible  <bruno@clisp.org>
50933
50934         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50935
50936 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50937
50938         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50939         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50940
50941 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50942
50943         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50944         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50945         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50946
50947 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50948
50949         * lib/argp-help.c (struct hol_entry): New member `ord'.
50950         (HOL_ENTRY_PTRCMP): Use ord for comparison
50951         (hol_sort): Initialize ord.
50952
50953 2007-05-01  Bruno Haible  <bruno@clisp.org>
50954
50955         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50956         Reported by Eric Blake.
50957         * doc/gnulib.texi (Function Substitutes): Update.
50958
50959 2007-05-01  Bruno Haible  <bruno@clisp.org>
50960
50961         * doc/functions.texi: Remove file, now redundant through
50962         doc/functions/*.texi.
50963
50964 2007-05-01  Bruno Haible  <bruno@clisp.org>
50965
50966         * modules/argp (Depends-on): Add sleep.
50967
50968 2007-05-01  Bruno Haible  <bruno@clisp.org>
50969
50970         * modules/sleep-tests: New file.
50971         * tests/test-sleep.c: New file.
50972
50973         * modules/sleep: New file.
50974         * lib/sleep.c: New file.
50975         * m4/sleep.m4: New file.
50976         * lib/unistd_.h (sleep): New declaration.
50977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50978         HAVE_SLEEP.
50979         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50980         * doc/functions/sleep.texi: Document the sleep module.
50981
50982 2007-05-01  Bruno Haible  <bruno@clisp.org>
50983
50984         * lib/sigprocmask.h: Remove file.
50985         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50986         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50987         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50988         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50989         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50990         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50991         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50992         HAVE_SIGSET_T as a shell variable.
50993         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50994         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50995         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50996         (Depends-on): Add signal. Remove verify.
50997         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50998         (Include): Mention <signal.h> instead of sigprocmask.h.
50999         * NEWS: Mention the change.
51000         * lib/fatal-signal.c: Don't include sigprocmask.h.
51001
51002 2007-05-01  Bruno Haible  <bruno@clisp.org>
51003
51004         * modules/signal: New file.
51005         * lib/signal_.h: New file.
51006         * m4/signal_h.m4: New file.
51007
51008 2007-05-01  Bruno Haible  <bruno@clisp.org>
51009
51010         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
51011         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
51012         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
51013         HAVE_WCTYPE_CTMP_BUG into wctype.h.
51014
51015 2007-05-01  Bruno Haible  <bruno@clisp.org>
51016
51017         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
51018         configure time.
51019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
51020         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
51021         * modules/sys_stat (Makefile.am): Substitute their values into
51022         sys/stat.h.
51023
51024 2007-05-01  Bruno Haible  <bruno@clisp.org>
51025
51026         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
51027         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
51028         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
51029
51030 2007-05-01  Bruno Haible  <bruno@clisp.org>
51031
51032         * doc/header/assert.texi: Undo last change: don't mention the gnulib
51033         'assert' module here.
51034
51035 2007-05-01  Bruno Haible  <bruno@clisp.org>
51036
51037         * doc/functions/*.texi: New files.
51038         * doc/functions/google-ranking.txt: New file.
51039         * doc/gnulib.texi (Function Substitutes): New chapter.
51040         (ctime, inet_ntoa): Remove sections.
51041         * doc/ctime.texi: Remove file.
51042         * doc/inet_ntoa.texi: Remove file.
51043         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
51044         dependencies.
51045         (%.info): New rule, specifying a --reference-limit.
51046
51047 2007-05-01  Bruno Haible  <bruno@clisp.org>
51048
51049         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
51050
51051 2007-05-01  Bruno Haible  <bruno@clisp.org>
51052
51053         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
51054         the portability of 'mkdir' to mingw systems.
51055
51056 2007-05-01  Bruno Haible  <bruno@clisp.org>
51057
51058         * doc/headers/google-ranking.txt: New file.
51059
51060 2007-04-30  Eric Blake  <ebb9@byu.net>
51061
51062         Prefer fseeko to fseek.
51063         * modules/getpass (Depends-on): Add fseeko.
51064         * lib/getpass.c (getpass): Use fseeko, not fseek.
51065
51066 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
51067
51068         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
51069         assumes the sorting is stable, while most qsort implementations
51070         are not.  Use argument addresses to ensure they never compare as
51071         equal.
51072
51073         * tests/test-argp-2.sh (usage-indent test): Fix output
51074         (func_compare): Restore diff options
51075         * tests/test-argp.c: Restore #include "progname.h"
51076
51077 2007-04-29  Bruno Haible  <bruno@clisp.org>
51078
51079         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
51080         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51081         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
51082         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51083         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
51084         (configure.ac): Define CHECK_SNPRINTF_POSIX.
51085         (TESTS, check_PROGRAMS): Add test-snprintf.
51086         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
51087         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
51088         (TESTS, check_PROGRAMS): Add test-vsnprintf.
51089         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
51090         assertions that fail on HP-UX, OSF/1, or IRIX.
51091         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
51092
51093 2007-04-29  Bruno Haible  <bruno@clisp.org>
51094
51095         * MODULES.html.sh (posix_functions): Remove 'contents'.
51096
51097 2007-04-29  Karl Berry  <karl@gnu.org>
51098
51099         * config/srclist.txt (gendocs_template_min): new entry.
51100
51101 2007-04-29  Bruno Haible  <bruno@clisp.org>
51102
51103         Work around fpurge bug on BSD systems.
51104         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
51105         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
51106         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
51107         fpurge to rpl_fpurge if the system already has this function.
51108         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
51109         the case where the system already has this function. Correct invariants
51110         on BSD systems.
51111         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
51112         BSD systems.
51113
51114 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
51115
51116         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
51117         proposed by Sven Verdoolaege.
51118
51119         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
51120         options.
51121         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
51122         (usage and help tests): Update
51123
51124 2007-04-29  Bruno Haible  <bruno@clisp.org>
51125
51126         * tests/test-fflush.c (main): Use a file of size 17, not 10.
51127         Print more information in case of failure. Disable a test on BeOS.
51128
51129 2007-04-29  Bruno Haible  <bruno@clisp.org>
51130
51131         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
51132         This helps debugging on systems on which no gdb is available.
51133
51134 2007-04-29  Bruno Haible  <bruno@clisp.org>
51135
51136         * lib/freading.h: Improve comments.
51137         * lib/fwriting.h: Likewise.
51138         * tests/test-freading.c (main): Don't check freading immediately after
51139         repositioning. Needed for glibc.
51140
51141 2007-04-29  Bruno Haible  <bruno@clisp.org>
51142
51143         * lib/freading.c (freading): Trivial simplification.
51144
51145 2007-04-28  Bruno Haible  <bruno@clisp.org>
51146
51147         * tests/test-fwriting.c (main): Also test the interaction between
51148         fflush and fwriting.
51149         * modules/fwriting-tests (Depends-on): Add fflush.
51150
51151         * tests/test-freading.c (main): Also test the interaction between
51152         fflush and freading.
51153         * modules/freading-tests (Depends-on): Add fflush.
51154
51155 2007-04-28  Bruno Haible  <bruno@clisp.org>
51156
51157         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
51158         fseeko and ftello.
51159         Suggested by Eric Blake.
51160
51161 2007-04-28  Jim Meyering  <jim@meyering.net>
51162
51163         Avoid false-negative in gl_STDINT_H's C99 conformance test.
51164         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
51165         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
51166
51167 2007-04-27  Eric Blake  <ebb9@byu.net>
51168
51169         * doc/headers/assert.texi (assert.h): Document assert module use.
51170
51171 2007-04-27  Bruno Haible  <bruno@clisp.org>
51172
51173         * doc/headers/*.texi: New files.
51174         * doc/gnulib.texi (Header File Substitutes): New chapter.
51175         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
51176         dependencies.
51177         (standards.info ,standards.html, standards.dvi): Update dependencies.
51178         (mostlyclean, clean): New targets.
51179
51180 2007-04-27  Bruno Haible  <bruno@clisp.org>
51181
51182         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
51183         * modules/sysexits (Files, Makefile.am): Update.
51184
51185         * lib/sys_socket_.h: Renamed from lib/socket_.h.
51186         * modules/sys_socket (Files, Makefile.am): Update.
51187
51188         * lib/sys_stat_.h: Renamed from lib/stat_.h.
51189         * modules/sys_stat (Files, Makefile.am): Update.
51190
51191 2007-04-27  Eric Blake  <ebb9@byu.net>
51192
51193         * lib/freading.h: Improve comments.
51194         * lib/fwriting.h: Likewise.
51195         * lib/fflush.c: Likewise.
51196
51197         Fix closein for mingw.
51198         * modules/closein-tests: Add tests for closein.
51199         * tests/test-closein.c: New file.
51200         * tests/test-closein.sh: Likewise.
51201         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
51202         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
51203
51204 2007-04-27  Bruno Haible  <bruno@clisp.org>
51205
51206         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
51207         version is < 6.
51208         * lib/math_.h [__DECC]: Likewise.
51209         * lib/stdio_.h [__DECC]: Likewise.
51210         * lib/stdlib_.h [__DECC]: Likewise.
51211         * lib/string_.h [__DECC]: Likewise.
51212         * lib/time_.h [__DECC]: Likewise.
51213         * lib/wchar_.h [__DECC]: Likewise.
51214         * lib/wctype_.h [__DECC]: Likewise.
51215
51216 2007-04-27  Bruno Haible  <bruno@clisp.org>
51217
51218         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51219
51220 2007-04-27  Bruno Haible  <bruno@clisp.org>
51221
51222         * lib/fflush.c: Add comments.
51223         * modules/fpurge-tests (Depends-on): Add fflush.
51224         * modules/freadable-tests (Depends-on): Likewise.
51225         * modules/fwritable-tests (Depends-on): Likewise.
51226
51227 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51228
51229         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51230         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51231         Report by Bruno Haible <bruno@clisp.org>.
51232
51233 2007-04-26  Eric Blake  <ebb9@byu.net>
51234
51235         Fix fflush on mingw.
51236         * modules/fflush (Depends-on): Add freading.
51237         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51238         but unread data.
51239
51240 2007-04-26  Eric Blake  <ebb9@byu.net>
51241         and Bruno Haible  <bruno@clisp.org>
51242
51243         Implement freading and fwriting.
51244         * lib/freading.c: New file.
51245         * lib/freading.h: Likewise.
51246         * m4/freading.m4: Likewise.
51247         * modules/freading: Likewise.
51248         * modules/freading-tests: Likewise.
51249         * tests/test-freading.c: Likewise.
51250         * lib/fwriting.c: New file.
51251         * lib/fwriting.h: Likewise.
51252         * m4/fwriting.m4: Likewise.
51253         * modules/fwriting: Likewise.
51254         * modules/fwriting-tests: Likewise.
51255         * tests/test-fwriting.c: Likewise.
51256         * MODULES.html.sh (File stream based Input/Output): Mention them.
51257
51258 2007-04-26  Bruno Haible  <bruno@clisp.org>
51259
51260         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51261         'long' when we assume it.
51262         Suggested by Eric Blake.
51263
51264 2007-04-26  Bruno Haible  <bruno@clisp.org>
51265
51266         Ensure fseeko, ftello are declared on glibc systems.
51267         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51268         * modules/fseeko (configure.ac-early): Likewise.
51269         * modules/ftello (configure.ac-early): Likewise.
51270         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51271         AC_FUNC_FSEEKO for this.
51272         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51273         (gl_CHECK_FSEEKO): Remove macro.
51274
51275 2007-04-26  Bruno Haible  <bruno@clisp.org>
51276
51277         * tests/test-fflush.c (main): Also check the ftell result after
51278         fflush and fseek/fseeko.
51279         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51280         file descriptor position cache in the stream.
51281         * lib/fseeko.c (rpl_fseeko): Likewise.
51282
51283 2007-04-26  Bruno Haible  <bruno@clisp.org>
51284
51285         * modules/fflush-tests (Depends-on): Add fseeko.
51286
51287 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51288             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51289
51290         * lib/argz_.h: ensure error_t definition is obtained in same
51291         mechanism system argz.h would have.
51292         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51293         argz facilities are known bad.  Err on the side of caution if
51294         cross-compiling.
51295
51296 2007-04-25  Eric Blake  <ebb9@byu.net>
51297
51298         * lib/fpurge.c (includes): Use stdlib.h for free.
51299         * tests/test-fflush.c (main): Also test fflush-fseeko.
51300
51301 2007-04-25  Bruno Haible  <bruno@clisp.org>
51302
51303         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51304         * lib/fseeko.c: New file.
51305         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51306         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51307         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51308         gl_FUNC_FSEEKO.
51309         (gl_FUNC_FSEEKO): Invoke it.
51310         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51311         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51312         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51313
51314 2007-04-25  Bruno Haible  <bruno@clisp.org>
51315
51316         * modules/fflush (Depends-on): Add ftello.
51317
51318 2007-04-25  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/ftello-tests: New file.
51321         * tests/test-ftello.c: New file.
51322
51323         * modules/ftello: New file.
51324         * m4/ftello.m4: New file.
51325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51326         HAVE_FTELLO.
51327         * lib/stdio_.h (ftello): New declaration.
51328         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51329         HAVE_FTELLO.
51330
51331 2007-04-25  Bruno Haible  <bruno@clisp.org>
51332
51333         * modules/fseeko-tests: New file.
51334         * tests/test-fseeko.c: New file.
51335
51336         * modules/fseeko: New file.
51337         * m4/fseeko.m4: New file.
51338         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51339         HAVE_FSEEKO.
51340         * lib/stdio_.h (fseeko): New declaration.
51341         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51342         HAVE_FSEEKO.
51343
51344 2007-04-25  Bruno Haible  <bruno@clisp.org>
51345
51346         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51347
51348 2007-04-25  Bruno Haible  <bruno@clisp.org>
51349
51350         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51351         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51352         * tests/test-unistd.c: Likewise.
51353         * tests/test-fcntl.c: Likewise.
51354
51355 2007-04-23  Eric Blake  <ebb9@byu.net>
51356
51357         * lib/fflush.c: Fix missing include.
51358         Reported by Bruno Haible.
51359
51360 2007-04-23  Bruno Haible  <bruno@clisp.org>
51361
51362         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51363         Reported by Eric Blake.
51364
51365 2007-04-23  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51368
51369 2007-04-23  Bruno Haible  <bruno@clisp.org>
51370
51371         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51372
51373 2007-04-23  Bruno Haible  <bruno@clisp.org>
51374
51375         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51376         Needed on HP-UX 11.
51377
51378 2007-04-16  Eric Blake  <ebb9@byu.net>
51379
51380         Make fflush rely on fpurge.
51381         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51382         open coding all variants.
51383         * modules/fflush (Depends-on): Add fpurge and unistd.
51384         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51385         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51386
51387         Fix --with-tests compilation on cygwin.
51388         * modules/argmatch-tests (Makefile.am): List gnulib library first
51389         in LDADD.
51390         * modules/argp-tests (Makefile.am): Likewise.
51391         * modules/array-list-tests (Makefile.am): Likewise.
51392         * modules/array-oset-tests (Makefile.am): Likewise.
51393         * modules/avltree-list-tests (Makefile.am): Likewise.
51394         * modules/avltree-oset-tests (Makefile.am): Likewise.
51395         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51396         * modules/carray-list-tests (Makefile.am): Likewise.
51397         * modules/dirname-tests (Makefile.am): Likewise.
51398         * modules/frexp-tests (Makefile.am): Likewise.
51399         * modules/isnanl-tests (Makefile.am): Likewise.
51400         * modules/linked-list-tests (Makefile.am): Likewise.
51401         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51402         * modules/lock-tests (Makefile.am): Likewise.
51403         * modules/rbtree-list-tests (Makefile.am): Likewise.
51404         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51405         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51406         * modules/tls-tests (Makefile.am): Likewise.
51407         * modules/tsearch-tests (Makefile.am): Likewise.
51408         * modules/xvasprintf-tests (Makefile.am): Likewise.
51409
51410         Fix fpurge for cygwin.
51411         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51412         value.
51413         * modules/fpurge-tests (Depends-on): Clean up trash.
51414
51415 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51416
51417         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51418
51419         * m4/autobuild.m4: Re-indent.
51420
51421 2007-04-13  Bruno Haible  <bruno@clisp.org>
51422
51423         * modules/fpurge-tests: New file.
51424         * tests/test-fpurge.c: New file.
51425
51426         * modules/fpurge: New file.
51427         * lib/fpurge.h: New file.
51428         * lib/fpurge.c: New file.
51429         * m4/fpurge.m4: New file.
51430
51431 2007-04-13  Bruno Haible  <bruno@clisp.org>
51432
51433         * modules/fbufmode-tests: New file.
51434         * tests/test-fbufmode.c: New file.
51435
51436         * modules/fbufmode: New file.
51437         * lib/fbufmode.h: New file.
51438         * lib/fbufmode.c: New file.
51439         * m4/fbufmode.m4: New file.
51440
51441 2007-04-13  Bruno Haible  <bruno@clisp.org>
51442
51443         * modules/fwritable-tests: New file.
51444         * tests/test-fwritable.c: New file.
51445
51446         * modules/fwritable: New file.
51447         * lib/fwritable.h: New file.
51448         * lib/fwritable.c: New file.
51449         * m4/fwritable.m4: New file.
51450
51451 2007-04-13  Bruno Haible  <bruno@clisp.org>
51452
51453         * modules/freadable-tests: New file.
51454         * tests/test-freadable.c: New file.
51455
51456         * modules/freadable: New file.
51457         * lib/freadable.h: New file.
51458         * lib/freadable.c: New file.
51459         * m4/freadable.m4: New file.
51460
51461 2007-04-13  Bruno Haible  <bruno@clisp.org>
51462
51463         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51464         MOSTLYCLEANFILES.
51465
51466 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51467
51468         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51469         gzip bootstrap.conf to avoid dragging in i18n machinery.
51470         (gnulib_tool_option): Use it.
51471
51472 2007-04-13  Bruno Haible  <bruno@clisp.org>
51473
51474         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51475         %F directives.
51476         * tests/test-vasprintf-posix.c (test_function): Likewise.
51477         * tests/test-snprintf-posix.h (test_function): Likewise.
51478         * tests/test-sprintf-posix.h (test_function): Likewise.
51479         * tests/test-fprintf-posix.h (test_function): Likewise.
51480         * tests/test-printf-posix.h (test_function): Likewise.
51481         * tests/test-fprintf-posix.out: Likewise.
51482
51483 2007-04-13  Bruno Haible  <bruno@clisp.org>
51484
51485         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51486         * modules/tls-tests (configure.ac): Likewise.
51487         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51488
51489 2007-04-13  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/tls.c (glthread_tls_get): Fix return type.
51492         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51493
51494 2007-04-12  Eric Blake  <ebb9@byu.net>
51495
51496         * modules/gettime (Depends-on): Remove gettime.
51497         Reported by Dmitry V. Levin.
51498
51499 2007-04-12  Bruno Haible  <bruno@clisp.org>
51500
51501         * modules/fflush (Include): Mention <stdio.h>.
51502         * modules/strtoimax (Include): Mention <inttypes.h>.
51503         * modules/strtoumax (Include): Likewise.
51504
51505 2007-04-12  Eric Blake  <ebb9@byu.net>
51506
51507         * .cvsignore: New file.
51508         * .gitignore: Likewise.
51509
51510 2007-04-12  Bruno Haible  <bruno@clisp.org>
51511
51512         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51513         not before, since $(LDADD) often contains libgnu.a.
51514         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51515         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51516         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51517         Needed on Cygwin.
51518
51519 2007-04-12  Eric Blake  <ebb9@byu.net>
51520
51521         Work around glibc's failure to flush stdin on fclose.
51522         * lib/closein.c (close_stdin): Flush stdin before closing.
51523
51524         Work around glibc's failure to reset seekable stdin on exit.
51525         * modules/closein: New module.
51526         * lib/closein.c: New file.
51527         * lib/closein.h: Likewise.
51528         * m4/closein.m4: Likewise.
51529         * MODULES.html.sh (File stream based Input/Output): Document it.
51530
51531 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51532
51533         * gnulib-tool: Rename generated 'autobuild' script to
51534         'do-autobuild' in --create-megatestdir output.
51535
51536         * doc/gnulib.texi (Build robot for gnulib): Fix.
51537
51538 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51539
51540         * modules/sysexits (Depends-on): Add absolute-header.
51541
51542 2007-04-12  Eric Blake  <ebb9@byu.net>
51543
51544         No need to preserve errno on success.
51545         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51546         Reported by Bruno Haible.
51547
51548 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51549
51550         * MODULES.html.sh (Support for maintaining and releasing
51551         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51552
51553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51554
51555         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51556
51557 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51558
51559         * modules/autobuild: New module.
51560
51561         * m4/autobuild.m4: New file.
51562
51563 2007-04-11  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51566         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51567         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51569         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51570         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51571         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51573         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51574         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51575         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51576         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51577         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51579         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51580         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51581         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51582         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51583         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51584         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51585         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51586         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51587         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51588         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51589         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51591         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51592         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51593         Reported by Eric Blake.
51594
51595 2007-04-11  Bruno Haible  <bruno@clisp.org>
51596
51597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51598
51599 2007-04-10  Bruno Haible  <bruno@clisp.org>
51600
51601         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51602         for NaN and Infinity. Needed on FreeBSD 6.1.
51603         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51604         regarding results for "%010a" of Infinity and NaN.
51605         * tests/test-vasprintf-posix.c (test_function): Likewise.
51606         * tests/test-snprintf-posix.h (test_function): Likewise.
51607         * tests/test-sprintf-posix.h (test_function): Likewise.
51608         * tests/test-fprintf-posix.h (test_function): Likewise.
51609         * tests/test-printf-posix.h (test_function): Likewise.
51610         * tests/test-fprintf-posix.out: Likewise.
51611
51612 2007-04-10  Bruno Haible  <bruno@clisp.org>
51613
51614         * modules/locale-tests: New file.
51615         * tests/test-locale.c: New file.
51616
51617         * modules/locale: New file.
51618         * lib/locale_.h: New file.
51619         * m4/locale_h.m4: New file.
51620
51621 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51622             Bruno Haible  <bruno@clisp.org>
51623
51624         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51625         be determined, test for availability of the copysignf, copysign,
51626         copysignl functions.
51627         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51628         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51629         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51630
51631 2007-04-09  Eric Blake  <ebb9@byu.net>
51632
51633         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51634         * modules/stdio (Makefile.am): Support fflush.
51635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51636         * modules/fflush: New file.
51637         * lib/fflush.c: Likewise.
51638         * m4/fflush.m4: Likewise.
51639         * modules/fflush-tests: New test.
51640         * tests/test-fflush.c: Likewise.
51641         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51642
51643 2007-04-06  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51646         (VASNPRINTF): Use signbit for faster determination whether to print a
51647         minus sign.
51648         * modules/vasnprintf (Files): Remove lib/float+.h.
51649         * modules/fprintf-posix (Depends-on): Add signbit.
51650         * modules/snprintf-posix (Depends-on): Likewise.
51651         * modules/sprintf-posix (Depends-on): Likewise.
51652         * modules/vasnprintf-posix (Depends-on): Likewise.
51653         * modules/vasprintf-posix (Depends-on): Likewise.
51654         * modules/vfprintf-posix (Depends-on): Likewise.
51655         * modules/vsnprintf-posix (Depends-on): Likewise.
51656         * modules/vsprintf-posix (Depends-on): Likewise.
51657
51658 2007-04-06  Bruno Haible  <bruno@clisp.org>
51659
51660         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51661         * tests/test-frexpl.c (main): Likewise.
51662         * tests/test-ldexpl.c (main): Likewise.
51663         * modules/frexp-tests (Depends-on): Add signbit.
51664         * modules/frexpl-tests (Depdends-on): Likewise.
51665         * modules/ldexpl-tests (Depdends-on): Likewise.
51666
51667 2007-04-06  Bruno Haible  <bruno@clisp.org>
51668
51669         * modules/signbit-tests: New file.
51670         * tests/test-signbit.c: New file.
51671
51672         * modules/signbit: New file.
51673         * lib/signbitf.c: New file.
51674         * lib/signbitd.c: New file.
51675         * lib/signbitl.c: New file.
51676         * m4/signbit.m4: New file.
51677         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51678         (signbit): New macro.
51679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51680         REPLACE_SIGNBIT.
51681         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51682         REPLACE_FREXPL into math.h.
51683
51684 2007-04-06  Bruno Haible  <bruno@clisp.org>
51685
51686         * modules/isnanf-nolibm-tests: New file.
51687         * tests/test-isnanf.c: New file.
51688
51689         * modules/isnanf-nolibm: New file.
51690         * lib/isnanf.h: New file.
51691         * lib/isnanf.c: New file.
51692         * lib/isnan.c: Consider the USE_FLOAT macro.
51693         * m4/isnanf.m4: New file.
51694
51695 2007-04-06  Bruno Haible  <bruno@clisp.org>
51696
51697         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51698         (Link): New section.
51699
51700         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51701
51702 2007-04-06  Bruno Haible  <bruno@clisp.org>
51703
51704         Assume the 'long double' type.
51705         * m4/longdouble.m4: Remove file.
51706         * config/srclist.txt: Don't mention longdouble.m4.
51707         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51708         * lib/float+.h: Likewise.
51709         * lib/frexp.c: Likewise.
51710         * lib/printf-args.h: Likewise.
51711         * lib/printf-args.c: Likewise.
51712         * lib/printf-frexp.c: Likewise.
51713         * lib/printf-parse.c: Likewise.
51714         * lib/vasnprintf.c: Likewise.
51715         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51716         * m4/intl.m4: Likewise.
51717         * m4/isnanl.m4: Likewise.
51718         * m4/printf.m4: Likewise.
51719         * m4/printf-frexpl.m4: Likewise.
51720         * m4/vasnprintf.m4: Likewise.
51721         * modules/allocsa (Files): Remove m4/longdouble.m4.
51722         * modules/gettext (Files): Likewise.
51723         * modules/relocatable-prog-wrapper (Files): Likewise.
51724         * modules/vasnprintf (Files): Likewise.
51725         * modules/isnanl (Files): Likewise.
51726         (Include): Simplify.
51727         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51728         (Include): Simplify.
51729         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51730         (Include): Simplify.
51731         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51732         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51733         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51734         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51735         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51736         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51737         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51738         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51739         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51740         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51741         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51742         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51743         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51744         * tests/test-isnanl.c: Likewise.
51745         * tests/test-snprintf-posix.h: Likewise.
51746         * tests/test-sprintf-posix.h: Likewise.
51747         * tests/test-vasnprintf-posix.c: Likewise.
51748         * tests/test-vasnprintf-posix2.c: Likewise.
51749         * tests/test-vasprintf-posix.c: Likewise.
51750
51751 2007-04-06  Bruno Haible  <bruno@clisp.org>
51752
51753         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51754         * lib/math_.h [__DECC]: Include the overridden include file through
51755         #include_next, outside the double-inclusion guard.
51756         * lib/stdio_.h [__DECC]: Likewise.
51757         * lib/stdlib_.h [__DECC]: Likewise.
51758         * lib/string_.h [__DECC]: Likewise.
51759         * lib/time_.h [__DECC]: Likewise.
51760         * lib/wchar_.h [__DECC]: Likewise.
51761         * lib/wctype_.h [__DECC]: Likewise.
51762         * lib/inttypes_.h [__DECC]: Likewise.
51763         Reported by Albert Chin <china@thewrittenword.com> in
51764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51765
51766 2007-04-04  Eric Blake  <ebb9@byu.net>
51767
51768         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51769         1.5.x.
51770
51771 2007-04-04  Bruno Haible  <bruno@clisp.org>
51772
51773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51774         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51775
51776 2007-04-04  Bruno Haible  <bruno@clisp.org>
51777
51778         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51779         results for "%010a" of Infinity and NaN.
51780         * tests/test-vasprintf-posix.c (test_function): Likewise.
51781         * tests/test-snprintf-posix.h (test_function): Likewise.
51782         * tests/test-sprintf-posix.h (test_function): Likewise.
51783         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51784         * tests/test-printf-posix.h (test_function): Likewise.
51785         * tests/test-fprintf-posix.out: Update.
51786         Needed for FreeBSD 6.1.
51787
51788 2007-04-04  Bruno Haible  <bruno@clisp.org>
51789
51790         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51791         directly used by the gnulib modules nor by gnulib-tool.
51792
51793 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51794
51795         * DEPENDENCIES: Give overall description of version dependency
51796         desirability.  Use more-typical names for apps.
51797         Add shell, coreutils, diffutils, grep, tar, gzip.
51798
51799 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51800
51801         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51802
51803 2007-04-04  Karl Berry  <karl@gnu.org>
51804
51805         * MODULES.html.sh (func_module): missing '.
51806
51807 2007-04-03  Bruno Haible  <bruno@clisp.org>
51808
51809         * modules/argmatch-tests (Makefile.am): New variable
51810         test_argmatch_LDADD.
51811         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51812         * modules/array-list-tests (Makefile.am): New variable
51813         test_array_list_LDADD.
51814         * modules/array-oset-tests (Makefile.am): New variable
51815         test_array_oset_LDADD.
51816         * modules/avltree-list-tests (Makefile.am): New variable
51817         test_avltree_list_LDADD.
51818         * modules/avltree-oset-tests (Makefile.am): New variable
51819         test_avltree_oset_LDADD.
51820         * modules/avltreehash-list-tests (Makefile.am): New variable
51821         test_avltreehash_list_LDADD.
51822         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51823         test_canonicalize_lgpl_LDADD.
51824         * modules/carray-list-tests (Makefile.am): New variable
51825         test_carray_list_LDADD.
51826         * modules/dirname-tests (Makefile.am): New variable
51827         test_dirname_LDADD.
51828         * modules/linked-list-tests (Makefile.am): New variable
51829         test_linked_list_LDADD.
51830         * modules/linkedhash-list-tests (Makefile.am): New variable
51831         test_linkedhash_list_LDADD.
51832         * modules/rbtree-list-tests (Makefile.am): New variable
51833         test_rbtree_list_LDADD.
51834         * modules/rbtree-oset-tests (Makefile.am): New variable
51835         test_rbtree_oset_LDADD.
51836         * modules/rbtreehash-list-tests (Makefile.am): New variable
51837         test_rbtreehash_list_LDADD.
51838         * modules/xvasprintf-tests (Makefile.am): New variable
51839         test_xvasprintf_LDADD.
51840         Reported by Eric Blake.
51841
51842 2007-04-03  Eric Blake  <ebb9@byu.net>
51843
51844         * DEPENDENCIES: Weaken m4 requirements.
51845
51846 2007-04-03  Bruno Haible  <bruno@clisp.org>
51847
51848         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51849         * modules/isnanl-tests (configure.ac): Likewise.
51850
51851 2007-04-03  Ben Pfaff  <blp@gnu.org>
51852
51853         * modules/iconv_open: Add $(srcdir)/ to source directory
51854         references in Makefile fragments that call gperf, to fix VPATH
51855         builds.
51856
51857 2007-04-03  Bruno Haible  <bruno@clisp.org>
51858
51859         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51860         * lib/ldexpl.c: Undo last change.
51861
51862 2007-04-03  Bruno Haible  <bruno@clisp.org>
51863
51864         * modules/printf-frexpl (Depends-on): Undo last change.
51865         (Files): Add m4/ldexpl.m4.
51866
51867 2007-04-03  Bruno Haible  <bruno@clisp.org>
51868
51869         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51870         * modules/isnanl (Link): New section.
51871
51872         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51873         * modules/frexp (Link): New section.
51874
51875         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51876         * modules/frexpl (Link): New section.
51877
51878         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51879         * modules/ldexpl (Link): New section.
51880
51881 2007-04-03  Bruno Haible  <bruno@clisp.org>
51882
51883         * modules/TEMPLATE-EXTENDED: New file.
51884         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51885
51886 2007-04-03  Bruno Haible  <bruno@clisp.org>
51887
51888         * DEPENDENCIES: New file.
51889         Suggested by Simon Josefsson.
51890
51891 2007-04-03  Bruno Haible  <bruno@clisp.org>
51892
51893         * doc/gnulib.texi: Escape @.
51894
51895 2007-04-03  James Youngman  <jay@gnu.org>
51896         and Paul Eggert  <eggert@cs.ucla.edu>
51897
51898         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51899         birthtime on all systems that have birthtime, not just those which
51900         use st_birthtimensec rather than st_birthtim.  Putting zero in
51901         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51902         that the birth time is not available for files on an NFS mount.
51903
51904 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51905
51906         * modules/memxor: Move back from crypto/, suggested by Bruno.
51907         * modules/crypto/hmac-sha1: Fix memxor dependency.
51908
51909         * modules/crypto/gc: Moved from ../.
51910
51911 2007-04-02  Eric Blake  <ebb9@byu.net>
51912
51913         * lib/ldexpl.c (includes): Avoid libm.
51914
51915         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51916
51917 2007-04-02  Bruno Haible  <bruno@clisp.org>
51918
51919         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51920         on IRIX.
51921
51922 2007-04-02  Bruno Haible  <bruno@clisp.org>
51923
51924         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51925         x86 or x86_64 platforms running MacOS X.
51926         Reported by Ryan Schmidt <@ryandesign.com>.
51927
51928 2007-04-02  Bruno Haible  <bruno@clisp.org>
51929
51930         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51931         i386.
51932
51933 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51934
51935         * modules/crypto/arcfour: Moved from ../.
51936         * modules/crypto/arcfour-tests: Moved from ../.
51937         * modules/crypto/arctwo: Moved from ../.
51938         * modules/crypto/arctwo-tests: Moved from ../.
51939         * modules/crypto/des: Moved from ../.
51940         * modules/crypto/des-tests: Moved from ../.
51941         * modules/crypto/gc-arcfour: Moved from ../.
51942         * modules/crypto/gc-arcfour-tests: Moved from ../.
51943         * modules/crypto/gc-arctwo: Moved from ../.
51944         * modules/crypto/gc-arctwo-tests: Moved from ../.
51945         * modules/crypto/gc-des: Moved from ../.
51946         * modules/crypto/gc-des-tests: Moved from ../.
51947         * modules/crypto/gc-hmac-md5: Moved from ../.
51948         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51949         * modules/crypto/gc-hmac-sha1: Moved from ../.
51950         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51951         * modules/crypto/gc-md2: Moved from ../.
51952         * modules/crypto/gc-md2-tests: Moved from ../.
51953         * modules/crypto/gc-md4: Moved from ../.
51954         * modules/crypto/gc-md4-tests: Moved from ../.
51955         * modules/crypto/gc-md5: Moved from ../.
51956         * modules/crypto/gc-md5-tests: Moved from ../.
51957         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51958         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51959         * modules/crypto/gc-random: Moved from ../.
51960         * modules/crypto/gc-rijndael: Moved from ../.
51961         * modules/crypto/gc-rijndael-tests: Moved from ../.
51962         * modules/crypto/gc-sha1: Moved from ../.
51963         * modules/crypto/gc-sha1-tests: Moved from ../.
51964         * modules/crypto/gc-tests: Moved from ../.
51965         * modules/crypto/hmac-md5: Moved from ../.
51966         * modules/crypto/hmac-md5-tests: Moved from ../.
51967         * modules/crypto/hmac-sha1: Moved from ../.
51968         * modules/crypto/hmac-sha1-tests: Moved from ../.
51969         * modules/crypto/md2: Moved from ../.
51970         * modules/crypto/md2-tests: Moved from ../.
51971         * modules/crypto/md4: Moved from ../.
51972         * modules/crypto/md4-tests: Moved from ../.
51973         * modules/crypto/md5: Moved from ../.
51974         * modules/crypto/md5-tests: Moved from ../.
51975         * modules/crypto/memxor: Moved from ../.
51976         * modules/crypto/rijndael: Moved from ../.
51977         * modules/crypto/rijndael-tests: Moved from ../.
51978         * modules/crypto/sha1: Moved from ../.
51979
51980 2007-03-30  James Youngman  <jay@gnu.org>
51981
51982         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51983         rename() to change the ctime of a file (because ctime is unaffected
51984         by rename on jfs2 on AIX 5.1).
51985         (main): Start by doing cleanup, in case a previous run failed leaving
51986         test files behind.
51987
51988 2007-03-31  Bruno Haible  <bruno@clisp.org>
51989
51990         Support old proprietary implementations of iconv.
51991         * modules/iconv_open: New file.
51992         * lib/iconv_.h: New file.
51993         * m4/iconv_h.m4: New file.
51994         * lib/iconv_open.c: New file.
51995         * lib/iconv_open-aix.gperf: New file.
51996         * lib/iconv_open-hpux.gperf: New file.
51997         * lib/iconv_open-irix.gperf: New file.
51998         * lib/iconv_open-osf.gperf: New file.
51999         * m4/iconv_open.m4: New file.
52000         * modules/linebreak (Depends-on): Add iconv_open.
52001         * modules/striconv (Depends-on): Likewise.
52002         * modules/striconveh (Depends-on): Likewise.
52003         * modules/unicodeio (Depends-on): Likewise.
52004         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
52005         (iconv_t)(-1).
52006         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
52007         conversion if cd is (iconv_t)(-1).
52008         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
52009         is not possible.
52010
52011 2007-03-31  Bruno Haible  <bruno@clisp.org>
52012
52013         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52014         work on Solaris either. Protect also second use of "autodetect_jp".
52015
52016 2007-03-31  Bruno Haible  <bruno@clisp.org>
52017
52018         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
52019         the function is not present.
52020
52021 2007-03-31  Bruno Haible  <bruno@clisp.org>
52022
52023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
52024         the function is not present.
52025
52026 2007-03-31  Bruno Haible  <bruno@clisp.org>
52027
52028         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
52029         a bug in HP-UX iconv_open().
52030
52031 2007-03-31  Bruno Haible  <bruno@clisp.org>
52032
52033         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
52034         (Mathematics <math.h>): New section, add fpieee.
52035         (Input/output <stdio.h>): Add fseterr.
52036         (Mathematics <math.h>): New section, add printf-frexp.
52037         (Container data structures): Add sublist.
52038         (Core language properties): Add fpucw, inline.
52039         (Functions for greatest-width integer types <inttypes.h>): Add
52040         imaxabs, imaxdiv, inttypes.
52041         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
52042         isnanl-nolibm, ldexp.
52043         (Mathematics <math.h>): New section, add printf-frexpl.
52044         (Support for systems lacking POSIX:2001): Add fprintf-posix,
52045         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
52046         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
52047         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
52048         (Unicode string functions): Add unistr/u*-mbtoucr.
52049         (Java): Add javacomp-script, javaexec-script.
52050         (C#): Add csharpcomp-script, csharpexec-script.
52051         (Support for building libraries and executables): Add havelib,
52052         relocatable-*.
52053         (Support for maintaining and releasing projects): Renamed from
52054         'Support for maintaining and release projects'. Add announce-gen.
52055
52056 2007-03-31  Bruno Haible  <bruno@clisp.org>
52057
52058         * README: Talk primarily about git.
52059         (git and CVS): Renamed from CVS.
52060         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
52061         gnulib is available through git.
52062         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
52063
52064 2007-03-30  Bruno Haible  <bruno@clisp.org>
52065
52066         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
52067         * lib/poll_.h: Likewise.
52068         * lib/stat_.h: Likewise.
52069         * lib/sys_time_.h: Likewise.
52070         * lib/sysexit_.h: Likewise.
52071         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
52072         * lib/stdbool_.h: Likewise.
52073         * lib/byteswap_.h: Add double-inclusion guard.
52074
52075 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
52076
52077         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
52078
52079 2007-03-30  Karl Berry  <karl@gnu.org>
52080
52081         * config/srclist-update: double space after USA in the license
52082         substitution, since that's how it's usually (?) written.
52083
52084 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52085
52086         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
52087         reported by Bruno Haible.
52088
52089 2007-03-29  Bruno Haible  <bruno@clisp.org>
52090
52091         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
52092         a bug in AIX iconv().
52093
52094 2007-03-29  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/ldexpl-tests: New file.
52097         * tests/test-ldexpl.c: New file.
52098
52099 2007-03-29  Bruno Haible  <bruno@clisp.org>
52100
52101         * lib/ldexpl.c: Include fpucw.h.
52102         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
52103         multiplication.
52104         * modules/ldexpl (Depends-on): Add fpucw.
52105
52106 2007-03-29  Bruno Haible  <bruno@clisp.org>
52107
52108         * modules/ldexpl: New file.
52109         * m4/ldexpl.m4: New file.
52110         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
52111         set.
52112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
52113         REPLACE_LDEXPL.
52114         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
52115         REPLACE_LDEXPL.
52116         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
52117         gl_FUNC_LDEXPL_WORKS.
52118         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
52119         * modules/mathl (Files): Remove lib/ldexpl.c.
52120         (Depends-on): Add ldexpl.
52121
52122 2007-03-29  Bruno Haible  <bruno@clisp.org>
52123
52124         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
52125
52126 2007-03-29  Bruno Haible  <bruno@clisp.org>
52127
52128         * tests/test-striconveh.c (main): Don't assume that a direct conversion
52129         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
52130         and possibly also HP-UX.
52131         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
52132         work on AIX, IRIX, HP-UX, OSF/1.
52133         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
52134         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
52135         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
52136         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
52137         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
52138         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
52139
52140 2007-03-29  Bruno Haible  <bruno@clisp.org>
52141
52142         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
52143
52144 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52145
52146         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
52147         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
52148
52149 2007-03-29  Eric Blake  <ebb9@byu.net>
52150
52151         * lib/acl-internal.h: Remove redundant include.
52152         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
52153         Cygwin when a file is locked.
52154
52155 2007-03-29  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
52158         file.
52159         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
52160
52161 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
52162
52163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
52164         try to remove a parent directory if the child couldn't be removed
52165         (except for the first rmdir, which could fail because the child
52166         doesn't exist).  Problem reported by Jeff Blaine in
52167         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
52168
52169 2007-03-28  Bruno Haible  <bruno@clisp.org>
52170
52171         * lib/striconveh.c (utf8conv_carefully): New function.
52172         (mem_cd_iconveh_internal): Invoke it.
52173
52174 2007-03-28  Bruno Haible  <bruno@clisp.org>
52175
52176         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
52177         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
52178         input.
52179         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
52180         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
52181         unistr/u8-uctomb.
52182
52183 2007-03-28  Bruno Haible  <bruno@clisp.org>
52184
52185         * modules/unistr/u8-mbtoucr: New file.
52186         * lib/unistr/u8-mbtoucr.c: New file.
52187         * modules/unistr/u16-mbtoucr: New file.
52188         * lib/unistr/u16-mbtoucr.c: New file.
52189         * modules/unistr/u16-mbtoucr: New file.
52190         * lib/unistr/u16-mbtoucr.c: New file.
52191         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
52192
52193 2007-03-27  Simon Josefsson  <simon@josefsson.org>
52194             Bruno Haible  <bruno@clisp.org>
52195
52196         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
52197         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
52198         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
52199
52200         * m4/stdio_h.m4: Add stubs for vasprintf too.
52201
52202         * modules/stdio: Support vasprintf in sed command.
52203
52204         * modules/vasprintf: Depend on stdio for prototypes.  Remove
52205         vasprintf.h.  Add stdio module indicator.
52206
52207         * lib/stdio_.h: Declare asprintf and vasprintf, based on
52208         vasprintf.h.
52209
52210         * lib/vasprintf.h: File removed.
52211
52212         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
52213         * lib/vasprintf.c: Ditto.
52214         * lib/xvasprintf.c: Ditto.
52215         * tests/test-vasprintf-posix.c: Ditto.
52216         * tests/test-vasprintf.c: Ditto.
52217
52218 2007-03-27  Bruno Haible  <bruno@clisp.org>
52219
52220         Make vasnprintf multithread-safe.
52221         * lib/vasnprintf.c (decimal_point_char): New function.
52222         (VASNPRINTF): Use it.
52223         Suggested by Simon Josefsson.
52224
52225 2007-03-27  Eric Blake  <ebb9@byu.net>
52226
52227         Support sub-second birthtime on cygwin.
52228         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52229         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52230         (get_stat_birthtime): Also work with st_birthtim.
52231
52232 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52233
52234         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52235         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52236         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52237         (get_stat_birthtime_ns): Simplify compile-time tests.
52238         (get_stat_birthtime): Change the API to look like
52239         get_stat_mtime etc., except return a negative tv_nsec on error.
52240         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52241         Don't check for "spare" fields.
52242         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52243         or for struct stat.st_birthtime, as these tests aren't used.
52244         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52245
52246 2007-03-27  Bruno Haible  <bruno@clisp.org>
52247
52248         * lib/stat-time.h: Include <sys/stat.h>.
52249
52250 2007-03-27  James Youngman  <jay@gnu.org>
52251
52252         * lib/stat-time.h (get_stat_birthtime): New function for
52253           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52254         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52255           and its variants.
52256         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52257         * modules/stat-time-test: New file.
52258         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52259
52260 2007-03-26  Bruno Haible  <bruno@clisp.org>
52261
52262         Better support of signalling NaNs.
52263         * lib/atanl.c: Include isnanl.h.
52264         (atanl): Perform test for NaN at the beginning of the function and
52265         through a call to isnanl.
52266         * lib/cosl.c: Include isnanl.h.
52267         (cosl): Perform test for NaN at the beginning of the function and
52268         through a call to isnanl.
52269         * lib/ldexpl.c: Include isnanl.h.
52270         (ldexpl): Perform test for NaN through a call to isnanl.
52271         * lib/logl.c: Include isnanl.h.
52272         (logl): Perform test for NaN at the beginning of the function and
52273         through a call to isnanl.
52274         * lib/sinl.c: Include isnanl.h.
52275         (sinl): Perform test for NaN at the beginning of the function and
52276         through a call to isnanl.
52277         * lib/sqrtl.c: Include isnanl.h.
52278         (sqrtl): Perform test for NaN at the beginning of the function and
52279         through a call to isnanl.
52280         * lib/tanl.c: Include isnanl.h.
52281         (tanl): Perform test for NaN at the beginning of the function and
52282         through a call to isnanl.
52283         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52284         * modules/mathl (Depends-on): Add isnanl.
52285
52286 2007-03-26  Eric Blake  <ebb9@byu.net>
52287
52288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52289         regression in logic sense of previous patch.
52290
52291 2007-03-26  Bruno Haible  <bruno@clisp.org>
52292
52293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52294         unportable shell command "if ! ...".
52295         Reported by Ralf Wildenhues.
52296
52297 2007-03-25  Bruno Haible  <bruno@clisp.org>
52298
52299         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52300         <sysexits.h> file, and only add EX_CONFIG.
52301         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52302         absolute file name and whether it is sufficient. Substitute also
52303         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52304         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52305         ABSOLUTE_SYSEXITS_H into sysexits.h.
52306
52307 2007-03-25  Bruno Haible  <bruno@clisp.org>
52308
52309         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52310         hints is NULL.
52311
52312 2007-03-25  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52315         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52316
52317 2007-03-25  Bruno Haible  <bruno@clisp.org>
52318
52319         * lib/vasnprintf.c: Include langinfo.h.
52320         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52321         multithread-safe.
52322         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52323         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52324         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52325         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52326         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52328         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52330         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52331         Reported by Simon Josefsson.
52332
52333 2007-03-25  Bruno Haible  <bruno@clisp.org>
52334
52335         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52336         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52337         * modules/vasnprintf (Depends-on): Add stdint.
52338
52339 2007-03-25  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/fpieee: New file.
52342         * m4/fpieee.m4: New file.
52343         * modules/isnan-nolibm (Depends-on): Add fpieee.
52344         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52345         * modules/isnanl (Depends-on): Add fpieee.
52346
52347 2007-03-25  Bruno Haible  <bruno@clisp.org>
52348
52349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52350
52351 2007-03-25  Bruno Haible  <bruno@clisp.org>
52352
52353         Avoid test failures on IRIX 6.5.
52354         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52355         (main): Use it.
52356         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52357         macros.
52358         (main): Use them.
52359
52360 2007-03-25  Bruno Haible  <bruno@clisp.org>
52361
52362         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52363         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52364         exists but doesn't work.
52365         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52366         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52368         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52369         math.h.
52370
52371 2007-03-25  Bruno Haible  <bruno@clisp.org>
52372
52373         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52374         returns inf. Needed on IRIX 6.5.
52375
52376 2007-03-25  Bruno Haible  <bruno@clisp.org>
52377
52378         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52379         (main): Use isnanl instead of x != x idiom.
52380         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52381
52382         * tests/test-frexp.c: Include isnan.h.
52383         (main): Use isnan instead of x != x idiom.
52384         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52385
52386 2007-03-25  Bruno Haible  <bruno@clisp.org>
52387
52388         * tests/test-frexp.c (NaN): New function/macro.
52389         (main): Use it instead of 0.0 / 0.0.
52390         * tests/test-isnan.c (NaN): New function/macro.
52391         (main): Use it instead of 0.0 / 0.0.
52392         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52393         (test_function): Use it instead of 0.0 / 0.0.
52394         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52395         (test_function): Use it instead of 0.0 / 0.0.
52396         * tests/test-snprintf-posix.h (NaN): New function/macro.
52397         (test_function): Use it instead of 0.0 / 0.0.
52398         * tests/test-sprintf-posix.h (NaN): New function/macro.
52399         (test_function): Use it instead of 0.0 / 0.0.
52400         * tests/test-fprintf-posix.h (NaN): New function/macro.
52401         (test_function): Use it instead of 0.0 / 0.0.
52402         * tests/test-printf-posix.h (NaN): New function/macro.
52403         (test_function): Use it instead of 0.0 / 0.0.
52404
52405         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52406
52407 2007-03-25  Bruno Haible  <bruno@clisp.org>
52408
52409         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52410
52411 2007-03-25  Bruno Haible  <bruno@clisp.org>
52412
52413         * lib/regexec.c (merge_state_with_log): Make static.
52414
52415 2007-03-25  Bruno Haible  <bruno@clisp.org>
52416
52417         * lib/trigl.c (kernel_rem_pio2): Make static.
52418
52419 2007-03-25  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/sincosl.c (sincosl_table): Make static.
52422
52423 2007-03-25  Bruno Haible  <bruno@clisp.org>
52424
52425         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52426         if the compiler does not support C99.
52427
52428 2007-03-25  Bruno Haible  <bruno@clisp.org>
52429
52430         * modules/time (Makefile.am): Ensure all rule action lines start with a
52431         tab.
52432
52433 2007-03-24  Bruno Haible  <bruno@clisp.org>
52434
52435         * modules/tsearch-tests: New file.
52436         * tests/test-tsearch.sh: New file.
52437         * tests/test-tsearch.c: New file, mostly copied from glibc.
52438
52439         * modules/search-tests: New file.
52440         * tests/test-search.c: New file.
52441
52442         * modules/search: New file.
52443         * lib/search_.h: New file, incorporating lib/tsearch.h.
52444         * m4/search_h.m4: New file.
52445         * lib/tsearch.h: Remove file.
52446         * lib/tsearch.c: Include search.h instead of tsearch.h.
52447         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52448         HAVE_TSEARCH.
52449         * modules/tsearch (Files): Remove lib/tsearch.h.
52450         (Depends-on): Add search.
52451         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52452         (Include): Change tsearch.h into search.h.
52453
52454 2007-03-24  Bruno Haible  <bruno@clisp.org>
52455
52456         * modules/fpucw: New file.
52457         * lib/fpucw.h: New file.
52458         * lib/frexp.c: Include fpucw.h.
52459         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52460         (FUNC): Use them.
52461         * lib/printf-frexp.c: Include fpucw.h.
52462         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52463         (FUNC): Use them.
52464         * lib/vasnprintf.c: Include fpucw.h.
52465         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52466         'long double' calculations.
52467         * tests/test-frexpl.c: Include fpucw.h.
52468         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52469         * tests/test-printf-frexpl.c: Include fpucw.h.
52470         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52471         * modules/frexpl (Depends-on): Add fpucw.
52472         * modules/printf-frexpl (Depends-on): Likewise.
52473         * modules/fprintf-posix (Depends-on): Likewise.
52474         * modules/snprintf-posix (Depends-on): Likewise.
52475         * modules/sprintf-posix (Depends-on): Likewise.
52476         * modules/vasnprintf-posix (Depends-on): Likewise.
52477         * modules/vasprintf-posix (Depends-on): Likewise.
52478         * modules/vfprintf-posix (Depends-on): Likewise.
52479         * modules/vsnprintf-posix (Depends-on): Likewise.
52480         * modules/vsprintf-posix (Depends-on): Likewise.
52481         * modules/frexpl-tests (Depends-on): Likewise.
52482         * modules/printf-frexpl-tests (Depends-on): Likewise.
52483
52484 2007-03-24  Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/float+.h: New file.
52487         * lib/isnan.c: Include float+.h.
52488         (SIZE): New macro.
52489         (FUNC): Compare only SIZE bytes of the value.
52490         * lib/vasnprintf.c: Include float+.h.
52491         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52492         SIZEOF_LDBL or SIZEOF_DBL bytes.
52493         * modules/isnan-nolibm (Files): Add lib/float+.h.
52494         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52495         * modules/isnanl (Files): Add lib/float+.h.
52496         * modules/vasnprintf (Files): Add lib/float+.h.
52497
52498 2007-03-24  Bruno Haible  <bruno@clisp.org>
52499
52500         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52501         include isnanl-nolibm.h.
52502
52503 2007-03-24  Bruno Haible  <bruno@clisp.org>
52504
52505         * tests/test-read-file.c (main): Don't produce spurious output for
52506         expected situations. Make the test fail if it encountered unexpected
52507         results.
52508
52509 2007-03-24  Bruno Haible  <bruno@clisp.org>
52510
52511         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52512         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52513
52514 2007-03-24  Bruno Haible  <bruno@clisp.org>
52515
52516         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52517
52518 2007-03-24  Bruno Haible  <bruno@clisp.org>
52519
52520         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52521         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52522
52523         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52524         * modules/utf8-ucs4: Turn into a symbolic link to module
52525         unistr/u8-mbtouc.
52526
52527         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52528         utf8-ucs4-unsafe.
52529         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52530         unistr/u8-mbtouc-unsafe.
52531
52532         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52533         * modules/utf16-ucs4: Turn into a symbolic link to module
52534         unistr/u16-mbtouc.
52535
52536         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52537         utf16-ucs4-unsafe.
52538         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52539         unistr/u16-mbtouc-unsafe.
52540
52541         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52542         * modules/ucs4-utf8: Turn into a symbolic link to module
52543         unistr/u8-ubtomb.
52544
52545         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52546         * modules/ucs4-utf16: Turn into a symbolic link to module
52547         unistr/u16-ubtomb.
52548
52549 2007-03-24  Bruno Haible  <bruno@clisp.org>
52550
52551         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52552         Enable the function only if HAVE_INLINE.
52553         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52554         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52555         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52556         Enable the function only if HAVE_INLINE.
52557         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52558         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52559         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52560         Enable the function only if HAVE_INLINE.
52561         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52562         Enable the function only if HAVE_INLINE.
52563         * modules/utf8-ucs4: Update.
52564         * modules/utf8-ucs4-unsafe: Update.
52565         * modules/utf16-ucs4: Update.
52566         * modules/utf16-ucs4-unsafe: Update.
52567         * modules/ucs4-utf8: Update.
52568         * modules/ucs4-utf16: Update.
52569
52570 2007-03-24  Bruno Haible  <bruno@clisp.org>
52571
52572         * lib/utf8-ucs4.h: Remove file.
52573         * lib/utf8-ucs4-unsafe.h: Remove file.
52574         * lib/utf16-ucs4.h: Remove file.
52575         * lib/utf16-ucs4-unsafe.h: Remove file.
52576         * lib/ucs4-utf8.h: Remove file.
52577         * lib/ucs4-utf16.h: Remove file.
52578         * lib/unistr.h: Include their previous contents.
52579         * m4/utf-ucs4.m4: Remove file.
52580         * m4/ucs4-utf.m4: Remove file.
52581         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52582         (Depends-on): Add unistr/base.
52583         (configure.ac): Remove gl_UTF_UCS4.
52584         (Makefile.am): Update.
52585         (Include): Change to unistr.h.
52586         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52587         (Depends-on): Add unistr/base.
52588         (configure.ac): Remove gl_UTF_UCS4.
52589         (Makefile.am): Update.
52590         (Include): Change to unistr.h.
52591         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52592         (Depends-on): Add unistr/base.
52593         (configure.ac): Remove gl_UTF_UCS4.
52594         (Makefile.am): Update.
52595         (Include): Change to unistr.h.
52596         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52597         (Depends-on): Add unistr/base.
52598         (configure.ac): Remove gl_UTF_UCS4.
52599         (Makefile.am): Update.
52600         (Include): Change to unistr.h.
52601         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52602         (Depends-on): Add unistr/base.
52603         (configure.ac): Remove gl_UCS4_UTF.
52604         (Makefile.am): Update.
52605         (Include): Change to unistr.h.
52606         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52607         (Depends-on): Add unistr/base.
52608         (configure.ac): Remove gl_UCS4_UTF.
52609         (Makefile.am): Update.
52610         (Include): Change to unistr.h.
52611         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52612         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52613         utf8-ucs4-unsafe.h.
52614         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52615         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52616         utf16-ucs4-unsafe.h.
52617         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52618         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52619         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52620         * lib/unistr/u8-strchr.c: Likewise.
52621         * lib/unistr/u8-strrchr.c: Likewise.
52622         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52623         * lib/unistr/u16-strchr.c: Likewise.
52624         * lib/unistr/u16-strrchr.c: Likewise.
52625         * lib/striconveh.c: Update.
52626         * lib/linebreak.c: Update.
52627
52628 2007-03-24  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52631         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52632
52633 2007-03-22  Bruno Haible  <bruno@clisp.org>
52634
52635         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52636
52637 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52638
52639         * MODULES.html.sh (File system functions): New module write-any-file.
52640         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52641         * m4/write-any-file.m4: New files.
52642
52643 2007-03-23  Eric Blake  <ebb9@byu.net>
52644
52645         * gnulib-tool: Rearrange space-tab sequences, since some editors
52646         like to eat them.
52647
52648 2007-03-23  Eric Blake  <ebb9@byu.net>
52649
52650         * lib/version-etc.c (version_etc_va): Update license wording to
52651         be more concise.  Recommended by Richard Stallman.
52652
52653 2007-03-22  Bruno Haible  <bruno@clisp.org>
52654
52655         * lib/poll.c (MSG_PEEK): New fallback definition.
52656
52657 2007-03-22  Bruno Haible  <bruno@clisp.org>
52658
52659         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52660         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52661         (main): Update.
52662         Fixes a compilation error on BeOS.
52663
52664 2007-03-22  Bruno Haible  <bruno@clisp.org>
52665
52666         * modules/frexpl-tests: New file.
52667         * tests/test-frexpl.c: New file.
52668
52669         * modules/frexpl: New file.
52670         * m4/frexpl.m4: New file.
52671         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52672         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52674         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52675         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52676         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52677
52678 2007-03-22  Bruno Haible  <bruno@clisp.org>
52679
52680         * lib/frexpl.c: Share code with lib/frexp.c.
52681         * modules/mathl (Files): Add lib/frexp.c.
52682         (Depends-on): Add isnanl-nolibm.
52683
52684 2007-03-22  Bruno Haible  <bruno@clisp.org>
52685
52686         * modules/printf-frexp (Files): Add m4/frexp.m4.
52687         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52688         only if the found frexp function actually works.
52689
52690 2007-03-22  Bruno Haible  <bruno@clisp.org>
52691
52692         * lib/frexp.c: Remove older implementation that uses divisions.
52693
52694 2007-03-21  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/frexp-tests: New file.
52697         * tests/test-frexp.c: New file.
52698
52699         * modules/frexp: New file.
52700         * lib/frexp.c: New file.
52701         * m4/frexp.m4: New file.
52702         * lib/math_.h (frexp): New declaration.
52703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52704         REPLACE_FREXP.
52705         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52706
52707 2007-03-21  Bruno Haible  <bruno@clisp.org>
52708
52709         * modules/isnanl-tests: New file.
52710         * tests/test-isnanl.c: New file.
52711
52712         * modules/isnanl: New file.
52713         * lib/isnanl.h: New file.
52714         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52715         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52716         gl_FUNC_ISNANL_WORKS.
52717         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52718         New macros.
52719
52720 2007-03-21  Bruno Haible  <bruno@clisp.org>
52721
52722         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52723         lib/isnanl.h.
52724         (Include): Update.
52725         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52726         * lib/vasnprintf.c: Update.
52727         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52728         tests/test-isnanl.h, remove tests/test-isnanl.c.
52729         (Makefile.am): Update.
52730         * tests/test-isnanl-nolibm.c: New file.
52731         * tests/test-isnanl.h: New file.
52732         * tests/test-isnanl.c: Remove file.
52733
52734 2007-03-21  Jim Meyering  <jim@meyering.net>
52735
52736         When trying to open ".", treat ESTALE like EACCES.
52737         * lib/savewd.c (savewd_save): Resort to forking not just upon
52738         failure with EACCES, but also when errno is ESTALE.
52739
52740 2007-03-20  Bruno Haible  <bruno@clisp.org>
52741
52742         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52743         Needed on AIX 5.1. Reported by Matthew Woehlke.
52744
52745 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52746
52747         Suggestions by Bruno Haible:
52748         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52749         our own.
52750         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52751         * modules/acl (Depends-on): Add gettext.
52752
52753 2007-03-19  Bruno Haible  <bruno@clisp.org>
52754
52755         * modules/iconvme: Remove file.
52756         * lib/iconvme.h: Remove file.
52757         * lib/iconvme.c: Remove file.
52758         * m4/iconvme.m4: Remove file.
52759
52760 2007-03-19  Bruno Haible  <bruno@clisp.org>
52761
52762         * doc/relocatable-maint.texi: Break long shell script line.
52763         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52764
52765 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52766
52767         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52768         handle file_has_acl.
52769         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52770         * lib/acl.c: Move header inclusions and related macro defns into
52771         lib/acl-internal.h.
52772         (S_ISLNK): Remove defn, since that's now done for us.
52773         (file_has_acl): Move to lib/file-has-acl.c.
52774         Call acl_trivial if available.  This is the crucial part of the fix.
52775         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52776         shared within the library.  Rewrite a bit, partly to make it compatible
52777         with the GNU coding style.
52778         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52779         Remove unnecessary double-quotes.
52780         Don't test for acl_to_text; the build will catch that.
52781         Replace acl_entries if it doesn't exist and it is needed.
52782         Check for -lsec and acl_trivial (as used on Solaris 10).
52783         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52784         lib/file-has-acl.c.
52785         (Depends-on): Add sys_stat, for S_ISLNK.
52786
52787 2007-03-19  Ben Pfaff  <blp@gnu.org>
52788
52789         * doc/gnulib.texi: Fix typos.
52790         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52791
52792 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52793
52794         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52795         If size is zero here, buf must be zero.
52796
52797 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52798
52799         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52800         <bruno@clisp.org>.
52801
52802 2007-03-18  Bruno Haible  <bruno@clisp.org>
52803
52804         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52805         Suggested by Eric Blake.
52806
52807 2007-03-18  Ben Pfaff  <blp@gnu.org>
52808
52809         * doc/relocatable.texi: Recommend using as prefix a directory
52810         that does not exist and will never be created.  Based on
52811         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52812         and others.
52813
52814 2007-03-17  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/fchownat.c: Include lchown.h.
52817
52818 2007-03-17  Bruno Haible  <bruno@clisp.org>
52819
52820         Fix endless loop when the given allocated size was > INT_MAX.
52821         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52822         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52823         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52824         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52825         * lib/sprintf.c (sprintf): Likewise.
52826
52827 2007-03-17  Bruno Haible  <bruno@clisp.org>
52828
52829         * tests/test-argp-2.sh (func_compare): Output a context diff.
52830
52831 2007-03-17  Bruno Haible  <bruno@clisp.org>
52832
52833         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52834         locale's decimal-point character.
52835
52836 2007-03-17  Bruno Haible  <bruno@clisp.org>
52837
52838         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52839         before comparing it. Needed because on some platforms (e.g. x86) a
52840         'long double' occupies less bytes than sizeof (long double).
52841
52842 2007-03-17  Bruno Haible  <bruno@clisp.org>
52843
52844         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52845         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52846         * tests/test-getaddrinfo.c (simple): Likewise.
52847         * tests/test-read-file.c (main): Likewise.
52848
52849 2007-03-17  Bruno Haible  <bruno@clisp.org>
52850
52851         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52852
52853 2007-03-17  Bruno Haible  <bruno@clisp.org>
52854
52855         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52856         unused variable.
52857
52858 2007-03-17  Bruno Haible  <bruno@clisp.org>
52859
52860         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52861         * tests/test-c-strncasecmp.c: Likewise.
52862
52863 2007-03-17  Bruno Haible  <bruno@clisp.org>
52864
52865         * modules/stdlib (Depends-on): Add unistd.
52866         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52867         Needed for MacOS X 10.3.
52868
52869 2007-03-17  Bruno Haible  <bruno@clisp.org>
52870
52871         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52872
52873 2007-03-17  Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52876
52877 2007-03-17  Bruno Haible  <bruno@clisp.org>
52878
52879         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52880         to reflect files copied from gnulib (with or without modifications).
52881         Suggested by Jim Meyering.
52882
52883 2007-03-17  Eric Blake  <ebb9@byu.net>
52884
52885         * NEWS: Document stdlib change from 2007-02-18.
52886
52887 2007-03-17  Jim Meyering  <jim@meyering.net>
52888
52889         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52890         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52891         someone uses a name containing shell meta-characters.
52892         Reported by Alfred M. Szmidt.
52893
52894         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52895
52896 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52897
52898         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52899         and copy gettext configuration files only if configure.ac contains
52900         a use of AM_GNU_GETTEXT_VERSION.
52901
52902 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52903
52904         * build-aux/bootstrap (gnulib_name): New variable.
52905         (gnulib_tool_options): Use it.
52906
52907 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52908
52909         * tests/test-des.c: Use new namespace.
52910
52911 2007-03-15  Bruno Haible  <bruno@clisp.org>
52912
52913         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52914         Reported by James Youngman <jay@gnu.org>.
52915
52916 2007-03-15  Bruno Haible  <bruno@clisp.org>
52917
52918         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52919         declared prototype. Needed with cc on OSF/1 5.1.
52920
52921 2007-03-15  Bruno Haible  <bruno@clisp.org>
52922
52923         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52924         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52925         (struct gl_list_implementation): Add dispose_fn argument to the
52926         'create_empty', 'create' methods.
52927         (struct gl_list_impl_base): Add field 'dispose_fn'.
52928         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52929         argument.
52930         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52931         dispose_fn argument.
52932         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52933         dispose_fn on the dropped values.
52934         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52935         dispose_fn argument.
52936         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52937         dropped values.
52938         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52939         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52940         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52941         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52942         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52943         argument.
52944         (gl_tree_list_free): Call dispose_fn on the dropped values.
52945         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52946         the dropped values.
52947         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52948         Add dispose_fn argument.
52949         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52950         Call dispose_fn on the dropped values.
52951         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52952         Add dispose_fn argument.
52953         (gl_sublist_create): Initialize the 'dispose_fn' field.
52954         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52955         * tests/test-array_list.c (main): Update.
52956         * tests/test-carray_list.c (main): Update.
52957         * tests/test-avltree_list.c (main): Update.
52958         * tests/test-rbtree_list.c (main): Update.
52959         * tests/test-avltreehash_list.c (main): Update.
52960         * tests/test-rbtreehash_list.c (main): Update.
52961         * tests/test-linked_list.c (main): Update.
52962         * tests/test-linkedhash_list.c (main): Update.
52963         * tests/test-array_oset.c (main): Update.
52964
52965 2007-03-15  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52968         (gl_oset_create_empty): Add dispose_fn argument.
52969         (struct gl_oset_implementation): Add dispose_fn argument to
52970         'create_empty' method.
52971         (struct gl_oset_impl_base): Add dispose_fn field.
52972         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52973         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52974         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52975         values.
52976         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52977         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52978         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52979         dropped value.
52980         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52981         dropped value.
52982         * tests/test-array_oset.c (main): Update.
52983         * tests/test-avltree_oset.c (main): Update.
52984         * tests/test-rbtree_oset.c (main): Update.
52985         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52986
52987 2007-03-13  Bruno Haible  <bruno@clisp.org>
52988
52989         * tests/test-stdbool.c (i): Update after last patch.
52990
52991 2007-03-12  Bruno Haible  <bruno@clisp.org>
52992
52993         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52994         the iswprint macro. Needed on Solaris 2.5.1.
52995
52996 2007-03-12  Bruno Haible  <bruno@clisp.org>
52997
52998         * tests/test-printf-frexp.c (main): Declare x as volatile.
52999
53000 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53001
53002         * doc/gnulib.texi (Build robot for gnulib): New section.
53003
53004 2007-03-12  Jim Meyering  <jim@meyering.net>
53005
53006         * build-aux/bootstrap: New file.
53007         * build-aux/bootstrap.conf: New file, from coreutils.
53008
53009 2007-03-11  Bruno Haible  <bruno@clisp.org>
53010
53011         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
53012
53013 2007-03-12  Simon Josefsson  <simon@josefsson.org>
53014
53015         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
53016         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
53017         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
53018
53019 2007-03-11  Bruno Haible  <bruno@clisp.org>
53020
53021         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
53022         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
53023
53024 2007-03-11  Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
53027         formula. Needed for SunPRO C 5.0.
53028
53029 2007-03-11  Bruno Haible  <bruno@clisp.org>
53030
53031         * modules/long-options (Depends-on): Add getopt.
53032
53033 2007-03-11  Bruno Haible  <bruno@clisp.org>
53034
53035         * modules/modechange (Depends-on): Add stdbool.
53036
53037 2007-03-11  Bruno Haible  <bruno@clisp.org>
53038
53039         * modules/i-ring (Depends-on): Add stdbool.
53040
53041 2007-03-11  Bruno Haible  <bruno@clisp.org>
53042
53043         * modules/gc-des (Depends-on): Add stdbool.
53044
53045 2007-03-11  Bruno Haible  <bruno@clisp.org>
53046
53047         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
53048
53049 2007-03-11  Bruno Haible  <bruno@clisp.org>
53050
53051         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
53052
53053 2007-03-11  Bruno Haible  <bruno@clisp.org>
53054
53055         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
53056
53057 2007-03-11  Bruno Haible  <bruno@clisp.org>
53058
53059         * lib/vasnprintf.c (sprintf): Undefine.
53060
53061 2007-03-11  Bruno Haible  <bruno@clisp.org>
53062
53063         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
53064         initializers in SunPRO C and Compaq C compilers.
53065
53066 2007-03-11  Bruno Haible  <bruno@clisp.org>
53067
53068         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
53069         decrementing code ANSI C compliant.
53070
53071 2007-03-11  Bruno Haible  <bruno@clisp.org>
53072
53073         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
53074         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
53075
53076 2007-03-11  Bruno Haible  <bruno@clisp.org>
53077
53078         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
53079         <stdbool.h> substitute doesn't pass.
53080
53081 2007-03-11  Bruno Haible  <bruno@clisp.org>
53082
53083         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
53084
53085 2007-03-11  Bruno Haible  <bruno@clisp.org>
53086
53087         * gnulib-tool (func_create_megatestdir): Create also an autobuild
53088         script, for submission to autobuild.josefsson.org.
53089
53090 2007-03-10  Bruno Haible  <bruno@clisp.org>
53091
53092         * modules/canonicalize-lgpl-tests: New file.
53093         * tests/test-canonicalize-lgpl.sh: New file.
53094         * tests/test-canonicalize-lgpl.c: New file.
53095
53096         * modules/c-strcase-tests: New file.
53097         * tests/test-c-strcase.sh: New file.
53098         * tests/test-c-strcasecmp.c: New file.
53099         * tests/test-c-strncasecmp.c: New file.
53100
53101         * modules/atexit-tests: New file.
53102         * tests/test-atexit.sh: New file.
53103         * tests/test-atexit.c: New file.
53104
53105 2007-03-10  Bruno Haible  <bruno@clisp.org>
53106
53107         * tests/test-binary-io.sh: Use temporary filenames that are not so
53108         likely to clash with those of other tests (in a parallel make).
53109         * tests/test-binary-io.c: Likewise.
53110
53111 2007-03-10  Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
53114         fallback; use #error instead.
53115         Suggested by Simon Josefsson.
53116
53117 2007-03-10  Bruno Haible  <bruno@clisp.org>
53118
53119         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
53120         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
53121         first and the last.
53122
53123 2007-03-10  Bruno Haible  <bruno@clisp.org>
53124
53125         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
53126
53127 2007-03-10  Bruno Haible  <bruno@clisp.org>
53128
53129         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
53130         "make distcheck".
53131         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
53132         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
53133         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
53134
53135 2007-03-10  Bruno Haible  <bruno@clisp.org>
53136
53137         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
53138         variable.
53139         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
53140         variable.
53141
53142 2007-03-09  Eric Blake  <ebb9@byu.net>
53143         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
53144
53145         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
53146         types are not being provided by gnulib.
53147         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
53148         types are supported.
53149
53150 2007-03-10  Bruno Haible  <bruno@clisp.org>
53151
53152         * lib/stdio_.h (__attribute__): New macro.
53153         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
53154         vsprintf): Specify __attribute__ __format__ for GCC.
53155         Suggested by Eric Blake.
53156
53157 2007-03-09  Bruno Haible  <bruno@clisp.org>
53158
53159         * modules/printf-posix-tests: New file.
53160         * tests/test-printf-posix.sh: New file.
53161         * tests/test-printf-posix.c: New file.
53162
53163         * modules/printf-posix: New file.
53164         * lib/printf.c: New file.
53165         * m4/printf-posix-rpl.m4: New file.
53166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
53167         REPLACE_PRINTF.
53168         * lib/stdio_.h (printf): New declaration.
53169         (format, __format__, ____printf____, ____scanf____, ____strftime____,
53170         ____strfmon____): New macros.
53171         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
53172         REPLACE_PRINTF.
53173
53174 2007-03-09  Bruno Haible  <bruno@clisp.org>
53175
53176         * tests/test-vasnprintf-posix2.sh: New file.
53177         * tests/test-vasnprintf-posix2.c: New file.
53178         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
53179         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
53180         (Makefile.am): Activate test-vasnprintf-posix2.sh.
53181
53182         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
53183         a locale dependent decimal point, rather than always '.'.
53184
53185 2007-03-09  Eric Blake  <ebb9@byu.net>
53186
53187         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
53188         spite of platforms like Tandem/NSK that define it to -1.
53189
53190 2007-03-08  Bruno Haible  <bruno@clisp.org>
53191
53192         * modules/vprintf-posix-tests: New file.
53193         * tests/test-vprintf-posix.sh: New file.
53194         * tests/test-vprintf-posix.c: New file.
53195         * tests/test-printf-posix.h: New file.
53196
53197         * modules/vprintf-posix: New file.
53198         * lib/vprintf.c: New file.
53199         * m4/vprintf-posix.m4: New file.
53200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
53201         REPLACE_VPRINTF.
53202         * lib/stdio_.h (vprintf): New declaration.
53203         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
53204         REPLACE_VPRINTF.
53205
53206 2007-03-08  Bruno Haible  <bruno@clisp.org>
53207
53208         * modules/fprintf-posix-tests: New file.
53209         * tests/test-fprintf-posix.sh: New file.
53210         * tests/test-fprintf-posix.c: New file.
53211
53212         * modules/fprintf-posix: New file.
53213         * lib/fprintf.c: New file.
53214         * m4/fprintf-posix.m4: New file.
53215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53216         REPLACE_FPRINTF.
53217         * lib/stdio_.h (fprintf): New declaration.
53218         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53219         REPLACE_FPRINTF.
53220
53221 2007-03-08  Bruno Haible  <bruno@clisp.org>
53222
53223         * modules/vfprintf-posix-tests: New file.
53224         * tests/test-vfprintf-posix.sh: New file.
53225         * tests/test-vfprintf-posix.c: New file.
53226         * tests/test-fprintf-posix.h: New file.
53227         * tests/test-fprintf-posix.out: New file.
53228
53229         * modules/vfprintf-posix: New file.
53230         * lib/vfprintf.c: New file.
53231         * m4/vfprintf-posix.m4: New file.
53232         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53233         REPLACE_VFPRINTF.
53234         * lib/stdio_.h (vfprintf): New declaration.
53235         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53236         REPLACE_VFPRINTF.
53237
53238 2007-03-08  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53241
53242 2007-03-08  Bruno Haible  <bruno@clisp.org>
53243
53244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53245         instead of 'expr' invocations.
53246         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53247         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53251         Suggested by Paul Eggert.
53252
53253 2007-03-08  Bruno Haible  <bruno@clisp.org>
53254
53255         * modules/fseterr-tests: New file.
53256         * tests/test-fseterr.c: New file.
53257
53258         * modules/fseterr: New file.
53259         * lib/fseterr.h: New file.
53260         * lib/fseterr.c: New file.
53261
53262 2007-03-08  Bruno Haible  <bruno@clisp.org>
53263
53264         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53265         * lib/getopt_.h: Likewise.
53266         * lib/mbswidth.h: Likewise.
53267         * lib/setenv.h: Likewise.
53268         * lib/vasnprintf.h: Likewise.
53269         * lib/vasprintf.h: Likewise.
53270         * lib/verror.h: Likewise.
53271         * lib/xsetenv.h: Likewise.
53272         * lib/xvasprintf.h: Likewise.
53273
53274 2007-03-08  Jim Meyering  <jim@meyering.net>
53275
53276         * users.txt: Add parted.
53277
53278         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53279
53280 2007-03-07  Bruno Haible  <bruno@clisp.org>
53281
53282         * m4/printf.m4: Make the shell script snippets copy&pastable.
53283
53284 2007-03-02  Bruno Haible  <bruno@clisp.org>
53285
53286         * lib/netinet_in_.h: New file.
53287         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53288         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53289         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53290         (Depends-on): Add absolute-header.
53291         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53292         into netinet/in.h.
53293
53294 2007-03-03  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/sys_select_.h: New file.
53297         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53298         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53299         * modules/sys_select (Files): Add lib/sys_select_.h.
53300         (Depends-on): Add absolute-header.
53301         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53302         into sys/select.h.
53303
53304 2007-03-02  Bruno Haible  <bruno@clisp.org>
53305
53306         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53307         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53308         values.
53309         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53310         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53311         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53312         * modules/sys_socket (Depends-on): Add absolute-header.
53313         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53314         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53315         (Include): Remove requirement of inclusion of <sys/types.h>.
53316
53317 2007-03-02  Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/byteswap_.h (bswap_32): Fix formula.
53320
53321 2007-03-06  Bruno Haible  <bruno@clisp.org>
53322
53323         * modules/sprintf-posix-tests: New file.
53324         * tests/test-sprintf-posix.c: New file.
53325
53326         * modules/sprintf-posix: New file.
53327         * lib/sprintf.c: New file.
53328         * m4/sprintf-posix.m4: New file.
53329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53330         REPLACE_SPRINTF.
53331         * lib/stdio_.h (sprintf): New declaration.
53332         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53333         REPLACE_SPRINTF.
53334
53335 2007-03-06  Bruno Haible  <bruno@clisp.org>
53336
53337         * modules/vsprintf-posix-tests: New file.
53338         * tests/test-vsprintf-posix.c: New file.
53339         * tests/test-sprintf-posix.h: New file.
53340
53341         * modules/vsprintf-posix: New file.
53342         * lib/vsprintf.c: New file.
53343         * m4/vsprintf-posix.m4: New file.
53344         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53345         REPLACE_VSPRINTF.
53346         * lib/stdio_.h (vsprintf): New declaration.
53347         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53348         REPLACE_VSPRINTF.
53349
53350 2007-03-06  Bruno Haible  <bruno@clisp.org>
53351
53352         * modules/vsnprintf (Depend-on): Remove minmax.
53353
53354 2007-03-06  Bruno Haible  <bruno@clisp.org>
53355
53356         * modules/snprintf-posix-tests: New file.
53357         * tests/test-snprintf-posix.c: New file.
53358
53359         * modules/snprintf-posix: New file.
53360         * m4/snprintf-posix.m4: New file.
53361         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53362         gl_FUNC_SNPRINTF.
53363         (gl_FUNC_SNPRINTF): Invoke it.
53364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53365         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53366         is set.
53367         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53368
53369 2007-03-06  Bruno Haible  <bruno@clisp.org>
53370
53371         * modules/vsnprintf-posix-tests: New file.
53372         * tests/test-vsnprintf-posix.c: New file.
53373         * tests/test-snprintf-posix.h: New file.
53374
53375         * modules/vsnprintf-posix: New file.
53376         * m4/vsnprintf-posix.m4: New file.
53377         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53378         gl_FUNC_VSNPRINTF.
53379         (gl_FUNC_VSNPRINTF): Invoke it.
53380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53381         * lib/stdio_.h (vsnprintf): Define as a replacement if
53382         REPLACE_VSNPRINTF is set.
53383         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53384
53385 2007-03-06  Bruno Haible  <bruno@clisp.org>
53386
53387         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53389
53390 2007-03-06  Bruno Haible  <bruno@clisp.org>
53391
53392         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53393         (asinl): Declare also if HAVE_DECL_ASINL is set.
53394         (atanl): Declare also if HAVE_DECL_ATANL is set.
53395         (ceill): Declare also if HAVE_DECL_CEILL is set.
53396         (cosl): Declare also if HAVE_DECL_COSL is set.
53397         (expl): Declare also if HAVE_DECL_EXPL is set.
53398         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53399         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53400         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53401         (logl): Declare also if HAVE_DECL_LOGL is set.
53402         (sinl): Declare also if HAVE_DECL_SINL is set.
53403         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53404         (tanl): Declare also if HAVE_DECL_TANL is set.
53405         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53407         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53408         declaration of frexpl, ldexpl.
53409         * modules/printf-frexpl (Depends-on): Add math.
53410         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53411
53412 2007-03-05  Bruno Haible  <bruno@clisp.org>
53413
53414         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53415         frexpl and ldexpl are declared.
53416         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53417
53418 2007-03-05  Bruno Haible  <bruno@clisp.org>
53419
53420         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53421         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53422
53423 2007-03-05  Bruno Haible  <bruno@clisp.org>
53424
53425         * lib/stdio_.h: Include <stddef.h>.
53426
53427 2007-03-05  Bruno Haible  <bruno@clisp.org>
53428
53429         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53430
53431 2007-03-05  Bruno Haible  <bruno@clisp.org>
53432
53433         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53434         NetBSD 4, from Ralf Wildenhues.
53435
53436 2007-03-04  Bruno Haible  <bruno@clisp.org>
53437
53438         * lib/vasprintf.h: Update #if logic for the case when the functions
53439         exist but are overridden.
53440
53441 2007-03-04  Bruno Haible  <bruno@clisp.org>
53442
53443         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53444         implementations: glibc-2.4 and MacOS X 10.3.
53445         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53446         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53447         * tests/test-vasprintf-posix.c (test_function): Likewise.
53448
53449 2007-03-04  Bruno Haible  <bruno@clisp.org>
53450
53451         * modules/vasprintf-posix-tests: New file.
53452         * tests/test-vasprintf-posix.c: New file.
53453
53454         * modules/vasprintf-posix: New file.
53455         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53456         defined.
53457         * m4/vasprintf-posix.m4: New file.
53458         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53459         gl_FUNC_VASPRINTF.
53460         (gl_FUNC_VASPRINTF): Invoke it.
53461         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53462         here.
53463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53464
53465 2007-03-04  Bruno Haible  <bruno@clisp.org>
53466
53467         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53468         REPLACE_GETTIMEOFDAY.
53469         * modules/sys_time (Makefile.am): Likewise.
53470         * m4/sys_time_h.m4: Likewise.
53471         * m4/gettimeofday.m4: Likewise.
53472
53473 2007-03-04  Bruno Haible  <bruno@clisp.org>
53474
53475         * modules/vasnprintf-posix-tests: New file.
53476         * tests/test-vasnprintf-posix.c: New file.
53477
53478         * modules/vasnprintf-posix: New file.
53479         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53480         printf-frexpl.h.
53481         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53482         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53483         REPLACE_VASNPRINTF is defined.
53484         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53485         gl_FUNC_VASNPRINTF.
53486         (gl_FUNC_VASNPRINTF): Invoke it.
53487         * m4/vasnprintf-posix.m4: New file.
53488         * m4/printf.m4: New file.
53489
53490 2007-03-04  Bruno Haible  <bruno@clisp.org>
53491
53492         Compile progreloc.c only if --enable-relocatable is specified.
53493         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53494         if --enable-relocatable was specified.
53495         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53496         lib_SOURCES.
53497
53498 2007-03-04  Jim Meyering  <jim@meyering.net>
53499
53500         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53501         Use it consistently, rather than enumerating errno constants.
53502
53503 2007-03-04  Bruno Haible  <bruno@clisp.org>
53504
53505         * modules/xvasprintf-tests: New file.
53506         * tests/test-xvasprintf.c: New file.
53507
53508         * modules/vasprintf-tests: New file.
53509         * tests/test-vasprintf.c: New file.
53510
53511         * modules/vasnprintf-tests: New file.
53512         * tests/test-vasnprintf.c: New file.
53513
53514         * modules/vsnprintf-tests: New file.
53515         * tests/test-vsnprintf.c: New file.
53516
53517         * modules/snprintf-tests: New file.
53518         * tests/test-snprintf.c: New file.
53519
53520 2007-03-04  Bruno Haible  <bruno@clisp.org>
53521
53522         Compile relocatable.c only if --enable-relocatable is specified.
53523         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53524         gl_RELOCATABLE_LIBRARY.
53525         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53526         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53527         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53528         gl_RELOCATABLE_LIBRARY.
53529         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53530         (Makefile.am): Remove lib_SOURCES.
53531         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53532         gl_RELOCATABLE_LIBRARY.
53533         (Makefile.am): Remove lib_SOURCES.
53534         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53535         always.
53536         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53537         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53538
53539 2007-03-04  Bruno Haible  <bruno@clisp.org>
53540
53541         * modules/argmatch-tests: New file.
53542         * tests/test-argmatch.c: New file.
53543
53544         * tests/test-allocsa.c (main): Halve the number of loop runs.
53545
53546         * modules/alloca-opt-tests: New file.
53547         * tests/test-alloca-opt.c: New file.
53548
53549 2007-03-04  Jim Meyering  <jim@meyering.net>
53550
53551         Work around difference between Linux ACLs and Solaris 10 ZFS.
53552         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53553         for EINVAL.
53554
53555 2007-03-03  Bruno Haible  <bruno@clisp.org>
53556
53557         * modules/relocatable-prog (Depends-on): Add back progreloc's
53558         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53559
53560 2007-03-03  Bruno Haible  <bruno@clisp.org>
53561
53562         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53563         * modules/relocatable-lib: New file.
53564
53565 2007-03-03  Bruno Haible  <bruno@clisp.org>
53566
53567         * modules/relocatable-prog: Renamed from modules/relocatable.
53568         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53569
53570 2007-03-03  Bruno Haible  <bruno@clisp.org>
53571
53572         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53573         m4/relocatable-lib.m4.
53574         (Depends-on): Remove 'relocatable'.
53575         (configure.ac): Add gl_RELOCATABLE_NOP.
53576
53577 2007-03-03  Bruno Haible  <bruno@clisp.org>
53578
53579         * modules/relocatable-prog-wrapper: New file.
53580         * modules/relocatable (Depends-on): Add it. Remove all other
53581         dependencies except progname.
53582         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53583
53584         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53585         (gl_FUNC_STRERROR): Nop.
53586         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53587
53588         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53589         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53590
53591         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53592         (gl_FUNC_READLINK): Update.
53593
53594         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53595
53596 2007-03-03  Bruno Haible  <bruno@clisp.org>
53597
53598         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53599         * modules/xreadlink (Depends-on): Add unistd.
53600         * modules/xreadlink-with-size (Depends-on): Likewise.
53601
53602 2007-03-03  Bruno Haible  <bruno@clisp.org>
53603
53604         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53605         extracted from gt_FUNC_SETENV.
53606         (gt_FUNC_SETENV): Remove macro.
53607         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53608         remove gt_FUNC_SETENV.
53609
53610 2007-03-03  Bruno Haible  <bruno@clisp.org>
53611
53612         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53613         ENABLE_RELOCATABLE here.
53614         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53615
53616 2007-03-03  Bruno Haible  <bruno@clisp.org>
53617
53618         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53619         * tests/test-rbtreehash_list.c: Include progname.h.
53620         (main): Call set_program_name.
53621
53622         * modules/rbtree-oset-tests (Depends-on): Add progname.
53623         * tests/test-rbtree_oset.c: Include progname.h.
53624         (main): Call set_program_name.
53625
53626         * modules/rbtree-list-tests (Depends-on): Add progname.
53627         * tests/test-rbtree_list.c: Include progname.h.
53628         (main): Call set_program_name.
53629
53630         * modules/linked-list-tests (Depends-on): Add progname.
53631         * tests/test-linked_list.c: Include progname.h.
53632         (main): Call set_program_name.
53633
53634 2007-03-03  Bruno Haible  <bruno@clisp.org>
53635
53636         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53637         All uses of __restrict changed to _Restrict_.
53638         * lib/glob_.h (__restrict): Remove macro.
53639
53640 2007-03-02  Bruno Haible  <bruno@clisp.org>
53641
53642         * modules/gettext (configure.ac): Require gettext infrastructure
53643         from version 0.16.1.
53644
53645 2007-03-02  Bruno Haible  <bruno@clisp.org>
53646
53647         * modules/linkedhash-list-tests (Depends-on): Add progname.
53648         * tests/test-linkedhash_list.c: Include progname.h.
53649         (main): Call set_program_name.
53650
53651         * modules/carray-list-tests (Depends-on): Add progname.
53652         * tests/test-carray_list.c: Include progname.h.
53653         (main): Call set_program_name.
53654
53655         * modules/avltreehash-list-tests (Depends-on): Add progname.
53656         * tests/test-avltreehash_list.c: Include progname.h.
53657         (main): Call set_program_name.
53658
53659         * modules/avltree-oset-tests (Depends-on): Add progname.
53660         * tests/test-avltree_oset.c: Include progname.h.
53661         (main): Call set_program_name.
53662
53663         * modules/avltree-list-tests (Depends-on): Add progname.
53664         * tests/test-avltree_list.c: Include progname.h.
53665         (main): Call set_program_name.
53666
53667         * modules/array-oset-tests (Depends-on): Add progname.
53668         * tests/test-array_oset.c: Include progname.h.
53669         (main): Call set_program_name.
53670
53671         * modules/array-list-tests (Depends-on): Add progname.
53672         * tests/test-array_list.c: Include progname.h.
53673         (main): Call set_program_name.
53674
53675         * modules/argp-tests (Depends-on): Add progname.
53676         * tests/test-argp.c: Include argp.h first. Include progname.h.
53677         (main): Call set_program_name.
53678
53679 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         * doc/gnulib-tool.texi (Initial import): Reword description of
53682         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53683         limited effect even if defined after the first system include.
53684
53685 2007-03-01  Bruno Haible  <bruno@clisp.org>
53686
53687         * build-aux/config.libpath: Update to libtool-1.5.22.
53688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53689
53690 2007-03-01  Bruno Haible  <bruno@clisp.org>
53691
53692         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53693         foo_CFLAGS.
53694         Reported by Ralf Wildenhues.
53695
53696 2007-03-01  Bruno Haible  <bruno@clisp.org>
53697
53698         * build-aux/install-reloc: Remove object files left over by some
53699         compilers.
53700         Reported by Ralf Wildenhues.
53701
53702 2007-03-01  Bruno Haible  <bruno@clisp.org>
53703
53704         * build-aux/install-reloc: Break long lines.
53705
53706 2007-03-01  Bruno Haible  <bruno@clisp.org>
53707
53708         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53709         Reported by Ralf Wildenhues.
53710
53711 2007-03-01  Bruno Haible  <bruno@clisp.org>
53712
53713         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53714         include ordering constraints.
53715
53716 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53717
53718         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53719         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53720         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53721         as another example.
53722         * lib/time_.h: Fix misspelling.
53723         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53724         Require gl_HEADER_TIME_H_DEFAULTS.
53725         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53726         * m4/time_r.m4 (gl_TIME_R): Likewise.
53727         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53728
53729 2007-03-01  Bruno Haible  <bruno@clisp.org>
53730
53731         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53732         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53733
53734 2007-03-01  Jim Meyering  <jim@meyering.net>
53735
53736         * modules/xreadlink (Maintainer): Add my name.
53737         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53738
53739 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53740             Bruno Haible  <bruno@clisp.org>
53741
53742         * build-aux/install-reloc: Compile also c-ctype.c.
53743         * build-aux/relocatable.sh.in: New file.
53744         * doc/relocatable.texi: New file.
53745         * doc/relocatable-maint.texi: New file.
53746         * doc/gnulib.texi: Include relocatable-maint.texi.
53747         * lib/progreloc.c: Include unistd.h unconditionally.
53748         * lib/relocwrapper.c: Include unistd.h unconditionally.
53749         Include c-ctype.h.
53750         (add_dotbin): Use c_tolower.
53751         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53752         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53753         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53754         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53755         to m4/relocatable-lib.m4.
53756         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53757         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53758         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53759         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53760         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53761         * modules/relocatable: New file.
53762         * modules/relocatable-lib: New file.
53763         * modules/relocatable-script: New file.
53764
53765 2007-02-28  Bruno Haible  <bruno@clisp.org>
53766
53767         Import --enable-relocatable infrastructure.
53768         * build-aux/config.libpath: New file, from GNU gettext.
53769         * build-aux/install-reloc: New file, from GNU gettext.
53770         * build-aux/reloc-ldflags: New file, from GNU gettext.
53771         * lib/relocatable.h: New file, from GNU gettext.
53772         * lib/relocatable.c: New file, from GNU gettext.
53773         * lib/relocwrapper.c: New file, from GNU gettext.
53774         * m4/relocatable.m4: New file, from GNU gettext.
53775
53776 2007-02-28  Bruno Haible  <bruno@clisp.org>
53777
53778         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53779
53780         * modules/xreadlink: New file, from GNU gettext with modifications.
53781         * lib/xreadlink.c: New file, from GNU gettext.
53782         * lib/xreadlink.h: Add comments.
53783         (xreadlink): New declaration.
53784
53785         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53786         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53787         lib/xreadlink-with-size.c.
53788         (configure.ac): Remove gl_XREADLINK invocation.
53789         (Makefile.am): Augment lib_SOURCES.
53790         * m4/xreadlink.m4: Remove file.
53791         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53792         (xreadlink_with_size): Renamed from xreadink.
53793         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53794         * modules/canonicalize (Depends-on): Replace xreadlink with
53795         xreadlink-with-size.
53796         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53797
53798 2007-02-25  Jim Meyering  <jim@meyering.net>
53799
53800         * build-aux/announce-gen: When complaining about excess arguments,
53801         list them.
53802
53803 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53804
53805         * README: Document signed integer overflow situation more
53806         accurately.
53807
53808 2007-02-25  Bruno Haible  <bruno@clisp.org>
53809
53810         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53811         'a' or 'A' conversion.
53812
53813 2007-02-25  Bruno Haible  <bruno@clisp.org>
53814
53815         * modules/filename: Renamed from modules/pathname.
53816         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53817         lib/concatpath.c with lib/concat-filename.c.
53818         (Makefile.am): Update.
53819         (Include): Replace pathname.h with filename.h.
53820         * lib/filename.h: Renamed from lib/pathname.h.
53821         (concatenated_filename): Renamed from concatenated_pathname.
53822         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53823         (concatenated_filename): Renamed from concatenated_pathname.
53824         * lib/findprog.c: Include filename.h instead of pathname.h.
53825         (find_in_path): Update.
53826         * lib/javacomp.c: Include filename.h instead of pathname.h.
53827         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53828         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53829         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53830         is_oldgcj_14_13_usable, is_javac_usable): Update.
53831         * lib/javaexec.c: Include filename.h instead of pathname.h.
53832         (execute_java_class): Update.
53833         * modules/findprog: Update.
53834         * modules/javacomp: Update.
53835         * modules/javaexec: Update.
53836         * MODULES.html.sh (File system functions): Add 'filename', remove
53837         'pathname'.
53838
53839 2007-02-25  Bruno Haible  <bruno@clisp.org>
53840
53841         * modules/printf-frexpl-tests: New file.
53842         * tests/test-printf-frexpl.c: New file.
53843
53844         * modules/printf-frexpl: New file.
53845         * lib/printf-frexpl.h: New file.
53846         * lib/printf-frexpl.c: New file.
53847         * m4/printf-frexpl.m4: New file.
53848
53849 2007-02-25  Bruno Haible  <bruno@clisp.org>
53850
53851         * modules/printf-frexp-tests: New file.
53852         * tests/test-printf-frexp.c: New file.
53853
53854         * modules/printf-frexp: New file.
53855         * lib/printf-frexp.h: New file.
53856         * lib/printf-frexp.c: New file.
53857         * m4/printf-frexp.m4: New file.
53858
53859 2007-02-25  Bruno Haible  <bruno@clisp.org>
53860
53861         Assume automake >= 1.10 for the tests.
53862         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53863         * modules/arctwo-tests: Likewise.
53864         * modules/argp-tests: Likewise.
53865         * modules/avltree-list-tests: Likewise.
53866         * modules/avltree-oset-tests: Likewise.
53867         * modules/avltreehash-list-tests: Likewise.
53868         * modules/carray-list-tests: Likewise.
53869         * modules/crc-tests: Likewise.
53870         * modules/des-tests: Likewise.
53871         * modules/gc-arcfour-tests: Likewise.
53872         * modules/gc-arctwo-tests: Likewise.
53873         * modules/gc-des-tests: Likewise.
53874         * modules/gc-hmac-md5-tests: Likewise.
53875         * modules/gc-hmac-sha1-tests: Likewise.
53876         * modules/gc-md2-tests: Likewise.
53877         * modules/gc-md4-tests: Likewise.
53878         * modules/gc-md5-tests: Likewise.
53879         * modules/gc-pbkdf2-sha1-tests: Likewise.
53880         * modules/gc-rijndael-tests: Likewise.
53881         * modules/gc-sha1-tests: Likewise.
53882         * modules/gc-tests: Likewise.
53883         * modules/getaddrinfo-tests: Likewise.
53884         * modules/hmac-md5-tests: Likewise.
53885         * modules/hmac-sha1-tests: Likewise.
53886         * modules/linked-list-tests: Likewise.
53887         * modules/linkedhash-list-tests: Likewise.
53888         * modules/lock-tests: Likewise.
53889         * modules/md2-tests: Likewise.
53890         * modules/md4-tests: Likewise.
53891         * modules/md5-tests: Likewise.
53892         * modules/rbtree-list-tests: Likewise.
53893         * modules/rbtree-oset-tests: Likewise.
53894         * modules/rbtreehash-list-tests: Likewise.
53895         * modules/read-file-tests: Likewise.
53896         * modules/rijndael-tests: Likewise.
53897         * modules/stdint-tests: Likewise.
53898         * modules/tls-tests: Likewise.
53899
53900 2007-02-24  Bruno Haible  <bruno@clisp.org>
53901
53902         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53903         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53904         function; instead check whether isnan with a double argument links.
53905         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53906         function; instead check whether isnan with a 'long double' argument
53907         links.
53908         Reported by Eric Blake <ebb9@byu.net>.
53909
53910 2007-02-24  Bruno Haible  <bruno@clisp.org>
53911
53912         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53913         defined.
53914         * lib/isnanl.c: Remove all code. Just include isnan.c.
53915         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53916
53917 2007-02-25  Jim Meyering  <jim@meyering.net>
53918
53919         Avoid conflicting types for 'unsetenv' on FreeBSD.
53920         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53921         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53922         in stdlib.h.
53923
53924 2007-02-24  Bruno Haible  <bruno@clisp.org>
53925
53926         * modules/isnanl-nolibm-tests: New file.
53927         * tests/test-isnanl.c: New file.
53928
53929         * modules/isnanl-nolibm: New file.
53930         * lib/isnanl.h: New file.
53931         * lib/isnanl.c: New file.
53932         * m4/isnanl.m4: New file.
53933
53934 2007-02-24  Bruno Haible  <bruno@clisp.org>
53935
53936         * modules/isnan-nolibm-tests: New file.
53937         * tests/test-isnan.c: New file.
53938
53939         * modules/isnan-nolibm: New file.
53940         * lib/isnan.h: New file.
53941         * lib/isnan.c: New file.
53942         * m4/isnan.m4: New file.
53943
53944 2007-02-24  Bruno Haible  <bruno@clisp.org>
53945
53946         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53947         assume that an exponent fits in 20 bits.
53948
53949 2007-02-24  Jim Meyering  <jim@meyering.net>
53950
53951         * m4/regex.m4: Update the description of the configure-time option,
53952         --without-included-regex, to state accurately what the defaults are,
53953         and perhaps to give people an idea why using this option is risky.
53954
53955 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53956
53957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53958         loops on small arguments.  This attempts to avoid the problem
53959         Bruno Haible reported for AIX 4.3.2 in
53960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53961
53962 2007-02-23  Bruno Haible  <bruno@clisp.org>
53963
53964         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53965         Needed for help2man.
53966
53967 2007-02-23  Karl Berry  <karl@gnu.org>
53968
53969         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53970         exists, foo.h should be cvs-ignored, not committed.
53971
53972 2007-02-23  Eric Blake  <ebb9@byu.net>
53973
53974         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53975         * lib/stat-time.h (includes): Likewise.
53976         * lib/utimecmp.c (includes): Likewise.
53977         * lib/utimens.h (includes): Likewise.
53978         * lib/getdate.y (includes): Also include "timespec.h" for use
53979         internal to the module.
53980         * modules/utimens (Depends-on): Revert yesterday's patch.
53981         * modules/nanosleep (Depends-on): Add missing dependency.
53982
53983 2007-02-22  Bruno Haible  <bruno@clisp.org>
53984
53985         * lib/glob.c: Don't include getlogin_r.h.
53986
53987 2007-02-22  Jim Meyering  <jim@meyering.net>
53988
53989         * modules/utimens (Depends-on): Add timespec, required for
53990         utimens.h's inclusion of timespec.h.
53991
53992 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53993
53994         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53995         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53996         Schwab in
53997         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53998         I'll try to think of a better way to fix the Solaris problem.
53999
54000         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
54001         like glibc; on Solaris 10, it fails with errno == EINVAL.
54002         POSIX says the behavior is unspecified if the first argument is NULL,
54003         so play it safe and never pass NULL to the system getcwd.
54004
54005 2007-02-21  Jim Meyering  <jim@meyering.net>
54006
54007         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
54008         of gettimeofday.  It would conflict with the one now always
54009         provided via sys_time_.h.  Reported by Matthew Woehlke, as
54010         an IRIX 6.5 build failure.
54011
54012 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54013
54014         Minor fixups to port to Solaris 10 with Sun C 5.8.
54015         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
54016         * modules/getcwd (Depends-on): Add dirfd.
54017         * lib/putenv.c (putenv): #undef it.
54018         (rpl_putenv): New decl.
54019         (malloc, free): Include <stdlib.h> rather than prototyping separately.
54020
54021 2007-02-20  Bruno Haible  <bruno@clisp.org>
54022
54023         * modules/stdio-tests: New file.
54024         * tests/test-stdio.c: New file.
54025
54026         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
54027         (Depends-on): Add stdio.
54028         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54029         (Include): Use <stdio.h> instead of vsnprintf.h.
54030         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54031         HAVE_DECL_VSNPRINTF.
54032         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
54033
54034         * modules/snprintf (Files): Remove lib/snprintf.h.
54035         (Depends-on): Add stdio.
54036         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54037         (Include): Use <stdio.h> instead of snprintf.h.
54038         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
54039         HAVE_DECL_SNPRINTF.
54040         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
54041         * lib/getaddrinfo.c: Likewise.
54042
54043         * modules/stdio: New file.
54044         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
54045         * lib/snprintf.h: Remove file.
54046         * lib/vsnprintf.h: Remove file.
54047         * lib/.cppi-disable: Remove snprintf.h.
54048         * m4/stdio_h.m4: New file.
54049         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
54050
54051 2007-02-20  Jim Meyering  <jim@meyering.net>
54052
54053         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
54054         used by e.g., mingw.  From Bruno Haible.
54055
54056 2007-02-19  Bruno Haible  <bruno@clisp.org>
54057
54058         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
54059         warnings.
54060         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54061
54062 2007-02-19  Bruno Haible  <bruno@clisp.org>
54063
54064         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
54065         from mingw users.
54066
54067 2007-02-19  Bruno Haible  <bruno@clisp.org>
54068
54069         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
54070         warnings.
54071         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
54072
54073 2007-02-19  Jim Meyering  <jim@meyering.net>
54074
54075         Don't use FD after a successful "fdopendir (fd)".
54076         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
54077         Reset it by calling dirfd on the just-obtained DIR*.
54078
54079         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
54080         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
54081
54082 2007-02-18  Bruno Haible  <bruno@clisp.org>
54083
54084         * lib/readlink.c: Include <unistd.h>.
54085         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
54086         HAVE_READLINK.
54087         * modules/readlink (Depends-on): Add unistd.
54088         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54089         (Include): Add <unistd.h>.
54090
54091         * lib/getlogin_r.h: Remove file.
54092         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
54093         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
54094         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
54095         HAVE_DECL_GETLOGIN_R.
54096         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
54097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54098         (Include): Use <unistd.h> instead of getlogin_r.h.
54099
54100         * lib/getcwd.h: Remove file.
54101         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
54102         * lib/xgetcwd.c: Likewise.
54103         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
54104         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
54105         * modules/getcwd (Files): Remove lib/getcwd.h.
54106         (Depends-on): Add unistd.
54107         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54108         (Include): Use <unistd.h> instad of getcwd.h.
54109
54110         * lib/ftruncate.c: Include <unistd.h> first.
54111         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
54112         Set HAVE_FTRUNCATE.
54113         * modules/ftruncate (Depends-on): Add unistd.
54114         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54115
54116         * lib/fchdir.c: Include <unistd.h> first.
54117         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
54118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
54119         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
54120         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54121         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
54122
54123         * lib/dup2.c: Include <unistd.h> first.
54124         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
54125         HAVE_DUP2.
54126         * modules/dup2 (Depends-on): Add unistd.
54127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54128
54129         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
54130         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
54131         REPLACE_CHOWN. Don't define chown as a macro here.
54132         * modules/chown (Depends-on): Add unistd.
54133         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54134
54135         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
54136         Add definition for GL_LINK_WARNING.
54137         (chown, dup2): New declarations.
54138         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
54139         link warning.
54140         (ftruncate): New declaration.
54141         (getcwd): New declaration, taken from old getcwd.h.
54142         (getlogin_r): New declaration, taken from old getlogin_r.h.
54143         (readlink): New declaration.
54144         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
54145         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
54146         (gl_PREREQ_UNISTD): Remove macro.
54147         (gl_UNISTD_MODULE_INDICATOR): New macro.
54148         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
54149         many new variables. Don't set UNISTD_H.
54150         * modules/unistd (Description): Change.
54151         (Depends-on): Add link-warning.
54152         (configure.ac): Update.
54153         (Makefile.am): Create unistd.h always. Substitute many new variables
54154         into it.
54155
54156 2007-02-18  Bruno Haible  <bruno@clisp.org>
54157
54158         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
54159         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
54160         HAVE_GETSUBOPT.
54161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
54162         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
54163         * lib/getsubopt.h: Remove file.
54164         * modules/getsubopt (Files): Remove lib/getsubopt.h.
54165         (Depends-on): Add stdlib.
54166         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54167         (Includes): Use <stdlib.h> instead of getsubopt.h.
54168         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
54169         Set HAVE_GETSUBOPT.
54170         * lib/getsubopt.c: Don't include getsubopt.h.
54171
54172 2007-02-18  Bruno Haible  <bruno@clisp.org>
54173
54174         * modules/fchdir (Depends-on): Add dup2.
54175
54176 2007-02-18  Bruno Haible  <bruno@clisp.org>
54177
54178         * lib/stdlib_.h: Handle glibc's special invocation convention
54179         specially.
54180
54181 2007-02-18  Bruno Haible  <bruno@clisp.org>
54182
54183         * modules/stdlib-tests: New file.
54184         * tests/test-stdlib.c: New file.
54185
54186         * modules/mkstemp (Files): Remove lib/mkstemp.h.
54187         (Depends-on): Add stdlib.
54188         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54189         (Includes): Use <stdlib.h> instead of mkstemp.h.
54190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54191         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
54192         * lib/mkstemp.c: Don't include mkstemp.h.
54193         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
54194         * lib/stdlib--.h: Don't include mkstemp.h.
54195
54196         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
54197         (Depends-on): Add stdlib.
54198         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54199         (Includes): Use <stdlib.h> instead of mkdtemp.h.
54200         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
54201         HAVE_MKDTEMP.
54202         * lib/mkdtemp.c: Don't include mkdtemp.h.
54203         * lib/clean-temp.c: Don't include mkdtemp.h.
54204
54205         * modules/exit (Files): Remove lib/exit.h.
54206         (Depends-on): Add stdlib.
54207         (Makefile.am): Remove lib_SOURCES.
54208         (Include): Use <stdlib.h> instead of exit.h.
54209         * lib/argmatch.c: Don't include exit.h.
54210         * lib/execute.c: Likewise.
54211         * lib/pagealign_alloc.c: Likewise.
54212         * lib/pipe.c: Likewise.
54213         * lib/wait-process.c: Likewise.
54214         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54215         * lib/exitfail.c: Likewise.
54216         * lib/savewd.c: Likewise.
54217         * lib/xsetenv.c: Likewise.
54218
54219         * modules/stdlib: New file.
54220         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54221         and extra comments about mkstemp().
54222         * lib/exit.h: Remove file.
54223         * lib/mkdtemp.h: Remove file.
54224         * lib/mkstemp.h: Remove file.
54225         * m4/stdlib_h.m4: New file.
54226         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54227
54228 2007-02-18  Bruno Haible  <bruno@clisp.org>
54229
54230         * modules/math-tests: New file.
54231         * tests/test-math.c: New file.
54232
54233         * modules/math: New file.
54234         * modules/mathl (Files): Remove lib/mathl.h.
54235         (Depends-on): Add math.
54236         (Makefile.am): Don't mention mathl.h.
54237         (Include): Use <math.h> instead of mathl.h.
54238         * lib/math_.h: New file.
54239         * lib/mathl.h: Remove file.
54240         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54241         mathl.h.
54242         * lib/asinl.c: Likewise.
54243         * lib/atanl.c: Likewise.
54244         * lib/ceill.c: Likewise.
54245         * lib/cosl.c: Likewise.
54246         * lib/expl.c: Likewise.
54247         * lib/floorl.c: Likewise.
54248         * lib/frexpl.c: Likewise.
54249         * lib/ldexpl.c: Likewise.
54250         * lib/logl.c: Likewise.
54251         * lib/sincosl.c: Likewise.
54252         * lib/sinl.c: Likewise.
54253         * lib/sqrtl.c: Likewise.
54254         * lib/tanl.c: Likewise.
54255         * lib/trigl.c: Likewise.
54256         * m4/math_h.m4: New file.
54257         * MODULES.html.sh (Mathematics): Add math.
54258
54259 2007-02-17  Bruno Haible  <bruno@clisp.org>
54260
54261         * modules/wctype-tests: New file.
54262         * tests/test-wctype.c: New file.
54263
54264         * modules/wchar-tests: New file.
54265         * tests/test-wchar.c: New file.
54266
54267         * modules/unistd-tests: New file.
54268         * tests/test-unistd.c: New file.
54269
54270         * modules/time-tests: New file.
54271         * tests/test-time.c: New file.
54272
54273         * modules/sysexits-tests: New file.
54274         * tests/test-sysexits.c: New file.
54275
54276         * modules/sys_time-tests: New file.
54277         * tests/test-sys_time.c: New file.
54278
54279         * modules/sys_stat-tests: New file.
54280         * tests/test-sys_stat.c: New file.
54281
54282         * modules/sys_socket-tests: New file.
54283         * tests/test-sys_socket.c: New file.
54284
54285         * modules/sys_select-tests: New file.
54286         * tests/test-sys_select.c: New file.
54287
54288         * modules/string-tests: New file.
54289         * tests/test-string.c: New file.
54290
54291         * modules/stdbool-tests: New file.
54292         * tests/test-stdbool.c: New file.
54293
54294         * modules/netinet_in-tests: New file.
54295         * tests/test-netinet_in.c: New file.
54296
54297         * modules/inttypes-tests: New file.
54298         * tests/test-inttypes.c: New file.
54299
54300         * modules/fcntl-tests: New file.
54301         * tests/test-fcntl.c: New file.
54302
54303         * modules/byteswap-tests: New file.
54304         * tests/test-byteswap.c: New file.
54305
54306         * modules/arpa_inet-tests: New file.
54307         * tests/test-arpa_inet.c: New file.
54308
54309 2007-02-17  Bruno Haible  <bruno@clisp.org>
54310
54311         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54312         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54313         if the corresponding module is not enabled. Emit link warnings if
54314         the function is used nevertheless.
54315         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54316         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54317         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54318         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54319         * modules/inttypes (Depends-on): Add link-warning.
54320         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54321         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54322         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54323         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54324         * modules/imaxdiv (configure.ac): Likewise.
54325         * modules/strtoimax (configure.ac): Likewise.
54326         * modules/strtoumax (configure.ac): Likewise.
54327
54328 2007-02-17  Bruno Haible  <bruno@clisp.org>
54329
54330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54331         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54332         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54333         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54334
54335 2007-02-17  Bruno Haible  <bruno@clisp.org>
54336
54337         * modules/link-warning: New file.
54338         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54339         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54340         * modules/string (Depends-on): Add link-warning.
54341         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54342         string.h.
54343         * MODULES.html.sh (Support for building libraries and executables): Add
54344         link-warning.
54345
54346 2007-02-17  Bruno Haible  <bruno@clisp.org>
54347
54348         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54349         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54350         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54351         long lines.
54352
54353 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54354             Bruno Haible  <bruno@clisp.org>
54355
54356         * modules/tmpfile: New file.
54357         * lib/tmpfile.c: New file.
54358         * m4/tmpfile.m4: New file.
54359         * MODULES.html.sh (func_all_modules): New section "Input/output".
54360
54361 2007-02-15  Bruno Haible  <bruno@clisp.org>
54362
54363         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54364         (supports_delete_on_close): New function.
54365         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54366
54367 2007-02-14  Bruno Haible  <bruno@clisp.org>
54368
54369         * modules/mbspcasecmp-tests: New file.
54370         * tests/test-mbspcasecmp.sh: New file.
54371         * tests/test-mbspcasecmp.c: New file.
54372
54373         New module mbspcasecmp.
54374         * modules/mbspcasecmp: New file.
54375         * lib/mbspcasecmp.c: New file.
54376         * lib/string_.h (strncasecmp): Change warning message.
54377         (mbspcasecmp): New declaration.
54378         * m4/mbspcasecmp.m4: New file.
54379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54380         GNULIB_MBSPCASECMP.
54381         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54382         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54383
54384 2007-02-14  Bruno Haible  <bruno@clisp.org>
54385
54386         * modules/mbsncasecmp-tests: New file.
54387         * tests/test-mbsncasecmp.sh: New file.
54388         * tests/test-mbsncasecmp.c: New file.
54389
54390         New module mbsncasecmp.
54391         * modules/mbsncasecmp: New file.
54392         * lib/mbsncasecmp.c: New file.
54393         * lib/string_.h (mbsncasecmp): New declaration.
54394         * m4/mbsncasecmp.m4: New file.
54395         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54396         GNULIB_MBSNCASECMP.
54397         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54398         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54399
54400 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54401
54402         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54403         Verify that it doesn't overlap with our flags.
54404         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54405         do not have the desired effect in multibyte locales; instead, use
54406         mbscasecmp.
54407         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54408         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54409         we don't require GNU fnmatch ourselves (if our users require it, they
54410         should do so explicitly).
54411
54412         Fix regex code so it doesn't rely on strcasecmp.
54413         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54414         Otherwise, include gnulib's langinfo.h.
54415         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54416         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54417         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54418         * modules/regex (FILES): Remove m4/codeset.m4.
54419         (Depends-on): Add localcharset.  Remove strcase.
54420
54421 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54422
54423         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54424         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54425
54426 2007-02-13  Bruno Haible  <bruno@clisp.org>
54427
54428         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54429         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54430
54431 2007-02-12  Bruno Haible  <bruno@clisp.org>
54432
54433         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54434         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54435         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54436         time warning rather than a link error.
54437
54438 2007-02-12  Bruno Haible  <bruno@clisp.org>
54439
54440         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54441         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54442         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54443
54444 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54445
54446         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54447         args, not 2.
54448
54449 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54450
54451         New module 'time', so that apps can include <time.h> as per
54452         POSIX and GNU instead of separate include files like time_r.h
54453         and timegm.h.  This implementation tries out a simpler approach
54454         for replacing decls in standard include files (as compared to
54455         the string module), somewhat as an experiment.
54456
54457         * config/srclist.txt: Comment out mktime.c for now.
54458         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54459         since it doesn't apply any more.  Use generic wording instead.
54460         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54461         'time'.
54462         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54463         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54464         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54465         Don't include <sys/types.h>; no longer needed since we assume C89.
54466         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54467         * lib/strftime.c: Likewise.
54468         * lib/time_r.c: Likewise.
54469         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54470         * lib/nanosleep.c: Include <time.h> first, to check interface.
54471         * lib/strptime.c: Likewise.
54472         * lib/time_r.c: Likewise.
54473         * lib/timegm.c: Likewise.
54474         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54475         needed.
54476         * lib/timegm.c: Don't include timegm.h; no longer needed.
54477         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54478         time.h now handles any problems in that area.
54479         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54480         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54481         that time.h defines struct timespec.
54482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54483         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54484         handles that.
54485         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54486         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54487         needed.  Set REPLACE_LOCALTIME.
54488         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54489         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54490         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54491         nanosleep; time_h.m4 now does that.  Don't require
54492         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54493         module handles this now.
54494         * modules/getdate (Depends-on): Remove timespec.  Add time.
54495         * modules/nanosleep (Depends-on): Likewise.
54496         * modules/stat-time (Depends-on): Likewise.
54497         * modules/nanosleep (Include): Include time.h, not timespec.h.
54498         * modules/strptime (Files): Remove lib/strptime.h.
54499         (Depends-on): Add extensions, time.
54500         (Include): Include time.h, not strptime.h.
54501         * modules/time_r (Files): Remove lib/time_r.h.
54502         (Depends-on): Add time.
54503         (Include): Include time.h, not time_r.h.
54504         * modules/timegm: Likewise.
54505         * modules/timespec (Description): Now does timespec-related decls
54506         of our own, instead of struct timespec itself.
54507         (Depends-on): Add time; remove extensions.
54508         (Maintainer): Add self.
54509         * modules/utimecmp (Depends-on): Add time; remove timespec.
54510         * modules/utimens (Depends-on): Likewise.
54511         * modules/xnanosleep (Depends-on): Likewise.
54512
54513 2007-02-11  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/c-strstr.c: Include allocsa.h.
54516         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54517         * lib/c-strcasestr.c: Include allocsa.h.
54518         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54519         * lib/strcasestr.c: Include allocsa.h.
54520         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54521         * lib/mbsstr.c: Include allocsa.h.
54522         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54523         allocsa/freesa instead of malloc/free.
54524         * lib/mbscasestr.c: Include allocsa.h.
54525         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54526         allocsa/freesa instead of malloc/free.
54527         * modules/c-strstr (Depends-on): Add allocsa.
54528         * modules/c-strcasestr (Depends-on): Likewise.
54529         * modules/strcasestr (Depends-on): Likewise.
54530         * modules/mbsstr (Depends-on): Likewise.
54531         * modules/mbscasestr (Depends-on): Likewise.
54532
54533 2007-02-11  Bruno Haible  <bruno@clisp.org>
54534
54535         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54536
54537         * modules/mbsspn-tests: New file.
54538         * tests/test-mbsspn.sh: New file.
54539         * tests/test-mbsspn.c: New file.
54540
54541 2007-02-11  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54544
54545         * modules/mbspbrk-tests: New file.
54546         * tests/test-mbspbrk.sh: New file.
54547         * tests/test-mbspbrk.c: New file.
54548
54549 2007-02-11  Bruno Haible  <bruno@clisp.org>
54550
54551         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54552         unneeded cast.
54553
54554         * modules/mbscspn-tests: New file.
54555         * tests/test-mbscspn.sh: New file.
54556         * tests/test-mbscspn.c: New file.
54557
54558 2007-02-11  Bruno Haible  <bruno@clisp.org>
54559
54560         * modules/mbscasecmp-tests: New file.
54561         * tests/test-mbscasecmp.sh: New file.
54562         * tests/test-mbscasecmp.c: New file.
54563
54564 2007-02-11  Bruno Haible  <bruno@clisp.org>
54565
54566         Ensure O(n) worst-case complexity of mbscasestr.
54567         * lib/mbscasestr.c: Include stdbool.h.
54568         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54569         functions.
54570         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54571         the bookkeeping indicates that it's worth it.
54572         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54573
54574         * modules/mbscasestr-tests: New file.
54575         * tests/test-mbscasestr1.c: New file.
54576         * tests/test-mbscasestr2.sh: New file.
54577         * tests/test-mbscasestr2.c: New file.
54578         * tests/test-mbscasestr3.sh: New file.
54579         * tests/test-mbscasestr3.c: New file.
54580         * tests/test-mbscasestr4.sh: New file.
54581         * tests/test-mbscasestr4.c: New file.
54582         * m4/locale-tr.m4: New file.
54583
54584 2007-02-11  Bruno Haible  <bruno@clisp.org>
54585
54586         Ensure O(n) worst-case complexity of mbsstr.
54587         * lib/mbsstr.c: Include stdbool.h.
54588         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54589         functions.
54590         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54591         bookkeeping indicates that it's worth it.
54592         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54593
54594         * modules/mbsstr-tests: New file.
54595         * tests/test-mbsstr1.c: New file.
54596         * tests/test-mbsstr2.sh: New file.
54597         * tests/test-mbsstr2.c: New file.
54598         * tests/test-mbsstr3.sh: New file.
54599         * tests/test-mbsstr3.c: New file.
54600         * m4/locale-fr.m4: New file.
54601
54602 2007-02-11  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/mbsrchr.c (mbsrchr): Fix bug.
54605
54606         * modules/mbsrchr-tests: New file.
54607         * tests/test-mbsrchr.sh: New file.
54608         * tests/test-mbsrchr.c: New file.
54609
54610 2007-02-11  Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/mbschr.c (mbschr): Fix bug.
54613
54614         * modules/mbschr-tests: New file.
54615         * tests/test-mbschr.sh: New file.
54616         * tests/test-mbschr.c: New file.
54617         * m4/locale-zh.m4: New file.
54618
54619 2007-02-11  Bruno Haible  <bruno@clisp.org>
54620
54621         Support for copying multibyte string iterators.
54622         * lib/mbiter.h: Include <string.h>.
54623         (mbiter_multi_copy): New function.
54624         (mbi_copy): New macro.
54625         * lib/mbuiter.h: Include <string.h>.
54626         (mbuiter_multi_copy): New function.
54627         (mbui_copy): New macro.
54628
54629 2007-02-11  Bruno Haible  <bruno@clisp.org>
54630
54631         New module mbslen.
54632         * modules/mbslen: New file.
54633         * lib/mbslen.c: New file.
54634         * lib/string_.h (mbslen): New declaration.
54635         * m4/mbslen.m4: New file.
54636         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54637         GNULIB_MBSLEN.
54638         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54639         * MODULES.html.sh (Internationalization functions): Add mbslen.
54640
54641 2007-02-11  Bruno Haible  <bruno@clisp.org>
54642
54643         Ensure O(n) worst-case complexity of strcasestr substitute.
54644         * lib/strcasestr.c: Include stdbool.h.
54645         (knuth_morris_pratt): New function.
54646         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54647         bookkeeping indicates that it's worth it.
54648         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54649
54650         * modules/strcasestr-tests: New file.
54651         * tests/test-strcasestr.c: New file.
54652
54653 2007-02-11  Bruno Haible  <bruno@clisp.org>
54654
54655         Ensure O(n) worst-case complexity of c_strcasestr.
54656         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54657         (knuth_morris_pratt): New function.
54658         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54659         the bookkeeping indicates that it's worth it.
54660         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54661
54662         * modules/c-strcasestr-tests: New file.
54663         * tests/test-c-strcasestr.c: New file.
54664
54665 2007-02-11  Bruno Haible  <bruno@clisp.org>
54666
54667         Ensure O(n) worst-case complexity of c_strstr.
54668         * lib/c-strstr.c: Include stdbool.h, string.h.
54669         (knuth_morris_pratt): New function.
54670         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54671         bookkeeping indicates that it's worth it.
54672         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54673
54674         * lib/c-strstr.c: Complete rewrite for maintainability.
54675
54676         * modules/c-strstr-tests: New file.
54677         * tests/test-c-strstr.c: New file.
54678
54679 2007-02-11  Bruno Haible  <bruno@clisp.org>
54680
54681         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54682         5.2.1 and earlier, whereby \055 was treated just like the range
54683         delimiter '-'.
54684         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54685
54686 2007-02-08  Bruno Haible  <bruno@clisp.org>
54687
54688         * modules/regex (Depends-on): Add stdbool.
54689         Reported by Dalibor Topic <robilad@kaffe.org>.
54690
54691 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54692
54693         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54694         Prefer returning from main to exiting from it.
54695         Remove unnecessary parens after sizeof.
54696
54697 2007-02-05  Bruno Haible  <bruno@clisp.org>
54698
54699         New module mbssep.
54700         * modules/mbssep: New file.
54701         * lib/mbssep.c: New file.
54702         * lib/string_.h (strsep): Add a conditional link warning.
54703         (mbssep): New declaration.
54704         * m4/mbssep.m4: New file.
54705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54706         GNULIB_MBSSEP.
54707         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54708         * MODULES.html.sh (Internationalization functions): Add mbssep.
54709
54710 2007-02-05  Bruno Haible  <bruno@clisp.org>
54711
54712         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54713         Optimize search in case of 1 delimiter.
54714
54715 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54716
54717         * lib/acl.h: Include sys/types.h before sys/acl.h.
54718
54719 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54720
54721         Merge upstream fix for glibc bugzilla #3957:
54722
54723         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54724
54725         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54726         bit for RE_HAT_LISTS_NOT_NEWLINE.
54727         (build_charclass_op): Remove bogus comment.
54728
54729 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54730
54731         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54732
54733 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54734
54735         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54736         * lib/memmem.c [!defined _LIBC]: Include config.h.
54737
54738 2007-02-04  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54741         warning message.
54742
54743 2007-02-04  Bruno Haible  <bruno@clisp.org>
54744
54745         New module mbstok_r.
54746         * modules/mbstok_r: New file.
54747         * lib/mbstok_r.c: New file.
54748         * lib/string_.h (strtok_r): Change argument names to match the
54749         comments. Add a conditional link warning.
54750         (mbstok_r): New declaration.
54751         * m4/mbstok_r.m4: New file.
54752         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54753         GNULIB_MBSTOK_R.
54754         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54755         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54756
54757 2007-02-04  Bruno Haible  <bruno@clisp.org>
54758
54759         New module mbsspn.
54760         * modules/mbsspn: New file.
54761         * lib/mbsspn.c: New file.
54762         * lib/string_.h (strspn): Add a conditional link warning.
54763         (mbsspn): New declaration.
54764         * m4/mbsspn.m4: New file.
54765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54766         GNULIB_MBSSPN.
54767         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54768         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54769
54770 2007-02-04  Bruno Haible  <bruno@clisp.org>
54771
54772         New module mbspbrk.
54773         * modules/mbspbrk: New file.
54774         * lib/mbspbrk.c: New file.
54775         * lib/string_.h (strpbrk): Add a conditional link warning.
54776         (mbspbrk): New declaration.
54777         * m4/mbspbrk.m4: New file.
54778         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54779         GNULIB_MBSPBRK.
54780         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54781         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54782
54783 2007-02-04  Bruno Haible  <bruno@clisp.org>
54784
54785         New module mbscspn.
54786         * modules/mbscspn: New file.
54787         * lib/mbscspn.c: New file.
54788         * lib/string_.h (strcspn): Add a conditional link warning.
54789         (mbscspn): New declaration.
54790         * m4/mbscspn.m4: New file.
54791         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54792         GNULIB_MBSCSPN.
54793         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54794         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54795
54796 2007-02-04  Bruno Haible  <bruno@clisp.org>
54797
54798         New module mbscasestr, reduced goal of strcasestr.
54799         * modules/mbscasestr: New file.
54800         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54801         (mbscasestr): Renamed from strcasestr.
54802         * lib/strcasestr.c: Don't include mbuiter.h.
54803         (strcasestr): Remove support for multibyte locales.
54804         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54805         Change the conditional link warning.
54806         (mbscasestr): New declaration.
54807         * m4/mbscasestr.m4: New file.
54808         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54809         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54810         REPLACE_STRCASESTR.
54811         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54813         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54814         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54815         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54816         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54817         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54818         (Depends-on): Remove mbuiter.
54819         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54820
54821 2007-02-04  Bruno Haible  <bruno@clisp.org>
54822
54823         Simplify handling of strncasecmp.
54824         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54825         the conditional link warning.
54826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54827         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54828         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54829         * modules/strcase (configure.ac): Don't invoke
54830         gl_STRING_MODULE_INDICATOR.
54831         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54832
54833 2007-02-04  Bruno Haible  <bruno@clisp.org>
54834
54835         New module mbscasecmp, reduced goal of strcasecmp.
54836         * modules/mbscasecmp: New file.
54837         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54838         (mbscasecmp): Renamed from strcasecmp.
54839         * lib/strcasecmp.c: Don't include mbuiter.h.
54840         (strcasecmp): Remove support for multibyte locales.
54841         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54842         Change the conditional link warning.
54843         (mbscasecmp): New declaration.
54844         * m4/mbscasecmp.m4: New file.
54845         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54846         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54847         REPLACE_STRCASECMP.
54848         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54849         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54850         GNULIB_MBSCASECMP.
54851         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54852         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54853         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54854         (Depends-on): Remove mbuiter.
54855         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54856
54857 2007-02-04  Bruno Haible  <bruno@clisp.org>
54858
54859         New module mbsstr. Remove module strstr.
54860         * modules/mbsstr: New file.
54861         * modules/strstr: Remove file.
54862         * lib/mbsstr.c: Renamed from lib/strstr.c.
54863         (mbsstr): Renamed from strstr.
54864         * lib/string_.h (strstr): Remove declaration. Change the conditional
54865         link warning.
54866         (mbsstr): New declaration.
54867         * m4/mbsstr.m4: New file.
54868         * m4/strstr.m4: Remove file.
54869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54870         REPLACE_STRSTR.
54871         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54872         Don't initialize GNULIB_STRSTR.
54873         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54874         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54875         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54876         (Support for systems lacking ANSI C 89): Remove strstr.
54877
54878 2007-02-04  Bruno Haible  <bruno@clisp.org>
54879
54880         New module mbsrchr.
54881         * modules/mbsrchr: New file.
54882         * lib/mbsrchr.c: New file.
54883         * lib/string_.h (strrchr): Add a conditional link warning.
54884         (mbsrchr): New declaration.
54885         * m4/mbsrchr.m4: New file.
54886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54887         GNULIB_MBSRCHR.
54888         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54889         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54890
54891 2007-02-04  Bruno Haible  <bruno@clisp.org>
54892
54893         New module mbschr.
54894         * modules/mbschr: New file.
54895         * lib/mbschr.c: New file.
54896         * lib/string_.h (strchr): Add a conditional link warning.
54897         (mbschr): New declaration.
54898         * m4/mbschr.m4: New file.
54899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54900         GNULIB_MBSCHR.
54901         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54902         * MODULES.html.sh (Internationalization functions): Add mbschr.
54903
54904 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54905
54906         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54907
54908         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54909
54910 2007-02-04  Bruno Haible  <bruno@clisp.org>
54911
54912         New module description section 'configure.ac-early'.
54913         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54914         (func_get_autoconf_early_snippet): New function.
54915         (func_import, func_create_testdir): Use it. Remove special cases for
54916         modules 'extensions' and 'lock'.
54917         * modules/extensions (configure.ac-early): Require
54918         gl_USE_SYSTEM_EXTENSIONS.
54919         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54920
54921 2007-02-04  Bruno Haible  <bruno@clisp.org>
54922
54923         Make use of gcj-4.3's -fsource and -ftarget option.
54924         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54925         and if so try the options -fsource and -ftarget.
54926         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54927         source_version, ftarget_option, target_version arguments.
54928         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54929         (is_envjavac_oldgcj_14_14_usable): Renamed from
54930         is_envjavac_gcj_14_14_usable.
54931         (is_envjavac_oldgcj_14_13_usable): Renamed from
54932         is_envjavac_gcj_14_13_usable.
54933         (is_gcj_present): Update.
54934         (is_gcj_43, is_gcj43_usable): New functions.
54935         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54936         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54937         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54938         try the options -fsource and -ftarget.
54939
54940 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54943         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54944         larger value.
54945
54946 2007-02-03  Jim Meyering  <jim@meyering.net>
54947
54948         Give tools a better chance to allocate space for very large buffers.
54949         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54950
54951         Make pwd and readlink work also when run with an unreadable parent dir
54952         on systems with openat support.
54953         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54954         provided getcwd function, even when we have openat support.
54955         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54956
54957 2007-02-02  Bruno Haible  <bruno@clisp.org>
54958
54959         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54960         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54961         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54962         portability problems if one of these functions is only used on specific
54963         platforms.
54964         Reported by Paul Eggert.
54965
54966 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54967
54968         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54969         is causing more trouble than it's curing.
54970         * lib/regex_internal.h (__mempcpy): Remove.
54971         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54972         (and make the code a tad smaller to boot).
54973         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54974
54975 2007-02-02  Jim Meyering  <jim@meyering.net>
54976
54977         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54978         section, not in the Makefile.am: one.
54979
54980 2007-02-02  Eric Blake  <ebb9@byu.net>
54981
54982         * lib/strchrnul.c: Always include config.h first.
54983
54984         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54985         gnulib strstr is not necessary here.
54986
54987 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54988
54989         * m4/socklen.m4: Fix typo.
54990
54991 2007-02-02  Eric Blake  <ebb9@byu.net>
54992
54993         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54994         * modules/netinet_in (Makefile.am): Likewise.
54995
54996 2007-02-01  Bruno Haible  <bruno@clisp.org>
54997
54998         * lib/string_.h (GL_LINK_WARNING): New macro.
54999         (strcasecmp, strstr, strcasestr): If provided by the system,
55000         conditionally define as a macro that leads to a warning instead of to
55001         an error.
55002         (strncasecmp): Conditionally define as a macro that leads to a warning.
55003
55004 2007-02-01  Karl Berry  <karl@gnu.org>
55005
55006         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
55007
55008 2007-02-01  Bruno Haible  <bruno@clisp.org>
55009
55010         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
55011         renamings.
55012
55013 2007-02-01  Eric Blake  <ebb9@byu.net>
55014
55015         * modules/regex (Depends-on): Revert dependence on mempcpy.
55016         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
55017         module's definition of mempcpy.
55018         Reported by Paul Eggert.
55019
55020 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
55021
55022         * lib/string_.h: If the gnulib module XYZ is not present, undefine
55023         the symbol XYZ before redefining it.  This fixes a problem with
55024         programs that don't use XYZ, when compiled on systems that define
55025         XYZ to something else.
55026
55027 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
55028
55029         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
55030         occurs when "mkdir -m foo" creates a setgid directory that is (1)
55031         writeable to group or other and (2) is intended to have a special
55032         mode bit that is set or cleared.  In such a case, the directory
55033         should be neither group- nor other-writeable until the special
55034         mode bits are right.
55035
55036 2007-01-31  Eric Blake  <ebb9@byu.net>
55037
55038         * modules/mountlist (Depends-on): Add strstr.
55039
55040         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
55041         bug.
55042         * modules/string (Makefile.am): Remove redundant replacement.
55043         * modules/regex (Depends-on): Add mempcpy.
55044
55045 2007-01-31  Bruno Haible  <bruno@clisp.org>
55046
55047         New module description field 'Link'.
55048         * gnulib-tool (func_usage): Document --extract-link-directive.
55049         (sed_extract_prog): Recognize 'Link' directive.
55050         (func_get_link_directive): New function.
55051         (func_import): Show summary of link directives.
55052         Handle --extract-link-directive option.
55053         * modules/acl (Link): New section.
55054         * modules/clock-time (Link): New section.
55055         * modules/euidaccess (Link): New section.
55056         * modules/gettext (Link): New section.
55057         * modules/iconv (Link): New section.
55058         * modules/lock (Link): New section.
55059         * modules/nanosleep (Link): New section.
55060         * modules/readline (Link): New section.
55061
55062 2007-01-27  Bruno Haible  <bruno@clisp.org>
55063
55064         Enforce the use of gnulib modules for unportable <string.h> functions.
55065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
55066         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55067         (gl_HEADER_STRING_H_BODY): Require it.
55068         * lib/string_.h: If the gnulib module XYZ is not present, redefine
55069         the symbol XYZ to one that gives a link error.
55070         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
55071         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
55072         * modules/mempcpy (configure.ac): Likewise.
55073         * modules/memrchr (configure.ac): Likewise.
55074         * modules/stpcpy (configure.ac): Likewise.
55075         * modules/stpncpy (configure.ac): Likewise.
55076         * modules/strcase (configure.ac): Likewise.
55077         * modules/strcasestr (configure.ac): Likewise.
55078         * modules/strchrnul (configure.ac): Likewise.
55079         * modules/strdup (configure.ac): Likewise.
55080         * modules/strndup (configure.ac): Likewise.
55081         * modules/strnlen (configure.ac): Likewise.
55082         * modules/strpbrk (configure.ac): Likewise.
55083         * modules/strsep (configure.ac): Likewise.
55084         * modules/strstr (configure.ac): Likewise.
55085         * modules/strtok_r (configure.ac): Likewise.
55086
55087 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
55088
55089         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
55090
55091 2007-01-30  Jim Meyering  <jim@meyering.net>
55092
55093         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
55094
55095 2007-01-29  Bruno Haible  <bruno@clisp.org>
55096
55097         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
55098         * lib/execute.c: Likewise.
55099         * lib/pipe.c: Likewise.
55100         * lib/printf-args.h: Likewise.
55101         * lib/printf-args.c: Likewise.
55102         * lib/printf-parse.c: Likewise.
55103         * lib/vasnprintf.c: Likewise.
55104
55105 2007-01-29  Eric Blake  <ebb9@byu.net>
55106
55107         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
55108         declaration.
55109
55110 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
55111
55112         * lib/strptime.h (strptime): Use 'restrict' for args where
55113         POSIX requires this.
55114         * lib/strptime.c (strptime): Likewise.
55115         Change license notice from LGPL to GPL, since gnulib-tool will
55116         change this as needed.
55117         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
55118         defined.
55119         Include "strptime.h" first, to check interface.
55120         Do not #undef _LIBC and _NL_CURRENT.
55121         Do not include <stdlib.h>; no longer needed.
55122         Include "time_r.h" and declare ptime_locale_status
55123         only if _LIBC is not defined.
55124         (__P): Remove unused macro.
55125         (match_string): Bring back glibc version, but use it only if _LIBC
55126         is defined.
55127         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
55128         Remove unnecessary assertion and abort() call.
55129         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
55130         * m4/strptime.m4: Fix serial number comment.
55131         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
55132         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
55133         (Depends-on): Add time_r.
55134
55135 2007-01-29  Bruno Haible  <bruno@clisp.org>
55136
55137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55138         strptime.
55139         * modules/strptime (Depends-on): Add stdbool.
55140         * lib/strptime.h: Include <time.h> always. Add comments.
55141
55142 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55143
55144         * modules/strptime: New file.
55145         * lib/strptime.h: New file.
55146         * lib/strptime.c: New file.
55147         * m4/strptime.m4: New file.
55148
55149 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
55150
55151         * MODULES.html.sh: New module mpsort.
55152         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
55153
55154         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
55155         a circularity problem with HP-UX ia64 reported by Bob Proulx in
55156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
55157         All uses changed.
55158         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
55159         All uses changed.
55160         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
55161         to _Restrict_.
55162         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
55163         the parameter matches the prototype.
55164
55165 2007-01-28  Jim Meyering  <jim@meyering.net>
55166
55167         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
55168         sys/time.h here, reverting that part of the previous patch:
55169         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
55170
55171 2007-01-28  Bruno Haible  <bruno@clisp.org>
55172
55173         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
55174         value of $(SYS_TIME_H).
55175         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
55176         remove it conditionally, too. [added by Jim Meyering]
55177         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
55178         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55179         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
55180         GETTIMEOFDAY_REPLACEMENT to 1.
55181
55182 2007-01-28  Bruno Haible  <bruno@clisp.org>
55183
55184         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
55185         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
55186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
55187         Set UNISTD_H instead of UNISTD_H2.
55188         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
55189
55190 2007-01-28  Bruno Haible  <bruno@clisp.org>
55191
55192         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
55193         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
55194
55195 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55196
55197         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
55198         (func_create_testdir): Ensure C locale for `grep' and `tr'
55199         character ranges.
55200         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
55201         ACLOCAL_AMFLAGS parsing state machine.
55202
55203 2007-01-27  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/unistr/base: Update.
55206
55207 2007-01-27  Bruno Haible  <bruno@clisp.org>
55208
55209         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
55210         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
55211         * modules/unistr/u32-mbtouc-unsafe: Renamed from
55212         modules/unistr/u32-mbtouc.
55213         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55214         * lib/unistr.h: Update.
55215         * lib/linebreak.c: Update.
55216         * modules/unistr/u32-mbtouc: Renamed from
55217         modules/unistr/u32-mbtouc-safe.
55218         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55219         * lib/unistr.h: Update.
55220         * lib/unistr/u32-to-u8.c: Update.
55221         * lib/unistr/u32-to-u16.c: Update.
55222
55223 2007-01-27  Bruno Haible  <bruno@clisp.org>
55224
55225         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55226         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55227         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55228         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55229         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55230         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55231         modules/unistr/u16-mbtouc.
55232         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55233         * lib/unistr.h: Update.
55234         * lib/linebreak.c: Update.
55235         * modules/linebreak: Update.
55236         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55237         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55238         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55239         * modules/unistr/u16-mbtouc: Renamed from
55240         modules/unistr/u16-mbtouc-safe.
55241         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55242         * lib/unistr.h: Update.
55243         * lib/unistr/u16-to-u8.c: Update.
55244         * modules/unistr/u16-to-u8: Update.
55245         * lib/unistr/u16-to-u32.c: Update.
55246         * modules/unistr/u16-to-u32: Update.
55247
55248 2007-01-27  Bruno Haible  <bruno@clisp.org>
55249
55250         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55251         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55252         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55253         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55254         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55255         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55256         modules/unistr/u8-mbtouc.
55257         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55258         * lib/unistr.h: Update.
55259         * lib/striconveh.c: Update.
55260         * modules/striconveh: Update.
55261         * lib/linebreak.c: Update.
55262         * modules/linebreak: Update.
55263         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55264         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55265         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55266         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55267         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55268         * lib/unistr.h: Update.
55269         * lib/striconveh.c: Update.
55270         * modules/striconveh: Update.
55271         * lib/unistr/u8-to-u16.c: Update.
55272         * modules/unistr/u8-to-u16: Update.
55273         * lib/unistr/u8-to-u32.c: Update.
55274         * modules/unistr/u8-to-u32: Update.
55275
55276 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55277
55278         Sync from Libtool.
55279         * lib/argz.c: Do not include strings.h nor memory.h, include
55280         string.h unconditionally.  Patch by Simon Josefsson.
55281
55282 2007-01-27  Bruno Haible  <bruno@clisp.org>
55283
55284         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55285         from gl_HEADER_STRING_H_BODY.
55286         (gl_HEADER_STRING_H_BODY): Require it.
55287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55288         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55289         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55290         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55291         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55292         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55293         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55294         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55295         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55297         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55298         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55299         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55300         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55301         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55302
55303 2007-01-27  Bruno Haible  <bruno@clisp.org>
55304
55305         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55306         check_PROGRAMS into noinst_PROGRAMS.
55307         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55308         check_PROGRAMS in this case.
55309         (func_import): Set for_test to false.
55310         (func_create_testdir): Set for_test to true.
55311
55312 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55313             Bruno Haible  <bruno@clisp.org>
55314
55315         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55316         (Depends-on): Add string.
55317         (Includes): Use <string.h> instead of strcasestr.h.
55318         * modules/string (Makefile.am): Also substitute the value of
55319         REPLACE_STRCASESTR.
55320         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55321         assume strcasestr is declared in <string.h> not <strings.h>. Also
55322         set REPLACE_STRCASESTR.
55323         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55324         REPLACE_STRCASESTR.
55325         * lib/strcasestr.h: Remove file.
55326         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55327         * lib/string_.h (strcasestr): New declaration.
55328
55329 2007-01-27  Bruno Haible  <bruno@clisp.org>
55330
55331         * lib/string_.h: Use 'extern'.
55332
55333 2007-01-27  Jim Meyering  <jim@meyering.net>
55334
55335         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55336         of set-but-not-used local, "q".
55337
55338         * lib/mempcpy.c: Include <config.h> before <string.h>.
55339         This fixes a compilation error on HP-UX, due to the system's
55340         "restrict"-using mempcpy prototype.
55341
55342 2007-01-26  Bruno Haible  <bruno@clisp.org>
55343
55344         Small optimization.
55345         * lib/javacomp.c: Include c-strstr.h.
55346          (is_envjavac_gcj): Use c_strstr instead of strstr.
55347         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55348
55349 2007-01-26  Bruno Haible  <bruno@clisp.org>
55350
55351         * MODULES.html.sh (Unicode string functions): Add the new modules.
55352
55353         * modules/uniconv/u32-strconv-to-locale: New file.
55354         * lib/uniconv/u32-strconv-to-locale.c: New file.
55355
55356         * modules/uniconv/u16-strconv-to-locale: New file.
55357         * lib/uniconv/u16-strconv-to-locale.c: New file.
55358
55359         * modules/uniconv/u8-strconv-to-locale: New file.
55360         * lib/uniconv/u8-strconv-to-locale.c: New file.
55361
55362         * modules/uniconv/u32-strconv-from-locale: New file.
55363         * lib/uniconv/u32-strconv-from-locale.c: New file.
55364
55365         * modules/uniconv/u16-strconv-from-locale: New file.
55366         * lib/uniconv/u16-strconv-from-locale.c: New file.
55367
55368         * modules/uniconv/u8-strconv-from-locale: New file.
55369         * lib/uniconv/u8-strconv-from-locale.c: New file.
55370
55371         * modules/uniconv/u32-strconv-to-enc: New file.
55372         * lib/uniconv/u32-strconv-to-enc.c: New file.
55373         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55374         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55375
55376         * modules/uniconv/u16-strconv-to-enc: New file.
55377         * lib/uniconv/u16-strconv-to-enc.c: New file.
55378         * lib/uniconv/u-strconv-to-enc.h: New file.
55379         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55380         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55381
55382         * modules/uniconv/u8-strconv-to-enc: New file.
55383         * lib/uniconv/u8-strconv-to-enc.c: New file.
55384         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55385         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55386
55387         * modules/uniconv/u32-strconv-from-enc: New file.
55388         * lib/uniconv/u32-strconv-from-enc.c: New file.
55389         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55390         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55391
55392         * modules/uniconv/u16-strconv-from-enc: New file.
55393         * lib/uniconv/u16-strconv-from-enc.c: New file.
55394         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55395         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55396
55397         * modules/uniconv/u8-strconv-from-enc: New file.
55398         * lib/uniconv/u8-strconv-from-enc.c: New file.
55399         * lib/uniconv/u-strconv-from-enc.h: New file.
55400         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55401         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55402
55403         * modules/uniconv/u32-conv-from-enc: New file.
55404         * lib/uniconv/u32-conv-from-enc.c: New file.
55405         * modules/uniconv/u32-conv-from-enc-tests: New file.
55406         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55407
55408         * modules/uniconv/u16-conv-from-enc: New file.
55409         * lib/uniconv/u16-conv-from-enc.c: New file.
55410         * lib/uniconv/u-conv-from-enc.h: New file.
55411         * modules/uniconv/u16-conv-from-enc-tests: New file.
55412         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55413
55414         * modules/uniconv/u8-conv-from-enc: New file.
55415         * lib/uniconv/u8-conv-from-enc.c: New file.
55416         * modules/uniconv/u8-conv-from-enc-tests: New file.
55417         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55418
55419         * modules/uniconv/base: New file.
55420         * lib/uniconv.h: New file.
55421
55422 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55423
55424         * doc/gnulib-tool.texi (Initial import): Update to match current
55425         behavior with strdup module.
55426         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55427         * lib/memmem.h: Remove; all uses removed.  This is now done
55428         by <string.h>.
55429         * lib/mempcpy.h: Likewise.
55430         * lib/memrchr.h: Likewise.
55431         * lib/stpcpy.h: Likewise.
55432         * lib/stpncpy.h: Likewise.
55433         * lib/strcase.h: Likewise.
55434         * lib/strchrnul.h: Likewise.
55435         * lib/strdup.h: Likewise.
55436         * lib/strndup.h: Likewise.
55437         * lib/strnlen.h: Likewise.
55438         * lib/strpbrk.h: Likewise.
55439         * lib/strsep.h: Likewise.
55440         * lib/strstr.h: Likewise.
55441         * lib/strtok_r.h: Likewise.
55442         * lib/string_.h: New file.
55443         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55444         Rely on <string.h> instead.
55445         * lib/canon-host.c: Likewise.
55446         * lib/chdir-long.c: Likewise.
55447         * lib/concatpath.c: Likewise.
55448         * lib/exclude.c: Likewise.
55449         * lib/fchdir.c: Likewise.
55450         * lib/getaddrinfo.c: Likewise.
55451         * lib/getcwd.c: Likewise.
55452         * lib/getsubopt.c: Likewise.
55453         * lib/glob.c: Likewise.
55454         * lib/hard-locale.c: Likewise.
55455         * lib/iconvme.c: Likewise.
55456         * lib/javacomp.c: Likewise.
55457         * lib/mempcpy.c: Likewise.
55458         * lib/memrchr.c: Likewise.
55459         * lib/regex_internal.h: Likewise.
55460         * lib/stpncpy.c: Likewise.
55461         * lib/strcasecmp.c: Likewise.
55462         * lib/strchrnul.c: Likewise.
55463         * lib/strdup.c: Likewise.
55464         * lib/striconv.c: Likewise.
55465         * lib/striconveh.c: Likewise.
55466         * lib/striconveha.c: Likewise.
55467         * lib/strncasecmp.c: Likewise.
55468         * lib/strndup.c: Likewise.
55469         * lib/strnlen.c: Likewise.
55470         * lib/strsep.c: Likewise.
55471         * lib/strstr.c: Likewise.
55472         * lib/strtok_r.c: Likewise.
55473         * lib/userspec.c: Likewise.
55474         * lib/w32spawn.h: Likewise.
55475         * lib/xstrndup.c: Likewise.
55476         * lib/mountlist.c (strstr): Remove decl.
55477         * m4/string_h.m4: New file.
55478         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55479         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55480         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55481         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55482         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55483         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55484         Set REPLACE_STRCASECMP if necessary.
55485         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55486         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55487         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55488         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55489         HAVE_DECL_STRDUP if necessary.
55490         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55491         since gl_FUNC_STRNDUP does that now.
55492         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55493         Check for decl here...
55494         (gl_PREREQ_STRNLEN): ... not here.
55495         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55496         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55497         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55498         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55499         necessary.
55500         * modules/string: New file.
55501         * modules/memmem (Files): Remove special-purpose include file.
55502         (Depends-on): Add string.
55503         (Include): Include <string.h>, not the removed file.
55504         * modules/mempcpy: Likewise.
55505         * modules/memrchr: Likewise.
55506         * modules/stpcpy: Likewise.
55507         * modules/stpncpy: Likewise.
55508         * modules/strcase: Likewise.
55509         * modules/strchrnul: Likewise.
55510         * modules/strdup: Likewise.
55511         * modules/strndup: Likewise.
55512         * modules/strnlen: Likewise.
55513         * modules/strpbrk: Likewise.
55514         * modules/strsep: Likewise.
55515         * modules/strstr: Likewise.
55516         * modules/strtok_r: Likewise.
55517         * tests/test-dirname.c: Don't include "strdup.h", since
55518         <string.h> now suffices.
55519         * tests/test-memmem.c: Don't include "memmem.h", since
55520         <string.h> now suffices.
55521
55522 2007-01-25  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55525         *resultp is 0.
55526
55527         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55528         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55529         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55530         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55531
55532         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55533         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55534         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55535         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55536         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55537         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55538
55539 2007-01-24  Bruno Haible  <bruno@clisp.org>
55540
55541         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55542         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55543         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55544         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55545         gl_FUNC_FTS_CORE.
55546         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55547         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55548         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55549         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55550         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55551         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55552         gl_FUNC_FCHOWNAT.
55553         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55554         gl_FUNC_STRFTIME.
55555         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55556         Reported by Ralf Wildenhues.
55557
55558 2007-01-24  Bruno Haible  <bruno@clisp.org>
55559
55560         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55561         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55562         gl_GETADDRINFO.
55563         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55564         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55565         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55566
55567 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55568
55569         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55570         Don't use 'exit'; just return from 'main'.
55571         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55572
55573         * lib/fnmatch_.h: Readjust white space and comments to match
55574         glibc, to avoid spurious diffs.
55575
55576 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55577
55578         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55579         2004-12-01 change by Jakub Jelinek, since this code won't compile
55580         if !LIBC.  Problem reported by Bob Proulx.
55581
55582 2007-01-23  Bruno Haible  <bruno@clisp.org>
55583
55584         * lib/striconveh.c: Include c-strcaseeq.h.
55585         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55586         * modules/striconveh (Depends-on): Add c-strcaseeq.
55587
55588 2007-01-23  Bruno Haible  <bruno@clisp.org>
55589
55590         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55591
55592         * modules/c-strcaseeq: New file.
55593         * lib/c-strcaseeq.h: New file.
55594
55595         * modules/streq: New file.
55596         * lib/streq.h: New file.
55597
55598 2007-01-23  Bruno Haible  <bruno@clisp.org>
55599
55600         * modules/striconveha-tests: New file.
55601         * tests/test-striconveha.c: New file.
55602
55603         * lib/striconveha.h: Include <stdbool.h>.
55604         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55605         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55606         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55607         (mem_iconveha): New function.
55608         (str_iconveha_notranslit): Renamed from str_iconveha.
55609         (str_iconveha): New function.
55610         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55611         c-strcase.
55612
55613 2007-01-23  Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55616         encodings without forgiving before trying any encoding with handler.
55617         (str_iconveha): Try all encodings without forgiving before trying any
55618         encoding with handler.
55619
55620 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55621
55622         Import the following changes from libc.
55623
55624         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55625
55626         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55627
55628         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55629
55630         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55631         normal_bracket label.
55632
55633         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55634
55635         [BZ #361]
55636         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55637         to normal_bracket after fetching the next character.
55638
55639 2007-01-22  Bruno Haible  <bruno@clisp.org>
55640
55641         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55642         argument.
55643         * lib/striconveh.c (iconv_carefully_1): New function.
55644         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55645         argument.
55646         (str_cd_iconveh): Update.
55647         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55648         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55649         * tests/test-striconveh.c (MAGIC): New macro.
55650         (new_offsets): New function.
55651         (main): Test call with and without offsets.
55652
55653 2007-01-22  Bruno Haible  <bruno@clisp.org>
55654
55655         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55656         * modules/sys_select (Makefile.am): Likewise.
55657         * modules/sys_socket (Makefile.am): Likewise.
55658         * modules/sys_time (Makefile.am): Likewise.
55659
55660 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55661
55662         * modules/gettimeofday (License): Change from GPL to LGPL, since
55663         gettimeofday is a library function.
55664
55665 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55666
55667         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55668
55669 2007-01-21  Bruno Haible  <bruno@clisp.org>
55670
55671         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55672
55673 2007-01-21  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/striconveha: New file.
55676         * lib/striconveha.h: New file.
55677         * lib/striconveha.c: New file.
55678         * MODULES.html.sh (Internationalization functions): Add striconveha.
55679         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55680         string.
55681         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55682
55683 2007-01-21  Bruno Haible  <bruno@clisp.org>
55684
55685         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55686         * lib/striconveh.c (str_iconveh): Likewise.
55687
55688 2007-01-21  Bruno Haible  <bruno@clisp.org>
55689
55690         * lib/striconveh.h (mem_iconveh): New declaration.
55691         * lib/striconveh.c (mem_iconveh): New function.
55692         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55693
55694 2007-01-21  Bruno Haible  <bruno@clisp.org>
55695
55696         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55697
55698         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55699         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55700         original result buffer.
55701         (str_cd_iconveh): Update.
55702         * tests/test-striconveh.c (main): Update.
55703
55704         * lib/striconv.h (mem_cd_iconv): Change specification.
55705         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55706         result buffer.
55707         (str_cd_iconv): Update.
55708         * tests/test-striconv.c (main): Update.
55709
55710 2007-01-21  Bruno Haible  <bruno@clisp.org>
55711
55712         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55713
55714 2007-01-20  Jim Meyering  <jim@meyering.net>
55715
55716         * lib/userspec.c (parse_with_separator): If a user or group string
55717         starts with "+", skip the corresponding name-to-ID look-up, since
55718         such a look-up must fail: user and group names may not include "+".
55719
55720 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55721
55722         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55723         since we now assume the sys_time module.
55724         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55725         check for sys/time.h; no longer needed.
55726         * modules/poll (Depends-on): Depend on sys_time.
55727
55728 2007-01-18  Bruno Haible  <bruno@clisp.org>
55729
55730         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55731         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55732
55733         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55734         gettimeofday.
55735
55736         * tests/test-gettimeofday.c: Include <time.h>.
55737         (dummy): Remove variable.
55738
55739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55740         gl_HEADER_SYS_TIME_H.
55741         (gl_HEADER_SYS_TIME_H): New macro.
55742
55743         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55744         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55746         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55747         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55748         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55749         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55750         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55751         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55752         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55753         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55754
55755         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55756         last change; it caused a compilation error when cross-compiling to
55757         Cygwin.
55758
55759 2007-01-18  Jim Meyering  <jim@meyering.net>
55760
55761         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55762         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55763         than the race-prone "test -d sys || mkdir sys".
55764         (configure.ac): Use AC_PROG_MKDIR_P.
55765         * modules/sys_select: Likewise.
55766         * modules/sys_socket: Likewise.
55767         * modules/sys_time: Likewise.
55768
55769 2007-01-18  Eric Blake  <ebb9@byu.net>
55770
55771         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55772         replace gettimeofday.
55773         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55774         name, to avoid infinite recursion.
55775
55776 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55777
55778         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55779         module sys_time.
55780         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55781         assume timespec.h defines struct timeval.
55782         * lib/settime.c: Likewise.
55783         * lib/utimens.c: Likewise.
55784         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55785         since we now assume the gettimeofday module.
55786         * lib/tempname.c (__gen_tempname): Likewise.
55787         * lib/gettimeofday.h: Remove.
55788         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55789         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55790         Include <time.h>, for 'time()'.
55791         (localtime_buffer_addr): Also use this workaround if
55792         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55793         to simplify the uses.  All uses changed.
55794         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55795         that #undef is inside {}, and 'const' follows type name consistently.
55796         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55797         (gettimeofday): Do not use the maximum possible value for
55798         tv->tv_usec, since that might break usages other than ls.c.
55799         Instead, we'll leave ls.c alone.  This undoes today's patch
55800         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55801         we've never observed the problem but might as well keep the
55802         canary.
55803         * lib/nanosleep.c: Include timespec.h first, for interface check.
55804         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55805         now assume the sys_time module.
55806         * lib/tempname.c: Likewise.
55807         * lib/timespec.h: Likewise.
55808         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55809         needed.
55810         * lib/strftime.c: Likewise.
55811         * lib/timespec.h: Likewise.
55812         * lib/posixtm.c: Include posixtm.h first, for interface check.
55813         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55814         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55815         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55816         * lib/sys_time_.h: New file.
55817         * lib/timespec.h (struct timespec): Use long int, not long.
55818         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55819         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55820         Remove obsolescent call to AC_HEADER_TIME.
55821         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55823         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55824         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55825         Likewise.
55826         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55827         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55828         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55829         into the sys_time module.  Check for gettimeofday just once.
55830         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55831         for gettimeofday signature to just check the signature.  Merely
55832         compile it, since linking doesn't test signature.  Improve test for
55833         whether gettimeofday.o is actually needed.
55834         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55835         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55836         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55837         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55838         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55839         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55840         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55841         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55842         than worrying about sys/time.h.
55843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55844         Don't bother worrying about TIME_WITH_SYS_TIME.
55845         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55846         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55847         * m4/sys_time_h.m4: New file.
55848         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55849         Don't include sys/time.h.  Return from main rather than exiting.
55850         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55851         all uses changed.
55852         * modules/gethrxtime (Depends-on): Add sys_time.
55853         * modules/gettime (Depends-on): Likewise.
55854         * modules/gettimeofday (Depends-on): Likewise.
55855         * modules/nanosleep (Depends-on): Likewise.
55856         * modules/settime (Depends-on): Likewise.
55857         * modules/tempname (Depends-on): Likewise.
55858         * modules/utimens (Depends-on): Likewise.
55859         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55860         (Include): Change back to <sys/time.h>.
55861         (Maintainer): Add self.
55862         * modules/sys_time: New file.
55863         * modules/tempname (Depends-on): Add gettimeofday.
55864         * tests/test-gettimeofday.c: Include <sys/time.h>
55865         rather than gettimeofday.h.
55866
55867 2007-01-17  Bruno Haible  <bruno@clisp.org>
55868
55869         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55870         the license default to GPL.
55871         (func_create_testdir): Don't complain if a module is LGPL and its
55872         tests module depends on GPLed modules.
55873
55874 2007-01-17  Bruno Haible  <bruno@clisp.org>
55875
55876         * lib/gettimeofday.c (gettimeofday): Add code for the case
55877         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55878         maximum possible value for tv->tv_usec, rather than the minimum one.
55879
55880 2005-10-08  Martin Lambers  <marlam@marlam.de>
55881 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55882 2007-01-16  Bruno Haible  <bruno@clisp.org>
55883
55884         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55885         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55886         gl_FUNC_GETTIMEOFDAY.
55887         (Include): Add gettimeofday.h.
55888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55889         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55890         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55891         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55892         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55893         * lib/gettimeofday.h: New file.
55894         * lib/gettimeofday.c: Include <sys/timeb.h>.
55895         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55896         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55897         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55898         fall back on time().
55899
55900         * tests/test-gettimeofday.c: New file.
55901         * modules/gettimeofday-tests: New file.
55902
55903 2007-01-16  Eric Blake  <ebb9@byu.net>
55904
55905         * modules/fnmatch (Depends-on): Depend on wchar.
55906         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55907         * m4/fnmatch.m4: Likewise.
55908         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55909         * m4/mbchar.m4: Likewise.
55910         * modules/mbswidth (Depends-on): Depend on wchar.
55911         * lib/mbswidth.c: Assume <wchar.h>.
55912         * m4/mbswidth.m4: Likewise.
55913         * modules/quotearg (Depends-on): Depend on wchar.
55914         * lib/quotearg.c: Assume <wchar.h>.
55915         * m4/quotearg.m4: Likewise.
55916         * modules/regex (Depends-on): Depend on wchar.
55917         * lib/regex_internal.h: Assume <wchar.h>.
55918         * m4/regex.m4: Likewise.
55919         * modules/stdint (Depends-on): Depend on wchar.
55920         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55921         * m4/stdint.m4: Likewise.
55922         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55923         * modules/strftime (Depends-on): Depend on wchar.
55924         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55925         * modules/strtol (Depends-on): Depend on wchar.
55926         * lib/strtol.c: Assume <wchar.h>.
55927         * modules/wcwidth (Depends-on): Depend on wchar.
55928         * lib/wcwidth.h: Assume <wchar.h>.
55929         * m4/wcwidth.m4: Likewise.
55930
55931 2007-01-16  Bruno Haible  <bruno@clisp.org>
55932
55933         * modules/csharpexec-script: New, created from...
55934         * modules/csharpexec: ... this.
55935
55936 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55937
55938         * modules/javaexec-script: New, created from...
55939         * modules/javaexec: ... this.
55940
55941 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55942
55943         * modules/poll (Dependencies): Add sys_select.
55944
55945 2007-01-15  Jim Meyering  <jim@meyering.net>
55946
55947         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55948         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55949         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55950         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55951
55952 2007-01-15  Bruno Haible  <bruno@clisp.org>
55953
55954         * modules/striconveh: New file.
55955         * lib/striconveh.h: New file.
55956         * lib/striconveh.c: New file.
55957         * MODULES.html.sh (Internationalization functions): Add striconveh.
55958
55959         * modules/striconveh-tests: New file.
55960         * tests/test-striconveh.c: New file.
55961
55962 2007-01-15  Bruno Haible  <bruno@clisp.org>
55963
55964         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55965         not from GNU libiconv or GNU libc.
55966
55967 2007-01-15  Bruno Haible  <bruno@clisp.org>
55968
55969         * doc/gnulib-intro.texi (Copyright): Explain the different license
55970         terms for module descriptions, autoconf macros, tests, documentation.
55971
55972 2007-01-14  Bruno Haible  <bruno@clisp.org>
55973
55974         * modules/striconv-tests: New file.
55975         * tests/test-striconv.c: New file.
55976
55977 2007-01-14  Bruno Haible  <bruno@clisp.org>
55978
55979         * modules/iconv-tests: New file.
55980         * tests/test-iconv.c: New file.
55981
55982 2007-01-14  Bruno Haible  <bruno@clisp.org>
55983
55984         * gnulib-tool (func_get_license): For test modules, use the license of
55985         the main module.
55986
55987 2007-01-14  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55990         if iconv is found to exist.
55991
55992 2007-01-14  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/c-ctype-tests: New file.
55995         * tests/test-c-ctype.c: New file.
55996
55997 2007-01-14  Bruno Haible  <bruno@clisp.org>
55998
55999         * modules/binary-io-tests: New file.
56000         * tests/test-binary-io.sh: New file.
56001         * tests/test-binary-io.c: New file.
56002
56003 2007-01-14  Bruno Haible  <bruno@clisp.org>
56004
56005         * modules/array-oset-tests: New file.
56006         * tests/test-array_oset.c: New file.
56007
56008 2007-01-14  Bruno Haible  <bruno@clisp.org>
56009
56010         * modules/array-list-tests: New file.
56011         * tests/test-array_list.c: New file.
56012
56013 2007-01-14  Bruno Haible  <bruno@clisp.org>
56014
56015         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
56016         and make.
56017         Reported by Simon Josefsson in
56018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
56019
56020 2007-01-14  Bruno Haible  <bruno@clisp.org>
56021
56022         * modules/allocsa-tests: New file.
56023         * tests/test-allocsa.c: New file.
56024
56025 2007-01-14  Bruno Haible  <bruno@clisp.org>
56026
56027         * modules/fchdir (Depends-on): Add absolute-header.
56028         * modules/unistd (Depends-on): Likewise.
56029
56030 2006-12-30  Bruno Haible  <bruno@clisp.org>
56031
56032         * modules/fchdir: New file.
56033         * modules/unistd (Files): Add lib/unistd_.h.
56034         (Makefile.am): Generate unistd.h from unistd_.h.
56035         * lib/fchdir.c: New file.
56036         * lib/dirent_.h: New file.
56037         * lib/unistd_.h: New file.
56038         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
56039         * m4/fchdir.m4: New file.
56040         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
56041         (gl_HEADER_UNISTD): Invoke it.
56042         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
56043         function.
56044         * lib/backupfile.c (opendir, closedir): Undefine.
56045         * lib/chown.c (open, close): Undefine.
56046         * lib/clean-temp.c (open, close): Undefine.
56047         * lib/copy-file.c (open, close): Undefine.
56048         * lib/execute.c (open, close): Undefine.
56049         * lib/fsusage.c (open, close): Undefine.
56050         * lib/gc-gnulib.c (open, close): Undefine.
56051         * lib/getcwd.c (opendir, closedir): Undefine.
56052         * lib/glob.c (opendir, closedir): Undefine.
56053         * lib/javacomp.c (open, close): Undefine.
56054         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
56055         * lib/openat-proc.c (open, close): Undefine.
56056         * lib/pagealign_alloc.c (open, close): Undefine.
56057         * lib/pipe.c (open, close): Undefine.
56058         * lib/progreloc.c (open, close): Undefine.
56059         * lib/savedir.c (opendir, closedir): Undefine.
56060         * lib/utime.c (open, close): Undefine.
56061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
56062
56063 2007-01-10  Bruno Haible  <bruno@clisp.org>
56064
56065         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
56066
56067 2007-01-12  Eric Blake  <ebb9@byu.net>
56068
56069         Provide a robust <wchar.h>.  Further simplifications are now
56070         possible in other modules, but not included here.
56071         * modules/wchar: New module.
56072         * m4/wchar.m4: New file.
56073         * lib/wchar_.h: Likewise.
56074         * modules/mbchar (Depends-on): Depend on wchar, as the first use
56075         of the new module.
56076         * MODULES.html.sh (Extended multibyte and wide character utilities):
56077         New section.
56078
56079 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
56080
56081         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
56082         to a reasonable default for memory allocation.
56083         (xreadlink): Don't allocate a huge buffer, to work around a buggy
56084         file system that reports garbage st_size values for symlinks.
56085         Problem reported by Liyang Hu.
56086
56087 2007-01-11  Simon Josefsson  <simon@josefsson.org>
56088
56089         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
56090         Emacs .#* auto-save files).
56091
56092 2007-01-11  Bruno Haible  <bruno@clisp.org>
56093
56094         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
56095         directory.
56096
56097 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
56098
56099         Use @...@ consistently in lib/wctype_.h.
56100         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
56101         on it being set to 1 or 0.
56102         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
56103         go back to AC_SUBSTing it.
56104         * modules/wctype (Makefile.am): Undo previous change.
56105
56106 2007-01-10  Eric Blake  <ebb9@byu.net>
56107
56108         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
56109         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
56110         * modules/wctype (Makefile.am): Likewise.
56111         Reported by Chris McGuire.
56112
56113 2007-01-10  Jim Meyering  <jim@meyering.net>
56114
56115         fts.c: a small readability/maintainability improvement
56116         * lib/fts.c (fts_read): Make this code slightly more readable and
56117         maintainable by hoisting the "sp->fts_cur = p" assignments to
56118         immediately follow the statements that set P.  Derived from
56119         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
56120
56121 2007-01-10  Eric Blake  <ebb9@byu.net>
56122
56123         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
56124         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
56125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56126         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
56127         Reported by Chris McGuire.
56128
56129 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56130
56131         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
56132         in sed script.
56133
56134 2007-01-09  Bruno Haible  <bruno@clisp.org>
56135
56136         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
56137         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
56138         variables.
56139         (func_module): Use them.
56140
56141 2007-01-09  Bruno Haible  <bruno@clisp.org>
56142
56143         * modules/unistr/base: New file.
56144         * lib/unistr.h: New file.
56145
56146         * modules/unistr/u8-to-u16: New file.
56147         * lib/unistr/u8-to-u16.c: New file.
56148
56149         * modules/unistr/u8-to-u32: New file.
56150         * lib/unistr/u8-to-u32.c: New file.
56151
56152         * modules/unistr/u16-to-u8: New file.
56153         * lib/unistr/u16-to-u8.c: New file.
56154
56155         * modules/unistr/u16-to-u32: New file.
56156         * lib/unistr/u16-to-u32.c: New file.
56157
56158         * modules/unistr/u32-to-u8: New file.
56159         * lib/unistr/u32-to-u8.c: New file.
56160
56161         * modules/unistr/u32-to-u16: New file.
56162         * lib/unistr/u32-to-u16.c: New file.
56163
56164         * modules/unistr/u8-check: New file.
56165         * modules/unistr/u16-check: New file.
56166         * modules/unistr/u32-check: New file.
56167         * lib/unistr/u8-check.c: New file.
56168         * lib/unistr/u16-check.c: New file.
56169         * lib/unistr/u32-check.c: New file.
56170
56171         * modules/unistr/u8-chr: New file.
56172         * modules/unistr/u16-chr: New file.
56173         * modules/unistr/u32-chr: New file.
56174         * lib/unistr/u8-chr.c: New file.
56175         * lib/unistr/u16-chr.c: New file.
56176         * lib/unistr/u32-chr.c: New file.
56177
56178         * modules/unistr/u8-cmp: New file.
56179         * modules/unistr/u16-cmp: New file.
56180         * modules/unistr/u32-cmp: New file.
56181         * lib/unistr/u8-cmp.c: New file.
56182         * lib/unistr/u16-cmp.c: New file.
56183         * lib/unistr/u32-cmp.c: New file.
56184
56185         * modules/unistr/u8-cpy: New file.
56186         * modules/unistr/u16-cpy: New file.
56187         * modules/unistr/u32-cpy: New file.
56188         * lib/unistr/u8-cpy.c: New file.
56189         * lib/unistr/u16-cpy.c: New file.
56190         * lib/unistr/u32-cpy.c: New file.
56191         * lib/unistr/u-cpy.h: New file.
56192
56193         * modules/unistr/u8-cpy-alloc: New file.
56194         * modules/unistr/u16-cpy-alloc: New file.
56195         * modules/unistr/u32-cpy-alloc: New file.
56196         * lib/unistr/u8-cpy-alloc.c: New file.
56197         * lib/unistr/u16-cpy-alloc.c: New file.
56198         * lib/unistr/u32-cpy-alloc.c: New file.
56199         * lib/unistr/u-cpy-alloc.h: New file.
56200
56201         * modules/unistr/u8-endswith: New file.
56202         * modules/unistr/u16-endswith: New file.
56203         * modules/unistr/u32-endswith: New file.
56204         * lib/unistr/u8-endswith.c: New file.
56205         * lib/unistr/u16-endswith.c: New file.
56206         * lib/unistr/u32-endswith.c: New file.
56207         * lib/unistr/u-endswith.h: New file.
56208
56209         * modules/unistr/u8-mblen: New file.
56210         * modules/unistr/u16-mblen: New file.
56211         * modules/unistr/u32-mblen: New file.
56212         * lib/unistr/u8-mblen.c: New file.
56213         * lib/unistr/u16-mblen.c: New file.
56214         * lib/unistr/u32-mblen.c: New file.
56215
56216         * modules/unistr/u8-mbtouc: New file.
56217         * modules/unistr/u16-mbtouc: New file.
56218         * modules/unistr/u32-mbtouc: New file.
56219         * lib/unistr/u8-mbtouc.c: New file.
56220         * lib/unistr/u16-mbtouc.c: New file.
56221         * lib/unistr/u32-mbtouc.c: New file.
56222
56223         * modules/unistr/u8-mbtouc-safe: New file.
56224         * modules/unistr/u16-mbtouc-safe: New file.
56225         * modules/unistr/u32-mbtouc-safe: New file.
56226         * lib/unistr/u8-mbtouc-safe.c: New file.
56227         * lib/unistr/u16-mbtouc-safe.c: New file.
56228         * lib/unistr/u32-mbtouc-safe.c: New file.
56229
56230         * modules/unistr/u8-move: New file.
56231         * modules/unistr/u16-move: New file.
56232         * modules/unistr/u32-move: New file.
56233         * lib/unistr/u8-move.c: New file.
56234         * lib/unistr/u16-move.c: New file.
56235         * lib/unistr/u32-move.c: New file.
56236         * lib/unistr/u-move.h: New file.
56237
56238         * modules/unistr/u8-next: New file.
56239         * modules/unistr/u16-next: New file.
56240         * modules/unistr/u32-next: New file.
56241         * lib/unistr/u8-next.c: New file.
56242         * lib/unistr/u16-next.c: New file.
56243         * lib/unistr/u32-next.c: New file.
56244
56245         * modules/unistr/u8-prev: New file.
56246         * modules/unistr/u16-prev: New file.
56247         * modules/unistr/u32-prev: New file.
56248         * lib/unistr/u8-prev.c: New file.
56249         * lib/unistr/u16-prev.c: New file.
56250         * lib/unistr/u32-prev.c: New file.
56251
56252         * modules/unistr/u8-set: New file.
56253         * modules/unistr/u16-set: New file.
56254         * modules/unistr/u32-set: New file.
56255         * lib/unistr/u8-set.c: New file.
56256         * lib/unistr/u16-set.c: New file.
56257         * lib/unistr/u32-set.c: New file.
56258         * lib/unistr/u-set.h: New file.
56259
56260         * modules/unistr/u8-startswith: New file.
56261         * modules/unistr/u16-startswith: New file.
56262         * modules/unistr/u32-startswith: New file.
56263         * lib/unistr/u8-startswith.c: New file.
56264         * lib/unistr/u16-startswith.c: New file.
56265         * lib/unistr/u32-startswith.c: New file.
56266         * lib/unistr/u-startswith.h: New file.
56267
56268         * modules/unistr/u8-stpcpy: New file.
56269         * modules/unistr/u16-stpcpy: New file.
56270         * modules/unistr/u32-stpcpy: New file.
56271         * lib/unistr/u8-stpcpy.c: New file.
56272         * lib/unistr/u16-stpcpy.c: New file.
56273         * lib/unistr/u32-stpcpy.c: New file.
56274         * lib/unistr/u-stpcpy.h: New file.
56275
56276         * modules/unistr/u8-stpncpy: New file.
56277         * modules/unistr/u16-stpncpy: New file.
56278         * modules/unistr/u32-stpncpy: New file.
56279         * lib/unistr/u8-stpncpy.c: New file.
56280         * lib/unistr/u16-stpncpy.c: New file.
56281         * lib/unistr/u32-stpncpy.c: New file.
56282         * lib/unistr/u-stpncpy.h: New file.
56283
56284         * modules/unistr/u8-strcat: New file.
56285         * modules/unistr/u16-strcat: New file.
56286         * modules/unistr/u32-strcat: New file.
56287         * lib/unistr/u8-strcat.c: New file.
56288         * lib/unistr/u16-strcat.c: New file.
56289         * lib/unistr/u32-strcat.c: New file.
56290         * lib/unistr/u-strcat.h: New file.
56291
56292         * modules/unistr/u8-strchr: New file.
56293         * modules/unistr/u16-strchr: New file.
56294         * modules/unistr/u32-strchr: New file.
56295         * lib/unistr/u8-strchr.c: New file.
56296         * lib/unistr/u16-strchr.c: New file.
56297         * lib/unistr/u32-strchr.c: New file.
56298
56299         * modules/unistr/u8-strcmp: New file.
56300         * modules/unistr/u16-strcmp: New file.
56301         * modules/unistr/u32-strcmp: New file.
56302         * lib/unistr/u8-strcmp.c: New file.
56303         * lib/unistr/u16-strcmp.c: New file.
56304         * lib/unistr/u32-strcmp.c: New file.
56305
56306         * modules/unistr/u8-strcpy: New file.
56307         * modules/unistr/u16-strcpy: New file.
56308         * modules/unistr/u32-strcpy: New file.
56309         * lib/unistr/u8-strcpy.c: New file.
56310         * lib/unistr/u16-strcpy.c: New file.
56311         * lib/unistr/u32-strcpy.c: New file.
56312         * lib/unistr/u-strcpy.h: New file.
56313
56314         * modules/unistr/u8-strcspn: New file.
56315         * modules/unistr/u16-strcspn: New file.
56316         * modules/unistr/u32-strcspn: New file.
56317         * lib/unistr/u8-strcspn.c: New file.
56318         * lib/unistr/u16-strcspn.c: New file.
56319         * lib/unistr/u32-strcspn.c: New file.
56320         * lib/unistr/u-strcspn.h: New file.
56321
56322         * modules/unistr/u8-strdup: New file.
56323         * modules/unistr/u16-strdup: New file.
56324         * modules/unistr/u32-strdup: New file.
56325         * lib/unistr/u8-strdup.c: New file.
56326         * lib/unistr/u16-strdup.c: New file.
56327         * lib/unistr/u32-strdup.c: New file.
56328         * lib/unistr/u-strdup.h: New file.
56329
56330         * modules/unistr/u8-strlen: New file.
56331         * modules/unistr/u16-strlen: New file.
56332         * modules/unistr/u32-strlen: New file.
56333         * lib/unistr/u8-strlen.c: New file.
56334         * lib/unistr/u16-strlen.c: New file.
56335         * lib/unistr/u32-strlen.c: New file.
56336         * lib/unistr/u-strlen.h: New file.
56337
56338         * modules/unistr/u8-strmblen: New file.
56339         * modules/unistr/u16-strmblen: New file.
56340         * modules/unistr/u32-strmblen: New file.
56341         * lib/unistr/u8-strmblen.c: New file.
56342         * lib/unistr/u16-strmblen.c: New file.
56343         * lib/unistr/u32-strmblen.c: New file.
56344
56345         * modules/unistr/u8-strmbtouc: New file.
56346         * modules/unistr/u16-strmbtouc: New file.
56347         * modules/unistr/u32-strmbtouc: New file.
56348         * lib/unistr/u8-strmbtouc.c: New file.
56349         * lib/unistr/u16-strmbtouc.c: New file.
56350         * lib/unistr/u32-strmbtouc.c: New file.
56351
56352         * modules/unistr/u8-strncat: New file.
56353         * modules/unistr/u16-strncat: New file.
56354         * modules/unistr/u32-strncat: New file.
56355         * lib/unistr/u8-strncat.c: New file.
56356         * lib/unistr/u16-strncat.c: New file.
56357         * lib/unistr/u32-strncat.c: New file.
56358         * lib/unistr/u-strncat.h: New file.
56359
56360         * modules/unistr/u8-strncmp: New file.
56361         * modules/unistr/u16-strncmp: New file.
56362         * modules/unistr/u32-strncmp: New file.
56363         * lib/unistr/u8-strncmp.c: New file.
56364         * lib/unistr/u16-strncmp.c: New file.
56365         * lib/unistr/u32-strncmp.c: New file.
56366
56367         * modules/unistr/u8-strncpy: New file.
56368         * modules/unistr/u16-strncpy: New file.
56369         * modules/unistr/u32-strncpy: New file.
56370         * lib/unistr/u8-strncpy.c: New file.
56371         * lib/unistr/u16-strncpy.c: New file.
56372         * lib/unistr/u32-strncpy.c: New file.
56373         * lib/unistr/u-strncpy.h: New file.
56374
56375         * modules/unistr/u8-strnlen: New file.
56376         * modules/unistr/u16-strnlen: New file.
56377         * modules/unistr/u32-strnlen: New file.
56378         * lib/unistr/u8-strnlen.c: New file.
56379         * lib/unistr/u16-strnlen.c: New file.
56380         * lib/unistr/u32-strnlen.c: New file.
56381         * lib/unistr/u-strnlen.h: New file.
56382
56383         * modules/unistr/u8-strpbrk: New file.
56384         * modules/unistr/u16-strpbrk: New file.
56385         * modules/unistr/u32-strpbrk: New file.
56386         * lib/unistr/u8-strpbrk.c: New file.
56387         * lib/unistr/u16-strpbrk.c: New file.
56388         * lib/unistr/u32-strpbrk.c: New file.
56389         * lib/unistr/u-strpbrk.h: New file.
56390
56391         * modules/unistr/u8-strrchr: New file.
56392         * modules/unistr/u16-strrchr: New file.
56393         * modules/unistr/u32-strrchr: New file.
56394         * lib/unistr/u8-strrchr.c: New file.
56395         * lib/unistr/u16-strrchr.c: New file.
56396         * lib/unistr/u32-strrchr.c: New file.
56397
56398         * modules/unistr/u8-strspn: New file.
56399         * modules/unistr/u16-strspn: New file.
56400         * modules/unistr/u32-strspn: New file.
56401         * lib/unistr/u8-strspn.c: New file.
56402         * lib/unistr/u16-strspn.c: New file.
56403         * lib/unistr/u32-strspn.c: New file.
56404         * lib/unistr/u-strspn.h: New file.
56405
56406         * modules/unistr/u8-strstr: New file.
56407         * modules/unistr/u16-strstr: New file.
56408         * modules/unistr/u32-strstr: New file.
56409         * lib/unistr/u8-strstr.c: New file.
56410         * lib/unistr/u16-strstr.c: New file.
56411         * lib/unistr/u32-strstr.c: New file.
56412         * lib/unistr/u-strstr.h: New file.
56413
56414         * modules/unistr/u8-strtok: New file.
56415         * modules/unistr/u16-strtok: New file.
56416         * modules/unistr/u32-strtok: New file.
56417         * lib/unistr/u8-strtok.c: New file.
56418         * lib/unistr/u16-strtok.c: New file.
56419         * lib/unistr/u32-strtok.c: New file.
56420         * lib/unistr/u-strtok.h: New file.
56421
56422         * modules/unistr/u8-uctomb: New file.
56423         * modules/unistr/u16-uctomb: New file.
56424         * modules/unistr/u32-uctomb: New file.
56425         * lib/unistr/u8-uctomb.c: New file.
56426         * lib/unistr/u16-uctomb.c: New file.
56427         * lib/unistr/u32-uctomb.c: New file.
56428
56429         * MODULES.html.sh (Unicode string functions): Add the new modules.
56430
56431 2007-01-08  Bruno Haible  <bruno@clisp.org>
56432
56433         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56434         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56435         subdirectories.
56436
56437 2007-01-08  Karl Berry  <karl@gnu.org>
56438
56439         * doc/error.texi: mention that main() fns must set program_name
56440         when progname is used.
56441
56442 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56443
56444         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56445         WCTYPE_H is empty, for the benefit of builds from non-distclean
56446         directories.  Problem reported by Eric Blake in
56447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56448
56449 2007-01-08  Bruno Haible  <bruno@clisp.org>
56450
56451         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56452         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56453         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56454         PROVIDE_CANONICALIZE_FILENAME_MODE.
56455         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56456
56457 2007-01-08  Bruno Haible  <bruno@clisp.org>
56458
56459         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56460         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56461         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56462         * lib/fts.c: Likewise.
56463         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56464
56465 2006-12-25  Bruno Haible  <bruno@clisp.org>
56466
56467         * modules/utf8-ucs4-safe: New file.
56468         * lib/utf8-ucs4-safe.h: New file.
56469         * lib/unistr/utf8-ucs4-safe.c: New file.
56470
56471         * modules/utf16-ucs4-safe: New file.
56472         * lib/utf16-ucs4-safe.h: New file.
56473         * lib/unistr/utf16-ucs4-safe.c: New file.
56474
56475         * MODULES.html.sh (Unicode string functions): Add the new modules.
56476
56477 2007-01-08  Bruno Haible  <bruno@clisp.org>
56478
56479         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56480         (Depends-on): Add unitypes.
56481         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56482         (u8_mbtouc_aux): Move out to separate file.
56483         (u8_mbtouc): Use ucs4_t, uint8_t types.
56484         * lib/unistr/utf8-ucs4.c: New file.
56485
56486         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56487         (Depends-on): Add unitypes.
56488         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56489         (u16_mbtouc_aux): Move out to separate file.
56490         (u16_mbtouc): Use ucs4_t, uint16_t types.
56491         * lib/unistr/utf16-ucs4.c: New file.
56492
56493         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56494         (Depends-on): Add unitypes.
56495         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56496         (u8_uctomb_aux): Move out to separate file.
56497         (u8_uctomb): Use ucs4_t, uint8_t types.
56498         * lib/unistr/ucs4-utf8.c: New file.
56499
56500         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56501         (Depends-on): Add unitypes.
56502         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56503         (u16_uctomb_aux): Move out to separate file.
56504         (u16_uctomb): Use ucs4_t, uint16_t types.
56505         * lib/unistr/ucs4-utf16.c: New file.
56506
56507 2006-12-25  Bruno Haible  <bruno@clisp.org>
56508
56509         * modules/unitypes: New file.
56510         * lib/unitypes.h: New file.
56511         * MODULES.html.sh (func_all_modules): New section "Unicode string
56512         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56513         this section. Add unitypes.
56514
56515 2007-01-08  Bruno Haible  <bruno@clisp.org>
56516
56517         Avoid variable names that conflict with those from libtool.
56518         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56519         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56520         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56521         library_names_spec to acl_library_names_spec, hardcode_* to
56522         acl_hardcode_*.
56523         Reported by Ralf Wildenhues.
56524
56525 2007-01-08  Bruno Haible  <bruno@clisp.org>
56526
56527         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56528         definition.
56529         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56530         definition.
56531         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56532         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56533         definition.
56534         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56535         definition.
56536         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56537         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56538         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56539         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56540         definition.
56541         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56542         definition.
56543         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56544         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56545         GC_USE_<algorithm>.
56546         * lib/gc-libgcrypt.c: Likewise.
56547         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56548         * modules/gc-arctwo (configure.ac): Likewise.
56549         * modules/gc-des (configure.ac): Likewise.
56550         * modules/gc-hmac-md5 (configure.ac): Likewise.
56551         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56552         * modules/gc-md2 (configure.ac): Likewise.
56553         * modules/gc-md4 (configure.ac): Likewise.
56554         * modules/gc-md5 (configure.ac): Likewise.
56555         * modules/gc-random (configure.ac): Likewise.
56556         * modules/gc-rijndael (configure.ac): Likewise.
56557         * modules/gc-sha1 (configure.ac): Likewise.
56558
56559 2007-01-08  Bruno Haible  <bruno@clisp.org>
56560
56561         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56562         macro definition.
56563         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56564         definition.
56565         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56566         definition.
56567         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56568         * modules/fcntl-safer (configure.ac): Likewise.
56569         * modules/fopen-safer (configure.ac): Likewise.
56570         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56571         GNULIB_FWRITEERROR macro definition.
56572
56573 2007-01-08  Bruno Haible  <bruno@clisp.org>
56574
56575         * m4/gnulib-common.m4: New file.
56576         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56577         (func_get_filelist): Add m4/gnulib-common.m4.
56578
56579 2007-01-08  Bruno Haible  <bruno@clisp.org>
56580
56581         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56582         command.
56583
56584 2007-01-08  Jim Meyering  <jim@meyering.net>
56585
56586         Use a more robust test for a "can't happen" condition.
56587         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56588         narrowed the st_size value.  Presuming the "can't happen" condition
56589         is true, that narrowing could conceivably convert an invalid st_size
56590         value into a valid one.  Instead, use a change based on Matthew
56591         Woehlke's original patch.
56592
56593         Slight readability improvement: use an assert-like macro
56594         in place of literal "abort ()" uses.
56595         * lib/fts.c (fts_assert): Define.
56596         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56597         Use this macro instead of a bare 'abort'.
56598
56599 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56600
56601         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56602         simply work around them.
56603         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56604         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56605         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56606         declaring.
56607         Don't bother to define as macros, since the standard doesn't require it.
56608         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56609         longer worry about IRIX 5.3.
56610         (HAVE_WCTYPE_CTMP_BUG): Remove.
56611
56612 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56613
56614         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56615         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56616         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56617         Problems reported by Georg Schwarz for IRIX 5.3.
56618
56619         * gnulib-tool (autoconf_minversion): Take the maximum version number
56620         found, not the minimum.  Problem reported by James Youngman.
56621
56622 2007-01-03  Karl Berry  <karl@gnu.org>
56623
56624         * doc/error.texi: new file, explaining interaction with progname.
56625         * doc/gnulib.texi: include it.  Update copyright.
56626
56627 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56628
56629         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56630         AC_CANONICAL_HOST, to improve autobuild outputs.
56631
56632 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56633             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56634
56635         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56636         sockets, server sockets, and other file descriptors.  Count errors
56637         to compute the return value.  Reorder the code a bit to be easier
56638         to follow.  Don't set event bits that were not requested (except
56639         POLLERR and POLLHUP).
56640
56641 2007-01-01  Bruno Haible  <bruno@clisp.org>
56642
56643         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56644
56645 2007-01-03  Jim Meyering  <jim@meyering.net>
56646
56647         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56648
56649 2007-01-02  Bruno Haible  <bruno@clisp.org>
56650
56651         * modules/settime (Include): Require timespec.h.
56652         * modules/nanosleep (Include): Likewise.
56653
56654 2007-01-01  Bruno Haible  <bruno@clisp.org>
56655
56656         * gnulib-tool (func_emit_copyright_notice): Bump year.
56657         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56658
56659 2007-01-01  Bruno Haible  <bruno@clisp.org>
56660
56661         Improve support for OpenBSD.
56662         * build-aux/config.rpath (libname_spec): Export.
56663         (library_names_spec): New variable. Export.
56664         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56665         library_names_spec from the config.rpath output. Locate shared library
56666         through the name pattern in library_names_spec.
56667
56668 2007-01-01  Eric Blake  <ebb9@byu.net>
56669
56670         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56671
56672 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56673
56674         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56675         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56676         assume the C locale, and avoid an "eval" that could cause trouble.
56677         Problem with SORT reported by Bob Proulx.
56678
56679         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56680         Define.  Trivial patch from Henning Nielsen Lund, originally
56681         sent to bug-grep@gnu.org today.
56682
56683 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56684
56685         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56686         struct stat.  Problem reported by Henning Nielsen Lund.
56687         * lib/acl.c: Include acl.h first, to check interface.  Don't
56688         bother to include sys/types.h and sys/stat.h again.
56689
56690 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         Import the following change from libc; problem reported by
56693         Sven Verdoolaege.
56694
56695         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56696
56697         [BZ #1373]
56698         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56699
56700 2006-12-28  Jim Meyering  <jim@meyering.net>
56701
56702         * build-aux/announce-gen: Do not assume that the package
56703         builds any of tar.gz, tar.bz2, and .xdelta files.
56704         Suggestion from Simon Josefsson.
56705
56706 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56707
56708         * modules/announce-gen: New file.
56709
56710 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56711
56712         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56713         handles its gotchas now.
56714         * lib/mbswidth.c: Likewise.
56715         * lib/wcwidth.h: Likewise.
56716         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56717         and iswcntrl; the wctype module does this stuff now.
56718         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56720         * modules/mbchar (Depends-on): Add wctype.
56721         * modules/mbswidth (Depends-on): Likewise.
56722         * modules/wcwidth (Depends-on): Likewise.
56723
56724 2006-12-27  Eric Blake  <ebb9@byu.net>
56725
56726         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56727         module uses more than what <wctype.h> is required to provide.
56728
56729 2006-12-26  Eric Blake  <ebb9@byu.net>
56730
56731         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56732
56733 2006-12-26  Eric Blake  <ebb9@byu.net>
56734
56735         * modules/absolute-header: New module.
56736         * modules/fcntl (Depends-on): Depend on it.
56737         * modules/inttypes (Depends-on): Likewise.
56738         * modules/stdint (Depends-on): Likewise.
56739         * modules/sys_stat (Depends-on): Likewise.
56740         * modules/wctype (Depends-on): Likewise.
56741         * MODULES.html.sh (Support for building libraries and
56742         executables): Document it.
56743
56744 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56745
56746         * gnulib-tool (SED): Remove, undoing previous change.
56747         The problem was that it broke coreutils on Solaris, because
56748         "sed --posix" leaked into a makefile.
56749         (sed): New alias, if 'alias' and GNU sed.
56750
56751 2006-12-24  Jim Meyering  <jim@meyering.net>
56752
56753         Work around an fchownat bug in glibc-2.4:
56754         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56755         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56756         in spite of the -P option.
56757         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56758         New macros.
56759         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56760         * modules/openat (Files): Add lib/fchownat.c.
56761         * lib/openat.c (fchownat): Don't define here.  Move to...
56762         * lib/fchownat.c: ...this new file.
56763
56764 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56765
56766         Fix bug reported by Bruno Haible in
56767         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56768         where quotearg.c didn't compile on Mac OS X 10.2 because it
56769         lacks <wchar.h> and wint_t.
56770         * lib/wctype_.h (__wctype_wint_t): New type.
56771         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56772         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56773         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56774         Arg is now of type __wctype_wint_t, not wint_t.
56775         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56776         substitute HAVE_WINT_T.
56777         * modules/wctype (Files): Add m4/wint_t.m4.
56778         (wctype.h): Substitute HAVE_WINT_T.
56779
56780 2006-12-23  Bruno Haible  <bruno@clisp.org>
56781
56782         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56783
56784 2006-12-23  Bruno Haible  <bruno@clisp.org>
56785
56786         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56787         S_ISLNK.
56788         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56789         mingw.
56790
56791 2006-12-22  Bruno Haible  <bruno@clisp.org>
56792
56793         * lib/copy-file.c: Include acl.h.
56794         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56795         Close the file descriptors only after being done with copy_acl.
56796         * modules/copy-file (Depends-on): Add acl.
56797
56798 2006-12-22  Bruno Haible  <bruno@clisp.org>
56799
56800         * gnulib-tool (SED): New variable.
56801         Use $SED instead of sed everywhere.
56802
56803 2006-12-22  Bruno Haible  <bruno@clisp.org>
56804
56805         * modules/no-c++: New file.
56806         * m4/no-c++.m4: New file.
56807         * MODULES.html.sh (Support for building libraries and executables):
56808         Add no-c++.
56809
56810 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56811
56812         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56813         Include <limits.h>, and use its INT_MAX to rewrite the
56814         j loop so that it does not overflow 'int'.  Problem reported by
56815         Ralf Wildenhues in
56816         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56817         Play it safe by shifting left by 1 rather than multiplying by 2,
56818         as GCC is less likely to optimize this away when the value
56819         is signed (when it assumes overflow leads to undefined behavior).
56820         Also, don't assume time_t uses two's complement.
56821
56822 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56823
56824         * MODULES.html.sh: New module wctype.
56825         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56826         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56827         <wctype.h>, since the new wctype module should fix this.
56828         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56829         the wctype module should arrange for it.
56830         * lib/regex_internal.h: Likewise.
56831         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56832         since the wctype module should handle this now.
56833         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56834         * modules/fnmatch (Depends-on): Add wctype.
56835         * modules/quotearg (Depends-on): Likewise.
56836         * modules/regex (Depends-on): Likewise.
56837
56838 2006-12-19  Bruno Haible  <bruno@clisp.org>
56839
56840         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56841         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56842
56843 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56844
56845         * modules/savewd (Depends-on): Fix dependency on fcntl.
56846
56847 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56848
56849         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56850         conforms to C99, rather than relying on the user's environment
56851         setting of STDINT_H.
56852
56853 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56854         and Eric Blake  <ebb9@byu.net>
56855
56856         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56857         This is more consistent with the other defines here.
56858         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56859         Port to z/OS.  Problem reported by Paul Gilmartin.
56860         Change local vars to use gl_ prefix rather than ac_.
56861         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56862         with other defines.
56863         * modules/double-slash-root: New module.
56864         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56865         (Depends-on): Add double-slash-root.
56866         * MODULES.html.sh (File system functions): Mention new module.
56867
56868 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56869
56870         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56871         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56872         This is for the benefit of gzip, which doesn't do i18n.
56873
56874 2006-12-12  Jim Meyering  <jim@meyering.net>
56875
56876         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56877         Reported by Andreas Schwab <schwab@suse.de>.
56878
56879 2006-12-12  Bruno Haible  <bruno@clisp.org>
56880
56881         Merge these changes.
56882         2006-09-05  Bruno Haible  <bruno@clisp.org>
56883         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56884         iconv_alloc succeeded.
56885         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56886         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56887         test for " && dest " at the end - dest is always != NULL there. Call
56888         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56889         with 2xNULL arguments, also to flush the state storage. Handle the
56890         IRIX iconv behaviour. Realloc the final result, to throw away unused
56891         memory.
56892
56893 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56894
56895         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56896         and fchmodat unconditionally, since glibc 2.4 has them.
56897         Problem reported by Arkadiusz Miskiewicz.
56898
56899 2006-12-10  Bruno Haible  <bruno@clisp.org>
56900
56901         * gnulib-tool (func_import): Show the include files only for those
56902         modules that are copied and specified.
56903         Reported by Karl Berry.
56904
56905 2006-12-08  Jim Meyering  <jim@meyering.net>
56906
56907         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56908         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56909
56910         * build-aux/announce-gen: Add two new options, both optional:
56911         --bootstrap-tools=TOOL_LIST
56912               a comma-separated list of tools, e.g.,
56913               autoconf,automake,bison,gnulib
56914         --gnulib-snapshot-date=DATE
56915               if gnulib is in the bootstrap tool list,
56916               then report this as the snapshot date.
56917               If not specified, use the current date/time.
56918               If you specify a date here, be sure it's UTC.
56919
56920 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56921
56922         * tests/test-argp-2.sh: Fix test to match actual output.
56923         (func_compare): Fix sed script to be portable.
56924
56925 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56926
56927         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56928         workaround for this case.  It is not autoconfigured now; offhand
56929         it's hard to see how to autoconfigure it.
56930
56931 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56932
56933         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56934         a directory that is about to be chowned.  Such a directory's
56935         initial file permissions should permit the owner only and this
56936         should not be changed until after the chown, since the group and
56937         other bits would be incorrect if they granted permission before
56938         the chown.
56939
56940         Fix porting problem for iswctype reported by Georg Schwarz in:
56941         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56942         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56943         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56944         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56945         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56946
56947 2006-12-03  Jim Meyering  <jim@meyering.net>
56948
56949         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56950         p->fts_statp may not yet be defined.
56951         (fts_read): Instead, set it in the caller, once p->fts_statp is
56952         sure to be defined, and corresponds to a top-level directory.
56953         This bug made du -x fail.  Here's the coreutils test case:
56954         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56955         Reported by Mike Frysinger.
56956
56957 2006-12-01  Jim Meyering  <jim@meyering.net>
56958
56959         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56960         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56961         Reported by Simon Josefsson.
56962
56963 2006-11-30  Jim Meyering  <jim@meyering.net>
56964
56965         * m4/warning.m4: Use the all-permissive copyright notice
56966         recommended by RMS (rather than LGPL).
56967         * m4/vararrays.m4: Likewise.
56968         * m4/flexmember.m4: Likewise.
56969
56970 2006-11-29  Bruno Haible  <bruno@clisp.org>
56971
56972         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56973         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56974         using +=.
56975         Reported by Simon Josefsson <simon@josefsson.org>.
56976
56977 2006-11-28  James Youngman <jay@gnu.org>
56978
56979         * README: Advise users that they might find the bug-gnulib@gnu.org
56980         and autotools-announce@gnu.org mailing lists useful.
56981
56982 2006-11-28  Bruno Haible  <bruno@clisp.org>
56983
56984         * m4/ptrdiff_max.m4: Remove file.
56985
56986 2006-11-21  Bruno Haible  <bruno@clisp.org>
56987
56988         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56989         _AC_COMPUTE_INT.
56990         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56991         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56992         _AC_COMPUTE_INT.
56993         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56994         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56995         _AC_COMPUTE_INT.
56996         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56997
56998 2006-11-28  Jim Meyering  <jim@meyering.net>
56999
57000         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
57001         warning from "gcc -Wshadow" about shadowing the builtin.
57002
57003 2006-11-27  Bruno Haible  <bruno@clisp.org>
57004
57005         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
57006         _AC_COMPUTE_INT.
57007         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
57008
57009 2006-11-27  Bruno Haible  <bruno@clisp.org>
57010             Paul Eggert  <eggert@cs.ucla.edu>
57011
57012         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
57013
57014 2006-11-26  Bruno Haible  <bruno@clisp.org>
57015
57016         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
57017         noinst_LTLIBRARIES.
57018
57019 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57020             Bruno Haible  <bruno@clisp.org>
57021
57022         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
57023         if compiling with "gcc -ansi".
57024
57025 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57026
57027         Fix some incompatibilities with gcc -ansi -pedantic.
57028         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
57029         if compiling pedantically with GCC, unless it's C99 or later.
57030         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
57031         it mishandles gcc -ansi -pedantic as well.
57032         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
57033         if gcc -pedantic.
57034         * lib/regexec.c (check_node_accept_bytes): Don't use auto
57035         initializers for struct if -pedantic, unless it's C99 or later.
57036
57037 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
57038
57039         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
57040         Don't close an fd more than once. Identical atimes indicate
57041         success, not failure.
57042
57043 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
57044
57045         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
57046
57047 2006-11-23  Jim Meyering  <jim@meyering.net>
57048
57049         * build-aux/announce-gen: New file.  From coreutils.
57050
57051 2006-11-22  Jim Meyering  <jim@meyering.net>
57052
57053         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
57054         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
57055         (fts_read): Use a temporary to narrow the overused st_size member
57056         before using it in a switch statement.  Reported by Matthew Woehlke.
57057
57058         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
57059         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
57060
57061 2006-11-20  Bruno Haible  <bruno@clisp.org>
57062
57063         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
57064         changequote instead of pairs of brackets.
57065         Reported by Andreas Schwab <schwab@suse.de>.
57066
57067 2006-11-21  Jim Meyering  <jim@meyering.net>
57068
57069         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
57070         so as to remain compatible with older compilers.
57071         Patch from Michael Deutschmann.
57072
57073 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57074
57075         * MODULES.html.sh (File system functions): Add openat.
57076
57077         * lib/openat.h (rpl_fstatat): New macro, if
57078         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
57079         (fstatat): Define to rpl_fstatat under the same conditions,
57080         unless COMPILING_FSTATAT.
57081         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
57082         seems to have the bug.
57083         * lib/fstatat.c: New file.
57084         * modules/openat (Files): Add it.
57085
57086 2006-11-20  Bruno Haible  <bruno@clisp.org>
57087
57088         * Makefile: New file.
57089
57090 2006-11-20  Jim Meyering  <jim@meyering.net>
57091
57092         The beginnings of syntax-related checks for gnulib.
57093         * lib/Makefile: New file.
57094         * lib/t-idcache: New script.  Ensure that the two halves of
57095         idcache.c stay in sync.
57096
57097         * lib/idcache.c: Adjust comments in user- and group- portions to
57098         be more accurate, and to be consistent with one another.
57099
57100 2006-11-20  Jim Meyering  <jim@meyering.net>
57101
57102         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
57103         continue using the flexible array member (thus, this module performs
57104         half as many malloc calls), with the addition that...
57105         (getgroup, getuser): Consistently record a non-match via an empty
57106         "name" string, and map an empty string match to a NULL return value.
57107         * modules/idcache (Depends-on): Re-add flexmember.
57108
57109         * lib/idcache.c (getuser): Remove all uses of the register keyword.
57110         (getuidbyname, getgroup, getgidbyname): Likewise.
57111
57112         Use cleaner syntax: NULL rather than 0.
57113         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
57114
57115 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57116
57117         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
57118         It mishandled the case where the group was missing.
57119         Problem reported by Greg Schafer.
57120         * modules/idcache: Likewise.
57121
57122 2006-11-18  Jim Meyering  <jim@meyering.net>
57123
57124         * check-module (%exempt_header): Add exception for some
57125         conditionally-included headers.
57126
57127         * modules/i-ring (Depends-on): Add verify.
57128         (License): Change to LGPL.
57129
57130 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57131
57132         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
57133         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
57134         and inttostr.h.  Use snprintf rather than uinttostr, so that
57135         LGPLed code doesn't depend on GPLed.
57136
57137 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57138
57139         * modules/inline (License): Change from GPL to LGPL.
57140
57141 2006-11-17  Jim Meyering  <jim@meyering.net>
57142
57143         * modules/d-type (License): Switch to LGPL.
57144
57145 2006-11-15  Bruno Haible  <bruno@clisp.org>
57146
57147         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
57148
57149 2006-11-15  Eric Blake  <ebb9@byu.net>
57150
57151         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
57152         the module dependency.
57153
57154 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57155             Bruno Haible  <bruno@clisp.org>
57156
57157         * gnulib-tool (func_create_testdir): Add license consistency check.
57158
57159 2006-11-15  Eric Blake  <ebb9@byu.net>
57160
57161         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
57162         random "(cached)" in configure output.
57163
57164 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57165
57166         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
57167         test for conforming inttypes.h is both announced and cached.
57168
57169         * MODULES.html.sh (seen_modules, seen_files): New variables.
57170         (func_module): Rewrite to use a few less gnulib-tool and sed
57171         invocations.  Avoid a couple of quadratic algorithms for ...
57172         (missed_modules, missed_files): ... these, with ...
57173         (func_append, func_tmpdir): ... these new functions, from
57174         gnulib-tool.  Analogously, install traps for cleanup.
57175
57176         * tests/test-gc.c (main): Remove unused variables.
57177         * tests/test-read-file.c: Include stdlib.h, for 'free'.
57178
57179 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
57180
57181         * modules/inttostr (License): Change to LGPL.
57182
57183 2006-11-14  Eric Blake  <ebb9@byu.net>
57184
57185         * modules/tempname (License): Change to LGPL.
57186
57187 2006-11-14  Eric Blake  <ebb9@byu.net>
57188
57189         * doc/functions.texi (Function Portability): *printf functions on
57190         Cygwin now understand all POSIX size specifiers.
57191
57192 2006-11-14  Bruno Haible  <bruno@clisp.org>
57193
57194         * modules/c-ctype (License): Change to LGPL.
57195
57196 2006-11-12  Bruno Haible  <bruno@clisp.org>
57197
57198         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57199         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
57200         for GNOME libraries, for which the include files are installed in
57201         subdirectories of $prefix/include.
57202
57203 2006-11-12  Bruno Haible  <bruno@clisp.org>
57204
57205         * m4/lib-link.m4: Require at least autoconf-2.54.
57206         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
57207         name to underscores for the --with option.
57208
57209 2006-11-13  Bruno Haible  <bruno@clisp.org>
57210
57211         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
57212         the tests directory.
57213         Reported by Ralf Wildenhues.
57214
57215 2006-11-13  Bruno Haible  <bruno@clisp.org>
57216
57217         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57218         (func_emit_initmacro_end): Undo the override here.
57219         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57220         Works around the famous automake error in coreutils.
57221
57222 2006-11-13  Eric Blake  <ebb9@byu.net>
57223
57224         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57225         element, not its node.
57226
57227 2006-11-12  Bruno Haible  <bruno@clisp.org>
57228
57229         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57230         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57231
57232 2006-11-12  Bruno Haible  <bruno@clisp.org>
57233
57234         * gnulib-tool: New option --local-symlink.
57235         (func_usage): Document it.
57236         (lsymbolic): New variable.
57237         (func_import, func_create_testdir): If --symlink was not specified,
57238         test whether --local-symlink was specified and the file comes from
57239         the local_gnulib_dir.
57240
57241 2006-11-12  Bruno Haible  <bruno@clisp.org>
57242
57243         * gnulib-tool (func_ln): New function.
57244         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57245
57246 2006-11-12  Bruno Haible  <bruno@clisp.org>
57247
57248         Finish support for source files in subdirectories.
57249         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57250         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57251         AUTOMAKE_OPTIONS.
57252         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57253
57254 2006-11-12  Bruno Haible  <bruno@clisp.org>
57255
57256         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57257         EXTRA_lib_SOURCES augmentation.
57258         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57259
57260 2006-11-12  Jim Meyering  <jim@meyering.net>
57261
57262         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57263         file descriptors.  This also averts a failure on systems with
57264         native openat support when a traversed directory lacks "x" access.
57265         * lib/fts_.h: Include "i-ring.h"
57266         (struct FTS) [fts_fd_ring]: New member.
57267         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57268         (FCHDIR): Add parentheses.
57269         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57270         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57271         When descending, rather than simply closing the previous
57272         fts_cwd_fd value, push that file descriptor onto the ring.
57273         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57274         (fts_open): Initialize the new fd_ring member.
57275         (fts_close): Clear the ring.
57276         (fts_safe_changedir): When possible, use our new fd_ring to skip
57277         the diropen and fstat and dev/ino comparison that would normally
57278         accompany a virtual `chdir ("..")'.
57279
57280         * modules/fts (Depends-on): Add i-ring.
57281         * modules/i-ring: New module.
57282         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57283         * m4/i-ring.m4: New file.
57284
57285 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57286
57287         * gnulib-tool (func_create_testdir): Fix replacement of
57288         `build-aux' in configure.ac.  Run autotools in gltests
57289         subdirectory.
57290         (func_create_testdir, func_create_megatestdir, test): There is
57291         no need for '--force' in most autotool invocations in a new
57292         tree.  Actually fail the whole test if any of the tools, or the
57293         configure or make stages fail.
57294
57295         Sync from Automake.
57296         * build-aux/gnupload: Revert last change.  Add pointer to upload
57297         instructions of the GNU Maintenance Instructions.
57298         Suggestion by Karl Berry.
57299
57300 2006-11-10  Jim Meyering  <jim@meyering.net>
57301
57302         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57303
57304 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57305
57306         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57307         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57308         (bind_textdomain_codeset) [! ENABLE_NLS]:
57309         Evaluate all the arguments.  That way, callers get compatible behavior
57310         if the arguments have side effects.  Also, it avoids some GCC
57311         diagnostics in some cases; Joel E. Denny reported problems when Bison
57312         was configured with --enable-gcc-warnigs.
57313
57314 2006-11-10  Jim Meyering  <jim@meyering.net>
57315
57316         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57317         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57318         account.
57319
57320 2006-11-10  Jim Meyering  <jim@meyering.net>
57321
57322         * modules/inline: New file/module.
57323         * modules/xalloc (Files): Remove m4/inline.m4.
57324         (Depends-on): Add inline, instead.
57325         * modules/oset: Likewise.
57326         * modules/list: Likewise.
57327
57328 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57329
57330         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57331         Problem reported by Matthew Woehlke.
57332
57333 2006-11-09  Bruno Haible  <bruno@clisp.org>
57334
57335         * lib/tempname.c (gen_tempname): Remove variant that invokes
57336         __gen_tempname.
57337         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57338         __gen_tempname.
57339
57340 2006-11-08  Bruno Haible  <bruno@clisp.org>
57341
57342         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57343         to 'yes' instead of 'cross-compiling'.
57344
57345 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57346
57347         * lib/quotearg.h (quotearg_free): New decl.
57348         * lib/quotearg.c (quotearg_free): New function.
57349         (slot0, nslots, slotvec0, slotvec):
57350         Now file-scope so that quotearg_free can get at them.
57351
57352 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57353
57354         Sync from Automake.
57355         * build-aux/gnupload: Add missing 'gnu' to example URL.
57356         Report by Karl Berry.
57357
57358 2006-11-08  Bruno Haible  <bruno@clisp.org>
57359
57360         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57361         Suggested by Paul Eggert.
57362
57363 2006-11-08  Jim Meyering  <jim@meyering.net>
57364
57365         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57366         It's already included if !_LIBC.
57367         (fts_safe_changedir): Add a comment.
57368
57369 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57372         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57373         Matthew Woehlke.
57374
57375         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57376         definitions up, to avoid colliding with change below.
57377         (static_inline) [HAVE_INLINE]: New macro.
57378         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57379         Provide extern decls when !HAVE_INLINE.  Do not define unless
57380         static_inline is defined, either by us or by xmalloc.c.  Use
57381         static_inline rather than static inline.
57382         (XCALLOC): Optimize sizeof(T) = 1 case.
57383         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57384
57385 2006-11-07  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57388         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57389         AC_C_INLINE.
57390         * modules/xalloc (Files): Add m4/inline.m4.
57391
57392 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57393
57394         * README: Fix typo.
57395         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57396         (Miscellanous Notes): ...from this.
57397
57398 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57399
57400         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57401         Mention that offsetof should be used instead of sizeof.
57402         From Bruno Haible.
57403
57404 2006-11-07  Bruno Haible  <bruno@clisp.org>
57405
57406         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57407
57408 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57409
57410         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57411         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57412         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57413         (gl_tree_add_before, gl_tree_add_after):
57414         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57415         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57416         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57417         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57418         (gl_linked_add_after, gl_linked_add_at): Likewise.
57419         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57420         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57421         (gl_tree_add_before, gl_tree_add_after): Likewise.
57422         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57423         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57424         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57425
57426 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57427
57428         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57429
57430 2006-11-06  Bruno Haible  <bruno@clisp.org>
57431
57432         * m4/inline.m4: New file.
57433         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57434         * modules/list (Files): Add m4/inline.m4.
57435         * modules/oset (Files): Likewise.
57436
57437 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         * lib/idcache.c: Include <stddef.h>, for offsetof.
57440         (struct userid.name): Change from char * to a flexible array member.
57441         All uses changed.
57442         * modules/idcache (Depends-on): Add flexmember.
57443
57444         * MODULES.html.sh (Core language properties): New module flexmember.
57445         * modules/flexmember, m4/flexmember.m4: New files.
57446
57447         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57448         inline functions that are identical with the old xnmalloc_inline,
57449         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57450         that we can avoid some unnecessary integer multiplications and
57451         divisions in the common case where the element size is known at
57452         compile time.
57453         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57454         needed.
57455         (xnboundedmalloc): Remove.
57456         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57457         arguments, for consistency with rest of this header.
57458         (xcharalloc): Rewrite using XNMALLOC.
57459         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57460         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57461         versions have been moved to lib/xalloc.h and renamed to be the
57462         non-*_inline versions.
57463         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57464         and xnrealloc functions, since those functions are now inline and
57465         now call us.
57466         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57467         renaming described above.
57468         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57469         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57470         captures the dependency in AC_C_INLINE.
57471
57472         New module canonicalize-lgpl, proposed by Charles Wilson in
57473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57474         with a few small changes afterwards.
57475         * MODULES.html.sh (File system functions): New module
57476         canonicalize-lgpl.
57477         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57478         and canonicalize_file_name.
57479         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57480         * modules/canonicalize-lgpl: New files.
57481
57482 2006-11-05  Bruno Haible  <bruno@clisp.org>
57483
57484         * gnulib-tool (func_import, func_create_testdir): Create directories
57485         also for files in subdirectories of lib/.
57486
57487 2006-11-05  Bruno Haible  <bruno@clisp.org>
57488
57489         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57490         ANSI C compliant.
57491
57492 2006-11-03  Bruno Haible  <bruno@clisp.org>
57493
57494         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57495         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57496         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57497         (xnboundedmalloc): New inline function.
57498         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57499         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57500         xmalloc.
57501         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57502         xmalloc.
57503         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57504         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57505         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57506         xmalloc.
57507         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57508         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57509         xmalloc.
57510         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57511         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57512         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57513         xmalloc.
57514         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57515         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57516         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57517         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57518         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57519         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57520         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57521
57522 2006-11-03  Bruno Haible  <bruno@clisp.org>
57523
57524         * lib/c-ctype.h [C++]: Define functions without name mangling.
57525         * lib/fwriteerror.h [C++]: Likewise.
57526         * lib/gcd.h [C++]: Likewise.
57527         * lib/linebreak.h [C++]: Likewise.
57528
57529 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57530
57531         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57532         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57533         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57534         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57535         Check for functions and headers just once.
57536         Check for declaration of canonicalize_file_name.
57537         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57538
57539 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57540
57541         * gnulib-tool (func_import): Fix typo in actioncmd.
57542
57543 2006-11-02  Bruno Haible  <bruno@clisp.org>
57544
57545         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57546         newline sequence in the Makefile.am snippet as a space, like "make"
57547         does.
57548         Reported by Roger Persson <perrog@gmail.com>.
57549
57550 2006-11-01  Bruno Haible  <bruno@clisp.org>
57551
57552         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57553         already declared in <string.h>.
57554         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57555
57556 2006-11-01  Bruno Haible  <bruno@clisp.org>
57557
57558         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57559         * lib/strcase.h: Include <string.h>.
57560         (strcasecmp): Define to rpl_strcasecmp here.
57561
57562 2006-11-01  Bruno Haible  <bruno@clisp.org>
57563
57564         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57565
57566 2006-11-01  Eric Blake  <ebb9@byu.net>
57567
57568         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57569
57570         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57571
57572 2006-10-29  Bruno Haible  <bruno@clisp.org>
57573
57574         Make it compile in C++ mode.
57575         * lib/full-write.c (full_rw): Add a cast.
57576
57577 2006-11-01  Bruno Haible  <bruno@clisp.org>
57578
57579         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57580         be POSIX compliant.
57581         Reported by Roger Persson <perrog@gmail.com>.
57582
57583 2006-11-01  Eric Blake  <ebb9@byu.net>
57584
57585         * lib/getopt_.h: Fix comments.
57586
57587 2006-10-31  Eric Blake  <ebb9@byu.net>
57588
57589         * modules/tmpdir (Depends-on): Add sys_stat.
57590         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57591         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57592         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57593         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57594         tempname.
57595
57596 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57597
57598         Avoid some C++ diagnostics reported by Bruno Haible.
57599         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57600         xmalloc.
57601         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57602         (struct slotvec): Move to top level.
57603         (quotearg_n_options): Rewrite to avoid xmalloc.
57604         * lib/xalloc.h (xcharalloc): New function.
57605         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57606         [defined __cplusplus]: Add function template that provides result
57607         type propagation.  This part of the change is from Bruno Haible.
57608
57609 2006-10-29  Bruno Haible  <bruno@clisp.org>
57610
57611         Make it compile in C++ mode.
57612         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57613         * lib/strnlen1.c (strnlen1): Cast memchr result.
57614         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57615         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57616         (create_temp_dir): Rename local variable 'template'.
57617         (compile_csharp_using_sscli): Add cast.
57618         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57619         * lib/findprog.c (find_in_path): Likewise.
57620         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57621         * lib/wait-process.c (register_slave_subprocess): Likewise.
57622
57623 2006-10-22  Bruno Haible  <bruno@clisp.org>
57624
57625         * modules/tsearch: New file.
57626         * lib/tsearch.h: New file.
57627         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57628         * m4/tsearch.m4: New file.
57629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57630
57631 2006-10-29  Eric Blake  <ebb9@byu.net>
57632
57633         * lib/arcfour.c: Assume config.h.
57634         * lib/arctwo.c: Likewise.
57635         * lib/base64.c: Likewise.
57636         * lib/check-version.c: Likewise.
57637         * lib/crc.c: Likewise.
57638         * lib/des.c: Likewise.
57639         * lib/gc-gnulib.c: Likewise.
57640         * lib/gc-libgcrypt.c: Likewise.
57641         * lib/gc-pbkdf2-sha1.c: Likewise.
57642         * lib/getaddrinfo.c: Likewise.
57643         * lib/getdelim.c: Likewise.
57644         * lib/getline.c: Likewise.
57645         * lib/hmac-md5.c: Likewise.
57646         * lib/hmac-sha1.c: Likewise.
57647         * lib/iconvme.c: Likewise.
57648         * lib/md2.c: Likewise.
57649         * lib/md4.c: Likewise.
57650         * lib/memxor.c: Likewise.
57651         * lib/read-file.c: Likewise.
57652         * lib/readline.c: Likewise.
57653         * lib/rijndael-alg-fst.c: Likewise.
57654         * lib/rijndael-api-fst.c: Likewise.
57655         * lib/xgetdomainname.c: Likewise.
57656
57657 2006-10-28  Eric Blake  <ebb9@byu.net>
57658
57659         * lib/xstrndup.c: Assume config.h.
57660
57661 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57662
57663         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57664         stat-macros.h is now for our own macros, whereas stat_h is for
57665         macros in the <sys/stat.h> name space.
57666         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57667         (STAT_MACROS_H): Remove.
57668         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57669         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57670         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57671         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57672         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57673         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57674         Move these macros to ...
57675         * lib/stat_.h: here.  Don't include stat-macros.h.
57676         * lib/canonicalize.c: Don't include stat-macros.h.
57677         * lib/chown.c: Likewise.
57678         * lib/euidaccess.c: Likewise.
57679         * lib/file-type.c: Likewise.
57680         * lib/filemode.c: Likewise.
57681         * lib/glob.c: Likewise.
57682         * lib/isapipe.c: Likewise.
57683         * lib/lchown.c: Likewise.
57684         * lib/lstat.c: Likewise.
57685         * lib/mkdir-p.c: Likewise.
57686         * lib/rmdir.c: Likewise.
57687         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57689         unless mkdir isn't declared, to speed up 'configure'.
57690         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57691         would define all the S_* symbols.
57692         * modules/canonicalize (Depends-on):
57693         Depend on sys_stat, not stat-macros.
57694         * modules/chown: Likewise.
57695         * modules/euidaccess: Likewise.
57696         * modules/filemode: Likewise.
57697         * modules/file-type: Likewise.
57698         * modules/glob: Likewise.
57699         * modules/isapipe: Likewise.
57700         * modules/lchown: Likewise.
57701         * modules/lstat: Likewise.
57702         * modules/mkancesdirs: Likewise.
57703         * modules/rmdir: Likewise.
57704         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57705         * modules/modechange: Likewise.
57706         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57707         (configure.ac): Remove gl_STAT_MACROS.
57708         * modules/sys_stat (Depends-on): Remove stat-macros.
57709
57710 2006-10-27  Bruno Haible  <bruno@clisp.org>
57711
57712         * m4/signed.m4: Remove file.
57713         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57714         invocation.
57715         * modules/vasnprintf (Files): Remove m4/signed.m4.
57716
57717 2006-10-27  Bruno Haible  <bruno@clisp.org>
57718
57719         Update to GNU gettext 0.16.
57720         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57721         m4/inttypes-h.m4, m4/signed.m4.
57722         * m4/gettext.m4: Update to GNU gettext 0.16.
57723         * m4/intl.m4: New file, from GNU gettext.
57724         * m4/intldir.m4: New file, from GNU gettext.
57725         * config/srclist.txt: Update
57726
57727 2006-10-27  Eric Blake  <ebb9@byu.net>
57728
57729         * MODULES.html.sh: Document tempname.
57730         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57731         dependencies.
57732         (Files): Move lib/tempname.c...
57733         * modules/tempname: ...to this new module.
57734         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57735         (gl_PREREQ_TEMPNAME): Move...
57736         * m4/tempname.m4: ...to this new file.
57737         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57738         * modules/sys_stat (Depends-on): Add stat-macros.
57739         * lib/stat_.h (includes): Pick up stat macros.
57740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57741         if stat macros are broken.
57742         * lib/tempname.c (includes): No need to include "stat-macros.h".
57743         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57744         (direxists, __path_search) [!_LIBC]: Don't compile these in
57745         gnulib; the tmpdir module covers that.
57746         * lib/tempname.h: New file.
57747
57748 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57749
57750         * COPYING: Explain how gnulib-tool converts licence headers.
57751         Almost all wording by Eric Blake.
57752
57753 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57754
57755         * lib/mbchar.h (is_basic_table): Make read-only.
57756         * lib/mbchar.c (is_basic_table): Likewise.
57757         Reported by John Darrington.
57758
57759 2006-10-25  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/progname.h (set_program_name): Undefine before defining.
57762
57763 2006-10-25  Bruno Haible  <bruno@clisp.org>
57764
57765         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57766         false for non-gcc C++ compilers.
57767         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57768
57769 2006-10-24  Bruno Haible  <bruno@clisp.org>
57770
57771         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57772         iconv implementations like Irix iconv.
57773
57774 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57775
57776         * modules/vararrays: New file.
57777         * m4/vararrays.m4: New file, taken from diffutils.
57778         * MODULES.html.sh: New module vararrays.
57779
57780 2006-10-24  Karl Berry  <karl@gnu.org>
57781
57782         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57783         Don't call GNU Unix.
57784
57785 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57786
57787         * users.txt: Add Libtool.
57788
57789         Sync from Libtool:
57790
57791         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57792
57793         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57794         to gnulib's policy of including config.h unconditionally.
57795
57796 2006-10-24  Bruno Haible  <bruno@clisp.org>
57797
57798         * modules/wcwidth (Files): Add m4/wint_t.m4.
57799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57800         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57801
57802 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57803
57804         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57805         to pacify GCC with some -W flags enabled.  Problem reported by
57806         Bruno Haible.
57807
57808 2006-10-24  Jim Meyering  <jim@meyering.net>
57809
57810         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57811         Reported by Karl Berry.
57812
57813 2006-10-23  Bruno Haible  <bruno@clisp.org>
57814
57815         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57816
57817 2006-10-24  Bruno Haible  <bruno@clisp.org>
57818
57819         * lib/gl_list.h: Use C comment style, not C++ comment style.
57820
57821 2006-10-23  Eric Blake  <ebb9@byu.net>
57822
57823         * lib/getaddrinfo.c (includes): Add missing include.
57824
57825 2006-10-23  Bruno Haible  <bruno@clisp.org>
57826             Paul Eggert  <eggert@cs.ucla.edu>
57827
57828         Ability to rename obstack_free.
57829         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57830         obstack_free.
57831         (obstack_free): Invoke the __obstack_free macro.
57832         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57833
57834 2006-10-23  Bruno Haible  <bruno@clisp.org>
57835             Paul Eggert  <eggert@cs.ucla.edu>
57836
57837         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57838         __argc, __argv from the declaration. (They are defined as macros on
57839         mingw.)
57840
57841 2006-10-22  Bruno Haible  <bruno@clisp.org>
57842
57843         * doc/gnulib-intro.texi: New file.
57844         * doc/gnulib.texi: Include it.
57845
57846 2006-10-21  Bruno Haible  <bruno@clisp.org>
57847
57848         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57849         "Introduction", "Miscellanous Notes", "Particular Modules".
57850
57851 2006-10-21  Bruno Haible  <bruno@clisp.org>
57852
57853         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57854         Change mostlyclean-local rule to avoid sh syntax error from bash
57855         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57856
57857 2006-10-23  Jim Meyering  <jim@meyering.net>
57858
57859         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57860         in place of snprintf.
57861
57862         * modules/inttostr (Files): Add lib/uinttostr.c.
57863         * lib/uinttostr.c (inttostr): New file/function.
57864         * lib/inttostr.h (uinttostr): Declare.
57865         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57866         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57867         Add uinttostr.
57868         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57869
57870 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         * lib/canonicalize.c (ELOOP): Define if not already defined.
57873         Problem reported by Bruno Haible in
57874         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57875
57876 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57877
57878         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57879         Problem reported by Perry Smith and Ville Laurikari.
57880
57881         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57882         uses.
57883
57884 2006-10-19  Bruno Haible  <bruno@clisp.org>
57885
57886         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57887         for mingw.
57888
57889 2006-10-19  Bruno Haible  <bruno@clisp.org>
57890
57891         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57892         Needed for mingw.
57893
57894 2006-10-19  Bruno Haible  <bruno@clisp.org>
57895
57896         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57897
57898 2006-10-19  Bruno Haible  <bruno@clisp.org>
57899
57900         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57901         it.
57902
57903 2006-10-19  Bruno Haible  <bruno@clisp.org>
57904
57905         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57906         invocation.
57907
57908 2006-10-19  Bruno Haible  <bruno@clisp.org>
57909
57910         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57911         mountlist by default.
57912
57913 2006-10-16  Bruno Haible  <bruno@clisp.org>
57914
57915         * lib/c-strstr.c: Include c-strstr.h.
57916
57917 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57918
57919         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57920         in a slash.
57921
57922 2006-10-18  Bruno Haible  <bruno@clisp.org>
57923
57924         * lib/lock.h [C++]: Wrap definitions in extern "C".
57925
57926 2006-10-18  Bruno Haible  <bruno@clisp.org>
57927
57928         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57929         gl_LIBOBJS list.
57930
57931 2006-10-18  Bruno Haible  <bruno@clisp.org>
57932
57933         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57934
57935 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         * lib/xstrtol.h: Include gettext.h.
57938         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57939         Problem reported by Eric Blake.
57940         * modules/xstrtol (Depends-on): Add gettext-h.
57941
57942 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57943
57944         * lib/strftime.c (advance): New macro.
57945         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57946         incomplete type, so you can't add 0 to it.  Problem and patch
57947         reported by Eelco Dolstra for dietlibc.
57948
57949 2006-10-18  Jim Meyering  <jim@meyering.net>
57950
57951         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57952         type for a local, and rename it: s/up/user_proc/.
57953
57954 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57955
57956         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57957         READ_UTMP_USER_PROCESS.
57958         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57959
57960 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57961
57962         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57963         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57964
57965 2006-10-17  Eric Blake  <ebb9@byu.net>
57966
57967         * lib/sigprocmask.c (sigprocmask): Fix typo.
57968
57969         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57970
57971         * modules/clean-temp (Makefile.am): Don't add to make output...
57972         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57973         config.h.
57974
57975 2006-10-17  Bruno Haible  <bruno@clisp.org>
57976
57977         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57978         differently if DEFAULT_TEXT_DOMAIN is set.
57979
57980 2006-10-16  Bruno Haible  <bruno@clisp.org>
57981
57982         * lib/clean-temp.c: Include fwriteerror.h.
57983
57984 2006-10-16  Bruno Haible  <bruno@clisp.org>
57985
57986         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57987
57988 2006-10-16  Bruno Haible  <bruno@clisp.org>
57989
57990         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57991         * lib/sigprocmask.h: Include <sys/types.h>.
57992         (sigset_t): Use the system's definition if present.
57993
57994 2006-10-17  Eric Blake  <ebb9@byu.net>
57995
57996         * lib/xvasprintf.c (includes): Assume config.h.
57997         * lib/xasprintf.c (includes): Likewise.
57998
57999 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
58000
58001         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
58002         at least as wide as intmax_t.
58003
58004 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
58005
58006         (Imported from Automake.)
58007         * build-aux/gnupload: Update to version 1.1 of directive file.
58008
58009 2006-10-16  Eric Blake  <ebb9@byu.net>
58010
58011         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
58012         match Automake 1.10a.
58013
58014 2006-10-14  Bruno Haible  <bruno@clisp.org>
58015
58016         * modules/sigprocmask: New file.
58017         * lib/sigprocmask.h: New file.
58018         * lib/sigprocmask.c: New file.
58019         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
58020         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
58021         request sigprocmask.o.
58022         (gl_PREREQ_SIGPROCMASK): New macro.
58023         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
58024         (Depends-on): Add sigprocmask.
58025         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
58026         gt_SIGNALBLOCKING. Test for 'raise' only once.
58027         * lib/fatal-signal.c: Include sigprocmask.h.
58028         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
58029         unblock_fatal_signals): Define always.
58030         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58031         sigprocmask.
58032
58033 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
58034
58035         Sync from Automake.
58036         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
58037         which incorrectly sets the mode of an existing destination
58038         directory.  In some cases the unpatched install-sh could do the
58039         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
58040         system.  We hope this is rare in practice, but it's clearly worth
58041         fixing.  Problem reported by Alex Unleashed in
58042         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
58043         Also, don't bother to check for -m bugs unless we're using -m;
58044         suggested by Stepan Kasal.
58045
58046 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58047
58048         Sync from Automake.
58049         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
58050         `-c' flag, so they appear at the same position as in %FASTDEP%
58051         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
58052         which ignores unknown options only after the first non-option.
58053         Bug report against M4 by Nelson H. F. Beebe.
58054
58055 2006-10-13  Jim Meyering  <jim@meyering.net>
58056
58057         Fix a bug in yesterday's change.
58058         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
58059         p->fts_statp->st_dev would be used uninitialized.
58060         Ensures that we always call fts_stat on the very first entry.
58061         Miklos Szeredi reported that find -xdev stopped working.
58062
58063 2006-10-12  Bruno Haible  <bruno@clisp.org>
58064
58065         * gnulib-tool (func_get_automake_snippet): Append an automatically
58066         computed EXTRA_DIST augmentation.
58067         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
58068         * modules/alloca-opt (Makefile.am): Likewise.
58069         * modules/allocsa (Makefile.am): Likewise.
58070         * modules/arcfour (Makefile.am): Likewise.
58071         * modules/arctwo (Makefile.am): Likewise.
58072         * modules/argmatch (Makefile.am): Likewise.
58073         * modules/argz (Makefile.am): Likewise.
58074         * modules/atexit (Makefile.am): Likewise.
58075         * modules/backupfile (Makefile.am): Likewise.
58076         * modules/byteswap (Makefile.am): Likewise.
58077         * modules/c-strtod (Makefile.am): Likewise.
58078         * modules/c-strtold (Makefile.am): Likewise.
58079         * modules/calloc (Makefile.am): Likewise.
58080         * modules/canon-host (Makefile.am): Likewise.
58081         * modules/canonicalize (Makefile.am): Likewise.
58082         * modules/chdir-long (Makefile.am): Likewise.
58083         * modules/chdir-safer (Makefile.am): Likewise.
58084         * modules/check-version (Makefile.am): Likewise.
58085         * modules/chown (Makefile.am): Likewise.
58086         * modules/cloexec (Makefile.am): Likewise.
58087         * modules/close-stream (Makefile.am): Likewise.
58088         * modules/closeout (Makefile.am): Likewise.
58089         * modules/crc (Makefile.am): Likewise.
58090         * modules/csharpexec (Makefile.am): Likewise.
58091         * modules/cycle-check (Makefile.am): Likewise.
58092         * modules/des (Makefile.am): Likewise.
58093         * modules/dev-ino (Makefile.am): Likewise.
58094         * modules/dirfd (Makefile.am): Likewise.
58095         * modules/dirname (Makefile.am): Likewise.
58096         * modules/dup2 (Makefile.am): Likewise.
58097         * modules/eealloc (Makefile.am): Likewise.
58098         * modules/error (Makefile.am): Likewise.
58099         * modules/euidaccess (Makefile.am): Likewise.
58100         * modules/exclude (Makefile.am): Likewise.
58101         * modules/exitfail (Makefile.am): Likewise.
58102         * modules/fcntl-safer (Makefile.am): Likewise.
58103         * modules/fcntl (Makefile.am): Likewise.
58104         * modules/file-type (Makefile.am): Likewise.
58105         * modules/fileblocks (Makefile.am): Likewise.
58106         * modules/filemode (Makefile.am): Likewise.
58107         * modules/filenamecat (Makefile.am): Likewise.
58108         * modules/fnmatch (Makefile.am): Likewise.
58109         * modules/fopen-safer (Makefile.am): Likewise.
58110         * modules/fpending (Makefile.am): Likewise.
58111         * modules/fprintftime (Makefile.am): Likewise.
58112         * modules/free (Makefile.am): Likewise.
58113         * modules/fsusage (Makefile.am): Likewise.
58114         * modules/ftruncate (Makefile.am): Likewise.
58115         * modules/fts (Makefile.am): Likewise.
58116         * modules/gc-arcfour (Makefile.am): Likewise.
58117         * modules/gc-des (Makefile.am): Likewise.
58118         * modules/gc-hmac-md5 (Makefile.am): Likewise.
58119         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
58120         * modules/gc-md4 (Makefile.am): Likewise.
58121         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58122         * modules/gc-sha1 (Makefile.am): Likewise.
58123         * modules/gc (Makefile.am): Likewise.
58124         * modules/getaddrinfo (Makefile.am): Likewise.
58125         * modules/getcwd (Makefile.am): Likewise.
58126         * modules/getdelim (Makefile.am): Likewise.
58127         * modules/getdomainname (Makefile.am): Likewise.
58128         * modules/getgroups (Makefile.am): Likewise.
58129         * modules/gethostname (Makefile.am): Likewise.
58130         * modules/gethrxtime (Makefile.am): Likewise.
58131         * modules/getline (Makefile.am): Likewise.
58132         * modules/getloadavg (Makefile.am): Likewise.
58133         * modules/getlogin_r (Makefile.am): Likewise.
58134         * modules/getndelim2 (Makefile.am): Likewise.
58135         * modules/getopt (Makefile.am): Likewise.
58136         * modules/getpagesize (Makefile.am): Likewise.
58137         * modules/getpass-gnu (Makefile.am): Likewise.
58138         * modules/getpass (Makefile.am): Likewise.
58139         * modules/getsubopt (Makefile.am): Likewise.
58140         * modules/gettime (Makefile.am): Likewise.
58141         * modules/gettimeofday (Makefile.am): Likewise.
58142         * modules/getugroups (Makefile.am): Likewise.
58143         * modules/getusershell (Makefile.am): Likewise.
58144         * modules/glob (Makefile.am): Likewise.
58145         * modules/group-member (Makefile.am): Likewise.
58146         * modules/hard-locale (Makefile.am): Likewise.
58147         * modules/hash (Makefile.am): Likewise.
58148         * modules/hmac-md5 (Makefile.am): Likewise.
58149         * modules/hmac-sha1 (Makefile.am): Likewise.
58150         * modules/human (Makefile.am): Likewise.
58151         * modules/idcache (Makefile.am): Likewise.
58152         * modules/imaxabs (Makefile.am): Likewise.
58153         * modules/imaxdiv (Makefile.am): Likewise.
58154         * modules/inet_ntop (Makefile.am): Likewise.
58155         * modules/inet_pton (Makefile.am): Likewise.
58156         * modules/intprops (Makefile.am): Likewise.
58157         * modules/inttostr (Makefile.am): Likewise.
58158         * modules/inttypes (Makefile.am): Likewise.
58159         * modules/isapipe (Makefile.am): Likewise.
58160         * modules/javaversion (Makefile.am): Likewise.
58161         * modules/lchmod (Makefile.am): Likewise.
58162         * modules/lchown (Makefile.am): Likewise.
58163         * modules/localcharset (Makefile.am): Likewise.
58164         * modules/long-options (Makefile.am): Likewise.
58165         * modules/lstat (Makefile.am): Likewise.
58166         * modules/malloc (Makefile.am): Likewise.
58167         * modules/mathl (Makefile.am): Likewise.
58168         * modules/mbchar (Makefile.am): Likewise.
58169         * modules/md2 (Makefile.am): Likewise.
58170         * modules/md4 (Makefile.am): Likewise.
58171         * modules/md5 (Makefile.am): Likewise.
58172         * modules/memcasecmp (Makefile.am): Likewise.
58173         * modules/memchr (Makefile.am): Likewise.
58174         * modules/memcmp (Makefile.am): Likewise.
58175         * modules/memcoll (Makefile.am): Likewise.
58176         * modules/memcpy (Makefile.am): Likewise.
58177         * modules/memmem (Makefile.am): Likewise.
58178         * modules/memmove (Makefile.am): Likewise.
58179         * modules/mempcpy (Makefile.am): Likewise.
58180         * modules/memrchr (Makefile.am): Likewise.
58181         * modules/memset (Makefile.am): Likewise.
58182         * modules/memxor (Makefile.am): Likewise.
58183         * modules/mkancesdirs (Makefile.am): Likewise.
58184         * modules/mkdir-p (Makefile.am): Likewise.
58185         * modules/mkdir (Makefile.am): Likewise.
58186         * modules/mkdtemp (Makefile.am): Likewise.
58187         * modules/mkstemp (Makefile.am): Likewise.
58188         * modules/mktime (Makefile.am): Likewise.
58189         * modules/modechange (Makefile.am): Likewise.
58190         * modules/mountlist (Makefile.am): Likewise.
58191         * modules/nanosleep (Makefile.am): Likewise.
58192         * modules/obstack (Makefile.am): Likewise.
58193         * modules/openat (Makefile.am): Likewise.
58194         * modules/pagealign_alloc (Makefile.am): Likewise.
58195         * modules/pathmax (Makefile.am): Likewise.
58196         * modules/physmem (Makefile.am): Likewise.
58197         * modules/poll (Makefile.am): Likewise.
58198         * modules/posixtm (Makefile.am): Likewise.
58199         * modules/posixver (Makefile.am): Likewise.
58200         * modules/putenv (Makefile.am): Likewise.
58201         * modules/quote (Makefile.am): Likewise.
58202         * modules/quotearg (Makefile.am): Likewise.
58203         * modules/raise (Makefile.am): Likewise.
58204         * modules/read-file (Makefile.am): Likewise.
58205         * modules/readline (Makefile.am): Likewise.
58206         * modules/readlink (Makefile.am): Likewise.
58207         * modules/readtokens (Makefile.am): Likewise.
58208         * modules/readutmp (Makefile.am): Likewise.
58209         * modules/realloc (Makefile.am): Likewise.
58210         * modules/regex (Makefile.am): Likewise.
58211         * modules/rename-dest-slash (Makefile.am): Likewise.
58212         * modules/rename (Makefile.am): Likewise.
58213         * modules/rijndael (Makefile.am): Likewise.
58214         * modules/rmdir (Makefile.am): Likewise.
58215         * modules/rpmatch (Makefile.am): Likewise.
58216         * modules/safe-read (Makefile.am): Likewise.
58217         * modules/safe-write (Makefile.am): Likewise.
58218         * modules/same-inode (Makefile.am): Likewise.
58219         * modules/same (Makefile.am): Likewise.
58220         * modules/save-cwd (Makefile.am): Likewise.
58221         * modules/savedir (Makefile.am): Likewise.
58222         * modules/setenv (Makefile.am): Likewise.
58223         * modules/settime (Makefile.am): Likewise.
58224         * modules/sha1 (Makefile.am): Likewise.
58225         * modules/sig2str (Makefile.am): Likewise.
58226         * modules/snprintf (Makefile.am): Likewise.
58227         * modules/stat-macros (Makefile.am): Likewise.
58228         * modules/stat-time (Makefile.am): Likewise.
58229         * modules/stdbool (Makefile.am): Likewise.
58230         * modules/stdint (Makefile.am): Likewise.
58231         * modules/stdlib-safer (Makefile.am): Likewise.
58232         * modules/stpcpy (Makefile.am): Likewise.
58233         * modules/stpncpy (Makefile.am): Likewise.
58234         * modules/strcase (Makefile.am): Likewise.
58235         * modules/strcasestr (Makefile.am): Likewise.
58236         * modules/strchrnul (Makefile.am): Likewise.
58237         * modules/strcspn (Makefile.am): Likewise.
58238         * modules/strdup (Makefile.am): Likewise.
58239         * modules/strerror (Makefile.am): Likewise.
58240         * modules/strftime (Makefile.am): Likewise.
58241         * modules/strndup (Makefile.am): Likewise.
58242         * modules/strnlen (Makefile.am): Likewise.
58243         * modules/strpbrk (Makefile.am): Likewise.
58244         * modules/strsep (Makefile.am): Likewise.
58245         * modules/strstr (Makefile.am): Likewise.
58246         * modules/strtod (Makefile.am): Likewise.
58247         * modules/strtoimax (Makefile.am): Likewise.
58248         * modules/strtok_r (Makefile.am): Likewise.
58249         * modules/strtol (Makefile.am): Likewise.
58250         * modules/strtoll (Makefile.am): Likewise.
58251         * modules/strtoul (Makefile.am): Likewise.
58252         * modules/strtoull (Makefile.am): Likewise.
58253         * modules/strtoumax (Makefile.am): Likewise.
58254         * modules/strverscmp (Makefile.am): Likewise.
58255         * modules/sys_socket (Makefile.am): Likewise.
58256         * modules/sys_stat (Makefile.am): Likewise.
58257         * modules/sysexits (Makefile.am): Likewise.
58258         * modules/time_r (Makefile.am): Likewise.
58259         * modules/timegm (Makefile.am): Likewise.
58260         * modules/timespec (Makefile.am): Likewise.
58261         * modules/tmpfile-safer (Makefile.am): Likewise.
58262         * modules/trim (Makefile.am): Likewise.
58263         * modules/unistd-safer (Makefile.am): Likewise.
58264         * modules/unlinkdir (Makefile.am): Likewise.
58265         * modules/unlocked-io (Makefile.am): Likewise.
58266         * modules/userspec (Makefile.am): Likewise.
58267         * modules/utime (Makefile.am): Likewise.
58268         * modules/utimecmp (Makefile.am): Likewise.
58269         * modules/utimens (Makefile.am): Likewise.
58270         * modules/vasnprintf (Makefile.am): Likewise.
58271         * modules/vasprintf (Makefile.am): Likewise.
58272         * modules/vsnprintf (Makefile.am): Likewise.
58273         * modules/xalloc (Makefile.am): Likewise.
58274         * modules/xgetcwd (Makefile.am): Likewise.
58275         * modules/xnanosleep (Makefile.am): Likewise.
58276         * modules/xreadlink (Makefile.am): Likewise.
58277         * modules/xstrtod (Makefile.am): Likewise.
58278         * modules/xstrtol (Makefile.am): Likewise.
58279         * modules/xstrtold (Makefile.am): Likewise.
58280         * modules/yesno (Makefile.am): Likewise.
58281         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58282
58283 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58284
58285         * modules/error (Makefile.am): Distribute files through
58286         EXTRA_DIST, not lib_SOURCES.
58287
58288 2006-10-12  Eric Blake  <ebb9@byu.net>
58289
58290         * modules/error (Makefile.am): Distribute files in /lib.
58291         * modules/obstack (Makefile.am): Likewise.
58292
58293 2006-10-12  Bruno Haible  <bruno@clisp.org>
58294
58295         * modules/acl (Makefile.am): Distribute all files in lib/ through
58296         EXTRA_DIST.
58297         * modules/arcfour (Makefile.am): Likewise.
58298         * modules/arctwo (Makefile.am): Likewise.
58299         * modules/argmatch (Makefile.am): Likewise.
58300         * modules/argz (Makefile.am): Likewise.
58301         * modules/atexit (Makefile.am): Likewise.
58302         * modules/backupfile (Makefile.am): Likewise.
58303         * modules/c-strtod (Makefile.am): Likewise.
58304         * modules/c-strtold (Makefile.am): Likewise.
58305         * modules/calloc (Makefile.am): Likewise.
58306         * modules/canon-host (Makefile.am): Likewise.
58307         * modules/canonicalize (Makefile.am): Likewise.
58308         * modules/chdir-long (Makefile.am): Likewise.
58309         * modules/chdir-safer (Makefile.am): Likewise.
58310         * modules/check-version (Makefile.am): Likewise.
58311         * modules/chown (Makefile.am): Likewise.
58312         * modules/cloexec (Makefile.am): Likewise.
58313         * modules/close-stream (Makefile.am): Likewise.
58314         * modules/closeout (Makefile.am): Likewise.
58315         * modules/crc (Makefile.am): Likewise.
58316         * modules/cycle-check (Makefile.am): Likewise.
58317         * modules/des (Makefile.am): Likewise.
58318         * modules/dirfd (Makefile.am): Likewise.
58319         * modules/dirname (Makefile.am): Likewise.
58320         * modules/dup2 (Makefile.am): Likewise.
58321         * modules/euidaccess (Makefile.am): Likewise.
58322         * modules/exclude (Makefile.am): Likewise.
58323         * modules/exitfail (Makefile.am): Likewise.
58324         * modules/fcntl-safer (Makefile.am): Likewise.
58325         * modules/file-type (Makefile.am): Likewise.
58326         * modules/fileblocks (Makefile.am): Likewise.
58327         * modules/filemode (Makefile.am): Likewise.
58328         * modules/filenamecat (Makefile.am): Likewise.
58329         * modules/fnmatch (Makefile.am): Likewise.
58330         * modules/fopen-safer (Makefile.am): Likewise.
58331         * modules/fpending (Makefile.am): Likewise.
58332         * modules/fprintftime (Makefile.am): Likewise.
58333         * modules/free (Makefile.am): Likewise.
58334         * modules/fsusage (Makefile.am): Likewise.
58335         * modules/ftruncate (Makefile.am): Likewise.
58336         * modules/fts (Makefile.am): Likewise.
58337         * modules/gc (Makefile.am): Likewise.
58338         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58339         * modules/getaddrinfo (Makefile.am): Likewise.
58340         * modules/getcwd (Makefile.am): Likewise.
58341         * modules/getdelim (Makefile.am): Likewise.
58342         * modules/getdomainname (Makefile.am): Likewise.
58343         * modules/getgroups (Makefile.am): Likewise.
58344         * modules/gethostname (Makefile.am): Likewise.
58345         * modules/gethrxtime (Makefile.am): Likewise.
58346         * modules/getline (Makefile.am): Likewise.
58347         * modules/getloadavg (Makefile.am): Likewise.
58348         * modules/getlogin_r (Makefile.am): Likewise.
58349         * modules/getopt (Makefile.am): Likewise.
58350         * modules/getpass (Makefile.am): Likewise.
58351         * modules/getpass-gnu (Makefile.am): Likewise.
58352         * modules/getsubopt (Makefile.am): Likewise.
58353         * modules/gettime (Makefile.am): Likewise.
58354         * modules/gettimeofday (Makefile.am): Likewise.
58355         * modules/getugroups (Makefile.am): Likewise.
58356         * modules/getusershell (Makefile.am): Likewise.
58357         * modules/glob (Makefile.am): Likewise.
58358         * modules/group-member (Makefile.am): Likewise.
58359         * modules/hard-locale (Makefile.am): Likewise.
58360         * modules/hash (Makefile.am): Likewise.
58361         * modules/hmac-md5 (Makefile.am): Likewise.
58362         * modules/hmac-sha1 (Makefile.am): Likewise.
58363         * modules/human (Makefile.am): Likewise.
58364         * modules/idcache (Makefile.am): Likewise.
58365         * modules/imaxabs (Makefile.am): Likewise.
58366         * modules/imaxdiv (Makefile.am): Likewise.
58367         * modules/inet_ntop (Makefile.am): Likewise.
58368         * modules/inet_pton (Makefile.am): Likewise.
58369         * modules/inttostr (Makefile.am): Likewise.
58370         * modules/isapipe (Makefile.am): Likewise.
58371         * modules/lchown (Makefile.am): Likewise.
58372         * modules/long-options (Makefile.am): Likewise.
58373         * modules/lstat (Makefile.am): Likewise.
58374         * modules/malloc (Makefile.am): Likewise.
58375         * modules/mathl (Makefile.am): Likewise.
58376         * modules/mbchar (Makefile.am): Likewise.
58377         * modules/md2 (Makefile.am): Likewise.
58378         * modules/md4 (Makefile.am): Likewise.
58379         * modules/md5 (Makefile.am): Likewise.
58380         * modules/memcasecmp (Makefile.am): Likewise.
58381         * modules/memchr (Makefile.am): Likewise.
58382         * modules/memcmp (Makefile.am): Likewise.
58383         * modules/memcoll (Makefile.am): Likewise.
58384         * modules/memcpy (Makefile.am): Likewise.
58385         * modules/memmem (Makefile.am): Likewise.
58386         * modules/memmove (Makefile.am): Likewise.
58387         * modules/mempcpy (Makefile.am): Likewise.
58388         * modules/memrchr (Makefile.am): Likewise.
58389         * modules/memset (Makefile.am): Likewise.
58390         * modules/memxor (Makefile.am): Likewise.
58391         * modules/mkancesdirs (Makefile.am): Likewise.
58392         * modules/mkdir (Makefile.am): Likewise.
58393         * modules/mkdir-p (Makefile.am): Likewise.
58394         * modules/mkdtemp (Makefile.am): Likewise.
58395         * modules/mkstemp (Makefile.am): Likewise.
58396         * modules/mktime (Makefile.am): Likewise.
58397         * modules/modechange (Makefile.am): Likewise.
58398         * modules/mountlist (Makefile.am): Likewise.
58399         * modules/nanosleep (Makefile.am): Likewise.
58400         * modules/openat (Makefile.am): Likewise.
58401         * modules/pagealign_alloc (Makefile.am): Likewise.
58402         * modules/physmem (Makefile.am): Likewise.
58403         * modules/poll (Makefile.am): Likewise.
58404         * modules/posixtm (Makefile.am): Likewise.
58405         * modules/posixver (Makefile.am): Likewise.
58406         * modules/putenv (Makefile.am): Likewise.
58407         * modules/quote (Makefile.am): Likewise.
58408         * modules/quotearg (Makefile.am): Likewise.
58409         * modules/raise (Makefile.am): Likewise.
58410         * modules/read-file (Makefile.am): Likewise.
58411         * modules/readline (Makefile.am): Likewise.
58412         * modules/readlink (Makefile.am): Likewise.
58413         * modules/readtokens (Makefile.am): Likewise.
58414         * modules/readutmp (Makefile.am): Likewise.
58415         * modules/realloc (Makefile.am): Likewise.
58416         * modules/regex (Makefile.am): Likewise.
58417         * modules/rename (Makefile.am): Likewise.
58418         * modules/rename-dest-slash (Makefile.am): Likewise.
58419         * modules/rijndael (Makefile.am): Likewise.
58420         * modules/rmdir (Makefile.am): Likewise.
58421         * modules/rpmatch (Makefile.am): Likewise.
58422         * modules/safe-read (Makefile.am): Likewise.
58423         * modules/safe-write (Makefile.am): Likewise.
58424         * modules/same (Makefile.am): Likewise.
58425         * modules/save-cwd (Makefile.am): Likewise.
58426         * modules/savedir (Makefile.am): Likewise.
58427         * modules/setenv (Makefile.am): Likewise.
58428         * modules/settime (Makefile.am): Likewise.
58429         * modules/sha1 (Makefile.am): Likewise.
58430         * modules/sig2str (Makefile.am): Likewise.
58431         * modules/snprintf (Makefile.am): Likewise.
58432         * modules/stdlib-safer (Makefile.am): Likewise.
58433         * modules/stpcpy (Makefile.am): Likewise.
58434         * modules/stpncpy (Makefile.am): Likewise.
58435         * modules/strcase (Makefile.am): Likewise.
58436         * modules/strcasestr (Makefile.am): Likewise.
58437         * modules/strchrnul (Makefile.am): Likewise.
58438         * modules/strcspn (Makefile.am): Likewise.
58439         * modules/strdup (Makefile.am): Likewise.
58440         * modules/strerror (Makefile.am): Likewise.
58441         * modules/strftime (Makefile.am): Likewise.
58442         * modules/strndup (Makefile.am): Likewise.
58443         * modules/strnlen (Makefile.am): Likewise.
58444         * modules/strpbrk (Makefile.am): Likewise.
58445         * modules/strsep (Makefile.am): Likewise.
58446         * modules/strstr (Makefile.am): Likewise.
58447         * modules/strtod (Makefile.am): Likewise.
58448         * modules/strtoimax (Makefile.am): Likewise.
58449         * modules/strtok_r (Makefile.am): Likewise.
58450         * modules/strtol (Makefile.am): Likewise.
58451         * modules/strtoll (Makefile.am): Likewise.
58452         * modules/strtoul (Makefile.am): Likewise.
58453         * modules/strtoull (Makefile.am): Likewise.
58454         * modules/strtoumax (Makefile.am): Likewise.
58455         * modules/strverscmp (Makefile.am): Likewise.
58456         * modules/time_r (Makefile.am): Likewise.
58457         * modules/timegm (Makefile.am): Likewise.
58458         * modules/tmpfile-safer (Makefile.am): Likewise.
58459         * modules/unistd-safer (Makefile.am): Likewise.
58460         * modules/unlinkdir (Makefile.am): Likewise.
58461         * modules/userspec (Makefile.am): Likewise.
58462         * modules/utime (Makefile.am): Likewise.
58463         * modules/utimecmp (Makefile.am): Likewise.
58464         * modules/utimens (Makefile.am): Likewise.
58465         * modules/vasnprintf (Makefile.am): Likewise.
58466         * modules/vasprintf (Makefile.am): Likewise.
58467         * modules/vsnprintf (Makefile.am): Likewise.
58468         * modules/xalloc (Makefile.am): Likewise.
58469         * modules/xgetcwd (Makefile.am): Likewise.
58470         * modules/xnanosleep (Makefile.am): Likewise.
58471         * modules/xreadlink (Makefile.am): Likewise.
58472         * modules/xstrtod (Makefile.am): Likewise.
58473         * modules/xstrtol (Makefile.am): Likewise.
58474         * modules/xstrtold (Makefile.am): Likewise.
58475         * modules/yesno (Makefile.am): Likewise.
58476
58477 2006-10-12  Jim Meyering  <jim@meyering.net>
58478
58479         * m4/getloadavg.m4: Revert the change below.
58480
58481         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58482         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58483         fail with a symlink, which is what coreutils' ./bootstrap now
58484         creates by default.
58485
58486 2006-10-12  Bruno Haible  <bruno@clisp.org>
58487
58488         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58489         mingw.
58490         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58491         MSVC and mingw explicitly.
58492
58493 2006-10-11  Simon Josefsson  <jas@extundo.com>
58494             Bruno Haible  <bruno@clisp.org>
58495
58496         Add support for multiple gnulib-tool invocations in the scope of a
58497         single configure.ac file.
58498         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58499         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58500         with the same contents as the _LIBADD variable.
58501         (func_emit_initmacro_start, func_emit_initmacro_end,
58502         func_emit_initmacro_done): New functions.
58503         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58504         gl_LIBOBJS and gl_LTLIBOBJS.
58505
58506 2006-10-11  Bruno Haible  <bruno@clisp.org>
58507
58508         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58509         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58510         autoreconf. Instead, invoke autopoint explicitly but move back the
58511         *.m4 files from gnulib.
58512
58513 2006-10-11  Bruno Haible  <bruno@clisp.org>
58514
58515         * gnulib-tool (func_usage): Make module names after --create-testdir
58516         optional.
58517         (func_create_testdir): If no module was specified, use nearly all
58518         modules.
58519
58520 2006-10-12  Jim Meyering  <jim@meyering.net>
58521
58522         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58523         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58524         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58525         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58526         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58527         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58528         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58529         (fts_set_stat_required): New function.
58530         (fts_open): Defer the calls to fts_stat, if possible or requested.
58531         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58532         into fts_stat itself.
58533         (fts_read): Perform any required (deferred) fts_stat call.
58534         (fts_build): Likewise, for the directory we're about to open and read.
58535         In the readdir loop, carefully decide whether each entry will require
58536         an eventual call to fts_stat, using dirent.d_type info if available.
58537         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58538         a command line argument into this function.  Update all callers.
58539         Map a return value of FTS_DOT to FTS_D for a command line argument.
58540         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58541         Thanks to Miklos Szeredi for his tenacity and for the initial
58542         bug report about "find" failing on a FUSE-based file system.
58543
58544         * lib/fts.c (fts_open): Use consistent indentation.
58545
58546 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58547
58548         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58549         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58550         reported by Jim Meyering.  All uses of cache variables renamed
58551         to match Autoconf's.
58552         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58553         the other one.
58554
58555         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58556         Fix misspelling in diagnostic.
58557
58558 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58561         defined.  Problem reported by Matthew Woehlke.
58562
58563         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58564         Add support for Tandem NonStop R series.
58565         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58566         Use new macro.
58567
58568         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58569         (has_trailing_slash): Omit size arg; all callers changed.
58570         Omit 'inline', since it doesn't help performance and we'd
58571         need to configure it.
58572         Don't count //, ///, etc. as having a trailing slash.
58573         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58574         (rpl_rename_dest_slash): On failure, use rename's errno rather
58575         than (in some cases) an incorrect or junk errno.
58576         Simplify code by removing need to compute length; this does
58577         cause it to make two passes instead of one over the file name,
58578         but it's worth it.
58579
58580         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58581         change, since Autoconf's version may no longer be appropriate now
58582         that we are using CVS Autoconf's version.  Add support for Tandem.
58583
58584 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58585             Bruno Haible  <bruno@clisp.org>
58586
58587         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58588         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58589         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58590         gl_AC_TYPE_LONG_LONG.
58591
58592         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58593         instead of HAVE_LONG_LONG.
58594         * lib/printf-args.c (printf_fetchargs): Likewise.
58595         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58596         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58597         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58598         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58599         gl_AC_TYPE_LONG_LONG.
58600
58601 2006-10-11  Bruno Haible  <bruno@clisp.org>
58602
58603         * m4/longlong.m4: Add comments.
58604         * m4/ulonglong.m4: Likewise.
58605
58606 2006-10-10  Bruno Haible  <bruno@clisp.org>
58607
58608         Make it possible to #define stpcpy, strdup to aliases.
58609         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58610         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58611
58612 2006-10-10  Bruno Haible  <bruno@clisp.org>
58613
58614         Make it possible to #define gcd to an alias.
58615         * lib/gcd.c: Include config.h.
58616
58617 2006-10-10  Bruno Haible  <bruno@clisp.org>
58618
58619         Make it possible to #define c_isascii to an alias.
58620         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58621         defined. Undefine the macros before defining them, to avoid gcc
58622         warnings.
58623         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58624         define NO_C_CTYPE_MACROS early.
58625
58626 2006-10-10  Bruno Haible  <bruno@clisp.org>
58627
58628         Make it possible to #define set_program_name to an alias.
58629         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58630         ENABLE_RELOCATABLE early.
58631
58632 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58633
58634         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58635         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58636         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58637         More generally, don't assume that 64-bit signed int is available
58638         if unsigned int is, and vice versa.
58639         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58640         unsigned symbols, not on their signed counterparts.
58641         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58642         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58643         (UINT64_C, UINTMAX_C):
58644         Likewise.
58645         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58646         unsigned counterparts.
58647         (Have_long_long, Unsigned): New macros.
58648         (Int): Renamed from INT.
58649         (strtoimax): Use the new macros.
58650         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58651         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58652         * modules/inttypes (inttypes.h): Substitute
58653         HAVE_UNSIGNED_LONG_LONG_INT.
58654         * modules/stdint (stdint.h): Likewise.
58655         (Files): Add m4/ulonglong.m4.
58656
58657 2006-10-10  Bruno Haible  <bruno@clisp.org>
58658
58659         Fix a gcc -Wshadow warning.
58660         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58661         to 'bucket'.
58662         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58663         gl_linked_indexof_from_to): Likewise.
58664         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58665         Likewise.
58666         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58667         Likewise.
58668         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58669         Reported by Eric Blake.
58670
58671 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58674         for NetBSD.  Problem reported by Bruno Haible.
58675
58676 2006-10-09  Jim Meyering  <jim@meyering.net>
58677
58678         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58679         Patch from Bruno Haible.
58680
58681 2006-10-09  Jim Meyering  <jim@meyering.net>
58682
58683         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58684         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58685         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58686
58687 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58688
58689         Don't include <config.h> twice; this doesn't work in some cases,
58690         e.g., when config.h has "#define intmax_t long long int" and
58691         we include <config.h>, <inttypes.h>, <config.h> in that order.
58692         Problem reported by Matthew Woehlke in:
58693         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58694         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58695         * lib/fts-cycle.c: Don't include config.h.
58696         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58697         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58698         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58699         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58700         inttypes.h.
58701         * lib/xstrtoumax.c: Likewise.
58702         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58703         __strtol and the like, so that this module is more like its siblings.
58704         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58705         Remove; no longer needed now that we assume gnulib inttypes.h.
58706
58707 2006-10-08  Bruno Haible  <bruno@clisp.org>
58708
58709         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58710         option.
58711
58712 2006-10-07  Jim Meyering  <jim@meyering.net>
58713
58714         * modules/inttypes (inttypes.h): Revert what seems to have been
58715         an inadvertent part of today's change: use "|", not "/" in the
58716         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58717
58718 2006-10-07  Bruno Haible  <bruno@clisp.org>
58719
58720         * modules/sublist: New file.
58721
58722 2006-10-07  Bruno Haible  <bruno@clisp.org>
58723
58724         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58725         * modules/argz (argz.h): Likewise.
58726         * modules/arpa_inet (arpa/inet.h): Likewise.
58727         * modules/byteswap (byteswap.h): Likewise.
58728         * modules/configmake (configmake.h): Likewise.
58729         * modules/fcntl (fcntl.h): Likewise.
58730         * modules/fnmatch (fnmatch.h): Likewise.
58731         * modules/getopt (getopt.h): Likewise.
58732         * modules/glob (glob.h): Likewise.
58733         * modules/inttypes (inttypes.h): Likewise.
58734         * modules/netinet_in (netinet/in.h): Likewise.
58735         * modules/poll (poll.h): Likewise.
58736         * modules/stdbool (stdbool.h): Likewise.
58737         * modules/stdint (stdint.h): Likewise.
58738         * modules/sys_select (sys/select.h): Likewise.
58739         * modules/sys_socket (sys/socket.h): Likewise.
58740         * modules/sys_stat (sys/stat.h): Likewise.
58741         * modules/sysexits (sysexits.h): Likewise.
58742         * modules/unistd (unistd.h): Likewise.
58743         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58744         Add a "DO NOT EDIT" comment to the generated file.
58745         (func_import): Likewise for gnulib-comp.m4.
58746
58747 2006-10-07  Bruno Haible  <bruno@clisp.org>
58748
58749         * lib/gl_sublist.h: New file.
58750         * lib/gl_sublist.c: New file.
58751
58752 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58753
58754         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58755         name (relative to the original working directory) and the file
58756         name component (relative to the temporary working directory).  All
58757         callers changed.
58758         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58759         * lib/mkdir-p.c (make_dir_parents): Likewise.
58760         * lib/mkdir-p.h (make_dir_parents): Likewise.
58761
58762 2006-10-06  Eric Blake  <ebb9@byu.net>
58763
58764         Define several macros for use by the clean-temp module.
58765         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58766         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58767         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58768
58769         * lib/clean-temp.h (close_stream_temp): New declaration.
58770         * lib/clean-temp.c (includes): Pull in headers according to what
58771         other modules are in use.
58772         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58773
58774 2006-10-06  Bruno Haible  <bruno@clisp.org>
58775
58776         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58777         instead of fopen, fwriteerror.
58778
58779 2006-10-06  Bruno Haible  <bruno@clisp.org>
58780
58781         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58782         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58783         int.
58784         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58785         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58786         Return an error indicator.
58787         Suggested by Eric Blake.
58788
58789 2006-10-06  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58792         Reported by Eric Blake.
58793
58794 2006-10-06  Bruno Haible  <bruno@clisp.org>
58795
58796         * modules/closeout (Description): Mention stderr too.
58797
58798 2006-10-06  Bruno Haible  <bruno@clisp.org>
58799         and Paul Eggert  <eggert@cs.ucla.edu>
58800
58801         * lib/closeout.c (close_stdout): Also close stderr.
58802         * lib/closeout.h: Update comment.
58803
58804 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58805
58806         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58807         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58808         * lib/dirchownmod.c: Include lchown.h.
58809         * lib/lchown.c: Don't include files that lchown.h now includes.
58810         Don't declare chown, since lchown.h now does that.
58811         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58812         (lchown): Define to rpl_chown if lchown is declared but
58813         does not exist.  Declare using a prototype if lchown is not
58814         declared.  Add a copyright notice.
58815         * lib/mkstemp.h: Include <unistd.h>.
58816         * lib/openat.c: Include lchown.h.
58817
58818         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58819         we now test for that separately.
58820         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58821         rather than O_NOFOLLOW, when testing whether it's possible to
58822         avoid a race condition reliably.
58823         * lib/savewd.c (savewd_chdir): Likewise.
58824
58825         Remove macros that are no longer needed now that stdint.h is
58826         reliable.
58827         * lib/fsusage.c (UINTMAX_MAX): Remove.
58828         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58829         * lib/utimecmp.c (SIZE_MAX): Remove.
58830
58831         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58832
58833         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58834         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58835         O_NOATIME works.
58836
58837 2006-10-05  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/gl_list.h (gl_sortedlist_search_from_to,
58840         gl_sortedlist_indexof_from_to): New declarations.
58841         (gl_list_implementation): New fields sortedlist_search_from_to,
58842         sortedlist_indexof_from_to.
58843         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58844         inline functions.
58845         * lib/gl_list.c (gl_sortedlist_search_from_to,
58846         gl_sortedlist_indexof_from_to): New functions.
58847         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58848         function.
58849         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58850         (gl_array_sortedlist_search_from_to): New function.
58851         (gl_array_list_implementation): Update.
58852         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58853         function.
58854         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58855         (gl_carray_sortedlist_search_from_to): New function.
58856         (gl_carray_list_implementation): Update.
58857         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58858         gl_linked_sortedlist_indexof_from_to): New functions.
58859         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58860         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58861         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58862         gl_tree_sortedlist_indexof_from_to): New functions.
58863         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58864         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58865         Update.
58866         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58867         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58868         Update.
58869
58870 2006-10-05  Bruno Haible  <bruno@clisp.org>
58871
58872         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58873         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58874         (struct gl_list_implementation): Add fields search_from_to,
58875         indexof_from_to. Remove fields search, indexof.
58876         (gl_list_search): Use the search_from_to method.
58877         (gl_list_search_from, gl_list_search_from_to): New functions.
58878         (gl_list_indexof): Use the indexof_from_to method.
58879         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58880         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58881         (gl_list_search_from, gl_list_search_from_to): New functions.
58882         (gl_list_indexof): Use the indexof_from_to method.
58883         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58884         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58885         gl_array_indexof. Add start_index, end_index arguments.
58886         (gl_array_search_from_to): Renamed from gl_array_search. Add
58887         start_index, end_index arguments.
58888         (gl_array_remove, gl_array_list_implementation): Update.
58889         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58890         gl_carray_indexof. Add start_index, end_index arguments.
58891         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58892         start_index, end_index arguments.
58893         (gl_carray_remove, gl_carray_list_implementation): Update.
58894         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58895         gl_linked_search. Add start_index, end_index arguments.
58896         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58897         start_index, end_index arguments.
58898         (gl_linked_remove): Update.
58899         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58900         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58901         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58902         field to 'size_t'.
58903         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58904         gl_tree_search. Add start_index, end_index arguments.
58905         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58906         start_index, end_index arguments.
58907         (gl_tree_remove): Update.
58908         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58909         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58910         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58911         function.
58912         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58913         gl_tree_search. Add start_index, end_index arguments.
58914         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58915         start_index, end_index arguments.
58916         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58917         Update.
58918         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58919
58920 2006-10-05  Bruno Haible  <bruno@clisp.org>
58921
58922         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58923
58924         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58925         fwriteerror_temp): New declarations.
58926         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58927         (descriptors): New variable.
58928         (cleanup): First, close the descriptors.
58929         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58930         fclose_temp, fwriteerror_temp): New functions.
58931
58932 2006-10-04  Jim Meyering  <jim@meyering.net>
58933
58934         * lib/fts.c (fts_open): Tiny comment change.
58935
58936 2006-10-04  Bruno Haible  <bruno@clisp.org>
58937
58938         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58939         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58940         gl_LOCK_BODY.
58941         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58942         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58943         gl_LOCK_EARLY_BODY.
58944         (gl_LOCK): Require gl_LOCK_BODY.
58945
58946 2006-10-04  Bruno Haible  <bruno@clisp.org>
58947
58948         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58949         (gl_oset_search_atleast): New declaration.
58950         (struct gl_oset_implementation): Add field 'search_atleast'.
58951         (gl_oset_search_atleast): New inline function.
58952         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58953         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58954         (gl_array_oset_implementation): Update.
58955         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58956         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58957         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58958
58959 2006-10-04  Bruno Haible  <bruno@clisp.org>
58960
58961         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58962
58963 2006-10-03  Bruno Haible  <bruno@clisp.org>
58964
58965         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58966         from gl_avltreehash_list_implementation.
58967
58968 2006-10-03  Bruno Haible  <bruno@clisp.org>
58969
58970         * lib/gl_oset.c (gl_oset_add): Fix return type.
58971
58972 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58973
58974         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58975
58976 2006-10-02  Eric Blake  <ebb9@byu.net>
58977
58978         * modules/strnlen (Depends-on): Add extensions.
58979
58980 2006-10-02  Eric Blake  <ebb9@byu.net>
58981
58982         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58983         definition in 2.60+.
58984
58985 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58986
58987         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58988         checks.
58989
58990 2006-10-02  Bruno Haible  <bruno@clisp.org>
58991
58992         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58993         to the AUTOMAKE_OPTIONS.
58994         Reported by Jim Meyering.
58995
58996 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58997
58998         Work around bug in Solaris 10 /proc file system:
58999         /proc/self/fd/NNN/.. isn't the parent directory of
59000         the directory whose file descriptor is NNN.  This needs to
59001         be worked around at run time, not compile time, since a
59002         program might be built on Solaris 8, where things work, and
59003         run on Solaris 10.
59004         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
59005         to use the following interface instead:
59006         (OPENAT_BUFFER_SIZE): New macro.
59007         (openat_proc_name): New function.
59008         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
59009         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
59010         Likewise.
59011         * lib/openat-proc.c: New file.
59012         * modules/openat (Files): Add lib/openat-proc.c.
59013         (Depends-on): Add same-inode, stdbool.
59014         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
59015
59016 2006-09-29  Bruno Haible  <bruno@clisp.org>
59017
59018         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
59019         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
59020         argument. Set stdout_closed before testing for ferror, not after.
59021         (fwriteerror, fwriteerror_no_ebadf): New functions.
59022
59023 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59024
59025         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
59026
59027 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
59028
59029         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
59030         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
59031
59032 2006-09-28  Jim Meyering  <jim@meyering.net>
59033
59034         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
59035         Include <unistd.h>.
59036
59037 2006-09-28  Bruno Haible  <bruno@clisp.org>
59038
59039         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
59040         * modules/linkedhash-list (Depends-on): Likewise.
59041         * modules/rbtreehash-list (Depends-on): Likewise.
59042
59043 2006-09-28  Bruno Haible  <bruno@clisp.org>
59044
59045         * lib/strndup.h: Simplify the redefinition of strndup.
59046         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
59047         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
59048
59049 2006-09-28  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
59052         * lib/gl_linkedhash_list.c: Likewise.
59053         * lib/gl_rbtreehash_list.c: Likewise.
59054
59055 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
59056
59057         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
59058         getaddrinfo.
59059
59060         * lib/__fpending.h: Don't include <stdio_ext.h> unless
59061         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
59062         it causes <stdio_ext.h> to cause a compile-time error.
59063         Problem reported by Nelson H. F. Beebe.
59064         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
59065         of HAVE_DECL___PENDING.
59066
59067         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
59068         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
59069         declaration.
59070
59071 2006-09-27  Jim Meyering  <jim@meyering.net>
59072
59073         This file could end up with a definition for a function
59074         named __strndup, rather than rpl_strndup on a system with
59075         incomplete weak_alias support.
59076         * lib/strndup.c (strndup): Rename from __strndup.
59077         Remove #defines that used to map __strndup to strndup.
59078         Don't use K&R prototypes.
59079         Remove LIBC-related code, since this file is not sync'd with glibc.
59080         * lib/strndup.h: Revamp, accordingly.
59081         * m4/strndup.m4: Modernize.
59082
59083 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
59084
59085         * modules/savewd (Depends-on): Add 'raise'.
59086         * lib/savewd.c: Include <signal.h>, for 'raise'.
59087
59088 2006-09-26  Jim Meyering  <jim@meyering.net>
59089
59090         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
59091         when we detect Darwin 8.7.0's acl_get_file bug.
59092         Rearrange to perform the new (below) run-test while $LIBS
59093         contains any acl-related library.  Set USE_ACL at the end.
59094         (gl_ACL_GET_FILE): New function.
59095
59096 2006-09-26  Eric Blake  <ebb9@byu.net>
59097
59098         * lib/verror.c: Include <config.h> unconditionally.
59099
59100 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
59101
59102         * modules/clock-time (Maintainer): Add self.
59103         * modules/getlogin_r (Depends-on): Add extensions.
59104
59105 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59106
59107         * modules/clock-time: New module.
59108         * modules/nanosleep (Depends-on): Add clock-time.
59109         * modules/gethrxtime (Depends-on): Likewise.
59110         * modules/gettime (Depends-on): Likewise.
59111         * modules/settime (Depends-on): Likewise.
59112
59113         * modules/fts-lgpl: Depend on openat.
59114         * modules/mkancesdirs: Depend on savewd.
59115         * modules/mkdir-p: Likewise.
59116
59117 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59118
59119         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
59120
59121         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
59122         `gl_have_arbitrary_file_name_length_limit' to
59123         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
59124         actually works between configure runs.
59125
59126 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59127             Bruno Haible  <bruno@clisp.org>
59128
59129         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
59130
59131 2006-09-25  Jim Meyering  <jim@meyering.net>
59132
59133         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
59134         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
59135
59136 2006-09-25  Eric Blake  <ebb9@byu.net>
59137
59138         * gnulib-tool (func_import, func_create_testdir): Fix typos in
59139         exec's in 2006-09-18 patch when shuffling fds.
59140
59141 2006-09-25  Bruno Haible  <bruno@clisp.org>
59142
59143         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
59144         Reported by Jim Meyering.
59145
59146 2006-09-24  Jim Meyering  <jim@meyering.net>
59147
59148         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
59149         compare a pointer against a literal "0".  That caused failures with
59150         at least HP-UX's hpcc.
59151
59152 2006-09-22  Simon Josefsson  <jas@extundo.com>
59153
59154         * modules/gc-sha1:
59155         * modules/gc-md4:
59156         * modules/gc-hmac-sha1:
59157         * modules/gc-hmac-md5:
59158         * modules/gc-des:
59159         * modules/gc-arcfour: Distribute more files.
59160
59161 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59162
59163         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
59164         (gl_linked_iterator_from_to): Initialize struct completely.
59165         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
59166         (gl_tree_iterator_from_to): Likewise
59167         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
59168         * lib/gl_array_list.c [lint] (gl_array_iterator)
59169         (gl_array_iterator_from_to): Likewise.
59170         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
59171         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
59172         (gl_carray_iterator_from_to): Likewise.
59173
59174         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
59175         * lib/md4.c (md4_process_block): Remove unused variable.
59176         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
59177         parentheses for clarity.
59178
59179 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59180
59181         * modules/bison-i18n (Depends-on): Add gettext.
59182
59183 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59184
59185         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
59186         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59187         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
59188         also add missing comma that caused broken test.
59189         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
59190         stdlib.h, for `abort'.
59191         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
59192         variables.
59193         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
59194         include unistd.h if present, for `rmdir'.
59195         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
59196         variables.
59197         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
59198         in the process include standard headers for prototypes.
59199         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
59200         gets declared on GNU/Linux.
59201         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
59202         unistd.h, for `rmdir'.
59203         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
59204
59205         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
59206         always true.
59207         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
59208
59209         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
59210
59211 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59212
59213         * gnulib-tool (func_version): Create output all at once.  This
59214         may help avoid triggering unnecessary SIGPIPEs, and at any
59215         rate it doesn't hurt.
59216
59217 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59218             Bruno Haible  <bruno@clisp.org>
59219
59220         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59221         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59222         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59223
59224         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59225         (gl_FUNC_VASPRINTF): Invoke it.
59226
59227 2006-09-22  Bruno Haible  <bruno@clisp.org>
59228
59229         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59230         getloadavg.c as first argument.
59231
59232 2006-09-22  Bruno Haible  <bruno@clisp.org>
59233
59234         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59235         at the beginning of the gl_INIT macro.
59236         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59237         gl_GETLOADAVG.
59238
59239 2006-09-22  Bruno Haible  <bruno@clisp.org>
59240
59241         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59242         module.
59243         Suggested by Ralf Wildenhues.
59244
59245 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59246
59247         Import this patch from libc:
59248
59249         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59250
59251         * lib/regex_internal.c (re_string_reconstruct): Handle
59252         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59253         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59254         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59255         re_string_context_at.
59256
59257         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59258         now requires it.
59259         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59260         gl_REGEX now does it for us.
59261         (gl_REGEX): Add test taken from
59262         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59263
59264         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59265         Check that large offsets work.  Modernize Autoconf usages.
59266         Prefer "yes" to mean a good thing rather than a bad.
59267         Don't put "#define mkstemp" in config.h, as this might interfere
59268         with standard system headers that "#define mkstemp mkstemp64".
59269
59270         * modules/mkstemp (Depends-on): Add extensions, so that
59271         mkstemp is visible on some platforms.
59272         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59273         (Include): Change to "mkstemp.h" from <stdlib.h>.
59274         (Files): Add mkstemp.h.
59275
59276         * lib/mkstemp.h: New file, since some standard headers
59277         #define mkstemp.
59278         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59279         Include "mkstemp.h".
59280         Make the _LIBC code resemble glibc original more,
59281         e.g., use K&R style.
59282         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59283         (mkstemp): Remove, since mkstemp.h does this for us.
59284         * lib/stdlib--.h: Include mkstemp.h.
59285
59286         Import this patch from libc:
59287
59288         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59289
59290         * lib/tempname.c (__gen_tempname): Change attempts_min
59291         into a macro.  Use preprocessor to decide how to initialize
59292         attempts [Coverity CID 67].
59293
59294 2006-09-20  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/mkdtemp.c: Import from libc.
59297         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59298                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59299                 attempts_min into a macro.  Use preprocessor to decide how to
59300                 initialize attempts [Coverity CID 67].
59301         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59302                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59303                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59304
59305 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59306
59307         * gnulib-tool (func_exit): New function, to allow to pass the
59308         exit status portably through the trap.  Use everywhere.
59309         (--help, --version): Signal a write error.
59310         (trap): catch SIGPIPE, for write errors.
59311         Exit at the end of the trap, with the correct exit status.
59312
59313 2006-09-19  Karl Berry  <karl@gnu.org>
59314
59315         * doc/gnulib.texi: note about the license texinfo files.
59316
59317 2006-09-19  Eric Blake  <ebb9@byu.net>
59318
59319         * gnulib-tool: Avoid space-tab.
59320
59321 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59322
59323         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59324         that prevented coreutils 6.1 from building.  Problem reported
59325         by Petter Reinholdtsen.
59326
59327 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59328
59329         * gnulib-tool (avoidlist): Fix typo that broke options like
59330         --avoid=lock that are used by coreutils bootstrap.
59331
59332 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59333
59334         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59335         more systematically.
59336
59337 2006-09-18  Jim Meyering  <jim@meyering.net>
59338
59339         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59340
59341 2006-09-18  Bruno Haible  <bruno@clisp.org>
59342
59343         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59344
59345 2006-09-18  Bruno Haible  <bruno@clisp.org>
59346
59347         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59348         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59349         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59350         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59351         * m4/gettext.m4: Require autoconf >= 2.52.
59352         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59353         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59354         of gl_cv_header_inttypes_h.
59355
59356 2006-09-18  Bruno Haible  <bruno@clisp.org>
59357
59358         * lib/javaversion.c: Include configmake.h.
59359
59360 2006-09-18  Bruno Haible  <bruno@clisp.org>
59361
59362         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59363         avoid that the while loops be executed in a subshell.
59364
59365 2006-09-18  Bruno Haible  <bruno@clisp.org>
59366
59367         * MODULES.html.sh (func_module): Break long lines.
59368         Suggested by Bruce Korb <bkorb@gnu.org>.
59369
59370 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59371
59372         Speed up by a factor of 1.12.
59373         * gnulib-tool (nl): New variable.
59374         (func_import): Rewrite include directive extraction to only read each
59375         directive once.
59376
59377 2006-09-17  Bruno Haible  <bruno@clisp.org>
59378
59379         * modules/javaversion (Makefile.am): Remove DEFS setting.
59380         (Depends-on): Add configmake, for PKGDATADIR definition.
59381
59382 2006-09-17  Bruno Haible  <bruno@clisp.org>
59383
59384         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59385
59386 2006-09-17  Bruno Haible  <bruno@clisp.org>
59387
59388         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59389         (func_modules_transitive_closure, func_modules_add_dummy,
59390         func_modules_to_filelist, func_import, func_create_testdir,
59391         func_create_megatestdir, ...): Use it wherever possible.
59392         Suggested by Ralf Wildenhues.
59393
59394 2006-09-16  Karl Berry  <karl@gnu.org>
59395
59396         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59397         to avoid sectioning errors.
59398         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59399         [ifinfo]: blank line after @center-ed titles.
59400         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59401         Spell FSF address consistently with others.
59402         (These changes approved by rms.)
59403
59404 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59405
59406         Speed up by a factor of 1.61.
59407         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59408         already checked module names again.
59409
59410 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59411
59412         Speed up by a factor of 1.13.
59413         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59414         for new_files, and the input to func_add_or_update.
59415
59416 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59417
59418         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59419         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59420
59421 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59422
59423         * modules/mkancesdirs (Depends-on): Add fcntl.
59424         * modules/savewd: New file.
59425         * MODULES.html.sh (File system functions): Add savewd.
59426
59427         * modules/configmake (Makefile.am): Add support for the
59428         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59429
59430 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59431
59432         * m4/savewd.m4: New file.
59433
59434 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59435
59436         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59437         (dirchownmod): New arg FD.  All callers changed.
59438         Use FD rather than opening the directory ourself, as opening is
59439         now the caller's responsibility.
59440         * lib/dirchownmod.h: Likewise.
59441         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59442         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59443         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59444         (test_dir): Remove.
59445         (mkancesdirs): Return length of prefix of FILE that has already
59446         been made, or -2 if there is a child doing the work.  Redo
59447         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59448         ".", and treat ".." specially since it might stray back into
59449         already-created areas.  Use a subprocess if necessary.  New arg
59450         WD; all users changed.  MAKE_DIR function should now return 1
59451         if it creates a directory that is not readable.  Return -2 if
59452         a child process is spun off.
59453         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59454         Adjust signature to match code.
59455         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59456         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59457         all users changed.
59458         * lib/savewd.c, lib/savewd.h: New files.
59459
59460 2006-09-15  Jim Meyering  <jim@meyering.net>
59461
59462         * modules/rename-dest-slash: New module.
59463         * MODULES.html.sh (posix_compat): Add it here.
59464
59465         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59466
59467 2006-09-15  Jim Meyering  <jim@meyering.net>
59468
59469         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59470         file.
59471
59472         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59473
59474 2006-09-15  Jim Meyering  <jim@meyering.net>
59475
59476         * lib/rename-dest-slash.c (has_trailing_slash): Use
59477         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59478         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59479         test before testing whether SRC is a directory.
59480         Suggestions from Bruno Haible.
59481
59482         Avoid a warning about an unused variable.
59483         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59484         into the #ifdef block where it's used.
59485
59486         * lib/rename-dest-slash.c: New file.
59487
59488 2006-09-14  Bruno Haible  <bruno@clisp.org>
59489
59490         * lib/allocsa.c: Include <config.h> unconditionally.
59491         * lib/asnprintf.c: Likewise.
59492         * lib/asprintf.c: Likewise.
59493         * lib/c-strcasecmp.c: Likewise.
59494         * lib/c-strcasestr.c: Likewise.
59495         * lib/c-strncasecmp.c: Likewise.
59496         * lib/c-strstr.c: Likewise.
59497         * lib/classpath.c: Likewise.
59498         * lib/clean-temp.c: Likewise.
59499         * lib/concatpath.c: Likewise.
59500         * lib/copy-file.c: Likewise.
59501         * lib/csharpcomp.c: Likewise.
59502         * lib/csharpexec.c: Likewise.
59503         * lib/execute.c: Likewise.
59504         * lib/fatal-signal.c: Likewise.
59505         * lib/findprog.c: Likewise.
59506         * lib/fwriteerror.c: Likewise.
59507         * lib/gl_array_list.c: Likewise.
59508         * lib/gl_array_oset.c: Likewise.
59509         * lib/gl_avltree_list.c: Likewise.
59510         * lib/gl_avltree_oset.c: Likewise.
59511         * lib/gl_avltreehash_list.c: Likewise.
59512         * lib/gl_carray_list.c: Likewise.
59513         * lib/gl_linked_list.c: Likewise.
59514         * lib/gl_linkedhash_list.c: Likewise.
59515         * lib/gl_list.c: Likewise.
59516         * lib/gl_oset.c: Likewise.
59517         * lib/gl_rbtree_list.c: Likewise.
59518         * lib/gl_rbtree_oset.c: Likewise.
59519         * lib/gl_rbtreehash_list.c: Likewise.
59520         * lib/imaxabs.c: Likewise.
59521         * lib/imaxdiv.c: Likewise.
59522         * lib/javacomp.c: Likewise.
59523         * lib/javaexec.c: Likewise.
59524         * lib/javaversion.c: Likewise.
59525         * lib/linebreak.c: Likewise.
59526         * lib/localcharset.c: Likewise.
59527         * lib/lock.c: Likewise.
59528         * lib/mbchar.c: Likewise.
59529         * lib/mbswidth.c: Likewise.
59530         * lib/mkdtemp.c: Likewise.
59531         * lib/pipe.c: Likewise.
59532         * lib/printf-args.c: Likewise.
59533         * lib/printf-parse.c: Likewise.
59534         * lib/progname.c: Likewise.
59535         * lib/progreloc.c: Likewise.
59536         * lib/readlink.c: Likewise.
59537         * lib/sh-quote.c: Likewise.
59538         * lib/stpcpy.c: Likewise.
59539         * lib/stpncpy.c: Likewise.
59540         * lib/strcasecmp.c: Likewise.
59541         * lib/strcasestr.c: Likewise.
59542         * lib/strcspn.c: Likewise.
59543         * lib/striconv.c: Likewise.
59544         * lib/strncasecmp.c: Likewise.
59545         * lib/strnlen1.c: Likewise.
59546         * lib/strstr.c: Likewise.
59547         * lib/strtok_r.c: Likewise.
59548         * lib/tls.c: Likewise.
59549         * lib/tmpdir.c: Likewise.
59550         * lib/unicodeio.c: Likewise.
59551         * lib/unsetenv.c: Likewise.
59552         * lib/vasnprintf.c: Likewise.
59553         * lib/vasprintf.c: Likewise.
59554         * lib/wait-process.c: Likewise.
59555         * lib/xallocsa.c: Likewise.
59556         * lib/xsetenv.c: Likewise.
59557         * lib/xstriconv.c: Likewise.
59558
59559 2006-09-13  Simon Josefsson  <jas@extundo.com>
59560
59561         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59562         that internally, suggested by Ralf Wildenhues
59563         <Ralf.Wildenhues@gmx.de>.
59564
59565 2006-09-13  Simon Josefsson  <jas@extundo.com>
59566
59567         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59568         @LIBOBJS@.
59569         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59570
59571 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59572
59573         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59574         longer worry about uses that don't define HAVE_CONFIG_H.
59575         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59576         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59577         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59578         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59579         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59580         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59581         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59582         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59583         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59584         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59585         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59586         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59587         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59588         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59589         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59590         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59591         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59592         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59593         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59594         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59595         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59596         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59597         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59598         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59599         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59600         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59601         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59602         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59603         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59604         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59605         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59606         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59607         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59608         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59609         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59610         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59611         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59612         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59613         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59614         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59615         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59616         Likewise.
59617
59618 2006-09-13  Eric Blake  <ebb9@byu.net>
59619
59620         * lib/getopt.c: Fix typo in last commit.
59621
59622 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59623
59624         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59625         dgettext.
59626
59627 2006-09-12  Jim Meyering  <jim@meyering.net>
59628
59629         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59630         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59631         Reported by Nelson H. F. Beebe.
59632
59633 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59634
59635         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59636         program_invocation_name and program_invocation_short_name are
59637         initialized.
59638         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59639         and program_invocation_short_name to argp.h, so they are visible
59640         to user programs.
59641         * lib/argp.h: Likewise
59642
59643 2006-09-10  Bruno Haible  <bruno@clisp.org>
59644
59645         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59646         m4/inttypes_h.m4, m4/uintmax_t.m4.
59647
59648 2006-09-10  Bruno Haible  <bruno@clisp.org>
59649
59650         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59651         gl_AC_TYPE_UINTMAX_T.
59652
59653 2006-09-10  Bruno Haible  <bruno@clisp.org>
59654
59655         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59656
59657 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59658
59659         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59660         convention.  Text proposed by Bruno Haible.
59661         (struct argp_option): Document the use of N_() wrappers.
59662
59663         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59664         '\v', and translate the two parts separately, instead of feeding
59665         the whole string to gettext.  This allows to exclude
59666         '\v' from the strings visible to the translator by writing doc
59667         strings as N_("..") "\v" N_("..").
59668
59669 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59670
59671         * config/srclist.txt: Undo latest change; the bug was fixed.
59672
59673 2006-09-09  Bruno Haible  <bruno@clisp.org>
59674
59675         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59676         assignments if building a library without libtool.
59677         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59678         in func_emit_lib_Makefile_am.
59679         (func_import): When building a static library libfoo.a, arrange to
59680         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59681         (func_create_testdir): Likewise.
59682         * modules/gc (configure.ac, Makefile.am): If building statically,
59683         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59684         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59685         * modules/striconv (configure.ac, Makefile.am): Likewise.
59686         Based on a suggestion by Ralf Wildenhues.
59687
59688 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59689
59690         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59691         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59692         Also:
59693
59694         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59695         Add year_2050_test to catch glibc bug 2821
59696         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59697
59698         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59699         Prefer #ifdef to #if.
59700
59701         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59702         Return from 'main' instead of calling 'exit'.
59703
59704 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59707         returned the maximum time_t value rather than (time_t) -1.
59708         Problem originally reported by William Bardwell
59709         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59710
59711         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59712         Moved to here ...
59713         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59714         ... from here.
59715
59716 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59717
59718         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59719         2821 is fixed.
59720
59721 2006-09-08  Jim Meyering  <jim@meyering.net>
59722
59723         Don't make generated files read-only.  That would bother too many
59724         people.  However, do retain the ability to work when targets are
59725         read-only: remove the destination and temporary files before writing
59726         them (when generated via sed or echo), or by using the -f option for
59727         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59728         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59729         * modules/byteswap, modules/configmake, modules/fcntl:
59730         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59731         * modules/localcharset, modules/netinet_in, modules/poll:
59732         * modules/stdbool, modules/stdint, modules/sys_select:
59733         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59734
59735 2006-09-08  Jim Meyering  <jim@meyering.net>
59736
59737         Avoid new build failure on FreeBSD 6.0.
59738         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59739         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59740         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59741
59742 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59743
59744         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59745
59746 2006-09-07  Jim Meyering  <jim@meyering.net>
59747
59748         Fix global typo in last change: use chmod u-w, not chmod u-x.
59749         Spotted by Paul Eggert and Bruce Korb.
59750         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59751         * modules/byteswap, modules/configmake, modules/fcntl:
59752         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59753         * modules/localcharset, modules/netinet_in, modules/poll:
59754         * modules/stdbool, modules/stdint, modules/sys_select:
59755         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59756
59757 2006-09-06  Jim Meyering  <jim@meyering.net>
59758
59759         Make generated files be read-only.
59760         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59761         Ensure that each generated file is now read-only.
59762         * modules/argz: Likewise.
59763         * modules/arpa_inet: Likewise.
59764         * modules/byteswap: Likewise.
59765         * modules/configmake: Likewise.
59766         * modules/fcntl: Likewise.
59767         * modules/fnmatch: Likewise.
59768         * modules/getopt: Likewise.
59769         * modules/glob: Likewise.
59770         * modules/inttypes: Likewise.
59771         * modules/netinet_in: Likewise.
59772         * modules/poll: Likewise.
59773         * modules/stdbool: Likewise.
59774         * modules/stdint: Likewise.
59775         * modules/sys_select: Likewise.
59776         * modules/sys_socket: Likewise.
59777         * modules/sys_stat: Likewise.
59778         * modules/sysexits: Likewise.
59779         * modules/localcharset: Same as above, but continue using temporary
59780         file named "t-$@" (why different?) rather than the "$@-t" used
59781         everywhere else.
59782
59783         * modules/sysexits (Makefile.am): Replace literal occurrences
59784         of "sysexit.h" more readable, and more consistent, "$@".
59785
59786 2006-09-06  Bruno Haible  <bruno@clisp.org>
59787
59788         * modules/striconv: New file.
59789         * modules/xstriconv: New file.
59790         * MODULES.html.sh (Internationalization functions): Add striconv,
59791         xstriconv.
59792
59793 2006-09-06  Bruno Haible  <bruno@clisp.org>
59794
59795         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59796         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59797         not using libtool correctly.
59798
59799 2006-09-06  Bruno Haible  <bruno@clisp.org>
59800
59801         * lib/striconv.h: New file.
59802         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59803         iconvstring.c.
59804         * lib/xstriconv.h: New file.
59805         * lib/xstriconv.c: New file.
59806
59807 2006-09-06  Bruno Haible  <bruno@clisp.org>
59808
59809         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59810         lib_..._LDFLAGS.
59811
59812 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59813
59814         * lib/argz_.h: Sync from Libtool.
59815
59816         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59817                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59818
59819         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59820
59821 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59822
59823         * modules/trim: New file.
59824
59825 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59826
59827         * lib/trim.h: New file.
59828         * lib/trim.c: New file.
59829
59830 2006-09-05  Bruno Haible  <bruno@clisp.org>
59831
59832         * MODULES.html.sh (String handling): Add trim.
59833
59834 2006-09-04  Karl Berry  <karl@gnu.org>
59835
59836         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59837         until next release.
59838
59839 2006-09-03  Bruno Haible  <bruno@clisp.org>
59840
59841         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59842         correctly.
59843
59844 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59845
59846         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59847         not gl_GETLOADAVG.  Omit unneeded semicolons.
59848         Problems reported by Ralf Wildenhues in
59849         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59850         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59851         at the end, which is the usual gnulib style.
59852
59853         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59854         of doing all the work ourselves.
59855         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59856         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59857
59858 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59859
59860         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59861         Problem reported by Ralf Wildenhues in
59862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59863
59864         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59865         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59866
59867 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59870         yesterday's patch by changing test -n to test -z.
59871
59872 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59873
59874         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59875         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59876         the former is now obsolescent.
59877
59878         * modules/chdir-long (Depends-on): Add fcntl.
59879
59880 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59881
59882         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59883         obsolescent, and programs should use gnulib instead.
59884         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59885         but with prefixes changed.
59886
59887 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59888
59889         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59890         or stdbool.h, because they might not exist while configuring.
59891
59892         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59893         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59894         does that for us.
59895         (O_DIRECTORY): Remove.
59896
59897 2006-08-31  Eric Blake  <ebb9@byu.net>
59898
59899         * gnulib-tool: Don't let emacs change spaces to TAB.
59900
59901 2006-08-31  Bruno Haible  <bruno@clisp.org>
59902
59903         * gnulib-tool: When calling func_import more than once, do it in a
59904         subshell.
59905         Reported by Eric Blake <ebb9@byu.net>.
59906
59907 2006-08-31  Bruno Haible  <bruno@clisp.org>
59908
59909         * gnulib-tool (nl): Remove variable.
59910         (sed_transform_lib_file): Use more robust test for config-h module.
59911         (func_import): Fix typo in 2006-08-25 patch.
59912
59913 2006-08-31  Bruno Haible  <bruno@clisp.org>
59914
59915         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59916         specified, augment Makefile.am variables instead of assigning them.
59917
59918 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         Work around a bug in both the Linux and SunOS 64-bit kernels:
59921         nanosleep mishandles sleeps for longer than 2**31 seconds.
59922         Problem reported by Frank v Waveren in
59923         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59925         Check for nanosleep bug.
59926         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59927
59928 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59929
59930         Work around a bug in both the Linux and SunOS 64-bit kernels:
59931         nanosleep mishandles sleeps for longer than 2**31 seconds.
59932         Problem reported by Frank v Waveren in
59933         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59934         * lib/nanosleep.c (BILLION): New constant.
59935         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59936         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59937         implementation.
59938
59939 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59940
59941         * modules/nanosleep (Depends-on): Add gettime.
59942
59943 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59944         and Simon Josefsson  <jas@extundo.com>
59945         and Oskar Liljeblad  <oskar@osk.mine.nu>
59946
59947         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59948         * gnulib-tool (func_import): New license type 'unmodifiable license
59949         text'.
59950         * modules/fdl: Use it.  Longer description.
59951         * module/gpl, module/lgpl: New files.
59952
59953 2006-08-30  Jim Meyering  <jim@meyering.net>
59954
59955         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59956         shadowing the parameter.
59957
59958 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59959
59960         Sync from Libtool:
59961
59962         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59963
59964         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59965         sharing with gnulib.  Report by Eric Blake.
59966
59967 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         * modules/isapipe: New file.
59970         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59971
59972 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         * modules/configmake (Makefile.am): Add a comment, and omit
59975         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59976         by Bruno Haible.
59977
59978 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59979
59980         * m4/isapipe.m4: New file.
59981
59982 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59983
59984         * lib/isapipe.c, lib/isapipe.h: New files.
59985
59986 2006-08-29  Jim Meyering  <jim@meyering.net>
59987
59988         * modules/configmake (Makefile.am): Make configmake.h depend on
59989         Makefile.  Otherwise, a stale configmake.h could hang around.
59990
59991 2006-08-29  Eric Blake  <ebb9@byu.net>
59992
59993         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59994         resolution of upstream bug 3044.
59995
59996 2006-08-29  Bruno Haible  <bruno@clisp.org>
59997
59998         * modules/localcharset (Depends-on): Add configmake.
59999         (Makefile.am): Remove setting of LIBDIR through DEFS.
60000
60001 2006-08-29  Bruno Haible  <bruno@clisp.org>
60002
60003         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
60004         defined.
60005
60006 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60007
60008         * modules/fcntl: New file.
60009         * modules/chdir-safer (Depends-on): Add fcntl.
60010         * modules/fts: Likewise.
60011         * modules/mkdir-p: Likewise.
60012
60013         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
60014         This undoes the most recent change, since we're now addressing the
60015         problem in a different way.
60016
60017         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
60018         into output, since the output might be called Makefile.am even
60019         if $makefile_name is something different.
60020         (func_import): Use $makefile_am rather than
60021         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
60022         empty.
60023
60024         * modules/inttypes (Files): Add m4/inttypes-h.m4.
60025
60026 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60027
60028         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
60029         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
60030         recent change to stdint.m4, since we're now addressing the problem in a
60031         different way.
60032
60033 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         * m4/fcntl_h.m4: New file.
60036
60037 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
60038
60039         * lib/fcntl_.h: New file.
60040         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
60041         the fcntl module.
60042         * lib/dirchownmod.c: Likewise.
60043         * lib/fts.c: Likewise.
60044
60045         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
60046         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
60047         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
60048         just before including <inttypes.h>, to avoid circular inclusion.
60049
60050 2006-08-28  Jim Meyering  <jim@meyering.net>
60051
60052         * doc/visibility.texi: Actually read and correct the grammar of the
60053         sentence affected by yesterday's change.
60054
60055 2006-08-28  Eric Blake  <ebb9@byu.net>
60056
60057         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
60058         needs wrapper.
60059
60060 2006-08-28  Eric Blake  <ebb9@byu.net>
60061
60062         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
60063
60064 2006-08-28  Eric Blake  <ebb9@byu.net>
60065
60066         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
60067
60068 2006-08-28  Bruno Haible  <bruno@clisp.org>
60069
60070         * modules/c-strstr: New file, from GNU gettext.
60071         * MODULES.html.sh (String handling): Add c-strstr.
60072
60073 2006-08-28  Bruno Haible  <bruno@clisp.org>
60074
60075         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
60076         macros.
60077         Reported by Eric Blake.
60078
60079 2006-08-28  Bruno Haible  <bruno@clisp.org>
60080
60081         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
60082         (VASNPRINTF): Return a string of length > INT_MAX without failing.
60083         * lib/vasprintf.c: Include errno.h, limits.h.
60084         (EOVERFLOW): New fallback definition.
60085         (vasprintf): Test here whether the string length is > INT_MAX.
60086         * lib/vsnprintf.c: Include errno.h, limits.h.
60087         (EOVERFLOW): New fallback definition.
60088         (vsnprintf): Fix bug when generated string was too long for the buffer.
60089         Test here whether the string length is > INT_MAX.
60090
60091 2006-08-28  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/inttypes_.h (SCNX*): Remove definitions.
60094         Reported by Eric Blake.
60095
60096 2006-08-28  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/c-strstr.h: New file, from GNU gettext.
60099         * lib/c-strstr.c: New file, from GNU gettext.
60100
60101 2006-08-28  Bruno Haible  <bruno@clisp.org>
60102
60103         * gnulib-tool: Reorder some statements.
60104
60105 2006-08-28  Bruno Haible  <bruno@clisp.org>
60106
60107         * gnulib-tool: New option --makefile-name.
60108         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
60109         $makefile_name.
60110         (func_import): Write $makefile_name to the cache file, and read it from
60111         there unless explicitly specified. Use $makefile_name as file name
60112         instead of Makefile.am. Adjust the recommendations accordingly.
60113
60114 2006-08-28  Bruno Haible  <bruno@clisp.org>
60115
60116         * gnulib-tool (func_verify_module): Check against misapplying patch.
60117
60118 2006-08-28  Bruno Haible  <bruno@clisp.org>
60119
60120         * gnulib-tool (func_relativize, func_relconcat): New functions.
60121         Give an error if --local-dir is given with --update.
60122         Remove trailing slashes from $local_gnulib_dir.
60123         (func_import): Store the relativized $local_gnulib_dir in
60124         gnulib-cache.m4, and read it from there if not specified explicitly.
60125
60126 2006-08-28  Bruno Haible  <bruno@clisp.org>
60127
60128         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
60129         is the current directory. Respect also $local_gnulib_dir.
60130
60131 2006-08-28  Bruno Haible  <bruno@clisp.org>
60132             Simon Josefsson  <jas@extundo.com>
60133
60134         BeOS portability.
60135         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
60136
60137 2006-08-27  Jim Meyering  <jim@meyering.net>
60138
60139         * doc/visibility.texi: Remove duplicate word: "pointer".
60140
60141 2006-08-26  Bruno Haible  <bruno@clisp.org>
60142
60143         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
60144         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
60145         (Makefile.am): Create inttypes.h from inttypes_.h.
60146         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
60147
60148         * modules/imaxabs: New file.
60149
60150         * modules/imaxdiv: New file.
60151
60152 2006-08-26  Bruno Haible  <bruno@clisp.org>
60153
60154         * m4/inttypes.m4: New file.
60155         * m4/_inttypes_h.m4: Remove file.
60156         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
60157         PRI_MACROS_BROKEN.
60158         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
60159
60160         * m4/imaxabs.m4: New file.
60161
60162         * m4/imaxdiv.m4: New file.
60163
60164 2006-08-26  Bruno Haible  <bruno@clisp.org>
60165
60166         * lib/inttypes_.h: New file.
60167         * lib/inttypes.h: Remove file.
60168         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
60169
60170         * lib/imaxabs.c: New file.
60171
60172         * lib/imaxdiv.c: New file.
60173
60174 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60175
60176         New config-h module, so that "make" output needn't be cluttered
60177         by -DHAVE_CONFIG_H.
60178         * MODULES.html.sh (Support for building libraries and executables):
60179         Add config-h.
60180         * modules/config-h: New file.
60181         * gnulib-tool (nl, sed_transform_lib_file): New vars.
60182         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
60183         the config-h module is used.
60184
60185         New configmake module, so that "make" output needn't be cluttered
60186         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
60187         * MODULES.html.sh (Support for building libraries and executables):
60188         Add configmake.
60189         * modules/configmake: New file.
60190
60191 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
60192
60193         * m4/config-h.m4: New file.
60194
60195 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         * config/srclist.txt: Add elisp-comp.
60198
60199 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
60200
60201         * MODULES.html.sh (Support for building libraries and executables):
60202         Add elisp-comp.
60203         * build-aux/elisp-comp: New file.
60204         * modules/elisp-comp: New file.
60205
60206 2006-08-24  Bruno Haible  <bruno@clisp.org>
60207
60208         * gnulib-tool (func_create_testdir): Use non-default values of
60209         sourcebase and m4base.
60210
60211 2006-08-24  Bruno Haible  <bruno@clisp.org>
60212
60213         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60214         HTML structure.
60215
60216 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60217
60218         * modules/openat (Depends-on): Add lchown.
60219
60220 2006-08-23  Bruno Haible  <bruno@clisp.org>
60221
60222         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60223         of gl_LOCK_EARLY instead of gl_LOCK.
60224
60225 2006-08-23  Bruno Haible  <bruno@clisp.org>
60226
60227         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60228         on OSF/1 to no.
60229         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60230
60231 2006-08-23  Bruno Haible  <bruno@clisp.org>
60232
60233         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60234         as unusable.
60235
60236         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60237         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60238         (gl_LOCK): New macro.
60239
60240 2006-08-22  Simon Josefsson  <jas@extundo.com>
60241
60242         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60243         to md5 module.
60244
60245 2006-08-22  Simon Josefsson  <jas@extundo.com>
60246
60247         * MODULES.html.sh: Add "Support for maintaining and release
60248         projects".
60249
60250         * build-aux/gnupload: New file, from coreutils.
60251
60252 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60253
60254         Avoid the need for AC_LIBSOURCES in m4 macros.
60255         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60256         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60257         * modules/check-version (EXTRA_DIST): Add check-version.h.
60258         * modules/crc (EXTRA_DIST): Add crc.h.
60259         * modules/des (EXTRA_DIST): Add des.h.
60260         * modules/gc (EXTRA_DIST): Add gc.h.
60261         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60262         * modules/getline (EXTRA_DIST): Add getline.h.
60263         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60264         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60265         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60266         * modules/md2 (EXTRA_DIST): Add md2.h.
60267         * modules/md4 (EXTRA_DIST): Add md4.h.
60268         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60269         * modules/read-file (EXTRA_DIST): Add read-file.h.
60270         * modules/readline (EXTRA_DIST): Add readline.h.
60271         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60272         rijndael-api-fst.h.
60273
60274 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60275
60276         * m4/rijndael.m4 (gl_ARCFOUR):
60277         * m4/arctwo.m4 (gl_ARCTWO):
60278         * m4/check-version.m4 (gl_CHECK_VERSION):
60279         * m4/crc.m4 (gl_CRC):
60280         * m4/des.m4 (gl_DES):
60281         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60282         * m4/gc.m4 (gl_GC):
60283         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60284         * m4/getline.m4 (gl_FUNC_GETLINE):
60285         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60286         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60287         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60288         * m4/md2.m4 (gl_MD2):
60289         * m4/md4.m4 (gl_MD4):
60290         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60291         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60292         * m4/readline.m4 (gl_FUNC_READLINE):
60293         * m4/rijndael.m4 (gl_RIJNDAEL):
60294         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60295         to get the necessary .h files and whatnot.
60296
60297 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60298
60299         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60300         gnulib rather than the other way around.
60301         * config/srclistvars.sh (COREUTILS): Remove.
60302
60303 2006-08-22  Jim Meyering  <jim@meyering.net>
60304
60305         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60306
60307         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60308
60309 2006-08-22  Eric Blake  <ebb9@byu.net>
60310
60311         * modules/regexprops-generic: New file.
60312         * MODULES.html.sh (Support for building documentation): List it.
60313
60314 2006-08-22  Eric Blake  <ebb9@byu.net>
60315
60316         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60317         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60318         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60319         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60320
60321 2006-08-22  Bruno Haible  <bruno@clisp.org>
60322
60323         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60324         and lib_LTLIBRARIES like the other lib_* variables.
60325
60326 2006-08-22  Bruno Haible  <bruno@clisp.org>
60327
60328         * build-aux/x-to-1.in: New file, from GNU gettext.
60329
60330 2006-08-22  Bruno Haible  <bruno@clisp.org>
60331
60332         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60333         <utmpx.h> exists.
60334
60335 2006-08-22  Bruno Haible  <bruno@clisp.org>
60336
60337         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60338         <utmpx.h> exists.
60339
60340 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         BeOS portability.
60343         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60344         exist.
60345         Problem reported by Bruno Haible.
60346
60347 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60348
60349         Avoid the need for AC_LIBSOURCES in m4 macros.
60350         * modules/acl (EXTRA_DIST): Add acl.h.
60351         * modules/argmatch (Files): Add m4/argmatch.m4.
60352         (configure.ac): Add gl_ARGMATCH.
60353         (EXTRA_DIST): Renamed from lib_SOURCES, for
60354         consistency with the other modules.  Remove argmatch.c.
60355         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60356         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60357         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60358         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60359         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60360         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60361         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60362         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60363         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60364         * modules/closeout (EXTRA_DIST): Add closeout.h.
60365         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60366         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60367         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60368         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60369         dirname.h; remove basename.c and stripslash.c.
60370         * modules/exclude (EXTRA_DIST): Add exclude.h.
60371         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60372         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60373         * modules/file-type (EXTRA_DIST): Add file-type.h.
60374         * modules/filemode (EXTRA_DIST): Add filemode.h.
60375         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60376         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60377         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60378         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60379         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60380         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60381         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60382         * modules/getdate (EXTRA_DIST): Add getdate.c.
60383         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60384         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60385         * modules/getpass (EXTRA_DIST): Add getpass.h.
60386         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60387         * modules/group-member (EXTRA_DIST): Add group-member.h.
60388         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60389         * modules/hash (EXTRA_DIST): Add hash.h.
60390         * modules/human (EXTRA_DIST): Add human.h.
60391         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60392         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60393         * modules/lchown (EXTRA_DIST): Add lchown.h.
60394         * modules/long-options (EXTRA_DIST): Add long-options.h.
60395         * modules/lstat (EXTRA_DIST): Add lstat.h.
60396         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60397         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60398         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60399         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60400         * modules/memxor (EXTRA_DIST): Add memxor.h.
60401         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60402         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60403         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60404         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60405         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60406         * modules/physmem (EXTRA_DIST): Add physmem.h.
60407         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60408         * modules/posixver (EXTRA_DIST): Add posixver.h.
60409         * modules/quote (EXTRA_DIST): Add quote.h.
60410         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60411         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60412         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60413         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60414         regex_internal.h regexec.c.
60415         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60416         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60417         * modules/same (EXTRA_DIST): Add same.h.
60418         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60419         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60420         * modules/savedir (EXTRA_DIST): Add savedir.h.
60421         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60422         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60423         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60424         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60425         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60426         * modules/strdup (EXTRA_DIST): Add strdup.h.
60427         * modules/strftime (EXTRA_DIST): Add strftime.h.
60428         * modules/strndup (EXTRA_DIST): Add strndup.h.
60429         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60430         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60431         * modules/time_r (EXTRA_DIST): Add time_r.h.
60432         * modules/timespec (EXTRA_DIST): Add timespec.h.
60433         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60434         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60435         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60436         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60437         * modules/userspec (EXTRA_DIST): Add userspec.h.
60438         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60439         * modules/utimens (EXTRA_DIST): Add utimens.h.
60440         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60441         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60442         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60443         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60444         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60445         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60446         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60447         * modules/yesno (EXTRA_DIST): Add yesno.h.
60448
60449 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60450
60451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60452
60453         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60454         * m4/dev-ino.m4, same-inode.m4: Remove.
60455
60456         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60457         * m4/acl.m4 (AC_FUNC_ACL):
60458         * m4/backupfile.m4 (gl_BACKUPFILE):
60459         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60460         * m4/canon-host.m4 (gl_CANON_HOST):
60461         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60462         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60463         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60464         * m4/cloexec.m4 (gl_CLOEXEC):
60465         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60466         * m4/closeout.m4 (gl_CLOSEOUT):
60467         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60468         * m4/dirname.m4 (gl_DIRNAME):
60469         * m4/exclude.m4 (gl_EXCLUDE):
60470         * m4/exitfail.m4 (gl_EXITFAIL):
60471         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60472         * m4/file-type.m4 (gl_FILE_TYPE):
60473         * m4/filemode.m4 (gl_FILEMODE):
60474         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60475         * m4/fpending.m4 (gl_FUNC_FPENDING):
60476         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60477         * m4/fts.m4 (gl_FUNC_FTS):
60478         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60479         * m4/getdate.m4 (gl_GETDATE):
60480         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60481         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60482         * m4/getpass.m4 (gl_FUNC_GETPASS):
60483         * m4/gettime.m4 (gl_GETTIME):
60484         * m4/getugroups.m4 (gl_GETUGROUPS):
60485         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60486         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60487         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60488         * m4/hash.m4 (gl_HASH):
60489         * m4/idcache.m4 (gl_IDCACHE):
60490         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60491         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60492         * m4/long-options.m4 (gl_LONG_OPTIONS):
60493         * m4/lstat.m4 (gl_FUNC_LSTAT):
60494         * m4/md5.m4 (gl_MD5):
60495         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60496         * m4/memcoll.m4 (gl_MEMCOLL):
60497         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60498         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60499         * m4/memxor.m4 (gl_MEMXOR):
60500         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60501         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60502         * m4/modechange.m4 (gl_MODECHANGE):
60503         * m4/mountlist.m4 (gl_MOUNTLIST):
60504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60505         * m4/openat.m4 (gl_FUNC_OPENAT):
60506         * m4/pathmax.m4 (gl_PATHMAX):
60507         * m4/physmem.m4 (gl_PHYSMEM):
60508         * m4/posixtm.m4 (gl_POSIXTM):
60509         * m4/posixver.m4 (gl_POSIXVER):
60510         * m4/quote.m4 (gl_QUOTE):
60511         * m4/quotearg.m4 (gl_QUOTEARG):
60512         * m4/readtokens.m4 (gl_READTOKENS):
60513         * m4/readutmp.m4 (gl_READUTMP):
60514         * m4/regex.m4 (gl_REGEX):
60515         * m4/safe-read.m4 (gl_SAFE_READ):
60516         * m4/safe-write.m4 (gl_SAFE_WRITE):
60517         * m4/same.m4 (gl_SAME):
60518         * m4/save-cwd.m4 (gl_SAVE_CWD):
60519         * m4/savedir.m4 (gl_SAVEDIR):
60520         * m4/settime.m4 (gl_SETTIME):
60521         * m4/sha1.m4 (gl_SHA1):
60522         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60523         * m4/stat-macros.m4 (gl_STAT_MACROS):
60524         * m4/stat-time.m4 (gl_STAT_TIME):
60525         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60526         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60527         * m4/strdup.m4 (gl_FUNC_STRDUP):
60528         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60529         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60530         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60531         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60532         * m4/time_r.m4 (gl_TIME_R):
60533         * m4/timespec.m4 (gl_TIMESPEC):
60534         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60535         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60536         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60537         * m4/userspec.m4 (gl_USERSPEC):
60538         * m4/utimecmp.m4 (gl_UTIMECMP):
60539         * m4/utimens.m4 (gl_UTIMENS):
60540         * m4/xalloc.m4 (gl_XALLOC):
60541         * m4/xgetcwd.m4 (gl_XGETCWD):
60542         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60543         * m4/xreadlink.m4 (gl_XREADLINK):
60544         * m4/xstrtod.m4 (gl_XSTRTOD):
60545         * m4/yesno.m4 (gl_YESNO):
60546         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60547         to get the necessary .h files and whatnot.
60548
60549 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60550             Bruno Haible  <bruno@clisp.org>
60551
60552         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60553         /bin/sh understanding of '!' conditional negation.
60554
60555 2006-08-21  Jim Meyering  <jim@meyering.net>
60556
60557         * modules/openat (Depends-on): Really alphabetize.
60558
60559         * modules/acl (Depends-on): Add error and quote.
60560
60561         * check-module (find_included_lib_files): Add at-func.c to the
60562         ok-to-include-more-than-once white list.
60563
60564         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60565
60566 2006-08-21  Bruno Haible  <bruno@clisp.org>
60567
60568         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60569         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60570         Reported by Martin Lambers <marlam@marlam.de>.
60571
60572 2006-08-21  Bruno Haible  <bruno@clisp.org>
60573
60574         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60575         specify an installation location, don't emit a noinst_LIBRARIES or
60576         noinst_LTLIBRARIES assignment.
60577
60578 2006-08-21  Bruno Haible  <bruno@clisp.org>
60579
60580         BeOS portability.
60581         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60582         BeOS has mbrtowc() but no <wctype.h>.
60583
60584 2006-08-21  Bruno Haible  <bruno@clisp.org>
60585
60586         BeOS portability.
60587         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60588         exist.
60589
60590 2006-08-21  Bruno Haible  <bruno@clisp.org>
60591
60592         BeOS portability.
60593         * lib/mbchar.h: Include <wctype.h> only if it exists.
60594
60595 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60596
60597         Remove files that are no longer needed by their respective modules.
60598         * m4/obstack.m4: Remove.
60599         * m4/strerror_r.m4: Remove.
60600         * m4/uint32_t.m4: Remove.
60601         * m4/uintptr_t.m4: Remove.
60602         * m4/ullong_max.m4: Remove.
60603         * m4/xstrtoimax.m4: Remove.
60604         * m4/xstrtoumax.m4: Remove.
60605
60606         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60607         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60608         dependencies now capture this.
60609
60610         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60611         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60612         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60613         * m4/human.m4 (gl_HUMAN): Likewise.
60614         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60615         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60616
60617         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60618
60619         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60620         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60621         stdint.
60622         * m4/human.m4 (gl_HUMAN): Likewise.
60623         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60624         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60625         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60626         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60627         * m4/xstrtol (gl_XSTRTOL): Likewise.
60628
60629         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60630         AC_TYPE_LONG_LONG_INT.
60631         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60632         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60633         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60634         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60635
60636         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60637         on stdbool.
60638
60639         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60640         (gl_PREREQ_XSTRTOUL): Remove.
60641
60642         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60643
60644         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60645         mode.
60646
60647 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         Add and change modules to make it easier for coreutils to use
60650         gnulib-tool.
60651         * modules/backupfile (Files): Remove m4/d-ino.m4.
60652         (Depends-on): Add d-ino.
60653         * modules/cycle-check (Depends-on): Add stdint.
60654         (lib_SOURCES): Add cycle-check.h.
60655         * modules/d-ino: New module.
60656         * modules/d-type: New module.
60657         * modules/error (Files): Remove m4/strerror_r.m4.
60658         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60659         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60660         m4/inttypes_h.m4, m4/uintmax_t.m4.
60661         (Depends-on): Add stdint.
60662         (lib_SOURCES): Add fsusage.h.
60663         * modules/getcwd (Files): Remove d-ino.m4.
60664         (Depends-on): Add d-ino.
60665         * modules/getndelim2 (Depends-on): Add stdint.
60666         * modules/glob (Files): Remove m4/d-type.m4.
60667         (Depends-on): Add d-type.
60668         * modules/host-os: New module.
60669         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60670         m4/inttypes_h.m4, m4/uintmax_t.m4.
60671         * Depends-on: Add stdint.
60672         (lib_SOURCES): Add human.h.
60673         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60674         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60675         m4/uintmax_t.m4, m4/ulonglong.m4.
60676         (Depends-on): Add stdint.
60677         (EXTRA_DIST): Add inttostr.h.
60678         * modules/lchmod: New module.
60679         * modules/link-follow: New module.
60680         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60681         (Depends-on): Add lchmod.
60682         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60683         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60684         (Depends-on): Add stdint.
60685         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60686         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60687         (Depends-on): Add stdint.
60688         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60689         * modules/perl: New module.
60690         * modules/regex (Depends-on): Add stdint.
60691         * modules/rmdir-errno: New module.
60692         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60693         m4/intmax_t.m4.
60694         (Depends-on): Add stdint.
60695         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60696         m4/uintmax_t.m4.
60697         (Depends-on): Add stdint.
60698         * modules/unlink-busy: New module.
60699         * modules/utimecmp (Depends-on): Add stdint.
60700         * modules/uptime: New module.
60701         * modules/winsz-ioctl: New module.
60702         * modules/winsz-termios: New module.
60703         * modules/xnanosleep (Depends-on): Add nanosleep.
60704         * modules/ullong_max: Remove.
60705         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60706         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60707         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60708         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60709         (Depends-on): Add inttypes.
60710         (lib_SOURCES): Add xstrtol.h.
60711         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60712         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60713         * MODULES.html.sh: Move 'assert' into the assert section.
60714         Move 'dummy' into the linking section.
60715         Remove ullong_max.
60716         Add section for compatibility checks for POSIX:2001 functions,
60717         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60718         winsz-ioctl, and winsz-termios into it.
60719         Add lchmod.
60720         Add top-level Misc section and put host-os, perl, and uptime
60721         into it.
60722
60723 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60724
60725         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60726         now assume the stdint module.  Do not include inttypes.h.
60727         * lib/fsusage.h: Likewise.
60728         * lib/getndelim2.c: Likewise.
60729         * lib/human.h: Likewise.
60730         * lib/inttostr.h: Likewise.
60731         * lib/obstack.c: Likewise.
60732         * lib/regex_internal.h: Likewise.
60733         * lib/tempname.c: Likewise.
60734         * lib/utimecmp.c: Likewise.
60735         * lib/xstrtol.h: Likewise.
60736
60737         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60738
60739         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60740         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60741         * lib/xtime.h: Likewise.
60742
60743 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         * modules/openat (Files): Add lib/fchmodat.c.
60746         Fixes problem reported by Jay Youngman.
60747
60748 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60749
60750         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60751         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60752
60753 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60754             Bruno Haible  <bruno@clisp.org>
60755
60756         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60757         and is a script that invokes bison. Tighten the code. Add comments.
60758
60759 2006-08-18  Jim Meyering  <jim@meyering.net>
60760
60761         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60762         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60763         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60764         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60765
60766 2006-08-18  Bruno Haible  <bruno@clisp.org>
60767
60768         * modules/bison-i18n: New file.
60769         * MODULES.html.sh (Internationalization functions): Add it.
60770
60771 2006-08-18  Bruno Haible  <bruno@clisp.org>
60772
60773         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60774         sys/statvfs.h. When getmntinfo was found, check its declaration and
60775         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60776
60777 2006-08-18  Bruno Haible  <bruno@clisp.org>
60778
60779         * m4/bison-i18n.m4: New file, from bison.
60780
60781 2006-08-18  Bruno Haible  <bruno@clisp.org>
60782
60783         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60784         (ME_DUMMY): Treat "kernfs" as a dummy.
60785         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60786
60787 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60788
60789         Update from coreutils.
60790
60791         2006-08-15  Jim Meyering  <jim@meyering.net>
60792
60793         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60794
60795         2006-01-17  Jim Meyering  <jim@meyering.net>
60796
60797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60798
60799         2006-01-11  Jim Meyering  <jim@meyering.net>
60800
60801         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60802         Check for the lchmod function.
60803
60804 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60805
60806         Update from coreutils.
60807
60808         * lib/__fpending.h: Add copyright notice.
60809         * lib/fprintftime.h: Likewise.
60810         * lib/savedir.c: Use (C) in copyright notice.
60811         * lib/savedir.h: Likewise.
60812
60813         2006-08-15  Jim Meyering  <jim@meyering.net>
60814
60815         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60816         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60817         in support of the EXPECTED_ERRNO macro.
60818         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60819         definitions.  Instead, define the appropriate symbols and include
60820         "at-func.c".
60821         * lib/mkdirat.c (mkdirat): Likewise.
60822         * lib/fchmodat.c (fchmodat): Likewise.
60823         (ENOSYS): Remove definition.
60824         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60825         it.  Don't include "unistd--.h" -- it wasn't ever used.
60826
60827         2006-01-17  Jim Meyering  <jim@meyering.net>
60828
60829         Rewrite fts.c not to change the current working directory,
60830         by using openat, fstatat, fdopendir, etc..
60831
60832         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60833         (HAVE_OPENAT_SUPPORT): Define.
60834         [_LIBC] (fchdir): Don't undef or define; no longer used.
60835         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60836         Now, this `function' always succeeds, and consumes its file descriptor
60837         parameter -- so callers must not close such FDs.  Update callers.
60838         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60839         (diropen): Add parameter, SP.  Adjust all callers.
60840         Implement using diropen_fd, rather than open.
60841         (fts_open): Initialize new member, fts_cwd_fd.
60842         Remove fts_rft-setting code.
60843         (fts_close): Close fts_cwd_fd, if necessary.
60844         (__opendir2): Define in terms of opendir or opendirat,
60845         depending on whether the FST_NOCHDIR flag is set.
60846         (fts_build): Since fts_safe_changedir consumes its FD, and since
60847         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60848         and close the dup'd file descriptor upon failure.
60849         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60850         (fts_safe_changedir): Tweak semantics to reflect that this function
60851         now calls cwd_advance_fd and hence consumes its FD argument.
60852         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60853         [struct FTS] (fts_rft): Remove now-unused member.
60854         [struct FTS] (fts_cycle.state): Improve comment.
60855
60856         * lib/openat.c (openat_needs_fchdir): New function.
60857         * lib/openat.h (openat_needs_fchdir): Declare it.
60858
60859 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60860
60861         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60862         Problem and fix reported by Pádraig Brady in
60863         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60864
60865 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60866
60867         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60868
60869 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60870
60871         * lib/memcoll.c (memcoll): Optimize for the common case where the
60872         arguments are bytewise equal.
60873
60874 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60875
60876         * doc/regexprops-generic.texi: Add a copyright notice.
60877
60878 2006-08-15  Bruno Haible  <bruno@clisp.org>
60879
60880         * modules/tmpdir (License): Change to LGPL.
60881
60882 2006-08-15  Bruno Haible  <bruno@clisp.org>
60883
60884         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60885         module.
60886
60887 2006-08-14  Simon Josefsson  <jas@extundo.com>
60888
60889         * config/srclist.txt: Add gnupload.
60890
60891 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         Change copyright notice from LGPL 2 to GPL 2, since that's the
60894         standard form used in the gnulib repository.
60895         * tests/test-lock.c: Likewise.
60896         * tests/test-stdint.c: Likewise.
60897         * tests/test-tls.c: Likewise.
60898
60899         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60900         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60901         Add copyright notice.
60902
60903         * check-module: Add copyright notice.  Output a copyright
60904         notice if "--version" is specified.
60905         * modules/COPYING: New file.
60906         * tests/test-getaddrinfo.c: Add copyright notice.
60907         * tests/test-verify.c: Likewise.
60908
60909 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60910
60911         Change copyright notice from LGPL 2 to GPL 2, since that's the
60912         standard form used in the gnulib repository.
60913         * lib/lock.c: LGPL -> GPL.
60914         * lib/lock.h: Likewise.
60915         * lib/strnlen1.c: Likewise.
60916         * lib/strnlen1.h: Likewise.
60917         * lib/tls.c: Likewise.
60918         * lib/tls.h: Likewise.
60919         * lib/tmpdir.c: Likewise.
60920
60921         * lib/TODO: Remove; this belongs only in coreutils.
60922
60923 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60924
60925         Add copyright notices to long-enough files that lack them, since
60926         otherwise the files aren't clearly free.  Use the same notice that
60927         getdate.texi already uses.
60928         * doc/alloca-opt.texi: Add copyright notice.
60929         * doc/alloca.texi: Likewise.
60930         * doc/ctime.texi: Likewise.
60931         * doc/functions.texi: Likewise.
60932         * doc/gcd.texi: Likewise.
60933         * doc/gnulib-tool.texi: Likewise.
60934         * doc/inet_ntoa.texi: Likewise.
60935         * doc/visibility.texi: Likewise.
60936
60937         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60938         * doc/quote.texi: Add copyright notice.
60939
60940         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60941         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60942         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60943         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60944         is now obsolete, and give a pointer to the Sun list.
60945         Add copyright notice.
60946
60947 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60948
60949         * config/srclistvars.sh: Add copyright notice.
60950
60951 2006-08-14  Eric Blake  <ebb9@byu.net>
60952
60953         Import the following change from libc:
60954
60955         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60956
60957         Upstream bug 2997.
60958         * lib/misc/error.c: Add space between program name and message if file
60959         name is missing.
60960
60961 2006-08-12  Karl Berry  <karl@gnu.org>
60962
60963         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60964         remove, these originate in gnulib now.
60965
60966 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60967
60968         * doc/Makefile (standards.info standards.html standards.dvi):
60969         Also depend on make-stds.texi.
60970
60971 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60974         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60975
60976         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60977         in wchar_t.  Problem reported by Eric Blake.
60978
60979         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60980         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60981         Also, help the compiler to keep LEN in a register.
60982
60983 2006-08-11  Eric Blake  <ebb9@byu.net>
60984
60985         * users.txt: Sort.  Add tar.
60986
60987 2006-08-11  Bruno Haible  <bruno@clisp.org>
60988
60989         * users.txt: New file.
60990
60991 2006-08-11  Bruno Haible  <bruno@clisp.org>
60992
60993         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60994         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60995
60996 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60997
60998         * modules/snprintf (Depends-on): Remove minmax.
60999         (Maintainer): Add self and Bruno.
61000
61001 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61002
61003         * lib/.cppi-disable: Add snprintf.h, socket_.h.
61004         * lib/snprintf.c: Include <errno.h> and <limits.h>.
61005         (EOVERFLOW): Define if the system does not.
61006         Do not include "minmax.h"; it wasn't used.
61007         (snprintf): Don't assume size_t promotes to an unsigned type.
61008         Fix bug when generated string was too long for the buffer: the
61009         buffer's contents are supposed to be the initial prefix of the
61010         output.  Don't assume vasnprintf returns EOVERFLOW if the size
61011         exceeds INT_MAX; do the check ourselves.
61012
61013         Import the following changes from libc:
61014
61015         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
61016
61017         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
61018         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
61019         set wc to the byte which couldn't be converted.
61020         (re_string_reconstruct): Don't clear valid_raw_len before calling
61021         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
61022         tip_context using re_string_context_at.
61023
61024         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
61025
61026         * lib/posix/regex.h: g++ still cannot handled [restrict].
61027
61028         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
61029
61030         * lib/posix/regex.h: Remove special handling for VMS.
61031
61032 2006-08-10  Jim Meyering  <jim@meyering.net>
61033
61034         * modules/same-inode: New module.
61035         * modules/dev-ino: New module.
61036         * modules/cycle-check: Depend on these modules, rather than simply
61037         including their .h files.
61038         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
61039         required via m4/cycle-check.m4.
61040         * modules/same: Depend on new same-inode module, rather than
61041         including same-inode.h.
61042         * modules/chdir-safer: New file.
61043
61044         * modules/chown (Depends-on): Add stat-macros.
61045
61046 2006-08-10  Jim Meyering  <jim@meyering.net>
61047
61048         * m4/cycle-check.m4: New file.
61049         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
61050         * m4/dev-ino.m4, m4/same-inode.m4: New files.
61051
61052 2006-08-10  Eric Blake  <ebb9@byu.net>
61053
61054         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
61055         in from original proposal.
61056
61057 2006-08-10  Eric Blake  <ebb9@byu.net>
61058         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
61059
61060         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
61061         namespace.
61062
61063 2006-08-10  Bruno Haible  <bruno@clisp.org>
61064
61065         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
61066         as well.
61067
61068 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61069
61070         Sync from coreutils.
61071
61072         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
61073
61074         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
61075         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
61076
61077 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61078
61079         * modules/restrict: Remove; no longer needed now that we assume
61080         Autoconf 2.59 or later.
61081         * MODULES.html.sh: Remove 'restrict'.
61082         * modules/argp (Depends-on): Remove 'restrict'.
61083         * modules/base64 (Depends-on): Likewise.
61084         * modules/gc (Depends-on): Likewise.
61085         * modules/getaddrinfo (Depends-on): Likewise.
61086         * modules/glob (Depends-on): Likewise.
61087         * modules/inet_ntop (Depends-on): Likewise.
61088         * modules/inet_pton (Depends-on): Likewise.
61089         * modules/memxor (Depends-on): Likewise.
61090         * modules/regex (Depends-on): Likewise.
61091         * modules/strtok_r (Depends-on): Likewise.
61092         * modules/time_r (Depends-on): Likewise.
61093
61094 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61095
61096         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
61097         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
61098         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61099         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
61100         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
61101         * m4/memxor.m4 (gl_MEMXOR): Likewise.
61102         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
61103         gl_C_RESTRICT replaced by AC_C_RESTRICT.
61104
61105         Merge from coreutils.
61106         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
61107         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
61108         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61109         * m4/time_r.m4 (gl_TIME_R): Likewise.
61110
61111 2006-08-09  Karl Berry  <karl@gnu.org>
61112
61113         * config/srclist.txt: no more gettext-tools, per Bruno.
61114
61115 2006-08-08  Eric Blake  <ebb9@byu.net>
61116
61117         * modules/verror: New module.
61118         * MODULES.html.sh: Document it.
61119
61120 2006-08-08  Eric Blake  <ebb9@byu.net>
61121
61122         * lib/verror.h, lib/verror.c: New files.
61123
61124 2006-08-08  Eric Blake  <ebb9@byu.net>
61125
61126         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
61127         verror_at_line output complies with GNU Coding Standards even when
61128         file is NULL.
61129
61130 2006-08-07  Bruno Haible  <bruno@clisp.org>
61131
61132         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
61133         versions of AIX.
61134         Reported by Ralf Wildenhues.
61135
61136 2006-08-07  Bruno Haible  <bruno@clisp.org>
61137
61138         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
61139         in an AC_DEFUN. Needed so that the autoconf snippets can use
61140         AC_REQUIRE.
61141
61142 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61143
61144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61145         Initialize pkgdata_DATA.
61146         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
61147         overriding it.
61148
61149 2006-08-06  Eric Blake  <ebb9@byu.net>
61150
61151         * lib/error.h: Fold in some upstream changes from glibc.
61152         * lib/error.c: Likewise.
61153
61154 2006-08-04  Bruno Haible  <bruno@clisp.org>
61155
61156         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61157         Make the mostlyclean-local rule depend on mostlyclean-generic.
61158         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
61159
61160 2006-07-31  Bruno Haible  <bruno@clisp.org>
61161
61162         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
61163         <stdlib.h>, <string.h>.
61164
61165 2006-07-30  Bruno Haible  <bruno@clisp.org>
61166
61167         * modules/readlink (License): Change to LGPL.
61168
61169 2006-07-30  Bruno Haible  <bruno@clisp.org>
61170
61171         * modules/javaversion (Makefile.am): Distribute javaversion.java and
61172         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
61173         set PKGDATADIR to point to it.
61174
61175 2006-07-30  Bruno Haible  <bruno@clisp.org>
61176
61177         * modules/csharpexec (configure.ac): Comment out macro invocation.
61178         * modules/javaexec (configure.ac): Likewise.
61179         * modules/javacomp-script (configure.ac): Likewise.
61180
61181         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
61182
61183 2006-07-30  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
61186         linked-list.
61187
61188 2006-07-30  Bruno Haible  <bruno@clisp.org>
61189
61190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
61191
61192 2006-07-30  Bruno Haible  <bruno@clisp.org>
61193
61194         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61195         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
61196         get removed.
61197
61198 2006-07-29  Bruno Haible  <bruno@clisp.org>
61199
61200         Make it possible for gnulib-tool to work with locally modified or
61201         augmented gnulib repositories.
61202         * gnulib-tool (func_usage): Document --local-dir option.
61203         (local_gnulib_dir): New variable.
61204         Handle --local-dir option.
61205         (func_lookup_file): New function.
61206         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
61207         (func_get_description, func_get_filelist, func_get_description,
61208         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
61209         func_get_automake_snippet, func_get_include_directive,
61210         func_get_license, func_get_maintainer): Use func_lookup_file.
61211         (func_import, func_create_testdir): Use func_lookup_file.
61212
61213 2006-07-29  Bruno Haible  <bruno@clisp.org>
61214
61215         * modules/setenv (Depends-on): Add unistd.
61216
61217 2006-07-29  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61220
61221 2006-07-29  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61224
61225 2006-07-29  Bruno Haible  <bruno@clisp.org>
61226
61227         * gnulib-tool (import, update): If there is no Makefile.am, look at
61228         aclocal.m4, instead of bailing out.
61229
61230 2006-07-29  Bruno Haible  <bruno@clisp.org>
61231
61232         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61233         Categorize the options by when they are useful.
61234
61235 2006-07-29  Bruno Haible  <bruno@clisp.org>
61236
61237         * gnulib-tool (func_usage): Document option --no-libtool.
61238         Handle option --no-libtool.
61239         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61240         for changed semantics of $libtool variable.
61241         (func_import): Likewise. If libtool is not used, show this through
61242         an option --no-libtool.
61243         (func_create_testdir): Update.
61244
61245 2006-07-29  Bruno Haible  <bruno@clisp.org>
61246
61247         * gnulib-tool (func_import): Extend error message about missing
61248         --doc-base.
61249
61250 2006-07-29  Bruno Haible  <bruno@clisp.org>
61251
61252         * gnulib-tool (func_import): Don't create the $docbase directory if
61253         there is no file to store there.
61254
61255 2006-07-29  Bruno Haible  <bruno@clisp.org>
61256
61257         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61258         relevant, look for configure.ac there, not in the current directory.
61259         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61260
61261 2006-07-29  Bruno Haible  <bruno@clisp.org>
61262
61263         * gnulib-tool (SORT): New variable.
61264         (func_usage): Undocument --assume-autoconf option.
61265         Remove --assume-autoconf option handling.
61266         (autoconf_minversion): Determine from the contents of configure.ac.
61267         (func_import): Remove autoconf_minversion handling.
61268         Suggested by Eric Blake.
61269
61270 2006-07-29  Bruno Haible  <bruno@clisp.org>
61271
61272         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61273
61274 2006-07-29  Bruno Haible  <bruno@clisp.org>
61275
61276         * config/srclist.txt (*setenv.[ch]): Remove rules.
61277
61278 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61279
61280         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61281
61282 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61283
61284         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61285         arpa/inet.h.
61286
61287 2006-07-28  Simon Josefsson  <jas@extundo.com>
61288
61289         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61290         * modules/inet_pton (Depends-on): Likewise.
61291
61292 2006-07-28  Simon Josefsson  <jas@extundo.com>
61293
61294         * m4/netinet_in_h.m4: New file.
61295
61296 2006-07-28  Simon Josefsson  <jas@extundo.com>
61297
61298         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61299         #include's.
61300
61301 2006-07-28  Simon Josefsson  <jas@extundo.com>
61302
61303         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61304         #include's.
61305
61306 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61307
61308         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61309         setgid on directories only if they set these bits.
61310         * lib/modechange.h: Remove obsolete comment about masks.
61311
61312 2006-07-28  Eric Blake  <ebb9@byu.net>
61313
61314         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61315         macro expansion.
61316
61317 2006-07-28  Bruno Haible  <bruno@clisp.org>
61318
61319         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61320
61321 2006-07-28  Bruno Haible  <bruno@clisp.org>
61322
61323         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61324
61325 2006-07-28  Bruno Haible  <bruno@clisp.org>
61326
61327         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61328         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61329         Define fallbacks.
61330         Avoids link error on FreeBSD 4.x.
61331         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61332
61333         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61334         encoding.
61335         * lib/mbswidth.c (iswcntrl): Likewise.
61336
61337 2006-07-27  Bruno Haible  <bruno@clisp.org>
61338
61339         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61340         test.
61341
61342 2006-07-27  Bruno Haible  <bruno@clisp.org>
61343
61344         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61345         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61346         defined.
61347
61348 2006-07-26  Eric Blake  <ebb9@byu.net>
61349
61350         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61351
61352 2006-07-26  Eric Blake  <ebb9@byu.net>
61353
61354         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61355         like mingw that lack mkstemp.
61356         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61357         avoid compilation warning on mingw.
61358
61359 2006-07-26  Bruno Haible  <bruno@clisp.org>
61360
61361         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61362         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61363         INT_FAST*_MIN, INTPTR_MIN.
61364
61365 2006-07-25  Bruno Haible  <bruno@clisp.org>
61366
61367         * modules/version-etc (Depends-on): Add stdarg.
61368
61369 2006-07-25  Bruno Haible  <bruno@clisp.org>
61370
61371         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61372         complex commands.
61373
61374 2006-07-25  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61377         defined in <stdarg.h> or config.h.
61378
61379 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61382         (gl_STDIO_SAFER): Remove.
61383
61384 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         * MODULES.html.sh (File stream based Input/Output):
61387         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61388         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61389         * modules/fopen-safer, modules/tmpfile-safer: New files.
61390         * modules/stdio-safer: Remove.
61391
61392 2006-07-24  Bruno Haible  <bruno@clisp.org>
61393
61394         * modules/tmpdir: New file.
61395         * MODULES.html.sh (File system functions): Add it.
61396
61397 2006-07-24  Bruno Haible  <bruno@clisp.org>
61398
61399         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61400         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61401
61402 2006-07-24  Bruno Haible  <bruno@clisp.org>
61403
61404         * modules/clean-temp: New file.
61405
61406 2006-07-24  Bruno Haible  <bruno@clisp.org>
61407
61408         * m4/tmpdir.m4: New file, from GNU gettext.
61409
61410 2006-07-24  Bruno Haible  <bruno@clisp.org>
61411
61412         * lib/tmpdir.h: New file, from GNU gettext.
61413         * lib/tmpdir.c: New file, from GNU gettext.
61414
61415 2006-07-24  Bruno Haible  <bruno@clisp.org>
61416
61417         * lib/clean-temp.h: New file, from GNU gettext.
61418         * lib/clean-temp.c: New file, from GNU gettext.
61419
61420 2006-07-23  Eric Blake  <ebb9@byu.net>
61421
61422         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61423         (Depends-on): Add binary-io.
61424
61425 2006-07-23  Eric Blake  <ebb9@byu.net>
61426
61427         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61428
61429 2006-07-23  Eric Blake  <ebb9@byu.net>
61430
61431         * lib/tmpfile-safer.c: New file.
61432         * lib/stdio-safer.h (fopen_safer): Add prototype.
61433         * lib/stdio--.h (tmpfile): Make safer.
61434
61435 2006-07-23  Bruno Haible  <bruno@clisp.org>
61436
61437         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61438         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61439         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61440         gl_linked_remove_at): Use it.
61441
61442 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61443         and Simon Josefsson <jas@extundo.com>
61444
61445         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61446
61447         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61448
61449 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61450
61451         * modules/close-stream: New file.
61452         * modules/closeout (Description): Make it clear that it exits
61453         with a diagnostic on error.
61454         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61455         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61456
61457 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61458
61459         * m4/close-stream.m4: New file.
61460
61461 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61462
61463         * lib/close-stream.c, lib/close-stream.h: New files.
61464
61465 2006-07-22  Bruno Haible  <bruno@clisp.org>
61466
61467         Merge from GNU gettext 0.15.
61468
61469         2006-05-01  Bruno Haible  <bruno@clisp.org>
61470
61471                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61472
61473         2006-07-22  Bruno Haible  <bruno@clisp.org>
61474
61475                 * modules/javaversion: New file.
61476                 * MODULES.html.sh (Java): Add javaversion.
61477
61478         2006-03-12  Bruno Haible  <bruno@clisp.org>
61479
61480                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61481
61482         2005-12-04  Bruno Haible  <bruno@clisp.org>
61483
61484                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61485                 (untested).
61486
61487         2006-06-21  Bruno Haible  <bruno@clisp.org>
61488
61489                 Avoid warnings from recent versions of mcs.
61490                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61491                 -o, -L, -r any more. Use options documented since mcs-1.0
61492                 instead. Similarly for -g.
61493
61494         2005-12-04  Bruno Haible  <bruno@clisp.org>
61495
61496                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61497                 .resources, not .resource.
61498
61499         2005-07-09  Bruno Haible  <bruno@clisp.org>
61500
61501                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61502                 add a .dll suffix.
61503                 Reported by Mark Junker <mjscod@gmx.de>.
61504
61505         2006-07-22  Bruno Haible  <bruno@clisp.org>
61506
61507                 * modules/gettext: Upgrade to gettext-0.15.
61508                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61509                 m4/visibility.m4.
61510                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61511
61512 2006-07-22  Bruno Haible  <bruno@clisp.org>
61513
61514         Merge from GNU gettext 0.15.
61515
61516         2006-03-25  Bruno Haible  <bruno@clisp.org>
61517
61518                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61519
61520         2006-07-21  Bruno Haible  <bruno@clisp.org>
61521
61522                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61523                 "1.1".
61524
61525         2006-05-09  Bruno Haible  <bruno@clisp.org>
61526
61527                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61528                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61529                 for the conftestver execution.
61530
61531         2006-05-01  Bruno Haible  <bruno@clisp.org>
61532
61533                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61534                 optional target-version argument. Verify that the compiler
61535                 groks source of the specified source-version, or add -source
61536                 option as necessary. Verify that the compiler produces
61537                 bytecode in the specified target-version, or add -target and
61538                 -source options as necessary. Make the result of the test
61539                 available as variable CONF_JAVAC. Also log error output in
61540                 config.log.
61541
61542         2006-03-11  Bruno Haible  <bruno@clisp.org>
61543
61544                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61545
61546         2006-05-09  Bruno Haible  <bruno@clisp.org>
61547
61548                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61549                 CLASSPATH_SEPARATOR to a semicolon.
61550
61551         2006-03-12  Bruno Haible  <bruno@clisp.org>
61552
61553                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61554                 available as variable CONF_JAVA, for subsequent autoconf
61555                 tests. Also log error output in config.log.
61556
61557         2006-07-19  Bruno Haible  <bruno@clisp.org>
61558
61559                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61560                 that getline works on glibc2 systems. Needed to avoid trouble
61561                 in relocatable.c.
61562                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61563
61564         2005-12-04  Bruno Haible  <bruno@clisp.org>
61565
61566                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61567                 launcher (untested).
61568
61569         2005-12-04  Bruno Haible  <bruno@clisp.org>
61570
61571                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61572
61573         2006-07-22  Bruno Haible  <bruno@clisp.org>
61574
61575                 * gettext.m4: Update from GNU gettext-0.15.
61576                 * nls.m4: Likewise.
61577                 * po.m4: Likewise.
61578                 * inttypes-pri.m4: Likewise.
61579                 * inttypes-h.m4: Renamed from inttypes.m4.
61580                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61581
61582 2006-07-22  Bruno Haible  <bruno@clisp.org>
61583
61584         Merge from GNU gettext 0.15.
61585
61586         2005-07-05  Bruno Haible  <bruno@clisp.org>
61587
61588                 * printf-args.c (printf_fetchargs): Work around broken
61589                 definition of wint_t on mingw.
61590
61591         2005-02-12  Bruno Haible  <bruno@clisp.org>
61592
61593                 * xallocsa.h: Add extern "C" for C++.
61594
61595         2006-05-17  Bruno Haible  <bruno@clisp.org>
61596
61597                 Cygwin portability.
61598                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61599
61600         2006-04-30  Bruno Haible  <bruno@clisp.org>
61601
61602                 * progreloc.c: Include <mach-o/dyld.h> if available.
61603                 (find_executable): Use _NSGetExecutablePath when possible.
61604
61605         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61606
61607                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61608                 function.
61609
61610         2005-12-29  Bruno Haible  <bruno@clisp.org>
61611
61612                 * progreloc.c (set_program_name_and_installdir): Fix
61613                 compilation error.
61614
61615         2005-12-04  Bruno Haible  <bruno@clisp.org>
61616
61617                 Cygwin portability.
61618                 * progreloc.c: Include <windows.h> also on Cygwin.
61619                 (find_executable): Add support for Cygwin.
61620                 (set_program_name_and_installdir): Handle also platforms with
61621                 nonempty EXEEXT.
61622
61623         2006-07-11  Bruno Haible  <bruno@clisp.org>
61624
61625                 * javacomp.c: Fix a comment.
61626                 Reported by Jim Meyering.
61627
61628         2006-04-30  Bruno Haible  <bruno@clisp.org>
61629
61630                 * javacomp.h (compile_java_class): Add source_version,
61631                 target_version arguments.
61632                 * javacomp.c: Rewritten to choose only a compiler that
61633                 respects the specified source_version and target_version.
61634
61635         2006-06-27  Bruno Haible  <bruno@clisp.org>
61636
61637                 Assume correct S_ISDIR macro.
61638                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61639
61640         2006-07-22  Bruno Haible  <bruno@clisp.org>
61641
61642                 * javaversion.h: New file, from GNU gettext.
61643                 * javaversion.c: New file, from GNU gettext.
61644                 * javaversion.java: New file, from GNU gettext.
61645                 * javaversion.class: New file, from GNU gettext.
61646
61647         2006-05-17  Bruno Haible  <bruno@clisp.org>
61648
61649                 Cygwin portability.
61650                 * javaexec.c (execute_java_class): Test for jview program
61651                 also on Cygwin.
61652
61653         2006-04-09  Bruno Haible  <bruno@clisp.org>
61654
61655                 * fatal-signal.c: Don't include string.h.
61656                 (at_fatal_signal): Use a copying loop instead of memcpy.
61657
61658         2005-12-04  Bruno Haible  <bruno@clisp.org>
61659
61660                 * csharpexec.c: Add support for 'clix' launcher (untested).
61661                 (execute_csharp_using_sscli): New function.
61662                 (execute_csharp_program): Call it.
61663
61664         2006-06-21  Bruno Haible  <bruno@clisp.org>
61665
61666                 Avoid warnings from recent versions of mcs.
61667                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61668                 -o, -L, -r any more. Use options documented since mcs-1.0
61669                 instead. Similarly for -g.
61670
61671         2005-07-09  Bruno Haible  <bruno@clisp.org>
61672
61673                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61674                 add a .dll suffix.
61675                 Reported by Mark Junker <mjscod@gmx.de>.
61676
61677         2006-06-17  Bruno Haible  <bruno@clisp.org>
61678
61679                 * config.charset: Update for NetBSD 3.0.
61680
61681         2006-05-17  Bruno Haible  <bruno@clisp.org>
61682
61683                 Cygwin portability.
61684                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61685
61686         2006-05-16  Bruno Haible  <bruno@clisp.org>
61687
61688                 * localcharset.c [CYGWIN]: Include <windows.h>.
61689                 (get_charset_aliases): For Cygwin, return the same CPxxx
61690                 aliases list as under WIN32.
61691                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61692                 the environment variables. Fall back to GetACP().
61693
61694         2006-04-05  Bruno Haible  <bruno@clisp.org>
61695
61696                 * config.charset: Update Juan Manuel Guerrero's address.
61697
61698         2005-02-12  Bruno Haible  <bruno@clisp.org>
61699
61700                 * allocsa.h: Add extern "C" for C++.
61701
61702         2005-02-10  Bruno Haible  <bruno@clisp.org>
61703
61704                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61705                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61706
61707         2006-07-22  Bruno Haible  <bruno@clisp.org>
61708
61709                 * gettext.h: Update to GNU gettext-0.15.
61710
61711 2006-07-22  Bruno Haible  <bruno@clisp.org>
61712
61713         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61714         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61715         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61716
61717 2006-07-21  Eric Blake  <ebb9@byu.net>
61718
61719         * modules/stdlib-safer: New file.
61720         * MODULES.html.sh (File stream based Input/Output): Add
61721         stdlib-safer.
61722
61723 2006-07-21  Eric Blake  <ebb9@byu.net>
61724
61725         * lib/stdlib-safer.h: New file from coreutils, required by
61726         stdlib--.h.
61727
61728 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61729
61730         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61731
61732 2006-07-20  Bruno Haible  <bruno@clisp.org>
61733
61734         * gnulib-tool: Recognize new option --assume-autoconf.
61735         (autoconf_minversion): New variable.
61736         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61737
61738 2006-07-20  Bruno Haible  <bruno@clisp.org>
61739
61740         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61741
61742 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61743
61744         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61745         Reindent and repaginate.
61746
61747 2006-07-19  Derek Price  <derek@ximbiot.com>
61748
61749         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61750         Correct grammar.
61751
61752 2006-07-17  Bruno Haible  <bruno@clisp.org>
61753
61754         * modules/list: New file.
61755         * modules/array-list: New file.
61756         * modules/carray-list, modules/carray-list-tests: New files.
61757         * modules/linked-list, modules/linked-list-tests: New files.
61758         * modules/avltree-list, modules/avltree-list-tests: New files.
61759         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61760         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61761         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61762         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61763         * modules/oset: New file.
61764         * modules/array-oset: New file.
61765         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61766         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61767         * tests/test-carray_list.c: New file.
61768         * tests/test-linked_list.c: New file.
61769         * tests/test-avltree_list.c: New file.
61770         * tests/test-rbtree_list.c: New file.
61771         * tests/test-linkedhash_list.c: New file.
61772         * tests/test-avltreehash_list.c: New file.
61773         * tests/test-rbtreehash_list.c: New file.
61774         * tests/test-avltree_oset.c: New file.
61775         * tests/test-rbtree_oset.c: New file.
61776         * MODULES.html.sh (Container data structures): New section.
61777
61778 2006-07-17  Bruno Haible  <bruno@clisp.org>
61779
61780         * m4/gl_list.m4: New file.
61781
61782 2006-07-17  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/gl_list.h: New file.
61785         * lib/gl_list.c: New file.
61786         * lib/gl_array_list.h: New file.
61787         * lib/gl_array_list.c: New file.
61788         * lib/gl_carray_list.h: New file.
61789         * lib/gl_carray_list.c: New file.
61790         * lib/gl_linked_list.h: New file.
61791         * lib/gl_linked_list.c: New file.
61792         * lib/gl_anylinked_list1.h: New file.
61793         * lib/gl_anylinked_list2.h: New file.
61794         * lib/gl_avltree_list.h: New file.
61795         * lib/gl_avltree_list.c: New file.
61796         * lib/gl_anyavltree_list1.h: New file.
61797         * lib/gl_anyavltree_list2.h: New file.
61798         * lib/gl_rbtree_list.h: New file.
61799         * lib/gl_rbtree_list.c: New file.
61800         * lib/gl_anyrbtree_list1.h: New file.
61801         * lib/gl_anyrbtree_list2.h: New file.
61802         * lib/gl_anytree_list1.h: New file.
61803         * lib/gl_anytree_list2.h: New file.
61804         * lib/gl_linkedhash_list.h: New file.
61805         * lib/gl_linkedhash_list.c: New file.
61806         * lib/gl_anyhash_list1.h: New file.
61807         * lib/gl_anyhash_list2.h: New file.
61808         * lib/gl_avltreehash_list.h: New file.
61809         * lib/gl_avltreehash_list.c: New file.
61810         * lib/gl_rbtreehash_list.h: New file.
61811         * lib/gl_rbtreehash_list.c: New file.
61812         * lib/gl_anytreehash_list1.h: New file.
61813         * lib/gl_anytreehash_list2.h: New file.
61814
61815         * lib/gl_oset.h: New file.
61816         * lib/gl_oset.c: New file.
61817         * lib/gl_array_oset.h: New file.
61818         * lib/gl_array_oset.c: New file.
61819         * lib/gl_avltree_oset.h: New file.
61820         * lib/gl_avltree_oset.c: New file.
61821         * lib/gl_rbtree_oset.h: New file.
61822         * lib/gl_rbtree_oset.c: New file.
61823         * lib/gl_anytree_oset.h: New file.
61824
61825 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61826
61827         * m4/mkancesdirs.m4: New file.
61828         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61829         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61830         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61831         it.
61832
61833 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61834
61835         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61836         * lib/mkancesdirs.h: New files.
61837         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61838         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61839         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61840         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61841         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61842         callers changed.  Revamp internals significantly, by not
61843         attempting to create directories that are temporarily more
61844         permissive than the final results.  Do not attempt to use
61845         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61846         This removes some race conditions, fixes some bugs, and simplifies
61847         things.  Use new dirchownmod function to do owner and mode changes.
61848         * lib/mkdir-p.h: Likewise.
61849         * lib/modechange.c (octal_to_mode): New function.
61850         (struct mode_change): New member mentioned.
61851         (make_node_op_equals): New arg mentioned.  All callers changed.
61852         (mode_compile): Keep track of which mode bits the user has explicitly
61853         mentioned.
61854         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61855         New arg PMODE_BITS, to keep track of which mode bits the user
61856         mentioned; it treats S_ISUID and S_ISGID speciall.
61857         All callers changed.
61858         * lib/modechange.h: Likewise.
61859
61860 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         * MODULES.html.sh: Add mkancestors.
61863         * modules/mkancesdirs: New module.
61864         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61865         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61866         The chdir-safer and afs files are now orphans; I'll remove them
61867         unless someone speaks up.
61868         Add lib/dirchownmod.c, lib/dirchownmod.h.
61869         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61870         Add lchown, mkancesdirs.
61871         (Maintainer): Add self.
61872
61873 2006-07-15  Karl Berry  <karl@gnu.org>
61874
61875         * gnulib-tool: help message wording/arrangement.
61876
61877 2006-07-14  Simon Josefsson  <jas@extundo.com>
61878
61879         * doc/gnulib.texi (Libtool and Windows): New section.
61880
61881 2006-07-12  Simon Josefsson  <jas@extundo.com>
61882
61883         * modules/gendocs (License): Fix license, approved by Karl.
61884
61885 2006-07-12  Eric Blake  <ebb9@byu.net>
61886
61887         * MODULES.html.sh: Add gendocs.
61888
61889 2006-07-11  Eric Blake  <ebb9@byu.net>
61890
61891         * modules/fdl: New module, to install doc/fdl.texi.
61892         * MODULES.html.sh: Add new section for documentation modules.
61893         * gnulib-tool: Avoid space-tab.
61894         (--doc-base): New option, to manage files from doc.
61895
61896 2006-07-11  Eric Blake  <ebb9@byu.net>
61897
61898         * m4/absolute-header.m4: Fix comments to match recent change.
61899
61900 2006-07-11  Eric Blake  <ebb9@byu.net>
61901
61902         * gnulib-tool: List --doc-base before --tests-base.
61903
61904 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61905
61906         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61907
61908 2006-07-11  Bruno Haible  <bruno@clisp.org>
61909
61910         * README: Mention where to put documentation.
61911
61912 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61913
61914         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61915
61916 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61917
61918         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61919         to stdint.m4.
61920
61921 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61922
61923         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61924         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61925         "no/such/file/stdint.h" when there is no such file, so that
61926         the resulting C code can be parsed by dodgy compilers.
61927         Problems reported by Bob Proulx.
61928
61929 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61930
61931         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61932         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61933         macros into the GNU _D_EXACT_NAMLEN.
61934         * lib/savedir.c:  Likewise.
61935         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61936
61937 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61938         and Paul Eggert  <eggert@cs.ucla.edu>
61939
61940         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61941         * m4/savedir.m4:
61942         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61943         macros into the GNU _D_EXACT_NAMLEN.
61944
61945 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61946
61947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61948         around the absolute name, to work around a problem with the HP-UX
61949         11.23 native C compiler, reported by Bob Proulx.
61950
61951 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61952
61953         * doc/maintain.texi, make-stds.texi: Sync from
61954         <http://savannah.gnu.org/projects/gnustandards>.
61955
61956 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61959
61960 2006-07-09  Jim Meyering  <jim@meyering.net>
61961
61962         * m4/glob.m4: Remove a doubled word in a comment.
61963
61964 2006-07-09  Jim Meyering  <jim@meyering.net>
61965
61966         * lib/argp-pv.c: Remove a doubled word in a comment.
61967         * lib/check-version.c (check_version): Likewise.
61968         * lib/javacomp.c (compile_java_class): Likewise.
61969
61970 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61973         for the benefit of people using Autoconf 2.60.  If you want to
61974         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61975         (or m4/onceonly.m4, if pre-2.57) manually.
61976
61977 2006-07-08  Jim Meyering  <jim@meyering.net>
61978
61979         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61980         comment.
61981         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61982         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61983         comment.
61984
61985 2006-07-08  Jim Meyering  <jim@meyering.net>
61986
61987         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61988
61989 2006-07-07  Simon Josefsson  <jas@extundo.com>
61990
61991         * tests/test-crc.c: Change expected crc value, the test vector
61992         were probably computed using the old broken crc.c?
61993
61994 2006-07-06  Simon Josefsson  <jas@extundo.com>
61995
61996         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61997         now the canonical place for the M4 file).
61998
61999         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
62000         from the sys_socket dependency now.
62001
62002         * modules/inet_pton (Files): Ditto.
62003
62004         * modules/inet_ntop (Files): Ditto.
62005
62006 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62007
62008         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
62009         not gl_PREREQ_GETUSERSHELL.
62010
62011 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62012
62013         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
62014         with only one argument, for Autoconf 2.60.
62015         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
62016         expand to nothing, so add a shell command to avoid syntax error.
62017         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62018
62019 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62020
62021         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
62022
62023 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62024
62025         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
62026         no longer needed.  Check for isblank decl.
62027         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
62028         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
62029         of existence.
62030
62031 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62032
62033         * lib/getloadavg.c: Use __VMS, not VMS.
62034         * lib/getopt.c: Likewise.
62035         * lib/getpagesize.h: Likewise.
62036         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
62037         and probably does not work.
62038
62039 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
62040
62041         * lib/.cppi-disable: Add wcwidth.
62042         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
62043         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
62044         (ISGRAPH): Remove.  All uses changed to isgraph.
62045         (FOLD) [!defined _LIBC]: Remove special case.
62046         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
62047         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
62048         HAVE_ISBLANK.
62049         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
62050         case.
62051
62052 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62053
62054         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
62055         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
62056         brackets.  Other minor changes to suppress some compiler
62057         warnings.
62058
62059 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62060         and Paul Eggert  <eggert@cs.ucla.edu>
62061
62062         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
62063         of invoking obsolescent AC_HEADER_DIRENT macro.
62064         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
62065         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
62066         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62067         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
62068         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
62069         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62070         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
62071         * m4/readdir.m4: Remove; no longer needed.
62072
62073 2006-07-06  Derek R. Price  <derek@ximbiot.com>
62074         and Paul Eggert  <eggert@cs.ucla.edu>
62075
62076         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
62077         Don't worry about this obsolete case any more.
62078         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
62079         directories.
62080         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
62081         worry about this obsolete case any more.
62082         * lib/fts.c: Likewise.
62083         * lib/getcwd.c: Likewise.
62084         * lib/glob.h: Likewise.
62085         * lib/savedir.c: Likewise.
62086
62087 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62088
62089         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
62090         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
62091         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
62092         needed.
62093         All uses removed.
62094         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62095         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62096         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
62097         needed.
62098         * m4/getdate.m4 (gl_GETDATE): Likewise.
62099         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62100         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62101         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62102         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62103         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
62104         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62105         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
62106         needed.
62107
62108 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         * lib/memcasecmp.c: Include <limits.h>.
62111         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
62112         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
62113         Don't assume isdigit succeeds only on '0' through '9'.
62114
62115 2006-07-05  Eric Blake  <ebb9@byu.net>
62116
62117         * modules/getaddrinfo (Depends-on): Add snprintf.
62118
62119 2006-07-05  Eric Blake  <ebb9@byu.net>
62120
62121         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
62122         to avoid 'header present but could not be compiled' on cygwin.
62123
62124 2006-07-05  Eric Blake  <ebb9@byu.net>
62125
62126         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
62127         missing from netdb.h.
62128         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
62129
62130 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62131
62132         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
62133         no longer needed.
62134         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
62135         * m4/getdate.m4 (gl_GETDATE): Likewise.
62136         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
62137         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
62138         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62139         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
62140         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62141
62142 2006-07-05  Derek R. Price  <derek@ximbiot.com>
62143
62144         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
62145         All uses of is_space replaced by isspace.
62146         * lib/exit.h: Don't talk about STDC_HEADERS.
62147         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
62148         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
62149         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
62150         replaced by isprint etc.
62151         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
62152         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62153         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
62154         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
62155         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
62156         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
62157
62158 2006-07-05  Bruno Haible  <bruno@clisp.org>
62159
62160         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
62161         the function exists, before testing against AIX.
62162         Reported by Martin Lambers <marlam@marlam.de>.
62163
62164 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
62167         From Mark D. Baushke.
62168
62169 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
62170
62171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
62172         to the absolute name, not just one, to bypass Sun C 5.8's
62173         "warning: #include of /usr/include/... may be non-portable".
62174
62175 2006-07-04  Eric Blake  <ebb9@byu.net>
62176
62177         * modules/dirname-tests: New test module.
62178         * tests/test-dirname.c: New file, replacing dirname.c
62179         TEST_DIRNAME section that was recently deleted.
62180
62181 2006-07-04  Bruno Haible  <bruno@clisp.org>
62182
62183         Assume ANSI C header files and <ctype.h> functions.
62184         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
62185         (mbsnwidth): Use isprint, iscntrl instead.
62186
62187 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62188
62189         Merge from coreutils.
62190         * MODULES.html.sh: Add xstrtold.
62191         * modules/xstrtold: New file.
62192         * modules/cycle-check (Files): Add lib/same-inode.h.
62193         * modules/dirname (Files): Add m4/double-slash-root.m4.
62194         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
62195         * modules/mkdir-p (Files): Add lib/same-inode.h.
62196         * modules/same (Files): Add lib/same-inode.h.
62197
62198 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62199
62200         * m4/absolute-header.m4: Renamed from full-header-path.m4.
62201         This is to keep the terminology clean; POSIX talks about
62202         "absolute pathnames", not "full pathnames", but the GNU
62203         Coding Standards say to use "path" for something else;
62204         so use "absolute" to keep both sides happy.
62205         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
62206         Set gl_absolute_header, not gl_full_header_path.
62207         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
62208         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
62209         All uses changed.
62210
62211         Merge from coreutils.
62212
62213         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62214
62215         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62216         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62217         want to require the building of c-strtod.o.
62218         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62219         needs -lm directly.
62220         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62221
62222         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62223
62224         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62225         --as-needed option if available.  Problem reported by Albert Chin in
62226         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62227         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62228         cc merely issues a bunch of annoying warnings for --as-needed
62229         (this problem was reported by Bob Proulx).  Also, try linking with
62230         -lm to detect a bug in binutils 2.16 (this problem was reported
62231         by Ralf Wildenhues).
62232
62233         2006-06-18  Jim Meyering  <jim@meyering.net>
62234
62235         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62236         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62237         macro.
62238         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62239         also check for glibc-2.4's abort-inducing bug.
62240
62241         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62242         Low-probability clean-up should be to use rmdir to get rid of
62243         the just-created directory, not unlink.
62244
62245         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62246         configure fail, and request a bug report to inform us about it.
62247         Add a comment that, barring reports to the contrary, in 2007 we'll
62248         assume ftruncate is universally available.
62249
62250         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62251
62252         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62253
62254         2006-03-12  Jim Meyering  <jim@meyering.net>
62255
62256         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62257         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62258         * m4/same.m4 (gl_SAME): Likewise.
62259         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62260
62261         2006-03-11  Eric Blake  <ebb9@byu.net>
62262
62263         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62264         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62265         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62266         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62267
62268 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62269
62270         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62271         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62272         reported by Mark D. Baushke, one in
62273         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62274
62275         Merge from coreutils.
62276
62277         * lib/.cppi-disable: Add stdint_.h.
62278         * lib/.cvsignore: Add stdint.h.
62279
62280         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62281
62282         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62283         both double and long double versions.
62284         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62285         * lib/xstrtold.c: New file.
62286         * lib/xstrtod.h (xstrtold): New decl.
62287
62288         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62289
62290         * lib/filemode.c (setst): Remove.
62291         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62292         (arguably) clearer, and the generated code is a bit smaller on my
62293         Debian GNU/Linux stable x86 host.
62294
62295         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62296
62297         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62298         Assume that filemode.h includes sys/types.h and sys/stat.h.
62299         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62300         (ftypelet): Reorder to put common cases first, for efficiency.
62301         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62302         to do 'M'.
62303         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62304         of 10, for compatibility with FreeBSD.  All callers changed.
62305         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62306         types that can't be deduced solely from st_mode.  First arg is now a
62307         const pointer.
62308         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62309         (strmode): Renamed from mode_string.
62310         (filemodestring): New decl.
62311         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62312         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62313         needed.
62314         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62315
62316         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62317
62318         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62319         fsusage.h now does that.  Include fsusage.h first, to test interface.
62320         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62321         at most one method (the old code could have generated decls that
62322         didn't conform to C89, not that this was ever exercised).
62323         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62324
62325         2006-03-19  Jim Meyering  <jim@meyering.net>
62326
62327         Work even in a chroot where d_ino values for entries in "/"
62328         don't match the stat.st_ino values for the same names.
62329         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62330         number, iterate through all entries again, using lstat instead.
62331         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62332         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62333
62334         * lib/getcwd.c (__getcwd): Clarify a comment.
62335         Use memcpy in place of a call to strcpy.
62336
62337         2006-03-12  Jim Meyering  <jim@meyering.net>
62338
62339         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62340         matches that of the current directory (which we're about to chdir ".."
62341         out of), then save the dev-ino of the parent, instead.
62342
62343         * lib/same-inode.h (SAME_INODE): New file/macro.
62344         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62345         Include "same-inode.h", instead.
62346         * lib/same.c: Likewise.
62347         * lib/cycle-check.h: Include "same-inode.h".
62348         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62349         * lib/cycle-check.c (SAME_INODE): Remove definition.
62350         * lib/root-dev-ino.h: Include "same-inode.h".
62351
62352         2006-03-11  Eric Blake  <ebb9@byu.net>
62353
62354         * lib/same.c (same_name): s/base_name/last_component/
62355         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62356         * lib/filenamecat.c (file_name_concat): Likewise.
62357
62358         2006-03-11  Eric Blake  <ebb9@byu.net>,
62359                     Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62362         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62363         drive prefix.
62364         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62365         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62366         (last_component): New method.
62367         * lib/dirname.c (dir_len): Determine when drive letters need a
62368         subsequent slash.  Preserve // when it is special.
62369         (dir_name): Don't append dot when drive letter is absolute.
62370         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62371         * lib/basename.c (base_name): New semantics - malloc the result.
62372         Preserve // when it is special.  Preserve relative files that look
62373         like drive letters.
62374         (base_len): Preserve // when it is special.
62375         (last_component): New method, similar to old base_name semantics.
62376         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62377         base_name.  Strip redundant slashes from ///.
62378
62379 2006-07-03  Jim Meyering  <jim@meyering.net>
62380
62381         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62382         macro is used before the first cycle_check call.
62383
62384 2006-07-03  Eric Blake  <ebb9@byu.net>
62385
62386         * modules/dirname (Depends-on): Add xstrndup.
62387
62388 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62389
62390         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62391         test cases, so that config.log is a bit easier to follow.
62392
62393 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62394
62395         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62396         both are 64 bits, since this seems to be the tradition, and this
62397         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62398         we ever run into a host that prefers long long to long in this
62399         case, we'll need another configure-time test.  Problem reported by
62400         Jim Meyering.
62401
62402 2006-07-02  Eric Blake  <ebb9@byu.net>
62403
62404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62405
62406 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62407
62408         * modules/inttypes (Depends-on): No longer depends on stdint.
62409         * modules/stdint (Description): Say more about assumptions.
62410         Say that the fast types might differ.  Say macros are used.
62411         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62412         (Makefile.am): Revise list of substituted symbols to match
62413         new stdint.m4.
62414         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62415         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62416         * tests/test-stdint.c (verify_same_types)
62417         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62418         the code conforms to C99/C89.
62419         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62420         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62421
62422 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62423
62424         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62425         but fix a bug, by requiring at least 64 bits.
62426         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62427         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62428         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62429         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62430
62431         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62432         changes.  Make 2.59 a prerequisite.  Check and substitute for
62433         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62434         inttypes.h.  Do not use special include files; just use the
62435         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62436         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62437         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62438         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62439         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62440         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62441         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62442         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62443         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62444         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62445         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62446         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62447         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62448         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62449         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62450         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62451         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62452         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62453         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62454         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62455         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62456         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62457         not check for things that C99 does not require, e.g., int8_t.  If
62458         a test isn't needed unless <stdint.h> isn't working, and is
62459         unlikely to be needed for any other reason, then don't do it
62460         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62461         size_t, since we assume C89 freestanding at least.  Do not check
62462         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62463         the right thing even if the types are not defined.  Instead use:
62464         (gl_STDINT_TYPE_PROPERTIES): New macro.
62465         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62466         testing whether <sys/types.h> clashes, as Autoconf does this for
62467         us now.  All uses removed.
62468         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62469         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62470         (gl_CHECK_TYPE_SAME):
62471         Remove; no longer needed.
62472         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62473         exists, since we'll return 0 anyway in that case.
62474         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62475
62476 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62477
62478         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62479         possible collision with system files.
62480         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62481         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62482         WCHAR_MIN and WCHAR_MAX in this case.
62483         (<stddef.h>): Do not include; no longer needed.
62484         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62485         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62486         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62487         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62488         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62489         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62490         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62491         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62492         !defined(__c99))]: Include in this case too, since it's harmless
62493         now.
62494         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62495         dangerous to do so.
62496         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62497         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62498         (_STDINT_MIN, _STDINT_MAX): New macros.
62499         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62500         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62501         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62502         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62503         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62504         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62505         macros, not typedefs; this simplifies things quite a bit.
62506         Use long int for all types narrower than int64_t.
62507         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62508         Define in terms of long long int or int64_t or long int,
62509         not int64_t or int32_t.  This saves some compile-time testing.
62510         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62511         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62512         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62513         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62514         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62515         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62516         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62517         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62518         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62519         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62520         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62521         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62522         undef any previous version and define our own version, for
62523         simplicity and consistency with the new macros for types.
62524         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62525         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62526         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62527         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62528         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62529         @WINT_T_SUFFIX@ to keep things simple here.
62530         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62531         Simplify by assuming typical 8/16/32/64 host, since we're
62532         already doing that elsewhere anyway.
62533         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62534         and assume long long int is 64 bits if available.  This
62535         speeds up 'configure'.
62536
62537 2006-07-01  Eric Blake  <ebb9@byu.net>
62538
62539         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62540         Reported by Andreas Buening.
62541
62542 2006-07-01  Eric Blake  <ebb9@byu.net>
62543
62544         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62545
62546 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62547
62548         * lib/getaddrinfo.c: fixed typo
62549
62550 2006-06-29  Jim Meyering  <jim@meyering.net>
62551
62552         * modules/strftime (Maintainer): Add my name, since with the
62553         FPRINTFTIME changes strftime.c has forked from glibc.
62554
62555 2006-06-29  Eric Blake  <ebb9@byu.net>
62556
62557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62558
62559 2006-06-29  Eric Blake  <ebb9@byu.net>
62560
62561         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62562
62563 2006-06-29  Eric Blake  <ebb9@byu.net>
62564
62565         * lib/stat_.h: New file.
62566
62567 2006-06-29  Eric Blake  <ebb9@byu.net>
62568
62569         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62570         unused static function.
62571
62572 2006-06-29  Eric Blake  <ebb9@byu.net>
62573
62574         * doc/functions.texi (Function Portability): Document missing lstat
62575         on mingw.
62576
62577 2006-06-29  Eric Blake  <ebb9@byu.net>
62578
62579         * MODULES.html.sh: Add sys_stat.
62580         * modules/sys_stat: New module.
62581         * modules/mkstemp (Depends-on): Add sys_stat.
62582
62583 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62584
62585         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62586
62587 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62588
62589         * m4/c-bs-a.m4: Removed.
62590
62591 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62592
62593         * lib/strftime.c: Assume strftime() exists.
62594
62595 2006-06-29  Derek Price  <derek@ximbiot.com>
62596
62597         * modules/c-bs-a: Removed - \a is C89.
62598         * MODULES.html.sh: Remove c-bs-a.
62599
62600 2006-06-29  Bruno Haible  <bruno@clisp.org>
62601
62602         * modules/wcwidth (License): Change to LGPL.
62603
62604 2006-06-28  Simon Josefsson  <jas@extundo.com>
62605
62606         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62607         on _WIN32.
62608
62609         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62610         getnameinfo.
62611
62612 2006-06-28  Simon Josefsson  <jas@extundo.com>
62613
62614         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62615
62616 2006-06-28  Simon Josefsson  <jas@extundo.com>
62617
62618         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62619         functions there.  It will succeed on Windows XP, but on Windows
62620         2000 and (presumably) earlier, it will fail, and use the internal
62621         re-implementation.
62622         (use_win32_p): New function.
62623         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62624         Support AI_NUMERICSERV to disable getservbyname.
62625         (getnameinfo): New function, only supports
62626         NI_NUMERICHOST|NI_NUMERICSERV for now.
62627
62628         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62629         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62630         getnameinfo.
62631
62632 2006-06-28  Eric Blake  <ebb9@byu.net>
62633
62634         * modules/wcwidth: New file.
62635         * modules/mbchar (Depends-on): Add wcwidth.
62636         * modules/mbswidth (Depends-on): Add wcwidth.
62637         * MODULES.html.sh: Add wcwidth.
62638
62639 2006-06-28  Eric Blake  <ebb9@byu.net>
62640
62641         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62643
62644 2006-06-28  Eric Blake  <ebb9@byu.net>
62645
62646         * lib/xvasprintf.h: Fix comments.
62647
62648 2006-06-28  Eric Blake  <ebb9@byu.net>
62649
62650         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62651         * lib/mbswidth.c (wcwidth): Move from here...
62652         * lib/wcwidth.h: ...to this new file.
62653
62654 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62655
62656         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62657
62658         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62659         it's obsolete.
62660         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62661
62662 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62663
62664         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62665         Autoconf 2.60 says this stuff was obsolete.
62666
62667 2006-06-28  Bruno Haible  <bruno@clisp.org>
62668
62669         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62670
62671 2006-06-28  Bruno Haible  <bruno@clisp.org>
62672
62673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62674         gt_TYPE_WCHAR_T.
62675
62676 2006-06-28  Bruno Haible  <bruno@clisp.org>
62677
62678         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62679         declaration for wcwidth.
62680         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62681
62682 2006-06-28  Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62685         (mkdir): Define using _mkdir.
62686
62687 2006-06-28  Bruno Haible  <bruno@clisp.org>
62688
62689         * lib/getaddrinfo.h: Fix POSIX URL.
62690         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62691         _WIN32.
62692         (use_win32_p): Make static.
62693         (getaddrinfo): Reject service name if it is empty or does not consist
62694         solely of decimal digits, or if its value is > 65535.
62695         (getnameinfo): Remove useless casts.
62696
62697 2006-06-27  Simon Josefsson  <jas@extundo.com>
62698
62699         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62700         Eggert and Martin Lambers.
62701
62702 2006-06-27  Simon Josefsson  <jas@extundo.com>
62703
62704         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62705         Eggert and Martin Lambers.
62706
62707 2006-06-27  Bruno Haible  <bruno@clisp.org>
62708
62709         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62710         result to 0, not to empty.
62711         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62712
62713 2006-06-27  Bruno Haible  <bruno@clisp.org>
62714
62715         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62716
62717 2006-06-26  Simon Josefsson  <jas@extundo.com>
62718
62719         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62720         present.
62721
62722 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62723
62724         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62725         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62727
62728 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62729
62730         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62731
62732 2006-06-26  Bruno Haible  <bruno@clisp.org>
62733
62734         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62735
62736 2006-06-26  Bruno Haible  <bruno@clisp.org>
62737
62738         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62739
62740 2006-06-26  Bruno Haible  <bruno@clisp.org>
62741
62742         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62743         SGI C compiler in pre-C99 mode.
62744         Suggested by Mark D. Baushke and Larry Jones.
62745
62746 2006-06-26  Bruno Haible  <bruno@clisp.org>
62747
62748         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62749         WCHAR_MAX.
62750         Reported by Mark D. Baushke and Larry Jones.
62751
62752 2006-06-26  Bruno Haible  <bruno@clisp.org>
62753
62754         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62755         in pre-C99 mode.
62756         Suggested by Mark D. Baushke and Larry Jones.
62757
62758 2006-06-23  Simon Josefsson  <jas@extundo.com>
62759             Bruno Haible  <bruno@clisp.org>
62760
62761         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62762         Emit mostlyclean-local rule.
62763         (func_emit_tests_Makefile_am): Likewise.
62764         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62765
62766 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62767
62768         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62769
62770 2006-06-23  Bruno Haible  <bruno@clisp.org>
62771
62772         * tests/test-stdint.c: Update to match ISO C 99 Technical
62773         Corrigendum 1.
62774
62775 2006-06-23  Bruno Haible  <bruno@clisp.org>
62776
62777         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62778
62779 2006-06-23  Bruno Haible  <bruno@clisp.org>
62780
62781         * lib/stdint_.h: Treat IRIX like OpenBSD.
62782
62783 2006-06-23  Bruno Haible  <bruno@clisp.org>
62784
62785         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62786         ISO C 99 Technical Corrigendum 1.
62787
62788 2006-06-22  Simon Josefsson  <jas@extundo.com>
62789
62790         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62791         MinGW.
62792
62793 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62794
62795         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62796         needed.  Some compiler complained about some of them.  Problem reported
62797         by Larry Jones in
62798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62799
62800 2006-06-21  Simon Josefsson  <jas@extundo.com>
62801
62802         * tests/test-getaddrinfo.c: New file.
62803
62804         * modules/getaddrinfo-tests: New file.
62805
62806         * MODULES.html.sh: Add inet_pton.
62807
62808         * modules/inet_pton: New file.
62809
62810 2006-06-21  Simon Josefsson  <jas@extundo.com>
62811
62812         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62813         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62814         of using the (limited) gnulib implementation on Windows XP.
62815
62816         * m4/inet_pton.m4: New file.
62817
62818 2006-06-21  Simon Josefsson  <jas@extundo.com>
62819
62820         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62821         variable.
62822
62823         * lib/socket_.h: Don't define WINVER.
62824
62825         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62826         slightly modified to work in gnulib.
62827
62828 2006-06-21  Simon Josefsson  <jas@extundo.com>
62829
62830         * doc/gnulib.texi (Windows sockets): Add.
62831
62832 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62833
62834         * lib/read-file.c (fread_file): Start with buffer allocation of
62835         0 bytes rather than 1 byte; this simplifies the code.
62836         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62837         code to free buffer and save/restore errno.
62838         (internal_read_file): Remove unused local.
62839
62840 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62841
62842         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62843         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62844         Problem reported by Denis Excoffier in
62845         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62846
62847 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62848
62849         * modules/sys_socket, modules/socklen: Include sys/types since
62850         FreeBSD 4.x's sys/socket.h needs it.
62851
62852 2006-06-19  Simon Josefsson  <jas@extundo.com>
62853
62854         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62855
62856 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62857
62858         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62859
62860 2006-06-19  Bruno Haible  <bruno@clisp.org>
62861
62862         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62863         and FULL_PATH_INTTYPES_H in angle brackets.
62864         Reported by Mark D. Baushke <mdb@gnu.org>.
62865
62866 2006-06-17  Eric Blake  <ebb9@byu.net>
62867
62868         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62869         errno.
62870
62871 2006-06-17  Bruno Haible  <bruno@clisp.org>
62872
62873         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62874         <sys/inttypes.h>.
62875
62876 2006-06-17  Bruno Haible  <bruno@clisp.org>
62877
62878         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62879         whether errno is declared. Assume <errno.h> declares errno.
62880
62881 2006-06-17  Bruno Haible  <bruno@clisp.org>
62882
62883         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62884
62885 2006-06-17  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62888         problem on Solaris 2.5.1.
62889
62890 2006-06-16  Eric Blake  <ebb9@byu.net>
62891
62892         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62893         * lib/unicodeio.c [!defined errno]: Likewise.
62894         * lib/strtol.c [!defined errno]: Likewise.
62895         * lib/strtod.c [!defined errno]: Likewise.
62896
62897 2006-06-15  Eric Blake  <ebb9@byu.net>
62898
62899         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62900
62901 2006-06-15  Eric Blake  <ebb9@byu.net>
62902
62903         * config/srclist.txt (ssize_t.m4): Lose sync.
62904
62905 2006-06-15  Bruno Haible  <bruno@clisp.org>
62906
62907         * modules/stdint (Files): Include m4/full-header-path.m4,
62908         m4/size_max.m4, m4/wchar_t.m4.
62909         (Makefile.am): Many more substitutions.
62910         * modules/stdint-tests: New file.
62911         * tests/test-stdint.c: New file.
62912
62913 2006-06-15  Bruno Haible  <bruno@clisp.org>
62914
62915         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62916         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62917         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62918         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62919         gl_CHECK_TYPE_SAME): New macros.
62920
62921 2006-06-15  Bruno Haible  <bruno@clisp.org>
62922
62923         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62924
62925 2006-06-15  Bruno Haible  <bruno@clisp.org>
62926
62927         * lib/stdint_.h: Rewritten to be fully auto-configured.
62928         Fixes bug on HP-UX/IA64.
62929
62930 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62931
62932         * lib/getdate.y (__attribute__): Don't define if already defined.
62933         Problem reported by Larry Jones.
62934         * lib/utimens.c (__attribute__): Likewise.
62935
62936 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62937
62938         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62939         reported by Andreas Schwab.
62940
62941 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62942             Bruno Haible  <bruno@clisp.org>
62943
62944         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62945         check for the declaration of strnlen and a run test that exposes the
62946         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62947         rpl_strndup.
62948
62949 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62950             Bruno Haible  <bruno@clisp.org>
62951
62952         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62953
62954 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62955
62956         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62957         compile test, for Tru64 4.0D.
62958
62959 2006-05-28  Karl Berry  <karl@gnu.org>
62960
62961         * config/srclist.txt (printf-args.c): lose sync.
62962
62963 2006-05-26  Martin Lambers  <marlam@marlam.de>
62964
62965         * lib/getpass.c: Updates the test for the native W32 API, and adds
62966         missing includes, thus fixing compilation warnings.
62967
62968 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62969
62970         * lib/exclude.c (exclude_fnmatch): New function.
62971         (excluded_file_name): Call exclude_fnmatch.
62972         * lib/exclude.h (excluded_file_name): New prototype
62973
62974 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62975
62976         * lib/tempname.c (small_open, large_open): New macros.
62977         (__open, __open64) [!_LIBC]: Remove.
62978         (__gen_tempname): Use small_open and large_open instead of __open
62979         and __open64.  This fixes a portability bug on HP-UX 11.11i
62980         reported by Simon Wing-Tang in
62981         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62982
62983 2006-05-24  Bruno Haible  <bruno@clisp.org>
62984
62985         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62986         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62987         Reported by Thorsten Maerz <torte@netztorte.de> via
62988         Aaron Stone <aaron@serendipity.cx>.
62989
62990 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62991
62992         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62993         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62994         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62995         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62996         not really conditional on the cache.
62997         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62998
62999 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
63002         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
63003         (my_usleep): Don't mishandle maximum value.
63004
63005 2006-05-19  Jim Meyering  <jim@meyering.net>
63006
63007         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
63008
63009 2006-05-17  Bruno Haible  <bruno@clisp.org>
63010
63011         Cygwin portability.
63012         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
63013
63014 2006-05-17  Bruno Haible  <bruno@clisp.org>
63015
63016         * lib/stdint_.h: Fix recognition of Cygwin.
63017
63018 2006-05-15  Bruno Haible  <bruno@clisp.org>
63019
63020         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
63021         on libtool patch by Ralf Wildenhues.
63022
63023 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
63024
63025         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
63026         test for C99 conformance; (bool) 0.5 is an integer constant
63027         expression, but (bool) -0.5 is not.  Problem reported by Fedor
63028         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
63029
63030 2006-05-11  Simon Josefsson  <jas@extundo.com>
63031
63032         * m4/xvasprintf.m4: Fix obvious typo.
63033
63034 2006-05-11  Jim Meyering  <jim@meyering.net>
63035
63036         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
63037         James Lemley.
63038
63039 2006-05-10  Simon Josefsson  <jas@extundo.com>
63040
63041         * lib/md4.c: Typo fix, update copyright years.
63042         (K1, K2): Don't use L because it turn computations into 64-bit on
63043         64-bit platforms.
63044
63045 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63046
63047         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
63048         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
63049         unwanted sign propagation, e.g., on hosts with 64-bit int.
63050         There still are some problems with reeelly weird theoretical hosts
63051         (e.g., 33-bit int) but it's not worth worrying about now.
63052         * lib/sha1.c (rol): Likewise.
63053         (K1, K2, K3, K4): Remove unnecessary L suffix.
63054
63055 2006-05-10  Bruno Haible  <bruno@clisp.org>
63056
63057         * lib/des.c: Cast to avoid warnings.
63058
63059 2006-05-09  Bruno Haible  <bruno@clisp.org>
63060
63061         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
63062         (Depends-on): Depend also on xsize, stdarg.
63063         (configure.ac): Add gl_XVASPRINTF.
63064
63065 2006-05-09  Bruno Haible  <bruno@clisp.org>
63066
63067         * m4/xvasprintf.m4: New file.
63068
63069 2006-05-09  Bruno Haible  <bruno@clisp.org>
63070
63071         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
63072         (EOVERFLOW): Define fallback value.
63073         (xstrcat): New function.
63074         (xvasprintf): Recognize the special case of a string concatenation.
63075
63076 2006-05-08  Eric Blake  <ebb9@byu.net>
63077
63078         * gnulib-tool (func_version): Base copyright year on CVS date.
63079         (func_emit_copyright_notice): New function.
63080         (func_emit_lib_Makefile_am): Use it.
63081         (func_emit_tests_Makefile_am): Likewise.
63082         (func_import): Likewise.
63083
63084 2006-05-08  Bruno Haible  <bruno@clisp.org>
63085
63086         * modules/stdarg: New file.
63087         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
63088
63089 2006-05-08  Bruno Haible  <bruno@clisp.org>
63090
63091         * m4/stdarg.m4: New file, from GNU gettext.
63092
63093 2006-05-08  Bruno Haible  <bruno@clisp.org>
63094
63095         * config/srclist.txt (build-aux/config.rpath): different from latest
63096         release.
63097
63098 2006-05-08  Bruno Haible  <bruno@clisp.org>
63099
63100         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
63101
63102 2006-05-05  Jim Meyering  <jim@meyering.net>
63103
63104         * m4/warning.m4: New file, derived from bison's file by the same name.
63105
63106 2006-05-03  Bruno Haible  <bruno@clisp.org>
63107
63108         * lib/stdint_.h: Shorter URL.
63109         * lib/inttypes.h: Likewise.
63110
63111 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63112
63113         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
63114
63115 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         * lib/verify.h: Document the internals better.  Most of this change
63118         was written by Bruno Haible.
63119
63120 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63121
63122         * doc/verify.texi: New file, partly based on a proposal by
63123         Bruno Haible.
63124
63125 2006-05-02  Bruno Haible  <bruno@clisp.org>
63126
63127         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
63128         test from here...
63129         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
63130
63131 2006-04-29  Bruno Haible  <bruno@clisp.org>
63132
63133         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
63134         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
63135
63136 2006-04-29  Bruno Haible  <bruno@clisp.org>
63137
63138         * gnulib-tool: Make --update option actually work.
63139
63140 2006-04-29  Bruno Haible  <bruno@clisp.org>
63141
63142         * doc/gcd.texi: New file.
63143         * doc/gnulib.texi: Include it.
63144
63145 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
63146
63147         * lib/getdate.y (get_date): When adding relative date, start with the
63148         initial time, not with the result of the first mktime call.
63149
63150 2006-04-25  Bruno Haible  <bruno@clisp.org>
63151
63152         * gnulib-tool (func_import): Output the include directives in three
63153         blocks, sorted separately.
63154         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63155
63156 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63157
63158         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
63159         to define main with arguments, for C++.  Reported by Eric Blake.
63160         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
63161         Prefer 'int main ()' to 'int main (void)', for C++.
63162         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63163         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
63164         for 'main', for C99 and C++.
63165
63166 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
63167
63168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
63169         Don't assume that exit status -1 is valid.
63170         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63171         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63172         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
63173         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
63174         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
63175         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
63176         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
63177         functions can be used without declaring them, or that you can
63178         exit with status -1.
63179         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
63180
63181 2006-04-24  Karl Berry  <karl@gnu.org>
63182
63183         * config/srclist.txt (longdouble.m4): sync lost.
63184
63185 2006-04-24  Eric Blake  <ebb9@byu.net>
63186
63187         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
63188
63189 2006-04-24  Bruno Haible  <bruno@clisp.org>
63190
63191         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
63192         poll() implementation in AIX.
63193         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63194
63195 2006-04-24  Bruno Haible  <bruno@clisp.org>
63196
63197         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
63198         assigned exactly once.
63199
63200 2006-04-23  Claudio Fontana  <claudio@gnu.org>
63201             Bruno Haible  <bruno@clisp.org>
63202
63203         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
63204         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
63205         for AM_CPPFLAGS.
63206
63207 2006-04-23  Bruno Haible  <bruno@clisp.org>
63208
63209         * modules/copy-file: Depend on unistd.
63210         * modules/execute: Likewise.
63211         * modules/fatal-signal: Likewise.
63212         * modules/findprog: Likewise.
63213         * modules/mkdtemp : Likewise.
63214         * modules/pipe: Likewise.
63215         * modules/wait-process: Likewise.
63216
63217 2006-04-23  Bruno Haible  <bruno@clisp.org>
63218
63219         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63220         condition was already detected.
63221         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63222
63223 2006-04-23  Bruno Haible  <bruno@clisp.org>
63224
63225         * lib/copy-file.c: Include <unistd.h> unconditionally.
63226         * lib/execute.c: Likewise.
63227         * lib/fatal-signal.c: Likewise.
63228         * lib/findprog.c: Likewise.
63229         * lib/mkdtemp.c: Likewise.
63230         * lib/pipe.h: Likewise.
63231         * lib/pipe.c: Likewise.
63232         * lib/wait-process.h: Likewise.
63233
63234 2006-04-23  Bruno Haible  <bruno@clisp.org>
63235
63236         * gnulib-tool (func_usage): Fix --import description. Document
63237         --update.
63238         (func_import): Create temporary file in a temporary directory, if
63239         --dry-run is specified. Silence errors from 'grep' when there are no
63240         m4 files in $m4dir.
63241         (func_create_testdir): Silence errors from 'grep' when there are no
63242         m4 files in $m4dir.
63243         Reported by Karl Berry <karl@freefriends.org>.
63244
63245 2006-04-20  Bruno Haible  <bruno@clisp.org>
63246
63247         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63248         one argument, so that the code will be portable to Autoconf 2.60.
63249         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63250         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63251         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63252
63253 2006-04-19  Derek Price  <derek@ximbiot.com>
63254             Eric Blake  <ebb9@byu.net>
63255
63256         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63257         rather than "/full/path.h".  Update comment to match.  Shorten &
63258         generalize m4_translit call via AS_TR_CPP.
63259
63260 2006-04-19  Derek Price  <derek@ximbiot.com>
63261             Eric Blake  <ebb9@byu.net>
63262
63263         * lib/inttypes.h: Correct grammar in comment.
63264
63265 2006-04-18  Derek Price  <derek@ximbiot.com>
63266             Paul Eggert  <eggert@cs.ucla.edu>
63267
63268         * modules/inttypes: New file.
63269         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63270
63271 2006-04-18  Derek Price  <derek@ximbiot.com>
63272             Paul Eggert  <eggert@cs.ucla.edu>
63273
63274         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63275         New files.
63276
63277 2006-04-18  Derek Price  <derek@ximbiot.com>
63278             Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * lib/inttypes.h: New file.
63281         * lib/strtoimax.c: Assume <inttypes.h>.
63282
63283 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63284
63285         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63286         isn't mounted.  Problem reported by Kir Kolyshkin.
63287
63288 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63289
63290         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63291         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63292         Derek R. Price.
63293         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63294         implementation.
63295
63296 2006-04-12  Eric Blake  <ebb9@byu.net>
63297
63298         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63299         is now done automatically by the corresponding Autoconf macro.
63300
63301 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63302
63303         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63304         time_r.h.
63305
63306 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63307
63308         Merge regex changes from libc, removing some of our
63309         POSIX-conformance changes that were rejected and redoing them in a
63310         less-intrusive way.
63311
63312         * lib/regcomp.c (re_compile_internal, init_dfa):
63313         Length arg is now size_t, not Idx.  All uses changed.
63314         (peek_token): Forward decl now says internal_function.
63315         (__re_error_msgid, __re_error_msgid_idx):
63316         Now static rather than extern with attribute_hidden.
63317         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63318         For some reason libc prefers K&R style defns for external functions.
63319         (regerror) [!defined _LIBC]: Likewise.
63320         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63321         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63322         (build_range_exp, build_collating_symbol):
63323         Use K&R-style defn.
63324         (re_compile_fastmap): Use '\0' to memset, not 0.
63325         (utf8_sb_map): Make the calculations more obvious.
63326         (init_dfa, parse_bracket_exp, build_charclass_op):
63327         Call calloc and cast result, as glibc does.
63328         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63329         (build_range_exp, build_collating_symbol):
63330         Now internal functions.
63331
63332         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63333
63334         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63335         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63336         Don't depend on VMS; depend on __VMS instead, for POSIX
63337         namespace cleanness.
63338         (regoff_t): Define to ssize_t, not long int.
63339
63340         Remove the REG_ macros named below.  Instead, make the old names
63341         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63342         __USE_GNU_REGEX.
63343         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63344         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63345         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63346         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63347         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63348         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63349         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63350         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63351         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63352         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63353         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63354         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63355         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63356         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63357         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63358         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63359         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63360         (REG_NREGS):
63361         Remove.  All uses replaced by the old RE_* names.
63362         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63363         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63364         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63365         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63366         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63367         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63368         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63369         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63370         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63371         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63372         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63373         Don't bother having these macros be independent of each others'
63374         values, since they no longer exist in the POSIX name space.
63375
63376         Rename the following member names back to their old names,
63377         unless !__USE_GNU_REGEX.  All uses changed back.
63378         (buffer): Renamed from re_buffer.
63379         (allocated): Renamed from re_allocated.
63380         (used): Renamed from re_used.
63381         (syntax): Renamed from re_syntax.
63382         (fastmap): Renamed from re_fastmap.
63383         (translate): Renamed from re_translate.
63384         (can_be_null): Renamed from re_can_be_null.
63385         (regs_allocated): Renamed from re_regs_allocated.
63386         (fastmap_accurate): Renamed from re_fastmap_accurate.
63387         (no_sub): Renamed from re_no_sub.
63388         (not_bol): Renamed from re_not_bol.
63389         (not_eol): Renamed from re_not_eol.
63390         (newline_anchor): Renamed from re_newline_anchor.
63391         (num_regs): Renamed from rm_num_regs.
63392         (start): Renamed from rm_start.
63393         (end): Renamed from rm_end.
63394
63395         (free_state): Move up a bit.
63396
63397         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63398         #define to be empty.
63399         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63400         when that is what is intended.
63401         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63402         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63403         (MAX): New macro.
63404         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63405         All uses changed back to re_malloc, etc.  It's now the caller's
63406         responsibility to check for overflow; all callers changed.
63407         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63408         (re_x2nrealloc): Remove.
63409         (free_state): Remove decl.
63410
63411         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63412         (re_set_registers, re_exec):
63413         Use K&R-style defn.
63414
63415         2006-01-31  Roland McGrath  <roland@redhat.com>
63416
63417         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63418         Reported by Mike Frysinger <vapier@gentoo.org>.
63419
63420         2006-01-15  Andreas Jaeger  <aj@suse.de>
63421
63422         [BZ #1950]
63423         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63424         build_wcs_upper_buffer change.
63425         (build_wcs_upper_buffer): Change return type.
63426
63427         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63428
63429         * lib/regex_internal.h: Include <stdint.h> if available.
63430
63431         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63432
63433         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63434
63435         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63436
63437         * lib/regcomp.c: Adjust for changed secondary hash function.
63438
63439         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63440
63441         * lib/regex.h: Pretty printing.
63442         Clean up namespace a bit.
63443
63444         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63445
63446         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63447         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63448
63449         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63450                     Ulrich Drepper  <drepper@redhat.com>
63451
63452         [BZ #1302]
63453         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63454         changed.
63455         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63456
63457         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63458
63459         [BZ #281]
63460         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63461         * lib/regcomp.c: Remove unnecessary uses of
63462         unsigned RE_TRANSLATE_TYPE.
63463         * lib/regex_internal.h: Likewise.
63464         * lib/regex_internal.c: Likewise.
63465         * lib/regexec.c: Likewise.
63466         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63467
63468         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63469
63470         * lib/regexec.c (find_recover_state): Remove unnecessary
63471         initialization.
63472         (transit_state_bkref): Make DFA a const pointer.
63473         (get_subexp): Likewise.
63474         (check_arrival): Likewise.
63475         (update_cur_sifted_state): Likewise.
63476         (re_search_internal): Likewise.
63477         (prune_impossible_nodes): Likewise.
63478         (acquire_init_state_context): Likewise.
63479         (proceed_next_node): Likewise.
63480         (set_regs): Likewise.
63481         (free_fail_stack_return): Likewise.
63482         (check_arrival_expand_ecl): Mark DFA parameter as const.
63483         (check_arrival_expand_ecl_sub): Likewise.
63484         (check_subexp_limits): Likewise.
63485         (sub_epsilon_src_nodes):  Likewise.
63486         (add_epsilon_src_nodes):  Likewise.
63487         (merge_state_array): Likewise.
63488         (update_regs): Likewise.
63489         (build_trtable): Likewise.
63490         (sift_states_backward): Mark MCTX parameter as const.
63491         (build_sifted_states): Likewise.
63492         (update_cur_sifted_state): Likewise.
63493         (sift_states_mkref): Likewise.
63494         (check_arrival_expand_ecl): Mark eclosure as const.
63495         (check_dst_limits_calc_pos_1): Likewise.
63496         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63497         pointer.
63498
63499         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63500
63501         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63502         (transit_state_sb): Likewise.
63503         (transit_state_mb): Likewise.
63504         (sift_states_iter_mb): Likewise.
63505         (check_arrival_add_next_nodes): Likewise.
63506         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63507         [_LIBC] (re_search_2_stub): Use mempcpy.
63508
63509         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63510         mbrtowc for very simple UTF-8 case.
63511
63512         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63513         a pointer-to-const.
63514         (re_acquire_state_context): Likewise.
63515         * lib/regex_internal.h: Adjust prototypes.
63516
63517         * lib/regex.c: Prevent using C++ compilers.
63518
63519         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63520         (re_acquire_state_context): Likewise.
63521
63522 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63523
63524         * modules/regex (Depends-on): Add ssize_t.
63525
63526 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63527
63528         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63529         translation table.
63530
63531 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63534
63535 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63536             Bruno Haible  <bruno@clisp.org>
63537
63538         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63539         <sys/types.h> and <inttypes.h>.
63540
63541 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63542
63543         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63544         `__error_t_defined', so argp.h will not typedef the former.
63545
63546 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63547
63548         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63549         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63550         glibc names.  Even if glibc is changed to conform to POSIX, the
63551         traditional names will be available anyway, since regex depends on
63552         the extensions module.  Also, fix a longstanding typo in the
63553         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63554         reported by Emanuele Giaquinta.  Also, change sense of cached
63555         variable, so that the message makes sense.
63556
63557 2006-03-24  Simon Josefsson  <jas@extundo.com>
63558
63559         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63560         including some doc fixes.
63561         (base64_encode_alloc): Fix +1 bug on allocation failures.
63562
63563 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63564
63565         * lib/base64.c (base64_encode): Do not read past end of array with
63566         unsanitized input on systems with CHAR_BIT > 8.
63567
63568 2006-03-24  Eric Blake  <ebb9@byu.net>
63569
63570         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63571
63572 2006-03-22  Karl Berry  <karl@gnu.org>
63573
63574         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63575         * config/srclistvars.sh (COREUTILS): new var.
63576
63577 2006-03-17  Jim Meyering  <jim@meyering.net>
63578
63579         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63580         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63581
63582 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63583
63584         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63585         no longer needs it.  Instead, check that regoff_t is as least
63586         as wide as ptrdiff_t.
63587
63588         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63589         so that our regex.h stays compatible with the installed regex.
63590         This is helpful for installers who configure --without-included-regex.
63591         Problem reported by Emanuele Giaquinta.
63592
63593 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63594
63595         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63596         Typedef to long int, not to off_, as POSIX will likely change
63597         in that direction.
63598
63599 2006-03-15  Eric Blake  <ebb9@byu.net>
63600
63601         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63602
63603 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63604
63605         * lib/argp-help.c (validate_uparams): Fix typo
63606         * lib/argp-parse.c (argp_default_options): Consistently begin help
63607         messages with a lowercase letter.
63608
63609 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63610
63611         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63612         overrun buffers and shouldn't be used (much as gets shouldn't be
63613         used).
63614         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63615
63616 2006-03-08  Simon Josefsson  <jas@extundo.com>
63617
63618         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63619         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63620
63621 2006-03-08  Simon Josefsson  <jas@extundo.com>
63622
63623         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63624         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63625
63626 2006-03-08  Simon Josefsson  <jas@extundo.com>
63627
63628         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63629         signal that configure disabled the device.
63630
63631 2006-03-08  Simon Josefsson  <jas@extundo.com>
63632
63633         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63634         languages.
63635
63636 2006-03-07  Simon Josefsson  <jas@extundo.com>
63637
63638         * modules/getopt (Depends-on): Add unistd.
63639
63640         * modules/unistd: New file.
63641
63642 2006-03-07  Simon Josefsson  <jas@extundo.com>
63643
63644         * modules/gc-random: New file.
63645
63646 2006-03-07  Simon Josefsson  <jas@extundo.com>
63647
63648         * m4/unistd_h.m4: New file.
63649
63650 2006-03-07  Simon Josefsson  <jas@extundo.com>
63651
63652         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63653         test to be side-effect free by storing the result in the cache
63654         variable gl_cv_lib_readline, and moving the assignment of
63655         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63656         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63657
63658 2006-03-07  Simon Josefsson  <jas@extundo.com>
63659
63660         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63661         error on missing devices (the functions will return an error).
63662
63663         * m4/gc.m4: Move random stuff to gc-random.m4
63664
63665 2006-03-07  Simon Josefsson  <jas@extundo.com>
63666
63667         * lib/unistd_.h: New file.
63668
63669 2006-03-07  Simon Josefsson  <jas@extundo.com>
63670
63671         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63672
63673 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63674
63675         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63676         Problem reported by Juan Manuel Guerrero.
63677
63678 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63679
63680         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63681         the unistd module.
63682         * lib/getlogin_r.c: Likewise.
63683         * lib/getlogin_r.h: Likewise.
63684         * lib/glob.c: Likewise.
63685         * lib/pagealign_alloc.c: Likewise.
63686         * lib/unistd_.h: Remove; no longer needed.
63687
63688 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63689
63690         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63691         Add unistd.
63692         * modules/c-stack (Depends-on): Add unistd.
63693         * modules/getlogin_r: Likewise.
63694         * modules/glob: Likewise.
63695         * modules/pagealign_alloc: Likewise.
63696         * modules/unistd (Files): Remove lib/unistd_.h.
63697         (EXTRA_DIST): Remove.
63698         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63699         need unistd_.h.
63700         (MOSTLYCLEANFILES): Remove unistd.h-t.
63701
63702 2006-03-03  Simon Josefsson  <jas@extundo.com>
63703
63704         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63705
63706 2006-03-03  Simon Josefsson  <jas@extundo.com>
63707
63708         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63709         libidn and bison.
63710
63711 2006-03-03  Simon Josefsson  <jas@extundo.com>
63712
63713         * build-aux/maint.mk: Add indent target.
63714
63715 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63716
63717         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63718         our replacement poll.h in any case, to avoid a differing
63719         declaration from a system header.  Seen on AIX.
63720
63721 2006-03-01  Simon Josefsson  <jas@extundo.com>
63722
63723         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63724         <kasal@ucw.cz>.
63725
63726 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63727
63728         * modules/gettime (Depends-on): Add extensions module.
63729         * modules/nanosleep (Depends-on): Likewise.
63730         * modules/settime (Depends-on): Likewise.
63731
63732 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63733
63734         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63735         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63736         pedantically.
63737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63738         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63739
63740         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63741         not "==".  Reported by Ralf Wildenhues.
63742
63743 2006-03-01  Karl Berry  <karl@gnu.org>
63744
63745         * doc/Copyright/request-*: new files, synced from gnuorg.
63746
63747 2006-03-01  Karl Berry  <karl@gnu.org>
63748
63749         * config/srclist.txt (Copyright/*): new entries.
63750
63751 2006-02-28  Simon Josefsson  <jas@extundo.com>
63752
63753         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63754
63755 2006-02-27  Simon Josefsson  <jas@extundo.com>
63756
63757         * lib/base64.h: Indent #define's.  From Jim Meyering
63758         <jim@meyering.net>.
63759
63760 2006-02-27  Jim Meyering  <jim@meyering.net>
63761
63762         Revert the change of 2006-02-24, so these files can continue
63763         to be sync'd from gettext.
63764         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63765         of `config.h'.
63766
63767 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63768
63769         * modules/intprops: New file.
63770         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63771         Add intprops.
63772         * modules/getloadavg (Files): Remove lib/intprops.h.
63773         (Depends-on): Add intprops.
63774         * modules/human: Likewise.
63775         * modules/inttostr: Likewise.
63776         * modules/openat: Likewise.
63777         * modules/sig2str: Likewise.
63778         * modules/userspec: Likewise.
63779         * modules/utimecmp: Likewise.
63780         * modules/xnanosleep: Likewise.
63781         * modules/xstrtol: Likewise.
63782
63783 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63784
63785         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63786         * modules/lock-tests (TESTS): Use $(EXEEXT).
63787         * modules/tls-tests: Likewise.
63788         * modules/argp-tests: Likewise.
63789         (check_PROGRAMS): New var, replacing...
63790         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63791
63792 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63793
63794         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63795         `config.h'.
63796
63797 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63798
63799         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63800
63801 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63802
63803         Sync from coreutils.
63804         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63805         gl_CHDIR_SAFER.
63806
63807 2006-02-22  Jim Meyering  <jim@meyering.net>
63808
63809         Sync from coreutils.
63810         * m4/chdir-safer.m4: New file.
63811
63812 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63813
63814         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63815         AT_FDCWD exceeds INT_MAX.
63816         * lib/openat.h (AT_FDCWD): Likewise.
63817
63818 2006-02-17  Eric Blake  <address@hidden>
63819
63820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63821
63822 2006-02-16  Simon Josefsson  <jas@extundo.com>
63823
63824         * modules/getaddrinfo (Depends-on): Add sys_socket.
63825
63826 2006-02-15  Simon Josefsson  <jas@extundo.com>
63827
63828         * build-aux/maint.mk: Add dsyntax-check rule.
63829
63830 2006-02-15  Eric Blake  <ebb9@byu.net>
63831
63832         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63833         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63834         'present but cannot compile' warnings on cygwin.
63835         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63836         use ws2tcpip.h if sys/socket.h works.
63837         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63838         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63839
63840 2006-02-14  Simon Josefsson  <jas@extundo.com>
63841
63842         * modules/maintainer-makefile (Files): Rename.
63843
63844         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63845         and (the local) Makefile.cfg to maint-cfg.mk.
63846
63847         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63848         to the latter.
63849
63850         * modules/maintainer-makefile: New module.
63851
63852         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63853         severaly stripped to make it possible to build it up from scratch
63854         with reliable tests.
63855
63856         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63857         fixes to permit overriding the default actions when configure and
63858         makefile are not available.
63859
63860 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63861
63862         Sync from coreutils.
63863         * modules/lstat (Depends-on): Don't depend on xalloc.
63864         (License): Change from GPL to LGPL, since this is now simply a
63865         replacement for a libc function.
63866
63867 2006-02-14  Jim Meyering  <jim@meyering.net>
63868
63869         Sync from coreutils.
63870
63871         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63872         failure on deficient systems, and simplify gnulib lgpl dependencies.
63873         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63874         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63875
63876         * lib/xalloc-die.c: Remove unused definition of N_.
63877
63878 2006-02-14  Jim Meyering  <jim@meyering.net>
63879
63880         Sync from coreutils.
63881         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63882         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63883         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63884         double-quote uses of that variable, to accommodate the rare case in
63885         which getmntent is available in none of the libraries checked.  This
63886         happens at least on FreeBSD 5.0.
63887
63888 2006-02-13  Simon Josefsson  <jas@extundo.com>
63889
63890         * gnulib-tool (Usage): Fix --import, from
63891         karl@freefriends.org (Karl Berry).
63892
63893 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63894
63895         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63896
63897 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63898
63899         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63900         "autoupdate" on 2005-12-12.
63901
63902 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         * modules/closeout (Depends-on): Remove atexit.
63905
63906 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63907
63908         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63909         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63910
63911 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63912
63913         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63914         __EXTENSIONS__ if this causes compilation to fail.  Problem
63915         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63916         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63917
63918 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63919
63920         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63921         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63922         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63923         All uses changed.
63924
63925 2006-01-26  Simon Josefsson  <jas@extundo.com>
63926
63927         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63928         prototype is visible on mingw32.
63929
63930         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63931         for mingw32.
63932
63933         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63934         mingw32).
63935
63936 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63939         attempt to open for write; this always fails, at least on POSIX
63940         hosts.  This reinstates the 2006-01-09 change, which was
63941         inadvertently removed.
63942
63943 2006-01-26  Bruno Haible  <bruno@clisp.org>
63944
63945         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63946         Reported by Paul Eggert.
63947
63948 2006-01-26  Bruno Haible  <bruno@clisp.org>
63949             Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * lib/stdbool_.h (_Bool)
63952         [(! (defined __cplusplus || defined __BEOS__)
63953           && !defined __GNUC__
63954           && !(defined __HP_cc || defined __xlc__
63955                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63956                || defined __sgi))]:
63957         #define to signed char in these cases too; this simplifies
63958         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63959         etc., separately) and makes it more conservative.
63960
63961 2006-01-25  Simon Josefsson  <jas@extundo.com>
63962
63963         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63964         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63965         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63966
63967 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63968
63969         * lib/argp-namefrob.h: Bugfix. Remove stray #
63970
63971 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63972
63973         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63974         so that we test the test.
63975         Check for yet another HP-UX cc bug involving *bool |= bool.
63976
63977 2006-01-25  Karl Berry  <karl@gnu.org>
63978
63979         * config/srclist.txt (vasnprintf.c): sync lost.
63980
63981 2006-01-25  Jim Meyering  <jim@meyering.net>
63982
63983         Sync from the stable (b5) branch of coreutils:
63984
63985         * lib/fts.c (fts_children): Don't let close() clobber errno from
63986         failed fchdir().
63987
63988         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63989         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63990         a dangling symlink.  That can also happen at least for ELOOP.
63991         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63992         FYI, this bug predates the inclusion of fts.c in coreutils.
63993
63994         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63995         in their own block, so pre-c99 compilers don't object.
63996
63997         Avoid the double-free (first in fts_read, second in fts_close) that
63998         would occur when an `active' directory is made inaccessible (e.g.,
63999         via chmod a-x) during a traversal.
64000         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64001         before returning.  Reproduce this failure by
64002         mkdir -p a/b; cd a; chmod a-x . b
64003         Reported by Stavros Passas.
64004
64005 2006-01-25  Jim Meyering  <jim@meyering.net>
64006
64007         * lib/fileblocks.c: Remove more useless parentheses.
64008         * lib/readutmp.h: Likewise.
64009
64010 2006-01-25  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
64013         warnings.
64014         Reported by Paul Eggert.
64015
64016 2006-01-25  Bruno Haible  <bruno@clisp.org>
64017
64018         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
64019         rid of a trap command. For Solaris sh.
64020         Reported by Mark D. Baushke <mdb@gnu.org>.
64021
64022 2006-01-24  Simon Josefsson  <jas@extundo.com>
64023
64024         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
64025         Bruno.
64026
64027 2006-01-24  Karl Berry  <karl@gnu.org>
64028
64029         * config/srclist.txt (argp-namefrob.h): sync lost.
64030
64031 2006-01-24  Jim Meyering  <jim@meyering.net>
64032
64033         * modules/openat (Files): Add lib/intprops.h.
64034         From Mark D. Baushke.
64035
64036 2006-01-24  Jim Meyering  <jim@meyering.net>
64037
64038         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
64039         Reported by Mark D. Baushke.
64040
64041 2006-01-24  Jim Meyering  <jim@meyering.net>
64042
64043         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
64044
64045 2006-01-24  Bruno Haible  <bruno@clisp.org>
64046
64047         * modules/strnlen (Maintainer): Change from glibc to all.
64048
64049 2006-01-24  Bruno Haible  <bruno@clisp.org>
64050
64051         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
64052         Patch by Paul Eggert.
64053
64054 2006-01-24  Bruno Haible  <bruno@clisp.org>
64055
64056         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
64057         already has it.
64058         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
64059         2005-11-26.
64060
64061         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
64062         'signed char' to avoid problems with the built-in _Bool type.
64063         Reported by Paul Eggert on 2005-11-26.
64064
64065 2006-01-24  Bruno Haible  <bruno@clisp.org>
64066
64067         * gnulib-tool (func_import): Avoid constructing complicated sed
64068         expressions inside backquote.
64069         Report and solution by Mark D. Baushke <mdb@gnu.org>.
64070
64071 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
64072
64073         These changes imported from libc.
64074         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
64075         test and two separate function calls.
64076         * lib/strndup.c (__strndup): Add libc_hidden_def.
64077
64078 2006-01-23  Simon Josefsson  <jas@extundo.com>
64079
64080         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
64081         Remove the test_*_SOURCES variable: automake infers it by default.
64082         * modules/tls-tests: Likewise.
64083
64084 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64085
64086         Work around porting bugs reported by Dieter in
64087         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
64088         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
64089         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
64090         Include "getopt.h" first, to check interface.
64091         (getenv): Declare only if defined HAVE_DECL_GETENV &&
64092         !HAVE_DECL_GETENV.
64093         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
64094         (__strndup): Revert to K&R-style function dfns, the glibc style.
64095         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
64096         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
64097         Include strnlen.h first, to get prototype properly.
64098         (strnlen): Renamed from __strnlen.
64099         Remove weak alias.
64100
64101 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64102
64103         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
64104
64105 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64106
64107         * config/srclist.txt: Adjust to reflect glibc reorganization.
64108         This affects only comments.
64109
64110 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64111
64112          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
64113          Reported by Bruce Korb <bkorb@gnu.org>.
64114
64115 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
64118         to pacify gcc -Wswitch-default.
64119
64120 2006-01-22  Bruno Haible  <bruno@clisp.org>
64121
64122         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
64123         temporary buffer for sprintf, take into account the precision also
64124         for 'd', 'i', 'u', 'o', 'x', 'X'.
64125
64126 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64127
64128         * modules/argp-tests: New module
64129         * tests/test-argp.c: New file
64130         * tests/test-argp-2.sh: New file
64131
64132 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
64133
64134         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
64135         (__argp_base_name): Removed
64136         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
64137         typo.
64138         (__argp_base_name): Provide macro definition or extern declaration
64139         depending on the configuration
64140
64141 2006-01-20  Simon Josefsson  <jas@extundo.com>
64142
64143         * modules/inet_ntop (Depends-on): Depend on sys_socket.
64144
64145 2006-01-20  Simon Josefsson  <jas@extundo.com>
64146
64147         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
64148
64149 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
64150
64151         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
64152         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
64153         Suggested by Bruno Haible.
64154
64155 2006-01-20  Karl Berry  <karl@gnu.org>
64156
64157         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
64158         until changes propagate, I guess.
64159
64160 2006-01-19  Simon Josefsson  <jas@extundo.com>
64161
64162         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
64163
64164 2006-01-19  Simon Josefsson  <jas@extundo.com>
64165
64166         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
64167
64168 2006-01-19  Simon Josefsson  <jas@extundo.com>
64169
64170         * gnulib-tool: Set check_PROGRAMS.
64171
64172         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64173         modules/des-tests, modules/gc-arcfour-tests,
64174         modules/gc-arctwo-tests, modules/gc-des-tests,
64175         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64176         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64177         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64178         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64179         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64180         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
64181         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
64182         test_*_SOURCES.
64183
64184 2006-01-18  Simon Josefsson  <jas@extundo.com>
64185
64186         * modules/socklen (Depends-on): Depend on sys_socket.
64187
64188 2006-01-18  Simon Josefsson  <jas@extundo.com>
64189
64190         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
64191         modules/des-tests, modules/gc-arcfour-tests,
64192         modules/gc-arctwo-tests, modules/gc-des-tests,
64193         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
64194         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
64195         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
64196         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
64197         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
64198         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
64199         $(EXEEXT) to automake TESTS variable, for mingw32.
64200
64201 2006-01-17  Simon Josefsson  <jas@extundo.com>
64202
64203         * modules/socklen (Include): Need sys/socket.h.
64204
64205 2006-01-17  Bruno Haible  <bruno@clisp.org>
64206
64207         * modules/ssize_t (Include): Add <sys/types.h>.
64208
64209 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
64210
64211         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
64212         it's not portable and it doesn't work with cross-compiles.
64213         Problem reported by Bruno Haible.  Fix missing-$ typo in
64214         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64215         -zignore from being used with Sun's C compiler.
64216
64217 2006-01-12  Simon Josefsson  <jas@extundo.com>
64218
64219         * lib/base64.c: Fix warning, reported by Bruno Haible
64220         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64221
64222 2006-01-12  Bruno Haible  <bruno@clisp.org>
64223
64224         * modules/ldd: New file.
64225         * build-aux/ldd.sh.in: New file.
64226         * MODULES.html.sh (Support for building libraries and executables): Add
64227         ldd.
64228
64229 2006-01-12  Bruno Haible  <bruno@clisp.org>
64230
64231         * m4/ldd.m4: New file.
64232
64233 2006-01-12  Bruno Haible  <bruno@clisp.org>
64234
64235         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64236         endless loop while replacing $auxdir with build-aux.
64237
64238 2006-01-11  Simon Josefsson  <jas@extundo.com>
64239
64240         * lib/stdint_.h (SIZE_MAX): Add missing (.
64241
64242 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64243
64244         Sync from coreutils.
64245         * lib/md5.c: Fix commentary typos.
64246         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64247         * lib/md5.h (__attribute__): Remove; unused.
64248         * lib/sha1.c: Fix commentary to match md5 better.
64249         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64250         so that we don't need to worry about alignment.  All uses changed.
64251         This merges the 2005-10-28 md5 change into sha1.
64252
64253 2006-01-11  Jim Meyering  <jim@meyering.net>
64254
64255         Sync from coreutils.
64256         * lib/md5.c (OP): Fix spacing.
64257
64258 2006-01-11  Bruno Haible  <bruno@clisp.org>
64259
64260         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64261         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64262         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64263
64264 2006-01-11  Bruno Haible  <bruno@clisp.org>
64265
64266         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64267         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64268         the "early" section as well.
64269
64270 2006-01-11  Bruno Haible  <bruno@clisp.org>
64271
64272         Avoid "ar: no archive members specified" error on MacOS X.
64273         * gnulib-tool (func_modules_add_dummy): New function.
64274         (func_import, func_create_testdir): Invoke it.
64275
64276 2006-01-11  Bruno Haible  <bruno@clisp.org>
64277
64278         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64279         with $auxdir in AC_CONFIG_FILES statements.
64280
64281 2006-01-11  Bruno Haible  <bruno@clisp.org>
64282
64283         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64284         Initialize also noinst_HEADERS to empty.
64285
64286 2006-01-11  Bruno Haible  <bruno@clisp.org>
64287
64288         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64289         variables.
64290         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64291         autoreconf.
64292
64293 2006-01-11  Bruno Haible  <bruno@clisp.org>
64294
64295         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64296         overridable by the user.
64297         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64298
64299 2006-01-10  Simon Josefsson  <jas@extundo.com>
64300
64301         * modules/sys_socket: New file.
64302
64303 2006-01-10  Simon Josefsson  <jas@extundo.com>
64304
64305         * m4/sys_socket_h.m4: New file.
64306
64307 2006-01-10  Simon Josefsson  <jas@extundo.com>
64308
64309         * lib/socket_.h: New file.
64310
64311 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         * modules/readutmp (Maintainer): Add myself.
64314
64315 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64318         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64319         People who are still concerned with buggy memcmp implementations
64320         can invoke gl_FUNC_MEMCMP themselves.
64321
64322 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64323
64324         * lib/regex_internal.h (BITSET_WORD_BITS):
64325         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64326         preprocessor mishandles large unsigned values as if they were signed.
64327         Problem reported by Claudio Fontana in
64328         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64329
64330 2006-01-10  Jim Meyering  <jim@meyering.net>
64331
64332         Avoid the double-free (first in fts_read, second in fts_close) that
64333         would occur when an `active' directory is made inaccessible (e.g.,
64334         via chmod a-x) during a traversal.
64335         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64336         before returning.  Reproduce this failure by
64337         mkdir -p a/b; cd a; chmod a-x . b
64338         Reported by Stavros Passas.
64339
64340         Sync from coreutils.
64341         * lib/sha1.c: Tweak grammar in a comment.
64342
64343 2006-01-10  Jim Meyering  <jim@meyering.net>
64344
64345         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64346         Patch by Joerg Sonnenberger.
64347
64348 2006-01-10  Bruno Haible  <bruno@clisp.org>
64349
64350         * modules/readutmp: Depend on module free.
64351         * modules/strtok_r: Depend on module restrict.
64352
64353 2006-01-10  Bruno Haible  <bruno@clisp.org>
64354
64355         * modules/gettext (configure.ac): Add an invocation of
64356         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64357
64358 2006-01-10  Bruno Haible  <bruno@clisp.org>
64359
64360         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64361         Reported by Werner Lemberg <wl@gnu.org>.
64362
64363 2006-01-10  Bruno Haible  <bruno@clisp.org>
64364
64365         * lib/localcharset.c: Update from GNU gettext.
64366
64367 2006-01-10  Bruno Haible  <bruno@clisp.org>
64368
64369         * lib/argp.h (__const): Remove macro. Use const instead.
64370         * lib/argp-fmtstream.h (__const): Likewise.
64371         * lib/glob_.h (__const): Remove macro.
64372         * lib/glob-libc.h: Use const instead of __const.
64373
64374 2006-01-10  Bruno Haible  <bruno@clisp.org>
64375
64376         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64377         variable.
64378         Needed to avoid an automake error regarding the 'gettext' module.
64379
64380 2006-01-09  Simon Josefsson  <jas@extundo.com>
64381
64382         * modules/inet_ntop (Depends-on): Add restrict.
64383
64384 2006-01-09  Simon Josefsson  <jas@extundo.com>
64385
64386         * modules/gc-rijndael-tests (License): Put under LGPL.
64387
64388         * modules/gc-des-tests (License): Likewise.
64389
64390         * modules/gc-arcfour-tests (License): Likewise.
64391
64392         * modules/gc-arctwo-tests (License): Likewise.
64393
64394         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64395
64396         * modules/gc-hmac-sha1-tests (Files): Likewise.
64397
64398         * modules/gc-hmac-md5-tests (License): Likewise.
64399
64400         * modules/gc-sha1-tests (License): Likewise.
64401
64402         * modules/gc-md5-tests (License): Likewise.
64403
64404         * modules/gc-md4-tests (License): Likewise.
64405
64406         * modules/gc-md2-tests (License): Likewise.
64407
64408         * modules/gc-tests (License): Likewise.
64409
64410         * modules/des-tests (License): Likewise.
64411
64412         * modules/md4-tests (License): Likewise.
64413
64414         * modules/md2-tests (License): Likewise.
64415
64416 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64417
64418         Sync from coreutils:
64419
64420         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64421         * modules/lib-ignore: New file.
64422         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64423         chdir-safer.m4, lchmod.m4.
64424         * modules/openat: Add mkdirat.c, openat-priv.h.
64425
64426 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64427
64428         Sync from coreutils.
64429         * m4/lib-ignore.m4: New file.
64430         * m4/lchmod.m4: New file.
64431
64432 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64433
64434         Sync from coreutils.
64435         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64436         for write access: POSIX says that must fail.
64437         * lib/fts.c (diropen): Likewise.
64438         * lib/save-cwd.c (save_cwd): Likewise.
64439         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64440         well, for minor improvements on hosts that lack O_DIRECTORY.
64441         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64442         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64443         Fall back on chown if open failed with EACCES.
64444
64445         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64446         Report an error at compile-time if only a 1-second nominal clock
64447         resolution is found.
64448
64449         * lib/lchmod.h: New file.
64450         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64451         (make_dir_parents): Use lchown rather than chown, and
64452         lchmod rather than chmod.
64453
64454         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64455         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64456         "proc" reported by n0dalus.
64457
64458         * lib/mountlist.c: Include <limits.h>.
64459         (dev_from_mount_options)
64460         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64461         New function.  It no longer assumes "dev=" has the System V meaning
64462         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64463         (read_file_system_list)
64464         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64465         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64466         dev= in that case.
64467
64468         * lib/posixtm.h (PDS_PRE_2000): New macro.
64469         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64470         allow_century.  All usages changed.  Reject dates outside the range
64471         1969-1999 if PDS_PRE_2000 is used.
64472
64473 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64474
64475         Sync from coreutils.
64476         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64477         (Time of day items): Mention the possibility of leap seconds.
64478         Problem reported by Dr. David Alan Gilbert.
64479
64480 2006-01-09  Jim Meyering  <jim@meyering.net>
64481
64482         Sync from coreutils.
64483
64484         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64485
64486         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64487
64488         * lib/modechange.c (mode_compile): Reject an invalid mode string
64489         that starts with an octal digit.  From Andreas Gruenbacher.
64490
64491         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64492         and dup to open_safer and dup_safer, respectively.
64493         (openat_permissive): Fix typo in comment.
64494
64495         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64496         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64497         (_): Remove; no longer needed.
64498         (openat): Renamed from rpl_openat; no need for rpl_openat
64499         since openat.h renames openat for us.
64500         Replace most of the body with a call to openat_permissive,
64501         to avoid duplicate code.
64502         Port to (probably hypothetical) environments were mode_t is
64503         wider than int.
64504         (openat_permissive): Require mode arg, so that we can check
64505         types better.  Put it just after flags.  Change cwd failure
64506         indicator from pointer-to-bool to pointer-to-errno-value.
64507         All callers changed.
64508         Invoke openat_save_fail and/or openat_restore_fail if
64509         cwd_errno is null, so that openat can call us.
64510         (openat_permissive, fdopendir, fstatat, unlinkat):
64511         Simplify errno handling to avoid some duplicate code,
64512         as it's OK to set errno on success.
64513         * lib/openat.h: Revamp code so that function macros depend on
64514         __OPENAT_PREFIX only, not also on AT_FDCWD.
64515         (openat_ro): Remove.  Caller changed to use openat_permissive.
64516         (openat_permissive): Now a macro, if not a function.
64517         (openat_restore_fail, openat_save_fail): Now always functions,
64518         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64519
64520         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64521         and openat.c.
64522         * lib/mkdirat.c: Include openat-priv.h.
64523         Remove definitions of macros defined therein.
64524         * lib/openat.c: Likewise.
64525
64526         * lib/mkdirat.c (mkdirat): New file and function.
64527         * lib/openat.h (mkdirat): Declare.
64528
64529         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64530
64531         * lib/openat.h (openat_permissive): Declare.
64532         (openat_ro): Define.
64533
64534         * lib/openat.c (EXPECTED_ERRNO): New macro.
64535         (openat_permissive): New function -- used in remove.c rewrite.
64536         (all functions): Set errno just before returning, only if there
64537         was an actual failure.
64538         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64539
64540         Emulate openat-family functions using Linux's procfs, if possible.
64541         Idea and some code based on Ulrich Drepper's glibc changes.
64542
64543         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64544         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64545         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64546         before falling back on save_cwd and restore_cwd.
64547         (fdopendir, fstatat, unlinkat): Likewise.
64548
64549         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64550         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64551
64552         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64553         as second argument to va_arg.  Otherwise, some versions of gcc
64554         warn that `if this code is reached, the program will abort'.
64555
64556 2006-01-09  Jim Meyering  <jim@meyering.net>
64557
64558         Sync from coreutils.
64559         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64560         Require openat-priv.h.
64561
64562 2006-01-09  Bruno Haible  <bruno@clisp.org>
64563
64564         * modules/strnlen (Include): Use strnlen.h.
64565
64566 2006-01-09  Bruno Haible  <bruno@clisp.org>
64567
64568         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64569
64570 2006-01-09  Bruno Haible  <bruno@clisp.org>
64571
64572         * lib/sysexit_.h (EX_OK): New macro.
64573         Suggested by Martin Lambers <marlam@marlam.de>.
64574
64575 2006-01-09  Bruno Haible  <bruno@clisp.org>
64576
64577         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64578         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64579
64580 2006-01-09  Bruno Haible  <bruno@clisp.org>
64581
64582         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64583         numbers.
64584
64585 2006-01-09  Bruno Haible  <bruno@clisp.org>
64586
64587         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64588         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64589         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64590         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64591
64592 2006-01-09  Bruno Haible  <bruno@clisp.org>
64593
64594         * build-aux/javacomp.sh.in: New file, moved from lib/.
64595         * modules/javacomp-script (Files): Update.
64596         (configure.ac): Add AC_CONFIG_FILES invocation.
64597         (EXTRA_DIST): Remove variable.
64598
64599         * build-aux/javaexec.sh.in: New file, moved from lib/.
64600         * modules/javaexec (Files): Update.
64601         (configure.ac): Add AC_CONFIG_FILES invocation.
64602         (EXTRA_DIST): Remove javaexec.sh.in.
64603
64604         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64605         * modules/csharpcomp-script (Files): Update.
64606         (configure.ac): Add AC_CONFIG_FILES invocation.
64607         (EXTRA_DIST): Remove variable.
64608
64609         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64610         * modules/csharpexec (Files): Update.
64611         (configure.ac): Add AC_CONFIG_FILES invocation.
64612         (EXTRA_DIST): Remove csharpexec.sh.in.
64613
64614 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64615
64616         Sync from coreutils.
64617
64618         Add POSIX ACL support
64619         * lib/acl.h (copy_acl, set_acl): Add declarations.
64620         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64621         systems other than Linux.
64622         (chmod_or_fchmod): New function: use fchmod when possible,
64623         and chmod otherwise.
64624         (file_has_acl): Add a POSIX ACL implementation, with a
64625         Linux-specific subcase.
64626         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64627         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64628         acls are unsupported.
64629         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64630         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64631         are unsupported.
64632
64633 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64634
64635         Sync from coreutils.
64636         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64637
64638 2006-01-07  Bruno Haible  <bruno@clisp.org>
64639
64640         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64641         gl_EARLY.
64642
64643 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64644
64645         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64646         Problem reported for Mingw by Mark Junker.
64647
64648 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64649
64650         * README: Gnulib normally doesn't generate a tarball.
64651
64652 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64655         long int, not int, for nanosecond counts, so that people who are
64656         used to POSIX struct timespec won't be surprised.  Reported by Jim
64657         Meyering.
64658
64659 2005-12-28  Bruno Haible  <bruno@clisp.org>
64660
64661         * build-aux/config.rpath: Update from GNU gettext.
64662
64663 2005-12-16  Jim Meyering  <jim@meyering.net>
64664
64665         * modules/fprintftime: New module.
64666         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64667
64668 2005-12-16  Jim Meyering  <jim@meyering.net>
64669
64670         * m4/fprintftime.m4: New file.
64671
64672 2005-12-16  Jim Meyering  <jim@meyering.net>
64673
64674         * lib/fprintftime.c, lib/fprintftime.h: New files.
64675
64676 2005-12-15  Simon Josefsson  <jas@extundo.com>
64677
64678         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64679         new m4/socklen.m4.
64680
64681 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64682
64683         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64684         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64685
64686 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64687
64688         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64689         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64690         struct uparams is valid. Fall back to the default values if it is
64691         not.
64692
64693 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64694
64695         * modules/argp (Files): Add argp-pin.c
64696         (Depends-on): dirname
64697         (lib_SOURCES): Add argp-pin.c
64698
64699 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64700
64701         * m4/argp.m4:  Check if program_invocation_name and
64702         program_invocation_short_name are declared and define appropriate
64703         macros if they are not.
64704
64705 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64706
64707         * lib/argp-help.c (__argp_base_name): New function
64708         (__argp_short_program_name): Rewrite using __argp_base_name
64709         * lib/argp-namefrob.h: Define program_invocation_name and
64710         program_invocation_short_name if requested
64711         (__argp_base_name): Add prototype
64712         * lib/argp-parse.c (argp_def): Use gettext wrappers
64713         (argp_default_parser): Use __argp_base_name
64714         * lib/argp-pin.c: New file. Defines program_invocation_name and
64715         program_invocation_short_name on systems that lack them.
64716
64717 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64718
64719         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64720         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64721         porting problem reported by Georg Schwarz in
64722         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64723
64724 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64725
64726         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64727         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64728         porting problem reported by Georg Schwarz in
64729         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64730
64731 2005-12-05  Bruno Haible  <bruno@clisp.org>
64732
64733         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64734         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64735         Reported by Mark Junker <mjscod@gmx.de>.
64736
64737 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64740         Use implementation from Albert Chin, with some
64741         comments/corrections by Stepan Kasal and myself.
64742
64743 2005-12-02  Bruno Haible  <bruno@clisp.org>
64744
64745         * gnulib-tool (func_import): Accept GPLed build tool modules when
64746         --lgpl is given.
64747         * modules/csharpcomp-script: New file.
64748         * modules/csharpcomp: Depend on it.
64749         * modules/javacomp-script: New file.
64750         * modules/javacomp: Depend on it.
64751         Suggested by Simon Josefsson.
64752
64753 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64754
64755         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64756         statement, to work around an HP-UX 10.20 compiler bug reported by
64757         Peter O'Gorman.
64758
64759 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64760
64761         * modules/savedir (Depends-on): Add openat.
64762
64763 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64766         (uintmax_t) [defined uintmax_t]: Do not declare.
64767         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64768         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64769         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64770         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64771         sake of portability to weird hosts that C allows (though we don't
64772         know of any practical examples).
64773
64774         * lib/savedir.h (fdsavedir): New decl.
64775         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64776         contains most of the former guts of savedir.
64777         (savedir): Use savedirstream.
64778         Include "openat.h".
64779
64780 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64781
64782         * modules/obstack (Files): Add m4/ulonglong.m4.
64783         Problem reported by Davide Angelocola.
64784
64785 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64786
64787         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64788         coreutils no longer futzes with rounding modes.
64789
64790 2005-11-14  Jim Meyering  <jim@meyering.net>
64791
64792         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64793         replacement of mkstemp.
64794
64795 2005-11-10  Simon Josefsson  <jas@extundo.com>
64796
64797         * lib/readline.c: Remove EOL.
64798
64799 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64800
64801         * modules/gethrxtime (Depends-on): Add gettime.
64802
64803 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64806         or gettimeofday; no longer needed.
64807
64808 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64809
64810         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64811         time business.
64812         (gethrxtime) [! (HAVE_NANOUPTIME
64813         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64814         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64815         our own approximation.
64816
64817 2005-11-08  Eric Blake  <ebb9@byu.net>
64818
64819         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64820
64821 2005-11-08  Eric Blake  <ebb9@byu.net>
64822
64823         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64824
64825 2005-11-04  Bruno Haible  <bruno@clisp.org>
64826
64827         * gnulib-tool: Implement --update mode.
64828
64829 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64830
64831         Fix porting problem reported by Theodoros V. Kalamatianos.
64832         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64833         Don't assume that futimes failing means we must fail.
64834
64835 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64836
64837         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64838         variables to suggest the intended function of the PATH_MAX check.
64839
64840 2005-10-30  Kean Johnston  <jkj@sco.com>
64841
64842         Trivial changes to support SCO systems.
64843         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64844         as PATH_MAX.
64845         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64846         where __ptr is null when no I/O is pending.
64847
64848 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64851         leave errno alone.  Problem reported by Dmitry V. Levin.
64852
64853 2005-10-28  Simon Josefsson  <jas@extundo.com>
64854
64855         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64856         Test more.
64857
64858         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64859
64860         * modules/md2, modules/md2-tests: New files.
64861
64862 2005-10-28  Simon Josefsson  <jas@extundo.com>
64863
64864         * m4/inet_ntop.m4: More tests.
64865
64866         * m4/gc-md2.m4, md2.m4: New file.
64867
64868 2005-10-28  Simon Josefsson  <jas@extundo.com>
64869
64870         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64871         "restrict" keywords, as per POSIX.  Protect the function
64872         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64873         Don't use K&R prototypes.  Check the sprintf return values.
64874         Re-define EAFNOSUPPORT if not present.  Indent.
64875
64876         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64877         suggested by Bruno Haible <bruno@clisp.org>.
64878
64879         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64880
64881         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64882
64883         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64884         libgcrypt).
64885
64886         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64887
64888         * lib/md2.h, lib/md2.c: New files.
64889
64890 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64893         errno alone.  Problem reported by Frederic Jolliton.
64894
64895 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64896
64897         * modules/verify (License): Change from GPL to LGPL.  This is a
64898         tiny module and there are apparently near-equivalents that are
64899         under the BSD license.
64900
64901 2005-10-24  Simon Josefsson  <jas@extundo.com>
64902
64903         * modules/sha1: Relicense to LGPL.
64904
64905 2005-10-24  Simon Josefsson  <jas@extundo.com>
64906
64907         * lib/md4.h: Shrink buffer size, now that we changed the type.
64908
64909 2005-10-23  Simon Josefsson  <jas@extundo.com>
64910
64911         * gnulib-tool (func_import): Fix --tests-base.
64912
64913 2005-10-22  Simon Josefsson  <jas@extundo.com>
64914
64915         * modules/arcfour (Depends-on): Need stdint.
64916
64917 2005-10-22  Simon Josefsson  <jas@extundo.com>
64918
64919         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64920         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64921
64922 2005-10-22  Simon Josefsson  <jas@extundo.com>
64923
64924         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64925         suggested by Bruno Haible <bruno@clisp.org>.
64926
64927 2005-10-22  Simon Josefsson  <jas@extundo.com>
64928
64929         * lib/crc.h: Include stddef.h, for size_t.
64930
64931 2005-10-22  Simon Josefsson  <jas@extundo.com>
64932
64933         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64934         arcfour_context struct (simplify test vector testing in GNU
64935         Shishi).
64936
64937 2005-10-21  Simon Josefsson  <jas@extundo.com>
64938
64939         * modules/des, modules/des-tests: New files.
64940
64941         * modules/gc-des, modules/gc-des-tests: New files.
64942
64943         * tests/test-des.c, tests/test-gc-des.c: New file.
64944
64945 2005-10-21  Simon Josefsson  <jas@extundo.com>
64946
64947         * modules/arctwo, modules/arctwo-tests: New files.
64948
64949         * tests/test-arctwo.c: New file.
64950
64951         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64952
64953         * tests/test-gc-arctwo.c: New file.
64954
64955 2005-10-21  Simon Josefsson  <jas@extundo.com>
64956
64957         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64958         Bruno Haible <bruno@clisp.org>.
64959
64960         * m4/gc-des.m4: New file.
64961
64962 2005-10-21  Simon Josefsson  <jas@extundo.com>
64963
64964         * m4/arctwo.m4: New file.
64965
64966         * m4/gc-arctwo.m4: New file.
64967
64968 2005-10-21  Simon Josefsson  <jas@extundo.com>
64969
64970         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64971         block.
64972
64973 2005-10-21  Simon Josefsson  <jas@extundo.com>
64974
64975         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64976         <bruno@clisp.org>.
64977
64978         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64979
64980         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64981         Bruno Haible <bruno@clisp.org>.
64982
64983         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64984         <bruno@clisp.org>.
64985
64986 2005-10-21  Simon Josefsson  <jas@extundo.com>
64987
64988         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64989
64990 2005-10-21  Simon Josefsson  <jas@extundo.com>
64991
64992         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64993
64994 2005-10-21  Simon Josefsson  <jas@extundo.com>
64995
64996         * lib/des.h, lib/des.c: New files.
64997
64998         * lib/gc-gnulib.c: Support DES.c
64999
65000 2005-10-21  Simon Josefsson  <jas@extundo.com>
65001
65002         * lib/arctwo.h, lib/arctwo.c: New files.
65003
65004         * lib/gc-gnulib.c: Support ARCTWO.
65005
65006 2005-10-21  Simon Josefsson  <jas@extundo.com>
65007
65008         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
65009         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65010
65011 2005-10-21  Simon Josefsson  <jas@extundo.com>
65012
65013         * gnulib-tool (func_import, func_create_testdir): Define automake
65014         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
65015         Makefile.am snippet),
65016         suggested by Bruno Haible <bruno@clisp.org>.
65017
65018         * modules/gc (Makefile.am): Use it.
65019
65020 2005-10-21  Bruno Haible  <bruno@clisp.org>
65021
65022         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
65023         patch.
65024
65025 2005-10-19  Simon Josefsson  <jas@extundo.com>
65026
65027         * tests/test-gc-rijndael.c: New file.
65028
65029         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
65030
65031 2005-10-19  Simon Josefsson  <jas@extundo.com>
65032
65033         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
65034         interface too.
65035
65036 2005-10-19  Simon Josefsson  <jas@extundo.com>
65037
65038         * tests/test-gc-arcfour.c: New file.
65039
65040         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
65041
65042 2005-10-19  Simon Josefsson  <jas@extundo.com>
65043
65044         * modules/gc-md4, modules/gc-md4-tests: New file.
65045
65046         * tests/test-gc-md4.c: New file.
65047
65048 2005-10-19  Simon Josefsson  <jas@extundo.com>
65049
65050         * m4/gc-md4.m4: New file.
65051
65052 2005-10-19  Simon Josefsson  <jas@extundo.com>
65053
65054         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
65055         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
65056         <kasal@ucw.cz>.
65057
65058 2005-10-19  Simon Josefsson  <jas@extundo.com>
65059
65060         * m4/gc-arcfour.m4: New file.
65061
65062         * m4/gc-rijndael.m4: New file.
65063
65064 2005-10-19  Simon Josefsson  <jas@extundo.com>
65065
65066         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
65067
65068 2005-10-19  Simon Josefsson  <jas@extundo.com>
65069
65070         * lib/gc-gnulib.c: Support ARCFOUR.
65071
65072 2005-10-19  Simon Josefsson  <jas@extundo.com>
65073
65074         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
65075         support.
65076
65077         * lib/gc.h: Add ECB enum type.
65078
65079         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
65080
65081 2005-10-18  Simon Josefsson  <jas@extundo.com>
65082
65083         * tests/test-md5.c: New file.
65084
65085         * modules/md5-tests: New file.
65086
65087 2005-10-18  Simon Josefsson  <jas@extundo.com>
65088
65089         * tests/test-md4.c: New file.
65090
65091         * modules/md4, modules/md4-tests: New files.
65092
65093 2005-10-18  Simon Josefsson  <jas@extundo.com>
65094
65095         * m4/md4.m4: New file.
65096
65097 2005-10-18  Simon Josefsson  <jas@extundo.com>
65098
65099         * lib/md4.h, lib/md4.c: New files, based on md5.?.
65100
65101 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
65102
65103         * gnulib-tool (func_create_testdir): Omit the second check whether
65104         BUILT_SOURCES in nonempty.
65105
65106 2005-10-17  Simon Josefsson  <jas@extundo.com>
65107
65108         * tests/test-rijndael.c: New file.
65109
65110 2005-10-17  Simon Josefsson  <jas@extundo.com>
65111
65112         * modules/sha1: Depend on stdint instead of md5.
65113
65114         * modules/md5: Depend on stdint, remove uint32_t.
65115
65116 2005-10-17  Simon Josefsson  <jas@extundo.com>
65117
65118         * modules/gc-sha1-tests: New file.
65119
65120         * tests/test-gc-sha1.c: New file.
65121
65122 2005-10-17  Simon Josefsson  <jas@extundo.com>
65123
65124         * m4/md5.m4: Remove call to uint32_t.m4.
65125
65126 2005-10-17  Simon Josefsson  <jas@extundo.com>
65127
65128         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
65129
65130         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
65131         md5.h.
65132
65133         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
65134
65135         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
65136
65137 2005-10-17  Simon Josefsson  <jas@extundo.com>
65138
65139         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
65140
65141 2005-10-17  Simon Josefsson  <jas@extundo.com>
65142
65143         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
65144
65145 2005-10-17  Simon Josefsson  <jas@extundo.com>
65146
65147         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
65148
65149         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
65150
65151 2005-10-17  Bruno Haible  <bruno@clisp.org>
65152
65153         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
65154         that it can also be used in a test.
65155
65156 2005-10-16  Bruno Haible  <bruno@clisp.org>
65157
65158         * gnulib-tool (func_emit_tests_Makefile_am): Also define
65159         TESTS_ENVIRONMENT, so that individual tests can augment it.
65160
65161         * gnulib-tool (func_create_testdir): Use an intermediate target for
65162         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
65163         macros, like $(ALLOCA_H), which cannot be passed through the command
65164         line.
65165
65166 2005-10-15  Simon Josefsson  <jas@extundo.com>
65167
65168         * modules/rijndael-tests: New file.
65169
65170         * modules/rijndael: New file.
65171
65172 2005-10-15  Simon Josefsson  <jas@extundo.com>
65173
65174         * m4/rijndael.m4: New file.
65175
65176 2005-10-15  Simon Josefsson  <jas@extundo.com>
65177
65178         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
65179
65180         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
65181
65182 2005-10-14  Simon Josefsson  <jas@extundo.com>
65183
65184         * tests/test-arcfour.c: New file.
65185
65186         * modules/arcfour, modules/arcfour-tests: New files.
65187
65188 2005-10-14  Simon Josefsson  <jas@extundo.com>
65189
65190         * m4/arcfour.m4: New file.
65191
65192 2005-10-14  Simon Josefsson  <jas@extundo.com>
65193
65194         * lib/arcfour.h, lib/arcfour.c: New files.
65195
65196 2005-10-14  Roland McGrath  <roland@redhat.com>
65197
65198         Import from libc.  [BZ #1331]
65199         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
65200         macro argument.
65201         Reported by Matej Vela <vela@debian.org>.
65202
65203 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65204
65205         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
65206         include <wchar.h>; no longer needed.
65207
65208 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65209
65210         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
65211
65212 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
65213         and  Ulrich Drepper  <drepper@redhat.com>
65214
65215         Import from libc.
65216         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65217         instead of inline stream orientation test and two separate
65218         function calls.  Pay no attention to USE_IN_LIBIO.
65219
65220 2005-10-13  Simon Josefsson  <jas@extundo.com>
65221
65222         * modules/gc-hmac-md5-tests: New file.
65223
65224         * tests/test-gc-hmac-sha1.c: New file.
65225
65226         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65227
65228         * modules/gc-hmac-md5-tests: New file.
65229
65230         * tests/test-gc-md5.c: New file.
65231
65232         * modules/gc-md5-tests: New file.
65233
65234 2005-10-13  Simon Josefsson  <jas@extundo.com>
65235
65236         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65237         Move memory allocation outside of loop.
65238
65239 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65242         intermediate directory is in a read-only file system.  Problem
65243         reported by Eric Blake.
65244
65245 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65246
65247         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65248
65249 2005-10-12  Simon Josefsson  <jas@extundo.com>
65250
65251         * tests/test-hmac-sha1.c: New file.
65252
65253         * modules/hmac-sha1-tests: New file.
65254
65255         * modules/hmac-sha1: New file.
65256
65257 2005-10-12  Simon Josefsson  <jas@extundo.com>
65258
65259         * modules/gc-sha1: New file.
65260
65261 2005-10-12  Simon Josefsson  <jas@extundo.com>
65262
65263         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65264
65265         * tests/test-gc-pbkdf2-sha1.c: New file.
65266
65267 2005-10-12  Simon Josefsson  <jas@extundo.com>
65268
65269         * modules/gc-md5, modules/gc-hmac-md5: New files.
65270
65271         * modules/gc (Files): Remove md5, memxor and hmac files.
65272
65273 2005-10-12  Simon Josefsson  <jas@extundo.com>
65274
65275         * m4/gc-pbkdf2-sha1.m4: New file.
65276
65277         * m4/gc-hmac-sha1.m4: New file.
65278
65279         * m4/gc-sha1: New file.
65280
65281         * m4/hmac-sha1.m4: New file.
65282
65283 2005-10-12  Simon Josefsson  <jas@extundo.com>
65284
65285         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65286
65287         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65288
65289 2005-10-12  Simon Josefsson  <jas@extundo.com>
65290
65291         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65292         suggested by Bruno Haible <bruno@clisp.org>.
65293
65294 2005-10-12  Simon Josefsson  <jas@extundo.com>
65295
65296         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65297
65298 2005-10-12  Simon Josefsson  <jas@extundo.com>
65299
65300         * lib/gc-pbkdf2-sha1.c: New file.
65301
65302         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65303
65304 2005-10-12  Simon Josefsson  <jas@extundo.com>
65305
65306         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65307
65308         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65309
65310 2005-10-12  Simon Josefsson  <jas@extundo.com>
65311
65312         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65313         GC_USE_HMAC_MD5, respectively.
65314
65315         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65316         (gc_md5): Fix typo.
65317
65318         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65319
65320         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65321
65322         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65323
65324 2005-10-12  Bruno Haible  <bruno@clisp.org>
65325
65326         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65327         Reported by Stepan Kasal <kasal@ucw.cz>.
65328
65329 2005-10-11  Simon Josefsson  <jas@extundo.com>
65330
65331         * tests/test-crc.c: New file.
65332
65333         * modules/crc, modules/crc-tests: New files.
65334
65335 2005-10-11  Simon Josefsson  <jas@extundo.com>
65336
65337         * m4/crc.m4: New file.
65338
65339 2005-10-11  Simon Josefsson  <jas@extundo.com>
65340
65341         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65342
65343         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65344
65345         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65346
65347 2005-10-11  Simon Josefsson  <jas@extundo.com>
65348
65349         * lib/crc.h, lib/crc.c: New files.
65350
65351         * lib/gc.h (gc_hash_buffer): Add doc.
65352
65353 2005-10-11  Bruno Haible  <bruno@clisp.org>
65354
65355         * modules/c-strcasestr: New file.
65356         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65357
65358 2005-10-11  Bruno Haible  <bruno@clisp.org>
65359
65360         * modules/c-strcase: New file.
65361         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65362
65363 2005-10-11  Bruno Haible  <bruno@clisp.org>
65364
65365         * lib/strcasecmp.c: Include limits.h.
65366         (strcasecmp): Avoid integer overflow on exotic platforms.
65367         * lib/strncasecmp.c: Include limits.h.
65368         (strncasecmp): Avoid integer overflow on exotic platforms.
65369         Reported by Paul Eggert.
65370
65371 2005-10-11  Bruno Haible  <bruno@clisp.org>
65372
65373         * lib/c-strcasestr.h: New file, from GNU gettext.
65374         * lib/c-strcasestr.c: New file, from GNU gettext.
65375
65376 2005-10-11  Bruno Haible  <bruno@clisp.org>
65377
65378         * lib/c-strcase.h: New file, from GNU gettext.
65379         * lib/c-strcasecmp.c: New file, from GNU gettext.
65380         * lib/c-strncasecmp.c: New file, from GNU gettext.
65381
65382 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65383
65384         * modules/mempcpy (License): GPL -> LGPL.
65385         * modules/strchrnul (License): Likewise.
65386         * modules/sysexits (License): Likewise.
65387
65388 2005-10-08  Simon Josefsson  <jas@extundo.com>
65389
65390         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65391
65392 2005-10-07  Simon Josefsson  <jas@extundo.com>
65393
65394         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65395
65396 2005-10-06  Simon Josefsson  <jas@extundo.com>
65397
65398         * tests/test-hmac-md5.c: New file.
65399
65400         * modules/hmac-md5-tests: New file.
65401
65402         * modules/hmac-md5: New file.
65403
65404 2005-10-06  Simon Josefsson  <jas@extundo.com>
65405
65406         * m4/hmac-md5.m4: New file.
65407
65408         * m4/memxor.m4: Require gl_C_RESTRICT.
65409
65410 2005-10-06  Simon Josefsson  <jas@extundo.com>
65411
65412         * lib/memxor.c (memxor): Avoid casts and warnings.
65413
65414 2005-10-06  Simon Josefsson  <jas@extundo.com>
65415
65416         * lib/hmac-md5.c: New file.
65417
65418         * lib/hmac.h: New file.
65419
65420 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65421
65422         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65423         promotes to int, not unsigned int, to catch the AIX 5.3
65424         compiler bug.
65425
65426 2005-10-05  Simon Josefsson  <jas@extundo.com>
65427
65428         * modules/memxor: New file.
65429
65430         * modules/iconv (Files): Move config.rpath to havelib, it is used
65431         there.
65432
65433         * modules/havelib (Files): Add config.rpath.
65434
65435 2005-10-05  Simon Josefsson  <jas@extundo.com>
65436
65437         * m4/memxor.m4: New file.
65438
65439 2005-10-05  Simon Josefsson  <jas@extundo.com>
65440
65441         * lib/memxor.c (memxor): Fix compiler error.
65442
65443         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65444         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65445
65446         * lib/memxor.h, lib/memxor.c: New files.
65447
65448         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65449         we assume all systems have it, suggested by Jim Meyering
65450         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65451         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65452         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65453         same reasons.
65454
65455 2005-10-05  Simon Josefsson  <jas@extundo.com>
65456
65457         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65458
65459 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65460
65461         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65462         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65463         needed, since the source code now assumes these .h files.
65464
65465 2005-10-05  Derek Price  <derek@ximbiot.com>
65466
65467         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65468
65469 2005-10-05  Bruno Haible  <bruno@clisp.org>
65470
65471         * modules/stdint (License): Change to LGPL.
65472
65473 2005-10-04  Simon Josefsson  <jas@extundo.com>
65474
65475         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65476         D. Baushke" <mdb@gnu.org>.
65477
65478 2005-10-04  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/verify.h (verify_true): Provide alternative definition for C++.
65481
65482 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65483
65484         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65485         (SSIZE_MAX): New macro, if not already defined.
65486         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65487         than 2 GiB.
65488
65489 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65490
65491         Sync from coreutils.
65492         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65493         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65494         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65495         ULLONG_MAX doesn't work with 2.7.2.1.
65496
65497 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65498
65499         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65500         From Ben Pfaff.
65501
65502         * modules/exclude (Depends-on): Depend on verify.
65503         * modules/strtoimax (Depends-on): Likewise.
65504         * modules/utimecmp (Depends-on): Likewise.
65505
65506 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         * lib/exclude.c: Include verify.h.
65509         (verify): Remove.  All callers changed to use verify.h's version.
65510         * lib/strtoimax.c: Likewise.
65511         * lib/utimecmp.c: Likewis.e
65512
65513         Sync from coreutils.
65514         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65515         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65516         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65517         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65518         bother returning ENOSYS if settimeofday or stime fails; just let
65519         them return whatever errno they want to return.
65520         * lib/utimens.c: Include unistd.h, for dup2.
65521         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65522         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65523
65524 2005-10-02  Jim Meyering  <jim@meyering.net>
65525
65526         Sync from coreutils.
65527         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65528         from glibc-2.2.5 that fails for read-only files.
65529
65530 2005-10-02  Jim Meyering  <jim@meyering.net>
65531
65532         Sync from coreutils.
65533         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65534         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65535         `#if HAVE_CONFIG_H'.
65536         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65537         Remove AT_FDCWD test.
65538         Do not consume the fd unless successful.
65539         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65540         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65541         block, so that we don't even try to compile it if settimeofday is
65542         available.  This works around a compilation failure on OSF1 V5.1,
65543         due to stime requiring a `long int*' while tv_sec is `int'.
65544
65545 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65546
65547         Sync from coreutils.
65548         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65549         against `yes', rather than just testing for nonempty.
65550
65551 2005-10-01  Simon Josefsson  <jas@extundo.com>
65552
65553         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65554         and Darwin.
65555
65556         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65557         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65558         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65559         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65560         Check if struct addrinfo is declared.
65561
65562 2005-10-01  Simon Josefsson  <jas@extundo.com>
65563
65564         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65565         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65566         AI_* and EAI_* definitions.  Protect function declarations.
65567
65568 2005-10-01  Jim Meyering  <jim@meyering.net>
65569
65570         Sync from coreutils.
65571
65572         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65573         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65574         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65575         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65576         in the inet and nsl libraries.  Required on Solaris 5.7.
65577
65578 2005-10-01  Jim Meyering  <jim@meyering.net>
65579
65580         Sync from coreutils.
65581         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65582         in the inet and nsl libraries.  Required on Solaris 5.7.
65583
65584 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65585
65586         * lib/getdelim.c (getdelim): Remove unused variables.
65587
65588 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65589
65590         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65591         so that the code works even with ancient cpp.  Portability problem
65592         with GCC 2.7.2.1 reported by Thomas M.Ott.
65593
65594 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65595
65596         * modules/regex (Depends-on): Add strcase.
65597
65598         * modules/gethostname (Licence): Change from GPL to LGPL, since
65599         gethostname.c is a trivial implementation of a standard library
65600         function.
65601         * modules/poll (License): Change from GPL to LGPL, since it's
65602         derived from LGPL code.
65603
65604 2005-09-27  Jim Meyering  <jim@meyering.net>
65605
65606         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65607         HAVE_CONFIG_H.
65608
65609         * lib/intprops.h (signed_type_or_expr__): Define.
65610         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65611         for unsigned types.
65612
65613 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         * lib/verify.h (verify_expr): Remove, replacing with:
65616         (verify_true): New macro that returns true instead of void.
65617         (verify_type__): Remove.
65618         (verify): Use verify_true rather than verify_type__.
65619
65620 2005-09-26  Bruno Haible  <bruno@clisp.org>
65621
65622         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65623         is necessary.
65624         (lib_SOURCES): Remove mbchar.c.
65625         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65626         (Files): Add m4/mbrtowc.m4.
65627         * modules/mbiter: Likewise.
65628         * modules/mbuiter: Likewise.
65629
65630 2005-09-26  Bruno Haible  <bruno@clisp.org>
65631
65632         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65633         compile mbchar.c if they are not both present.
65634         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65635         * m4/mbiter.m4 (gl_MBITER): Likewise.
65636         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65637         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65638         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65639
65640 2005-09-25  Jim Meyering  <jim@meyering.net>
65641
65642         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65643         also uses socklen_t.
65644
65645 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65646
65647         * lib/utimens.c (ENOSYS): Define if not already defined.
65648         (futimens): Support having a null PATH if the file descriptor
65649         is nonnegative.
65650
65651         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65652         Remove.
65653         (__attribute): Define to empty unless GCC 3.1 or later.
65654         This works around a core dump on OpenBSD 3.4, which has GCC
65655         2.95.3, which dumps core when given __attribute__(()).  It also
65656         simplifies other tests, since we really don't want to bother with
65657         worrying about which ancient version of GCC supported what.
65658         Original problem reported by Yoann Vandoorselaere, with part of
65659         the fix suggested by Derek Price.
65660
65661 2005-09-24  Jim Meyering  <jim@meyering.net>
65662
65663         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65664         so we can once again use a positive bitfield width of 1 -- now we
65665         don't have to explain why we were using a bitfield width of 2.
65666
65667 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65668
65669         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65670         and similarly for the other external symbols.  Problem reported
65671         by James Gallager.
65672
65673         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65674         bug reported by Jim Meyering.
65675
65676         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65677         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65678         not needed, since socklen is a prerequisite module.
65679
65680 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65681
65682         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65683         Problem reported by Eric Blake.
65684         (getaddrinfo): Initialize se so that it's not garbage.
65685         Redo internal storage allocation so that it doesn't make unportable
65686         assumptions about alignment.
65687         Fix a memory leak.
65688
65689         * lib/utimens.c (futimens): Use futimesat if available.
65690         Prefer it to futimes since it doesn't have the futimes bug.
65691
65692         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65693         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65694         Instead, declare a function that returns a pointer to an array,
65695         and use verify_type__ to declare the size of the array.
65696         Problem and germ of a solution reported by Bruno Haible.
65697         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65698         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65699
65700 2005-09-23  Jim Meyering  <jim@meyering.net>
65701
65702         Sync from coreutils.
65703         Correct build failure (socklen_t not defined) on at least
65704         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65706
65707 2005-09-23  Jim Meyering  <jim@meyering.net>
65708
65709         * modules/getaddrinfo (Depends-on): Add socklen.
65710
65711 2005-09-23  Bruno Haible  <bruno@clisp.org>
65712
65713         * tests/test-verify.c: New file.
65714
65715 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         Sync from coreutils.
65718
65719         * modules/argmatch (Depends-on): Add verify.
65720         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65721         unistd-safer.
65722         * modules/save-cwd (Depends-on): Likewise.
65723
65724         * modules/openat (Files): Add lib/openat-die.c.
65725         (Depends-on): Remove error, exitfail.
65726         Add dirname.
65727
65728         * modules/verify: New file.
65729         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65730         with "verify" module.
65731
65732 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65733
65734         Sync from coreutils.
65735
65736         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65737         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65738         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65739         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65740         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65741         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65742         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65743         Don't bother checking for string.h, stdlib.h, unistd.h.
65744         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65745         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65746         module's job.
65747         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65748         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65749
65750         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65751         (gl_GETDATE): Use it.
65752
65753         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65754
65755 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         Sync from coreutils.
65758
65759         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65760         stat-time.h.
65761         * lib/argmatch.h: Include verify.h
65762         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65763         (ARGMATCH_ASSERT): Remove; unused.
65764         * lib/canonicalize.c: Assume STDC_HEADERS.
65765         * lib/exclude.c: Include "strcase.h".
65766         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65767         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65768         and stdio-safer.h.
65769         (getusershell): Call fopen, not fopen_safer.
65770         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65771         Do not include unistd-safer.h.
65772         (save_cwd): Don't call fd_safer; no longer needed
65773         now that we include fcntl--.h.
65774
65775         * lib/getdate.y (relative_time): New type.
65776         (RELATIVE_TIME_0): New constant.
65777         (parser_control): Use relative_time instead of doing it ourselves.
65778         (%union): Add new relative_time rel member.
65779         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65780         Now typeless.
65781         (relunit, relunit_snumber): Now of type rel.
65782         (zone, rel, relunit, get_date): Adjust to above changes.
65783
65784         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65785         Do not include unistd-safer.h.
65786         (getloadavg): Don't call fd_safer; no longer needed
65787         now that we include fcntl--.h.
65788
65789         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65790         (make_dir_parents): Treat ENOSYS like EEXIST.
65791
65792         Improve quality of diagnostics on restore_cwd failure.
65793         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65794         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65795         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65796         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65797         each time through the loop.  Do not diagnose restore_cwd failure;
65798         that is the caller's job (and perhaps the caller does not care).
65799
65800         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65801         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65802         If the file already exists but is not a directory, don't bother
65803         to try to make its parents.
65804         Close potential file descriptor leak if we can't chdir("/") (!).
65805         Don't always return true if chdir($PWD) fails; return true only
65806         if the requested action was done successfully (except for the
65807         chdir($PWD)).
65808         Don't log final directory unless we actually made it.
65809         Refactor to avoid duplicate code to fix up permissions.
65810         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65811
65812         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65813         to make it a bit faster and (I hope) clearer.
65814         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65815         Fix bug in formats like %2N.
65816
65817         * lib/verify.h: New file.
65818
65819 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65820
65821         Sync from coreutils.
65822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65823
65824 2005-09-22  Jim Meyering  <jim@meyering.net>
65825
65826         Sync from coreutils.
65827
65828         * m4/lstat.m4 (gl_FUNC_LSTAT):
65829         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65830         Remove obsolete comment.
65831         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65832         * m4/xstrtod.m4: Likewise.
65833
65834         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65835
65836 2005-09-22  Jim Meyering  <jim@meyering.net>
65837
65838         Sync from coreutils.
65839
65840         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65841
65842         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65843         the .tm_year member, since otherwise gcc-4.0 would now warn about
65844         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65845
65846         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65847         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65848
65849         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65850         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65851         when run in a time zone for which daylight savings time is in effect
65852         for the starting date.
65853
65854         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65855         stop us from restricting permissions of just-created absolute-named
65856         directories.
65857         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65858         to restore initial working directory.
65859         * lib/mkdir-p.c (make_dir_parents): New parameter:
65860         different_working_dir, to tell caller if/when we change the working
65861         directory and are unable to return to the initial one.
65862         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65863         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65864         `return false'.  This fixes a bug introduced on 2004-07-30.
65865
65866         * lib/openat.c (fdopendir): Be sure to close the supplied
65867         file descriptor before returning.  This makes our replacement
65868         implementation a little closer to Solaris's, where fdopendir
65869         ties the file descriptor to the returned DIR* pointer.
65870         * lib/openat.c (unlinkat): New function.
65871         * lib/openat.h (unlinkat): Add prototype.
65872         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65873         (openat_restore_fail): Rename from openat_restore_die.
65874         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65875
65876         Provide an alternative to exiting immediately upon save_cwd or
65877         restore_cwd failure.  Now, an application can arrange e.g.,
65878         to perform a longjump in that case.
65879         * lib/openat.c: Include dirname.h.
65880         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65881         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65882         and openat_restore_die rather than calling error directly.
65883         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65884
65885         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65886         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65887         define.
65888
65889         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65890         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65891                             int utc, int nanoseconds);
65892         Background:
65893         date should not have to allocate a megabyte of virtual memory to
65894         handle a format argument like +%1048575T.  When implemented with
65895         strftime, it must allocate such a buffer, use strftime to fill it
65896         in, print it, then free it.
65897         With fprintftime, it simply prints everything and exits.
65898         With no need for memory allocation, that's one fewer way to fail.
65899         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65900         optional field width, not before, so we accept %9:z, not %:9z.
65901         (my_strftime): Be sure to use L_('x') for literals.
65902
65903         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65904         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65905         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65906         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65907         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65908         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65909         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65910         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65911         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65912         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65913         * lib/xgethostname.c, lib/xreadlink.c:
65914         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65915
65916         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65917         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65918         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65919         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65920         and don't include <sys/file.h>).
65921
65922 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65923
65924         Sync from coreutils.
65925
65926         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65927         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65928         [!LDAV_DONE]: Avoid unused variable warning.
65929
65930 2005-09-21  Bruno Haible  <bruno@clisp.org>
65931
65932         * lib/unicodeio.h (unicode_to_mb): New declaration.
65933
65934 2005-09-20  Derek Price  <derek@ximbiot.com>
65935
65936         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65937         getaddrinfo.h.
65938
65939 2005-09-20  Bruno Haible  <bruno@clisp.org>
65940
65941         * gnulib-tool: Remove trailing slashes from the values specified for
65942         --source-base, --m4-base, --tests-base, --aux-dir.
65943         Suggested by Simon Josefsson <jas@extundo.com>.
65944
65945 2005-09-20  Bruno Haible  <bruno@clisp.org>
65946
65947         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65948         func_modules_to_filelist, func_import, func_create_testdir): Make all
65949         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65950         change when gnulib-tool is invoked in a different locale.
65951
65952 2005-09-19  Simon Josefsson  <jas@extundo.com>
65953
65954         * m4/socklen.m4: Fix typo.
65955
65956 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65957
65958         Use a consistent style for including <config.h>.
65959         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65960         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65961         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65962         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65963         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65964         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65965         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65966         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65967         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65968         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65969         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65970         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65971         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65972         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65973         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65974         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65975         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65976         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65977         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65978         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65979         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65980         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65981         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65982         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65983         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65984         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65985         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65986         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65987         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65988         lib/xstrtoumax.c, lib/yesno.c:
65989         Standardize inclusion of config.h.
65990         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65991         lib/inttostr.h:  Removed inclusion of config.h from header files.
65992         * lib/inttostr.c:  Adjusted in-tree users.
65993         * lib/timespec.h: Remove superfluous warning to include config.h.
65994         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65995         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65996         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65997         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65998         config.h with HAVE_CONFIG_H.
65999
66000 2005-09-19  Jim Meyering  <jim@meyering.net>
66001
66002         * modules/pathmax (License): Change to LGPL.
66003
66004 2005-09-19  Derek Price  <derek@ximbiot.com>
66005
66006         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
66007
66008 2005-09-19  Bruno Haible  <bruno@clisp.org>
66009
66010         * gnulib-tool (import): Provide default for --tests-base.
66011
66012 2005-09-19  Bruno Haible  <bruno@clisp.org>
66013
66014         * doc/quote.texi: New file, extracted from gnulib.texi.
66015         * doc/ctime.texi: New file, extracted from gnulib.texi.
66016         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
66017         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
66018         * doc/gnulib.texi: Include them.
66019
66020 2005-09-18  Bruno Haible  <bruno@clisp.org>
66021
66022         Portability fix.
66023         * gnulib-tool (func_readlink): New function.
66024         (func_ln_if_changed): Use it.
66025
66026 2005-09-18  Bruno Haible  <bruno@clisp.org>
66027
66028         * gnulib-tool: Support --with-tests also with --import.
66029         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
66030         (func_import): Use variables $testsbase and $inctests. Emit a
66031         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
66032         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
66033         SUBDIRS += $testsdir.
66034         (func_create_testdir): Update.
66035
66036 2005-09-18  Bruno Haible  <bruno@clisp.org>
66037
66038         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
66039         instead of $dry_run.
66040         (func_cp_if_changed, func_mv_if_changed): Remove functions.
66041         (func_ln_if_changed): Don't handle dry-run here.
66042         (func_import): In dry-run mode, detect more precisely which actions
66043         would be performed, and don't use "...ing" verbs.
66044
66045 2005-09-18  Bruno Haible  <bruno@clisp.org>
66046
66047         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
66048         (func_import): Use join on two temporary files instead of three nested
66049         loops, in order to determine which files are new or old.
66050
66051 2005-09-18  Bruno Haible  <bruno@clisp.org>
66052
66053         * gnulib-tool (func_import): Comment out code that spits out the
66054         new files with --dry-run.
66055
66056 2005-09-18  Bruno Haible  <bruno@clisp.org>
66057
66058         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
66059
66060 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66061
66062         * lib/stat-time.h: New file.
66063         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
66064         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
66065         in a different way.
66066         (timespec_cmp): New function.
66067         * lib/utimecmp.c: Include stat-time.h.
66068         (SYSCALL_RESOLUTION): Depend on whether various struct stat
66069         members exist, not on the obsolescent ST_MTIM_NSEC.
66070         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
66071
66072 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66073
66074         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
66075
66076 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
66077
66078         * MODULES.html.sh (File system functions): Add stat-time.
66079         * modules/stat-time: New file.
66080         * modules/timespec (Files): Remove m4/st_mtim.m4; this
66081         is now done in a different way, by the stat-time module.
66082         * modules/utimecmp (Depends-on): Add stat-time.
66083
66084 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66085
66086         * m4/st_mtim.m4: Remove.  Superseded by...
66087         * m4/stat-time.m4: New file.
66088         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
66089         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
66090
66091 2005-09-15  Derek Price  <derek@ximbiot.com>
66092
66093         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
66094
66095 2005-09-15  Derek Price  <derek@ximbiot.com>
66096
66097         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
66098         * lib/regex_internal.c: Ditto, using this...
66099         (__GNUC_PREREQ): ...new macro.
66100         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
66101         using...
66102         (__GNUC_PREREQ): ...this new macro.
66103
66104         * lib/strstr.h: Include string.h. Define strstr as a macro here.
66105
66106 2005-09-15  Derek Price  <derek@ximbiot.com>
66107             Paul Eggert  <eggert@cs.ucla.edu>
66108
66109         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
66110         changes, consolidating in...
66111         * lib/regex_internal.h: ...this file.
66112
66113 2005-09-13  Jim Meyering  <jim@meyering.net>
66114
66115         * lib/canon-host.c: Filter through gnu indent and reword comments
66116         slightly.
66117         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
66118
66119 2005-09-13  Derek Price  <derek@ximbiot.com>
66120
66121         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
66122         failure.
66123         Reported by Jim Meyering  <jim@meyering.net>.
66124
66125 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66126
66127         * lib/base64.c: Typo.
66128         (base64_encode): Put b64str in initialized data section.
66129
66130 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         Merge glibc and coreutils changes into gnulib, plus a few
66133         extra fixes.
66134         * lib/md5.c: Use #error rather than a string.
66135         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
66136         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
66137         (__attribute__): Define to empty for non recent-GCC.
66138         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
66139         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
66140         Renamed from their non-__ counterparts, with new macros replacing
66141         them if not _LIBC.  Add __THROW attribute.
66142         (rol): Remove.
66143         (struct md5_ctx): Align buffer if using GCC.
66144         * lib/sha1.h (struct sha1_ctx): Likewise.
66145         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
66146         The old name was backwards.
66147         (NOTSWAP): Remove; not used.
66148         (rol): New macro, moved here from md5.h.
66149         (sha1_process_block): Remove a FIXME that doesn't make sense.
66150
66151 2005-09-12  Derek Price  <derek@ximbiot.com>
66152
66153         Return usable errors from canon-host.
66154         * lib/canon-host.h: New file.
66155         * lib/canon-host.c (canon_host): Wrap...
66156         (canon_host_r): ...this new function, which now relies exclusively on
66157         getaddrinfo.
66158         (ch_strerror): New function.
66159         (last_cherror): New global.
66160         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
66161         interface.
66162         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
66163         void *.
66164         (freeaddrinfo): Free ai->ai_canonname when set.
66165
66166 2005-09-12  Derek Price  <derek@ximbiot.com>
66167
66168         Make canon-host require getaddrinfo.
66169         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
66170         AC_LIBSOURCE canon-host.h.  Call...
66171         (gl_PREREQ_CANON_HOST): ...this new function, which requires
66172         gl_GETADDRINFO.
66173         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
66174
66175 2005-09-12  Derek Price  <derek@ximbiot.com>
66176
66177         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
66178         LGPL.
66179         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
66180
66181 2005-09-12  Derek Price  <derek@ximbiot.com>
66182
66183         * lib/gai_strerror.c: Include config.h when available.  Include
66184         getaddrinfo.h before other headers to test interface.
66185         Reported by Larry Jones <lawrence.jones@ugs.com>.
66186
66187 2005-09-12  Derek Price  <derek@ximbiot.com>
66188             Paul Eggert  <eggert@cs.ucla.edu>
66189
66190         * modules/glob (Files): Add glob-libc.h.
66191
66192 2005-09-12  Derek Price  <derek@ximbiot.com>
66193             Paul Eggert  <eggert@cs.ucla.edu>
66194
66195         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
66196         glob_.h, glob-libc.h.
66197         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
66198
66199 2005-09-12  Derek Price  <derek@ximbiot.com>
66200             Paul Eggert  <eggert@cs.ucla.edu>
66201
66202         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
66203         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
66204         protecting things that should be done only in gnulib contexts.
66205         * lib/glob_.h: New file, containing only the glob things needed for
66206         gnulib.
66207         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
66208         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
66209         (glob, globfree, glob_pattern_p): Now defined simply in terms of
66210         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
66211         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
66212         and to respect the namespace rules better.
66213
66214 2005-09-08  Simon Josefsson  <jas@extundo.com>
66215
66216         * modules/socklen: New file.
66217
66218 2005-09-08  Simon Josefsson  <jas@extundo.com>
66219
66220         * m4/socklen.m4: New file.
66221
66222 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66223
66224         * modules/utimens (Files): Add m4/utimbuf.m4, since
66225         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66226         Reported by Sergey Poznyakoff.
66227
66228 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66229
66230         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66231         definitions, since that's the preferred style in glibc.
66232         Fix a minor spacing issue, and update copyright notice to match
66233         glibc's.
66234
66235 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66236
66237         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66238
66239 2005-09-06  Simon Josefsson  <jas@extundo.com>
66240
66241         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66242         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66243
66244 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66247         warning.
66248
66249 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66250
66251         * config/srclist.txt: Add glibc bug 1302.
66252
66253 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66254
66255         Change bitset word type from unsigned int to unsigned long int,
66256         as this has better performance on typical 64-bit hosts.
66257         Port bitset code to hosts with unusual word sizes.
66258         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66259         (build_collating_symbol):
66260         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66261         argument is a bitset.  This is merely a style issue, but it makes
66262         it clearer that an entire array is expected.
66263         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66264         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66265         Port to the case where bitset_word is not the same as unsigned int.
66266         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66267         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66268         Likewise.
66269         * lib/regexec.c (check_dst_limits_calc_pos_1,
66270         check_subexp_matching_top):
66271         (build_trtable, group_nodes_into_DFAstates):
66272         Likewise.
66273         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66274         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66275         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66276         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66277         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66278         * lib/regcomp.c (optimize_subexps, lower_subexp):
66279         Work even if bitset_word has holes in its bitwise representation.
66280         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66281         * lib/regexec.c (check_dst_limits_calc_pos_1,
66282         check_subexp_matching_top):
66283         Likewise.
66284         * lib/regex_internal.c (re_string_reconstruct):
66285         Don't assume UCHAR_MAX == 255.
66286         * lib/regex_internal.h (bitset_set_all): Likewise.
66287         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66288         All uses changed.
66289         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66290         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66291         All uses changed.
66292         (BITSET_WORD_MAX): New macro.
66293         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66294         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66295         (bitset_empty, bitset_copy):
66296         Prefer sizeof (bitset) to multiplying it out ourselves.
66297         (bitset_not_merge): Remove; unused.
66298         (bitset_contain): Return bool, not unsigned int with one bit on.
66299         All callers changed.
66300         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66301         alignment than re_node_set; do this by defining a new internal
66302         type struct dests_alloc and using it to allocate memory.
66303
66304 2005-09-05  Bruno Haible  <bruno@clisp.org>
66305
66306         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66307         links.
66308
66309 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66310
66311         * modules/size_max (Makefile.am): Add size_max.h
66312
66313 2005-09-04  Derek Price  <derek@ximbiot.com>
66314
66315         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66316
66317 2005-09-03  Simon Josefsson  <jas@extundo.com>
66318
66319         * gnulib-tool: Fix typo.
66320
66321 2005-09-03  Simon Josefsson  <jas@extundo.com>
66322
66323         * config/srclist.txt: Add glibc bug 1293.
66324
66325 2005-09-03  Derek Price  <derek@ximbiot.com>
66326
66327         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66328         From Larry Jones <lawrence.jones@ugs.com>.
66329
66330 2005-09-02  Simon Josefsson  <jas@extundo.com>
66331
66332         * modules/socklen: New file.
66333
66334 2005-09-02  Simon Josefsson  <jas@extundo.com>
66335
66336         * modules/havelib: New module.
66337
66338         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66339         Use havelib.
66340
66341 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         Check for arithmetic overflow when calculating sizes, to prevent
66344         some buffer-overflow issues.  These patches are conservative, in the
66345         sense that when I couldn't determine whether an overflow was possible,
66346         I inserted a run-time check.
66347         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66348         macros.
66349         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66350         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66351         (re_xnrealloc, re_x2nrealloc): New inline functions.
66352         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66353         parse_bracket_exp):
66354         (build_equiv_class, build_charclass): Check for arithmetic overflow
66355         in size expression calculations.
66356         * lib/regex_internal.c (re_string_realloc_buffers):
66357         (build_wcs_upper_buffer, re_node_set_add_intersect):
66358         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66359         (re_dfa_add_node, register_state): Likewise.
66360         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66361         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66362         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66363         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66364
66365 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66366
66367         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66368         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66369
66370 2005-09-02  Bruno Haible  <bruno@clisp.org>
66371
66372         Support for lib vs. lib64 distinction on biarch platforms.
66373         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66374         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66375         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66376
66377 2005-09-02  Bruno Haible  <bruno@clisp.org>
66378
66379         * gnulib-tool (import): In the other first-use case, provide defaults
66380         as well.
66381
66382 2005-09-02  Bruno Haible  <bruno@clisp.org>
66383
66384         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66385         patches not yet found in the latest gettext release.
66386
66387 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66388
66389         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66390         to avoid a collision with bits/local_lim.h in glibc.
66391         All uses changed.  Problem reported by Dmitry V. Levin in
66392         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66393
66394         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66395         bugs in int versus size_t comparisons.
66396         (re_string_context_at): Fix bug where the code assumed that
66397         Idx is signed.
66398
66399         Use bool where appropriate.
66400         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66401         All callers changed.
66402         (calc_eclosure_iter): Likewise, for ROOT arg.
66403         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66404         (build_charclass_op): Likewise, for NON_MATCH arg.
66405         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66406         (re_string_construct_common): Likewise, for ICASE arg.
66407         * lib/regexec.c (re_search_2_stub, re_search_stub):
66408         Likewise, for RET_LEN arg.
66409         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66410         (set_regs): Likewise, for FL_BACKTRACK arg.
66411         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66412         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66413         (calc_eclosure_iter, parse_bracket_exp):
66414         Use bool for internal variables that are booleans.
66415         * lib/regexec.c (re_search_internal, check_matching,
66416         proceed_next_node):
66417         (set_regs, build_sifted_states, sift_states_bkref):
66418         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66419         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66420         (find_collation_sequence_value):
66421         Likewise.
66422         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66423         (re_node_set_compare):
66424         Return bool, not int. All callers changed.
66425         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66426         (build_trtable, check_node_accept): Likewise.
66427         * lib/regex_internal.h: Include stdbool.h.
66428
66429         Fix bugs uncovered when converting to bool.
66430         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66431         failure instead of charging ahead blindly.
66432         * lib/regex_internal.c (register_state): Likewise.
66433         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66434         for freeing internal storage.
66435         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66436         bitset pieces used as boolean, to avoid undefined behavior
66437         on hosts that do int overflow checking.
66438
66439 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66440
66441         * config/srclist.txt: Add glibc bugs 1285-1287.
66442
66443 2005-09-01  Jim Meyering  <jim@meyering.net>
66444
66445         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66446         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66447         Require gl_STAT_MACROS, too.
66448
66449 2005-09-01  Bruno Haible  <bruno@clisp.org>
66450
66451         * gnulib-tool (import): In the first-use case, provide defaults.
66452
66453 2005-09-01  Bruno Haible  <bruno@clisp.org>
66454
66455         * gnulib-tool (func_import): Remove the .tmp files.
66456
66457 2005-09-01  Bruno Haible  <bruno@clisp.org>
66458
66459         * gnulib-tool (func_import): Fix handling of symbolic links.
66460
66461 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66464         old glibc regex code mishandles strings longer than 2**31 bytes.
66465         This patch fixes this when the regex code is used in gnulib
66466         (i.e., outside glibc).
66467
66468         This patch should not affect the use of the regex code inside
66469         glibc.  No doubt this problem also needs to be handled for glibc
66470         as well, but the result will be an incompatible change to the
66471         glibc ABI, and the old ABI will have to be supported too.  That
66472         can be the the subject for another patch.
66473
66474         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66475         governing whether the rest of this patch is active.  By default,
66476         the macro is disabled and the patch has no effect.
66477         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66478         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66479         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66480         (re_match_2, re_set_registers): Use the new types.
66481         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66482         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66483         New macros.
66484         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66485         (re_string_context_at, bin_tree_t, re_dfastate_t):
66486         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66487         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66488         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66489         (re_string_char_size_at, re_string_wchar_at):
66490         (re_string_elem_size_at):
66491         Use the new types and macros to port to 64-bit hosts.
66492         Use unsigned types for internal values, so that the code
66493         mostly works even for arrays larger than SSIZE_MAX.
66494         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66495         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66496         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66497         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66498         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66499         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66500         (calc_inveclosure, parse_dup_op, build_range_exp):
66501         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66502         (fetch_number, create_token_tree, mark_opt_subexp):
66503         Likewise.
66504         * lib/regex_internal.c (re_string_construct_common,
66505         create_ci_newstate):
66506         (create_cd_newstate, re_string_allocate, re_string_construct):
66507         (re_string_realloc_buffers, build_wcs_upper_buffer):
66508         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66509         (re_string_reconstruct, re_string_peek_byte_case):
66510         (re_string_fetch_byte_case, re_string_context_at):
66511         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66512         (re_node_set_init_copy, re_node_set_add_intersect):
66513         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66514         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66515         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66516         (re_acquire_state, re_acquire_state_context, register_state):
66517         Likewise.
66518         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66519         search_cur_bkref_entry):
66520         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66521         (re_search_internal, re_search_2_stub, re_search_stub)
66522         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66523         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66524         (update_cur_sifted_state, check_dst_limits):
66525         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66526         (check_subexp_limits, sift_states_bkref, merge_state_array):
66527         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66528         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66529         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66530         (expand_bkref_cache, check_node_accept_bytes):
66531         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66532         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66533         (acquire_init_state_context, check_halt_node_context):
66534         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66535         (sift_states_backward, clean_state_log_if_needed):
66536         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66537         (find_recover_state, transit_state_sb, transit_state_mb):
66538         (transit_state_bkref, build_trtable, match_ctx_clean):
66539         Likewise.
66540         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66541         to work around an assumption that REG_MISSING is negative.
66542
66543         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66544         (seek_collating_symbol_entry) [defined _LIBC]:
66545         (lookup_collation_sequence_value) [defined _LIBC]:
66546         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66547         Use prototypes rather than old-style function definitions.
66548         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66549         (transit_state_sb) [0]:
66550         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66551
66552         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66553         rm_eo.
66554
66555         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66556         (optimize_subexps, lower_subexp):
66557         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66558         since the signed shift might overflow.  Use 1u<<31 instead.
66559         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66560         Likewise.
66561         * lib/regexec.c (check_dst_limits_calc_pos_1,
66562         check_subexp_matching_top): Likewise.
66563
66564         * lib/regcomp.c (optimize_subexps, lower_subexp):
66565         Use CHAR_BIT rather than 8, for clarity.
66566         * lib/regexec.c (check_dst_limits_calc_pos_1):
66567         (check_subexp_matching_top): Likewise.
66568         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66569         have to worry about portability issues when shifting it left.
66570         Remove no-longer-needed test for table_size > 0.
66571         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66572         in a word, as the resulting behavior is undefined.
66573         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66574         in one case, a <= should have been an <, and in another case the
66575         whole test was missing.
66576         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66577         the standard name CHAR_BIT.
66578         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66579         this is not true on one's complement and signed-magnitude hosts.
66580
66581         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66582         next_last_offset.
66583         (struct re_dfa_t): Remove unused member states_alloc.
66584         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66585
66586 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66587
66588         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66589         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66590         and large-file glibc and in 32-bit large-file Solaris.
66591
66592 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66593
66594         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66595         lengths fit in regoff_t; this isn't true if regoff_t is the same
66596         width as size_t.
66597         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66598         (= START + RANGE) instead of RANGE.  This avoids overflow
66599         problems when regoff_t is the same width as size_t.
66600         All callers changed.
66601         (re_search_2_stub): Check for overflow when adding the
66602         sizes of the two strings.
66603         (re_search_stub): Check for overflow when adding START
66604         to RANGE; if it occurs, substitute the extreme value.
66605
66606 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66607
66608         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66609
66610 2005-08-31  Jim Meyering  <jim@meyering.net>
66611
66612         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66613         a pointer-to-const.
66614         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66615         (register_state): Likewise.
66616         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66617         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66618         (group_nodes_into_DFAstates): Likewise.
66619
66620 2005-08-31  Jim Meyering  <jim@meyering.net>
66621
66622         * check-module: Add a FIXME comment.
66623
66624 2005-08-31  Eric Blake  <ebb9@byu.net>
66625
66626         * modules/unistd-safer (Files): Add unistd--.h.
66627         * modules/stdio-safer (Files): Add stdio--.h.
66628
66629 2005-08-31  Derek Price  <derek@ximbiot.com>
66630
66631         * lib/getdelim.c (getdelim): Return EOF on EOF.
66632         Reported by Larry Jones <lawrence.jones@ugs.com>.
66633
66634 2005-08-31  Bruno Haible  <bruno@clisp.org>
66635
66636         Avoid unnecessary diffs in the generated lib/Makefile.am.
66637         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66638         the generated files.
66639         (func_import): Don't set cmd.
66640
66641 2005-08-31  Bruno Haible  <bruno@clisp.org>
66642
66643         * lib/strstr.c: Include <stddef.h>, for NULL.
66644         * lib/strcasestr.c: Likewise.
66645         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66646
66647 2005-08-31  Bruno Haible  <bruno@clisp.org>
66648
66649         * gnulib-tool: New option --macro-prefix.
66650         (func_import): Use macro_prefix.
66651         (import): Handle option --macro-prefix.
66652
66653 2005-08-31  Bruno Haible  <bruno@clisp.org>
66654
66655         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66656         Also use new variables cached_lgpl, cached_libtool.
66657
66658 2005-08-31  Bruno Haible  <bruno@clisp.org>
66659
66660         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66661         always instantiating them.
66662
66663 2005-08-31  Bruno Haible  <bruno@clisp.org>
66664
66665         * gnulib-tool (func_import): Read the previous cached settings
66666         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66667         earlier added by gnulib but are now dropped. Warn when a gnulib file
66668         overwrites a non-gnulib file.
66669
66670 2005-08-31  Bruno Haible  <bruno@clisp.org>
66671
66672         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66673         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66674         projects that don't keep autogenerated files in CVS. Put into
66675         actioncmd only the specified modules, not the transitive closure.
66676
66677 2005-08-31  Bruno Haible  <bruno@clisp.org>
66678
66679         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66680         Create directories that shall be filled.
66681         (import): Don't look for gl_* macros in configure.ac. Recurse across
66682         all directories containing a gnulib-cache.m4 files, if meaningful.
66683
66684 2005-08-31  Bruno Haible  <bruno@clisp.org>
66685
66686         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66687         (import): Set seen_libtool when we see gl_LIBTOOL.
66688
66689 2005-08-31  Bruno Haible  <bruno@clisp.org>
66690
66691         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66692         declaration macro definitions from generated gnulib.m4.
66693
66694 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66695
66696         * lib/iconvme.h: Add prototype for iconv_alloc.
66697
66698 2005-08-29  Simon Josefsson  <jas@extundo.com>
66699
66700         * lib/iconvme.c: Fix errno.
66701
66702 2005-08-29  Bruno Haible  <bruno@clisp.org>
66703
66704         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66705         that it works when the directory contains spaces.
66706
66707 2005-08-29  Bruno Haible  <bruno@clisp.org>
66708
66709         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66710
66711 2005-08-29  Bruno Haible  <bruno@clisp.org>
66712
66713         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66714         Emit more advice.
66715
66716 2005-08-29  Bruno Haible  <bruno@clisp.org>
66717         and Stepan Kasal  <kasal@ucw.cz>
66718
66719         * check-module: If more parameters are given, check each of them
66720         separately; add more exceptions, as noted by Jim Meyering.
66721         (check_module): New procedure.
66722         (%exempt_header): Now contains all exceptions.
66723
66724 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66725
66726         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66727
66728 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66729
66730         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66731
66732 2005-08-28  Bruno Haible  <bruno@clisp.org>
66733
66734         * m4/gnulib-tool.m4: New file.
66735
66736 2005-08-27  Jim Meyering  <jim@meyering.net>
66737
66738         * modules/unistd-safer (Files): Add pipe-safer.c.
66739         * modules/fcntl-safer (Files): Add creat-safer.c.
66740
66741 2005-08-27  Jim Meyering  <jim@meyering.net>
66742
66743         * m4/stdlib-safer.m4: New file.  From coreutils.
66744         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66745         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66746         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66747         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66748         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66749
66750 2005-08-27  Jim Meyering  <jim@meyering.net>
66751
66752         * lib/fopen-safer.c: Merge minor changes from coreutils.
66753         * lib/dup-safer.c: Likewise.
66754         * lib/fd-safer.c: Likewise.
66755
66756         Merge from coreutils.
66757         * lib/stdio--.h: New file.
66758         * lib/stdlib--.h: New file.
66759         * lib/mkstemp-safer.c: New file.
66760
66761         GNU tar needs these.
66762         * lib/pipe-safer.c: New file.
66763         * lib/creat-safer.c: New file.
66764         * lib/fcntl--.h (creat): Define to creat_safer.
66765         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66766         * lib/unistd--.h (pipe): Define to pipe_safer.
66767         * lib/unistd-safer.h: Declare pipe_safer.
66768
66769 2005-08-26  Simon Josefsson  <jas@extundo.com>
66770
66771         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66772         Haible <bruno@clisp.org>.
66773
66774 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66775
66776         * lib/regex_internal.h: Remove all references to
66777         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66778         or better.
66779         (bitset_not, bitset_merge, bitset_not_merge):
66780         (bitset_mask, re_string_allocate, re_string_construct):
66781         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66782         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66783         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66784         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66785         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66786         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66787         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66788         (re_acquire_state_context):
66789         Remove unnecessary forward decls.
66790         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66791         Put __attribute at function definition,
66792         now that the function decl has been removed.
66793         * lib/regex_internal.c (re_string_peek_byte_case):
66794         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66795         Likewise.
66796
66797 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66798
66799         * m4/regex.m4: Add AC_PREREQ(2.50).
66800         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66801
66802 2005-08-25  Simon Josefsson  <jas@extundo.com>
66803
66804         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66805         __fsetlocking.
66806
66807 2005-08-25  Simon Josefsson  <jas@extundo.com>
66808
66809         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66810         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66811         GLIBC specific code.
66812
66813 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66814
66815         Make regex safe for g++.  This fixes one real bug (an "err"
66816         that should have been "*err").  g++ problem reported by
66817         Sam Steingold.
66818         * lib/regex_internal.h (re_calloc): New macro, consistent with
66819         re_malloc etc.  All callers of calloc changed to use re_calloc.
66820         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66821         not int.  All callers changed.
66822         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66823         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66824         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66825         (find_recover_state): Change "err" to "*err"; this fixes what
66826         appears to be a real bug.
66827         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66828         versus int.
66829
66830 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66831
66832         * modules/regex (Depends-on): Add malloc, since the code
66833         assumes that !malloc(0) means failure.
66834
66835 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66836
66837         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66838
66839         alloca modernization/simplification for regex.
66840         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66841         needs to be at the start of the file, and can be moved into
66842         regex_internal.h and simplified.
66843         * lib/regex_internal.h: Include <alloca.h>.
66844         (__libc_use_alloca) [!defined _LIBC]: New macro.
66845         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66846         now works outside glibc.
66847
66848 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66849
66850         * config/srclist.txt: Add glibc bugs 1241, 1245.
66851
66852 2005-08-25  Jim Meyering  <jim@meyering.net>
66853
66854         * lib/open-safer.c: Include <config.h>.
66855         Otherwise, we'd lose LARGEFILE support in any file using
66856         e.g. "fcntl--.h"
66857
66858 2005-08-25  Bruno Haible  <bruno@clisp.org>
66859
66860         * m4/minmax.m4: Require autoconf 2.52.
66861         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66862         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66863         alternatives of translit over the alphabet.
66864         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66865
66866 2005-08-24  Simon Josefsson  <jas@extundo.com>
66867
66868         * tests/test-getpass.c: New file.
66869
66870 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66871
66872         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66873         for GNU regex features.
66874
66875 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66876
66877         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66878         * lib/regex.h (regerror): Likewise.
66879
66880         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66881         requires this.  (The code never needed it.)
66882
66883         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66884         All uses of recently-renamed identifiers changed to use the new,
66885         POSIX-compliant names.  The code will build and run just fine
66886         without these changes, but it's better to eat our own dog food
66887         and use the standard-conforming names.
66888
66889         * lib/regex.h: Fix a multitude of POSIX name space violations.
66890         These changes have an effect only for programs that define
66891         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66892         do not change anything for programs compiled in the normal way.
66893         Also, there is no effect on the ABI.
66894
66895         (_REGEX_SOURCE): New macro.
66896         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66897         defined and _GNU_SOURCE is not; this fixes a name space violation.
66898
66899         Rename the following macros to obey POSIX requirements.
66900         The old names are still visible as macros if _REGEX_SOURCE is defined.
66901         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66902         RE_BACKSLASH_ESCAPE_IN_LISTS.
66903         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66904         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66905         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66906         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66907         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66908         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66909         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66910         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66911         (REG_INTERVALS): renamed from RE_INTERVALS.
66912         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66913         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66914         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66915         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66916         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66917         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66918         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66919         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66920         RE_UNMATCHED_RIGHT_PAREN_ORD.
66921         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66922         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66923         (REG_DEBUG): renamed from RE_DEBUG.
66924         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66925         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66926         unusual, since we can't clash with the POSIX REG_ICASE.
66927         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66928         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66929         (REG_NO_SUB): renamed from RE_NO_SUB.
66930         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66931         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66932         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66933         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66934         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66935         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66936         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66937         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66938         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66939         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66940         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66941         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66942         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66943         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66944         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66945         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66946         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66947         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66948         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66949         (REG_FIXED): Renamed from REGS_FIXED.
66950         (REG_NREGS): Renamed from RE_NREGS.
66951
66952         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66953         of other REG_* macros, since POSIX says the user is allowed to
66954         #undef these macros selectively.
66955
66956         (reg_errcode_t): Update comment stating what other tables need
66957         to be consistent.
66958
66959         Rename the following enum values to obey POSIX requirements.
66960         The old names are still visible as macros.
66961         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66962         is not defined, since GNU is supposed to be a superset of POSIX as
66963         much as possible, and since we want reg_errcode_t to be a signed
66964         type for implementation consistency.
66965         (_REG_NOERROR): Renamed from REG_NOERROR.
66966         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66967         (_REG_BADPAT): Renamed from REG_BADPAT.
66968         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66969         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66970         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66971         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66972         (_REG_EBRACK): Renamed from REG_EBRACK.
66973         (_REG_EPAREN): Renamed from REG_EPAREN.
66974         (_REG_EBRACE): Renamed from REG_EBRACE.
66975         (_REG_BADBR): Renamed from REG_BADBR.
66976         (_REG_ERANGE): Renamed from REG_ERANGE.
66977         (_REG_ESPACE): Renamed from REG_ESPACE.
66978         (_REG_BADRPT): Renamed from REG_BADRPT.
66979         (_REG_EEND): Renamed from REG_EEND.
66980         (_REG_ESIZE): Renamed from REG_ESIZE.
66981         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66982         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66983         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66984         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66985         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66986
66987         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66988         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66989         changed.  But support the old name if the new one is not defined
66990         and if _REGEX_SOURCE.
66991
66992         Change the following member names in struct re_pattern_buffer.
66993         The old names are still supported if !_REGEX_SOURCE.
66994         The new names are always supported, regardless of _REGEX_SOURCE.
66995         (re_buffer): Renamed from buffer.
66996         (re_allocated): Renamed from allocated.
66997         (re_used): Renamed from used.
66998         (re_syntax): Renamed from syntax.
66999         (re_fastmap): Renamed from fastmap.
67000         (re_translate): Renamed from translate.
67001         (re_can_be_null): Renamed from can_be_null.
67002         (re_regs_allocated): Renamed from regs_allocated.
67003         (re_fastmap_accurate): Renamed from fastmap_accurate.
67004         (re_no_sub): Renamed from no_sub.
67005         (re_not_bol): Renamed from not_bol.
67006         (re_not_eol): Renamed from not_eol.
67007         (re_newline_anchor): Renamed from newline_anchor.
67008
67009         Change the following member names in struct re_registers.
67010         The old names are still supported if !_REGEX_SOURCE.
67011         The new names are always supported, regardless of _REGEX_SOURCE.
67012         (rm_num_regs): Renamed from num_regs.
67013         (rm_start): Renamed from start.
67014         (rm_end): Renamed from end.
67015
67016         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
67017         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
67018         Prepend __ to parameter names.
67019
67020         Undo yesterday's changes.
67021
67022 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
67025         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
67026         lib/regex.c.
67027
67028 2005-08-24  Jim Meyering  <jim@meyering.net>
67029
67030         Sync from coreutils.
67031         * m4/fcntl-safer.m4: New file.
67032
67033         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
67034         and object files for this module.
67035
67036 2005-08-24  Jim Meyering  <jim@meyering.net>
67037
67038         Sync from coreutils.
67039         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
67040
67041 2005-08-24  Jim Meyering  <jim@meyering.net>
67042
67043         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
67044         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
67045
67046 2005-08-24  Jim Meyering  <jim@meyering.net>
67047
67048         * modules/fcntl-safer: New module.
67049         * modules/fts (Depends-on): Add fcntl-safer.
67050         * MODULES.html.sh (File descriptor based Input/Output):
67051         Add fcntl-safer.
67052
67053 2005-08-24  Bruno Haible  <bruno@clisp.org>
67054
67055         Support for unit test modules.
67056         * modules/README: Mention tests modules.
67057         * modules/TEMPLATE-TESTS: New file.
67058         * gnulib-tool: New options --extract-tests-module, --with-tests and
67059         --tests-base (unused for the moment).
67060         (testsbase, inctests): New variables.
67061         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
67062         (func_verify_module): Exclude TEMPLATE-TESTS.
67063         (func_verify_nontests_module, func_verify_tests_module): New functions.
67064         (func_get_dependencies): Add implicit dependency for tests modules.
67065         (func_get_tests_module): New function.
67066         (func_modules_transitive_closure): When --with-tests was specified,
67067         include the unit tests as well, unless explicitly avoided.
67068         (func_emit_lib_Makefile_am): Ignore the tests modules here.
67069         (func_emit_tests_Makefile_am): New function.
67070         (func_create_testdir): When --with-tests was specified, emit a
67071         tests/ directory.
67072         * MODULES.html.sh (Future developments): Update.
67073
67074 2005-08-24  Bruno Haible  <bruno@clisp.org>
67075
67076         * modules/tls-tests: New file.
67077         * tests/test-tls.c: New file, from GNU gettext.
67078
67079 2005-08-24  Bruno Haible  <bruno@clisp.org>
67080
67081         * modules/lock-tests: New file.
67082         * tests/test-lock.c: New file, from GNU gettext.
67083
67084 2005-08-24  Bruno Haible  <bruno@clisp.org>
67085
67086         * lib/lock.h: Add multiple inclusion guard.
67087         * lib/tls.h: Add multiple inclusion guard.
67088
67089 2005-08-24  Bruno Haible  <bruno@clisp.org>
67090
67091         * gnulib-tool: Add support for the --aux-dir option to
67092         --create-testdir, --create-megatestdir, --test, --megatest.
67093         (func_create_testdir, func_create_megatestdir): Optionally emit a
67094         AC_CONFIG_AUX_DIR directive.
67095         (create-testdir, create-megatestdir, test, megatest): Provide a
67096         default value for $auxdir.
67097
67098 2005-08-24  Bruno Haible  <bruno@clisp.org>
67099
67100         * gnulib-tool (import): Use compound statement instead of subshell
67101         where possible.
67102
67103 2005-08-24  Bruno Haible  <bruno@clisp.org>
67104
67105         * gnulib-tool (import): Change --aux-dir default to "build-aux".
67106
67107 2005-08-24  Bruno Haible  <bruno@clisp.org>
67108
67109         * gnulib-tool (func_version): Update.
67110
67111 2005-08-24  Bruno Haible  <bruno@clisp.org>
67112
67113         * gnulib-tool (func_import, func_create_testdir,
67114         func_create_megatestdir): Quote all autoconf macro arguments.
67115
67116 2005-08-24  Bruno Haible  <bruno@clisp.org>
67117
67118         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
67119         option --force, because --force causes the aclocal.m4 of each
67120         subdirectory to be newer than the corresponding config.h.in.
67121
67122 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67123
67124         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
67125         All contents moved to gl_REGEX.
67126         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
67127         assume that it does.
67128
67129 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67130
67131         * lib/regex.h (REG_NOSYS)
67132         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
67133         Define, since POSIX requires it as of 2001.
67134         (_REG_ENOSYS)
67135         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
67136         New private symbol, used to keep the enum signed in all cases.
67137         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
67138         Youngman in
67139         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
67140
67141         * lib/regex_internal.c (re_string_skip_chars, register_state):
67142         (calc_state_hash):
67143         Remove forward decls; no longer needed now that we use prototypes.
67144         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
67145         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
67146         (clean_state_log_if_needed): Likewise.
67147
67148 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67149
67150         * config/srclist.txt: Add glibc bugs 1231-1233.
67151
67152 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67153
67154         Fix problems reported by Sam Steingold in
67155         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
67156         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
67157         assumed that reg_errcode_t is a signed type, which is not
67158         necessarily true if _XOPEN_SOURCE is not defined.
67159         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
67160         since some compilers warn about it otherwise.
67161
67162 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
67165         (init_word_char, create_initial_state, duplicate_node_closure):
67166         (fetch_token, peek_token_bracket, build_range_exp):
67167         (build_collating_symbol): Remove forward decls; no longer needed
67168         now that we use prototypes.
67169
67170         * lib/regcomp.c:
67171         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
67172         (re_compile_fastmap_iter, regcomp, regerror, regfree):
67173         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
67174         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
67175         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
67176         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
67177         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
67178         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
67179         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
67180         (build_range_exp, build_collating_symbol, parse_bracket_exp):
67181         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
67182         (build_charclass, build_charclass_op, fetch_number, create_tree):
67183         (create_token_tree, mark_opt_subexp, duplicate_tree):
67184         Use prototypes rather than old-style definitions.
67185
67186         * lib/regex_internal.c:
67187         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
67188         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
67189         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
67190         (re_string_reconstruct, re_string_peek_byte_case):
67191         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
67192         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
67193         (re_node_set_init_copy, re_node_set_add_intersect):
67194         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
67195         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
67196         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
67197         (re_acquire_state, re_acquire_state_context, register_state):
67198         (create_ci_newstate, create_cd_newstate, free_state):
67199         Likewise.
67200         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
67201         re_search_2):
67202         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
67203         (re_search_internal, prune_impossible_nodes):
67204         (acquire_init_state_context, check_matching, static):
67205         (check_halt_node_context, check_halt_state_context, proceed_next_node):
67206         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
67207         (update_regs, sift_states_backward, build_sifted_states):
67208         (clean_state_log_if_needed, merge_state_array):
67209         (update_cur_sifted_state, add_epsilon_src_nodes):
67210         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
67211         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
67212         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
67213         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67214         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67215         (check_arrival, check_arrival_add_next_nodes):
67216         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67217         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67218         (check_node_accept_bytes, check_node_accept, extend_buffers):
67219         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67220         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67221         (sift_ctx_init):
67222         Likewise.
67223
67224         * lib/regex_internal.h:
67225         (re_string_allocate, re_string_construct, re_string_reconstruct):
67226         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67227         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67228         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67229         (re_string_context_at, re_string_peek_byte_case):
67230         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67231         is defined, since we now use prototypes always.
67232
67233         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67234         C89 or better.  All uses removed.
67235
67236 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67237
67238         * config/srclist.txt: Add glibc bugs 1220-1227.
67239
67240 2005-08-20  Jim Meyering  <jim@meyering.net>
67241
67242         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67243         of unused local, dfa.
67244
67245 2005-08-20  Bruno Haible  <bruno@clisp.org>
67246
67247         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67248
67249 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67252         (re_node_set_insert_last, re_dfa_add_node):
67253         Rename local variables to avoid GCC shadowing warnings.
67254
67255 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67256
67257         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67258         [defined lint]: Suppress bogus uninitialized-variable warnings.
67259
67260         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67261         and let the caller return REG_ESPACE if out of space.  This
67262         removes an uninitialied-variable warning with GCC 4.0.1, and also
67263         avoids taking the address of a local variable.  All callers
67264         changed.
67265
67266 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67269         $LIBCSRC/posix/regexec.c.
67270         Add glibc bug 1217 for regcomp.c.
67271
67272 2005-08-19  Jim Meyering  <jim@meyering.net>
67273
67274         * lib/regexec.c (proceed_next_node): Redo local variables to
67275         avoid GCC shadowing warnings.
67276
67277 2005-08-18  Bruno Haible  <bruno@clisp.org>
67278
67279         * lib/strstr.c (strstr): Fix return value in multibyte case.
67280         * lib/strcasestr.c (strcasestr): Likewise.
67281
67282 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67283
67284         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67285
67286 2005-08-17  Jim Meyering  <jim@meyering.net>
67287
67288         Make the %s format (seconds since the epoch) work for a negative
67289         number and when used with a zero-padded field width, e.g. %015s.
67290
67291         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67292         label so that it precedes the code to set `digits'.  Otherwise,
67293         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67294         print `00-22'.  Now, it prints `-0022', as it should.
67295
67296 2005-08-17  Bruno Haible  <bruno@clisp.org>
67297
67298         * modules/strstr (Files): Add m4/mbrtowc.m4.
67299         (Depends-on): Add mbuiter.
67300
67301 2005-08-17  Bruno Haible  <bruno@clisp.org>
67302
67303         * modules/strcasestr: New file.
67304         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67305         strcasestr.
67306
67307 2005-08-17  Bruno Haible  <bruno@clisp.org>
67308
67309         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67310
67311 2005-08-17  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/mbuiter: New file.
67314         * MODULES.html.sh (Extended multibyte and wide character utilities):
67315         Add mbuiter.
67316
67317 2005-08-17  Bruno Haible  <bruno@clisp.org>
67318
67319         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67320         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67321
67322 2005-08-17  Bruno Haible  <bruno@clisp.org>
67323
67324         * m4/strcasestr.m4: New file.
67325
67326 2005-08-17  Bruno Haible  <bruno@clisp.org>
67327
67328         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67329         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67330
67331 2005-08-17  Bruno Haible  <bruno@clisp.org>
67332
67333         * lib/strcasestr.h: New file.
67334         * lib/strcasestr.c: New file.
67335
67336 2005-08-17  Bruno Haible  <bruno@clisp.org>
67337
67338         * lib/strcasecmp.c: Use mbuiter.h.
67339
67340 2005-08-17  Bruno Haible  <bruno@clisp.org>
67341
67342         * lib/mbuiter.h: New file.
67343
67344 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67345
67346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67347         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67348         and gl_GETOPT are both invoked via different paths (as happens
67349         with GNU tar CVS because it uses both argp and getopt), the former
67350         wins.
67351
67352 2005-08-16  Bruno Haible  <bruno@clisp.org>
67353
67354         * modules/tls: New file.
67355         * MODULES.html.sh (Multithreading): Add tls.
67356
67357 2005-08-16  Bruno Haible  <bruno@clisp.org>
67358
67359         * modules/strnlen1: New file.
67360         * MODULES.html.sh (String handling): Add strnlen1.
67361
67362 2005-08-16  Bruno Haible  <bruno@clisp.org>
67363
67364         * modules/strcase (Files): Add m4/mbrtowc.m4.
67365         (Depends-on): Add strnlen1, mbchar.
67366
67367 2005-08-16  Bruno Haible  <bruno@clisp.org>
67368
67369         * modules/mbiter: New file.
67370         * MODULES.html.sh (Extended multibyte and wide character utilities):
67371         Add mbiter.
67372
67373 2005-08-16  Bruno Haible  <bruno@clisp.org>
67374
67375         * modules/mbfile: New file.
67376         * MODULES.html.sh (Extended multibyte and wide character utilities):
67377         Add mbfile.
67378
67379 2005-08-16  Bruno Haible  <bruno@clisp.org>
67380
67381         * modules/mbchar: New file.
67382         * MODULES.html.sh (Extended multibyte and wide character utilities):
67383         New section.
67384
67385 2005-08-16  Bruno Haible  <bruno@clisp.org>
67386
67387         * m4/tls.m4: New file, from GNU gettext.
67388
67389 2005-08-16  Bruno Haible  <bruno@clisp.org>
67390
67391         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67392         always.
67393         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67394
67395 2005-08-16  Bruno Haible  <bruno@clisp.org>
67396
67397         * m4/mbiter.m4: New file.
67398
67399 2005-08-16  Bruno Haible  <bruno@clisp.org>
67400
67401         * m4/mbfile.m4: New file.
67402
67403 2005-08-16  Bruno Haible  <bruno@clisp.org>
67404
67405         * m4/mbchar.m4: New file.
67406
67407 2005-08-16  Bruno Haible  <bruno@clisp.org>
67408
67409         * lib/tls.h: New file, from GNU gettext.
67410         * lib/tls.c: New file, from GNU gettext.
67411
67412 2005-08-16  Bruno Haible  <bruno@clisp.org>
67413
67414         * lib/strnlen1.h: New file.
67415         * lib/strnlen1.c: New file.
67416
67417 2005-08-16  Bruno Haible  <bruno@clisp.org>
67418
67419         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67420         (mbi_init): Update.
67421         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67422         NUL byte, not after it.
67423
67424 2005-08-16  Bruno Haible  <bruno@clisp.org>
67425
67426         * lib/strcase.h (strcasecmp): Add note in comments.
67427         * lib/strncasecmp.c: Use code from strcasecmp.c.
67428         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67429         (strcasecmp): Work correctly in multibyte locales.
67430
67431 2005-08-16  Bruno Haible  <bruno@clisp.org>
67432
67433         * lib/mbiter.h: New file.
67434
67435 2005-08-16  Bruno Haible  <bruno@clisp.org>
67436
67437         * lib/mbfile.h: New file.
67438
67439 2005-08-16  Bruno Haible  <bruno@clisp.org>
67440
67441         * lib/mbchar.h: New file.
67442         * lib/mbchar.c: New file.
67443
67444 2005-08-16  Bruno Haible  <bruno@clisp.org>
67445
67446         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67447         the valid ones. Makes the comparison operations transitive:
67448         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67449         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67450
67451 2005-08-15  Simon Josefsson  <jas@extundo.com>
67452
67453         * modules/ssize_t (License): Change to 'unlimited'.
67454
67455         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67456
67457 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67460         Add comments for each pending glibc patch.
67461
67462 2005-08-15  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67465         __cplusplus is defined.
67466
67467 2005-08-14  Jim Meyering  <jim@meyering.net>
67468
67469         Sync from coreutils.
67470
67471         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67472         Use the hash-table-based cycle-detection code not just when
67473         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67474         Reported by James Youngman in
67475         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67476         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67477         FTS_TIGHT_CYCLE_CHECK.
67478         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67479         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67480         once again.
67481         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67482         * lib/fts.c (fd_safer): Remove decl.
67483         Include fcntl--.h rather than unistd-safer.h
67484         (fts_safe_changedir): Don't call fd_safer; no longer needed
67485         now that we include fcntl--.h.
67486
67487 2005-08-12  Simon Josefsson  <jas@extundo.com>
67488
67489         * modules/getndelim2: Use ssize_t module.
67490         * modules/getnline: Likewise.
67491         * modules/safe-read: Likewise.
67492         * modules/xreadlink: Likewise.
67493
67494         * modules/ssize_t: New file.
67495
67496 2005-08-12  Simon Josefsson  <jas@extundo.com>
67497
67498         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67499
67500 2005-08-12  Simon Josefsson  <jas@extundo.com>
67501
67502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67503         ssize_t.
67504
67505 2005-08-12  Simon Josefsson  <jas@extundo.com>
67506
67507         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67508         readline, getdelim and check_version.
67509         (Support for systems lacking ISO C 99: Sizes of integer types):
67510         Add size_max.
67511
67512 2005-08-12  Bruno Haible  <bruno@clisp.org>
67513
67514         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67515
67516 2005-08-11  Simon Josefsson  <jas@extundo.com>
67517
67518         * modules/readline: New file.
67519
67520         * modules/strnlen (Files): Add strnlen.h.
67521
67522 2005-08-11  Simon Josefsson  <jas@extundo.com>
67523
67524         * m4/readline.m4: New file.
67525
67526 2005-08-11  Simon Josefsson  <jas@extundo.com>
67527
67528         * lib/readline.h, readline.c: New file.
67529
67530 2005-08-11  Simon Josefsson  <jas@extundo.com>
67531
67532         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67533         gl_AVOID.
67534
67535 2005-08-11  Bruno Haible  <bruno@clisp.org>
67536
67537         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67538
67539 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67540
67541         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67542
67543 2005-08-10  Simon Josefsson  <jas@extundo.com>
67544
67545         * tests/test-iconvme.c: New file.
67546
67547 2005-08-10  Simon Josefsson  <jas@extundo.com>
67548
67549         * m4/strnlen.m4: New file.
67550
67551         * m4/strndup.m4: Don't check for strnlen declaration, done in
67552         strnlen.m4.
67553
67554 2005-08-10  Simon Josefsson  <jas@extundo.com>
67555
67556         * lib/strndup.c: Use strnlen.h.
67557
67558         * lib/strnlen.h: New file.
67559
67560 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67561
67562         * README: Typos.
67563
67564 2005-08-02  Simon Josefsson  <jas@extundo.com>
67565
67566         * modules/readline: New file.
67567
67568 2005-08-02  Simon Josefsson  <jas@extundo.com>
67569
67570         * modules/getdelim: New file.
67571
67572         * modules/getline: Rewrite, don't use getndelim2.
67573
67574 2005-08-02  Simon Josefsson  <jas@extundo.com>
67575
67576         * m4/getline.m4: Separate out getdelim stuff into separate module.
67577
67578         * m4/getdelim.m4: New file.
67579
67580 2005-08-02  Simon Josefsson  <jas@extundo.com>
67581
67582         * lib/getline.h, getline.c: Rewrite.
67583
67584         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67585
67586 2005-07-31  Bruno Haible  <bruno@clisp.org>
67587
67588         * lib/lock.h (gl_lock_initializer): New macro.
67589         (gl_lock_define_initialized): Use it.
67590         (gl_rwlock_initializer): New macro.
67591         (gl_rwlock_define_initialized): Use it.
67592         (gl_recursive_lock_initializer): New macro.
67593         (gl_recursive_lock_define_initialized): Use it.
67594
67595 2005-07-30  Karl Berry  <karl@gnu.org>
67596
67597         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67598         Report from Ben Pfaff, regarding getopt.
67599
67600 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67601
67602         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67603         normal way.
67604         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67605         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67606         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67607         (gl_GETOPT): Use the new macros.  Most of the implementation
67608         is moved to the new macros.  This is for programs like Emacs
67609         that don't want all the functionality of gl_GETOPT.
67610
67611 2005-07-26  Bruno Haible  <bruno@clisp.org>
67612
67613         * m4/lock.m4: Update from GNU gettext.
67614
67615 2005-07-26  Bruno Haible  <bruno@clisp.org>
67616
67617         * lib/lock.h: Update from GNU gettext.
67618         * lib/lock.c: Update from GNU gettext.
67619
67620 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67621
67622         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67623         obsolescent AC_TRY_RUN.  Include the default includes files, for
67624         'exit'.
67625
67626 2005-07-24  Bruno Haible  <bruno@clisp.org>
67627
67628         * modules/visibility: New file.
67629         * MODULES.html.sh (Misc): Add visibility.
67630
67631 2005-07-24  Bruno Haible  <bruno@clisp.org>
67632
67633         * m4/visibility.m4: New file.
67634
67635 2005-07-24  Bruno Haible  <bruno@clisp.org>
67636
67637         * doc/visibility.texi: New file.
67638
67639 2005-07-22  Bruno Haible  <bruno@clisp.org>
67640
67641         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67642         $(ALLOCA_H), redundant through BUILT_SOURCES.
67643         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67644         redundant through BUILT_SOURCES.
67645         * modules/byteswap (Makefile.am): Remove explicit dependency on
67646         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67647         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67648         $(FNMATCH_H), redundant through BUILT_SOURCES.
67649         * modules/getopt (Makefile.am): Remove explicit dependency on
67650         $(GETOPT_H), redundant through BUILT_SOURCES.
67651         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67652         redundant through BUILT_SOURCES.
67653         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67654         redundant through BUILT_SOURCES.
67655         * modules/stdbool (Makefile.am): Remove explicit dependency on
67656         $(STDBOOL_H), redundant through BUILT_SOURCES.
67657         * modules/stdint (Makefile.am): Remove explicit dependency on
67658         $(STDINT_H), redundant through BUILT_SOURCES.
67659         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67660         Remove explicit dependency on $(SYSEXITS_H).
67661         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67662
67663 2005-07-18  Simon Josefsson  <jas@extundo.com>
67664
67665         * lib/check-version.c (check_version): Accept identical versions too.
67666
67667 2005-07-18  Bruno Haible  <bruno@clisp.org>
67668
67669         * modules/lock: New file.
67670         * MODULES.html.sh (Multithreading): New section.
67671
67672 2005-07-18  Bruno Haible  <bruno@clisp.org>
67673
67674         * m4/lock.m4: New file, from GNU gettext.
67675
67676 2005-07-18  Bruno Haible  <bruno@clisp.org>
67677
67678         * lib/lock.h: New file, from GNU gettext.
67679         * lib/lock.c: New file, from GNU gettext.
67680
67681 2005-07-18  Bruno Haible  <bruno@clisp.org>
67682
67683         * lib/lock.h (gl_once_t): New type.
67684         (gl_once_define, gl_once): New macros.
67685         * lib/lock.c (fresh_once): New variable.
67686         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67687         functions.
67688
67689 2005-07-16  Simon Josefsson  <jas@extundo.com>
67690
67691         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67692         workaround, suggested by Bruno.
67693
67694 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67695
67696         * modules/xalloc (Depends-on): Add xalloc-die.
67697         * modules/xvasprintf (Depends-on): Add xalloc-die.
67698
67699 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67702         with a minor change.
67703
67704 2005-07-15  Bruno Haible  <bruno@clisp.org>
67705
67706         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67707         When using lib/poll.c, define poll as rpl_poll.
67708
67709 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67710
67711         * modules/argp (Depends-on): Remove unlocked-io.
67712
67713 2005-07-14  Derek Price  <derek@ximbiot.com>
67714
67715         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67716         for glob symlink bug.
67717
67718 2005-07-14  Bruno Haible  <bruno@clisp.org>
67719
67720         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67721         Instead, test for *_unlocked function declarations directly.
67722
67723 2005-07-11  Simon Josefsson  <jas@extundo.com>
67724
67725         * modules/size_max: New file.
67726
67727         * modules/xsize: Depend on size_max module for size_max.m4.
67728
67729 2005-07-11  Simon Josefsson  <jas@extundo.com>
67730
67731         * lib/size_max.h: New file.
67732
67733 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67736         copyright symbol and the year.
67737         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67738         (version_etc_va): Use parameterized copyright notice.
67739         Reword to conform to the current GNU coding standards.
67740
67741 2005-07-11  Karl Berry  <karl@gnu.org>
67742
67743         * doc/gnulib.texi (Quoting): new node.
67744         (Initial import): more info, from Patrice.
67745
67746 2005-07-11  Bruno Haible  <bruno@clisp.org>
67747
67748         * gnulib-tool (func_usage): Document option --avoid.
67749         (Command line options): Handle --avoid.
67750         (func_acceptable): New function.
67751         (func_modules_transitive_closure): Use it.
67752
67753 2005-07-11  Bruno Haible  <bruno@clisp.org>
67754
67755         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67756         Reported by Jim Meyering.
67757
67758 2005-07-10  Bruno Haible  <bruno@clisp.org>
67759
67760         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67761         Needed when size_t is smaller than 'unsigned int'.
67762         Reported by Paul Eggert.
67763
67764 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67765
67766         * modules/argp (Depends-on): Add unlocked-io
67767
67768 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67769
67770         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67771         block of defines.
67772
67773 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67776         fix now.
67777
67778 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67779         and Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67782         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67783
67784 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         * modules/regex (Files): Add lib/regex_internal.c,
67787         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67788         (Depends-on): Add extensions.
67789         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67790
67791 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67792
67793         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67794         pathconf.
67795         * m4/same.m4 (gl_SAME): Likewise.
67796         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67797
67798         * m4/regex.m4: Adjust to new libc regex implementation.
67799         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67800         all the .c and .h parts of (the new) regex.
67801         Quote the m4 stuff better.
67802         Check for RE_ICASE bug of old gnulib.
67803         Check for REG_STARTEND of recent libc.
67804         Rename local variables from jm_* to gl_*.
67805         Quote operand of "test -f".
67806         Say "recent enough" version of libc, not "version 2".
67807         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67808         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67809         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67810         Remove check for btowc, isascii.
67811         Require AM_LANGINFO_CODESET.
67812
67813 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67814
67815         * lib/regex.c, regex.h: Sync from libc.
67816         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67817         * lib/regexec.c:
67818         New files, synced from libc, except that regex_internal.h
67819         currently has a small porting fix.
67820
67821 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67824         regex_internal.c, regexec.c.
67825         Add regex_internal.h too, but as a comment, since the libc version
67826         is currently broken in gnulib mode.
67827
67828 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67829
67830         Support programs like Emacs that use gnulib but not gettext.
67831         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67832         * modules/gettext-h: New file.
67833         * modules/gettext (Files): Remove lib/gettext.h.
67834         (Depends-on): Add gettext-h.
67835         (Makefile.am): Remove lib_SOURCES.
67836         * modules/argmatch, modules/c-stack, modules/closeout:
67837         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67838         * modules/execute, modules/file-type, modules/getaddrinfo:
67839         * modules/getopt, modules/human, modules/javacomp:
67840         * modules/javaexec, modules/mkdir-p, modules/obstack:
67841         * modules/openat, modules/pagealign_alloc, modules/pipe:
67842         * modules/quotearg, modules/regex, modules/rpmatch:
67843         * modules/unicodeio, modules/userspec, modules/version-etc:
67844         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67845         * modules/xsetenv:
67846         Depend on gettext-h, not gettext.
67847
67848 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67849
67850         * gnulib-tool (func_import): Add support for 'public domain' license.
67851         * modules/alloca, modules/atexit, modules/memmove:
67852         Now public domain, not GPL.
67853         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67854         * modules/realloc, modules/strerror, modules/strtod:
67855         Now LGPL, not GPL.
67856
67857 2005-07-05  Bruno Haible  <bruno@clisp.org>
67858
67859         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67860         autoconf CVS. Needed for mingw.
67861
67862 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67863
67864         Remove the dependency of the strftime module on the tzset module.
67865         * modules/strftime (Depends-on): Remove dependency on tzset.
67866
67867 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         Remove the dependency of the strftime module on the tzset module.
67870         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67871         gl_FUNC_TZSET_CLOBBER.
67872
67873 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         Remove the dependency of the strftime module on the tzset module.
67876         * lib/strftime.c (my_strftime)
67877         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67878         Copy the input structure, to work around some of the bug with
67879         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67880         Solaris releases, you should also use the tzset module, but we won't
67881         require it as a dependency any more since we don't want LGPLed code
67882         to depend on GPLed code.
67883
67884 2005-07-02  Jim Meyering  <jim@meyering.net>
67885
67886         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67887         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67888         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67889         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67890
67891 2005-07-02  Jim Meyering  <jim@meyering.net>
67892
67893         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67894
67895 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67898         declares only 'struct timespec;' (!).
67899
67900 2005-07-01  Jim Meyering  <jim@meyering.net>
67901
67902         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67903         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67904         * lib/save-cwd.c, tempname.c:
67905         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67906         and don't include <sys/file.h>).
67907
67908 2005-06-29  Jim Meyering  <jim@meyering.net>
67909
67910         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67911         type name.  Use the variable name instead.
67912         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67913         Likewise.
67914
67915 2005-06-28  Simon Josefsson  <jas@extundo.com>
67916
67917         * modules/check-version (Files): Add check-version.m4.
67918
67919 2005-06-28  Simon Josefsson  <jas@extundo.com>
67920
67921         * m4/check-version.m4: New file, suggested by Jim Meyering
67922         <jim@meyering.net>.
67923
67924 2005-06-28  Simon Josefsson  <jas@extundo.com>
67925
67926         * lib/check-version.h, lib/check-version.c: New files.
67927
67928 2005-06-28  Simon Josefsson  <jas@extundo.com>
67929
67930         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67931         collision with global variable.  Better indentation.  Don't
67932         increment buffer pointer beyond buffer end.  Based on comments
67933         from Paul Eggert <eggert@cs.ucla.edu>.
67934
67935         * lib/base64.h: Indent.
67936
67937 2005-06-28  Simon Josefsson  <jas@extundo.com>
67938
67939         * doc/gnulib.texi (Library version handling): New section.
67940
67941 2005-06-28  Jim Meyering  <jim@meyering.net>
67942
67943         * check-module (find_included_lib_files): Hard-code another
67944         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67945         but modules/fts-lgpl (correctly) does not list those files.
67946
67947         * modules/canonicalize (Files): Add lib/pathmax.h.
67948
67949 2005-06-25  Simon Josefsson  <jas@extundo.com>
67950
67951         * modules/check-version: New file.
67952
67953 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67956         initializer of struct addrinfo, as an indication that we don't
67957         care how many members the structure has.
67958
67959 2005-06-24  Derek Price  <derek@ximbiot.com>
67960         and Bruno Haible  <bruno@clisp.org>
67961
67962         Remove stat module & update lstat.
67963         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67964         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67965         * m4/stat.m4: Remove this file.
67966
67967 2005-06-24  Derek Price  <derek@ximbiot.com>
67968         and Bruno Haible  <bruno@clisp.org>
67969
67970         Remove stat module & update lstat.
67971         * lib/stat.c: Remove this file...
67972         (slash_aware_lstat): ...moving this content and its support...
67973         * lib/lstat.c (rpl_lstat): ...into here.
67974         * lib/lstat.h: New file.
67975
67976 2005-06-24  Derek Price  <derek@ximbiot.com>
67977         and Bruno Haible  <bruno@clisp.org>
67978
67979         Remove stat module & update lstat.
67980         * config/srclist.txt (libc sources): Remove stat.
67981
67982 2005-06-24  Derek Price  <derek@ximbiot.com>
67983         and Bruno Haible  <bruno@clisp.org>
67984
67985         Remove stat module & update lstat.
67986         * MODULES.html.sh (stat): Remove.
67987         * MODULES.html: Regenerated.
67988         * modules/lstat (Description): Correct function name.
67989         (Files): Add "lstat.h".
67990         (Depends-on): Remove stat, add xalloc, stat-macros.
67991         * modules/stat: Remove this file.
67992         (Include): Add "lstat.h", remove <sys/stat.h>.
67993
67994 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67995
67996         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67997         (ranged_convert): Don't save conversion in a temporary struct.
67998         This causes a warning with GCC 4.0.0, and anyway in the typical
67999         case it's not worth the extra 100 bytes or so of code.
68000         (ranged_convert, __mktime_internal): When calling a function via a
68001         pointer P, use P () rather than (*P) (), as we now assume C89 or
68002         better.
68003
68004 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68005
68006         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
68007         "who -r" failed to give output.  Problem reported by Tim Waugh.
68008
68009         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
68010         (xcalloc): Use it to avoid needless tests.
68011         Problem reported by Jim Meyering.
68012
68013 2005-06-20  Derek Price  <derek@ximbiot.com>
68014
68015         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
68016         unnecessary for Autoconfs > 2.59c.
68017
68018 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68019
68020         * lib/argp.h (__option_is_short): Check upper limit of
68021         __key. Isprint() requires its argument to have the value
68022         of an unsigned char or EOF.
68023
68024 2005-06-16  Jim Meyering  <jim@meyering.net>
68025
68026         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
68027         when either N or S is zero.
68028
68029 2005-06-16  Derek Price  <derek@ximbiot.com>
68030
68031         * m4/bison.m4: Declare YACC & YFLAGS precious.
68032
68033 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
68036         multibyte string or pattern, fall back on unibyte matching.
68037         Problem reported by James Youngman.
68038
68039 2005-06-08  Bruno Haible  <bruno@clisp.org>
68040
68041         * modules/csharpcomp: New file.
68042         * MODULES.html.sh (C#): Add csharpcomp.
68043
68044 2005-06-08  Bruno Haible  <bruno@clisp.org>
68045
68046         * m4/csharpcomp.m4: New file, from GNU gettext.
68047
68048 2005-06-08  Bruno Haible  <bruno@clisp.org>
68049
68050         * lib/csharpcomp.h: New file, from GNU gettext.
68051         * lib/csharpcomp.c: New file, from GNU gettext.
68052         * lib/csharpcomp.sh.in: New file, from GNU gettext.
68053
68054 2005-06-08  Bruno Haible  <bruno@clisp.org>
68055
68056         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
68057         warning on mingw.
68058
68059 2005-06-07  Derek Price  <derek@ximbiot.com>
68060
68061         Sync from CVS.
68062         * lib/glob_.h: Indent nested #ifdef.
68063
68064 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         Sync from coreutils.
68067         Use "file name" when talking about file names, instead of "filename"
68068         or "path", as per the GNU coding standards.
68069         * lib/mkdir-p.c: Renamed from makepath.c.
68070         (make_dir_parents): Renamed from make_path.  All callers changed.
68071         * lib/mkdir-p.h: Likewise.  All includers changed.
68072         * lib/filenamecat.c: Renamed from path-concat.c.
68073         (file_name_concat): Renamed from path_concat.  All callers changed.
68074         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
68075         * lib/filenamecat.h: Likewise.  All includers changed.
68076         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
68077         in comments or local variable names.
68078         * lib/basename.c: Likewise.
68079         * lib/canonicalize.c, canonicalize.h: Likewise.
68080         * lib/dirname.c, dirname.h: Likewise.
68081         * lib/euidaccess.c: Likewise.
68082         * lib/exclude.c: Likewise
68083         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
68084         * lib/fsusage.c, fsuage.h: Likewise.
68085         * lib/fts.c, fts_.h: Likewise.
68086         * lib/getcwd.c: Likewise.
68087         * lib/getloadavg.c: Likewise.
68088         * lib/mkstemp.c: Likewise.
68089         * lib/mountlist.c, mountlist.h: Likewise.
68090         * lib/openat.c, openat.h: Likewise.
68091         * lib/readlink-stub.c: Likewise.
68092         * lib/readutmp.c, readutmp.h: Likewise.
68093         * lib/rename.c: Likewise.
68094         * lib/rmdir.c: Likewise.
68095         * lib/same.c: Likewise.
68096         * lib/savedir.c: Likewise.
68097         * lib/stripslash.c: Likewise.
68098         * lib/tempname.c: Likewise.
68099         * lib/xreadlink.c: Likewise.
68100         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
68101         All uses changed.
68102         * lib/exclude.h: Likewise.
68103
68104         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
68105         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68106         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
68107         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68108         * lib/pathmax.h: Include <limits.h> unconditionally, since other
68109         files have been getting away with it for years (MORE/BSD 4.3
68110         is extinct now).
68111         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
68112         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
68113
68114         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
68115         Define to 256, not 255, as per modern POSIX.
68116
68117 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68118
68119         Sync from coreutils.
68120         Use "file name" when talking about file names, instead of "filename"
68121         or "path", as per the GNU coding standards.
68122         * MODULES.html.sh: mkdir-p renamed from makepath.
68123         filenamecat renamed from path-concat.
68124         * modules/filenamecat: Renamed from modules/path-concat.
68125         (Files): filenamecat.h and filenamecat.c renamed from
68126         path-concat.h and path-concat.c.
68127         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
68128         (Include): filenamecat.h, not path-concat.h.
68129         * modules/mkdir-p: Renamed from modules/makepath.
68130         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
68131         makepath.c.
68132         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
68133         (Include): mkdir-p.h, not makepath.h.
68134
68135 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
68136
68137         Sync from coreutils.
68138         * m4/mkdir-p.m4: Renamed from makepath.m4.
68139         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
68140         Rename files from makepath.c to mkdir-p.c, and from
68141         makepath.h to mkdir-p.h.
68142         * m4/filenamecat.m4: Renamed from path-concat.m4.
68143         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
68144         Rename files from path-concat.c to filenamecat.c,
68145         and from path-concat.h to filenamecat.h.
68146         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
68147         "file name" in local variables or comments.
68148         * m4/rename.m4: Likewise.
68149
68150 2005-06-01  Bruno Haible  <bruno@clisp.org>
68151
68152         * modules/csharpexec: New file.
68153         * MODULES.html.sh (C#): New section.
68154
68155 2005-06-01  Bruno Haible  <bruno@clisp.org>
68156
68157         * m4/csharp.m4: New file, from GNU gettext.
68158         * m4/csharpexec.m4: New file, from GNU gettext.
68159
68160 2005-06-01  Bruno Haible  <bruno@clisp.org>
68161
68162         * lib/csharpexec.h: New file, from GNU gettext.
68163         * lib/csharpexec.c: New file, from GNU gettext.
68164         * lib/csharpexec.sh.in: New file, from GNU gettext.
68165
68166 2005-05-31  Derek Price  <derek@ximbiot.com>
68167             Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         Sync from cvs.
68170         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68171
68172 2005-05-31  Derek Price  <derek@ximbiot.com>
68173             Paul Eggert  <eggert@cs.ucla.edu>
68174
68175         Sync from cvs.
68176         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
68177
68178 2005-05-29  Derek Price  <derek@ximbiot.com>
68179
68180         * config/srclist.txt (glob_.h, glob.c): Add these files.
68181
68182 2005-05-29  Derek Price  <derek@ximbiot.com>
68183
68184         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
68185         * modules/glob: New file.
68186         * modules/getlogin_r: Add link to POSIX spec in description.
68187
68188 2005-05-29  Derek Price  <derek@ximbiot.com>
68189             Paul Eggert  <eggert@cs.ucla.edu>
68190
68191         * m4/glob.m4: New file.
68192
68193 2005-05-29  Derek Price  <derek@ximbiot.com>
68194             Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         * lib/glob_.h, lib/glob.c: New files.
68197
68198 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * modules/fts (Files): Remove m4/inttypes-pri.m4.
68201         * modules/fts-lgpl (Depends-on): Remove gettext.
68202
68203 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
68206         and don't require gt_INTTYPES_PRI.
68207
68208 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
68211
68212         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
68213         the configuration hassle isn't worth it.
68214         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68215         (LONGEST_MODIFIER, PRIuMAX): Remove.
68216
68217 2005-05-27  Bruno Haible  <bruno@clisp.org>
68218
68219         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68220
68221 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68224         _POSIX_PTHREAD_SEMANTICS for Solaris.
68225
68226 2005-05-25  Derek Price  <derek@ximbiot.com>
68227
68228         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68229
68230 2005-05-25  Derek Price  <derek@ximbiot.com>
68231             Paul Eggert  <eggert@cs.ucla.edu>
68232
68233         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68234         * lib/getlogin_r.c, getlogin_r.h: New files.
68235
68236 2005-05-25  Bruno Haible  <bruno@clisp.org>
68237             Derek Price  <derek@ximbiot.com>
68238
68239         * lib/getlogin_r.h: Simplify API documentation.
68240
68241 2005-05-23  Derek Price  <derek@ximbiot.com>
68242
68243         * modules/minmax (Files): Add m4/minmax.m4.
68244         (configure.ac): Add gl_MINMAX.
68245
68246 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68247
68248         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68249         so that unistd-safer.h (GPL'ed code) need not be included.
68250
68251 2005-05-22  Bruno Haible  <bruno@clisp.org>
68252
68253         * m4/minmax.m4: New file.
68254         Based on a patch by Derek Price <derek@ximbiot.com>.
68255
68256 2005-05-22  Bruno Haible  <bruno@clisp.org>
68257
68258         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68259         (INT64_MIN): Fix definition.
68260         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68261
68262         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68263         NEED_SIGNED_INT_TYPES.
68264
68265         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68266         HAVE_SYSTEM_INTTYPES.
68267
68268 2005-05-22  Bruno Haible  <bruno@clisp.org>
68269
68270         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68271         Also include <sys/param.h> if it defines MIN, MAX.
68272         Based on a patch by Derek Price <derek@ximbiot.com>.
68273
68274 2005-05-21  Jim Meyering  <jim@meyering.net>
68275
68276         * modules/fts (Files): Add m4/inttypes-pri.m4.
68277         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68278
68279 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68280
68281         New fts module.
68282         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68283         (setup_dir, free_dir): New functions.
68284         (enter_dir, leave_dir): Define trivial
68285         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68286         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68287         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68288         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68289         Move to fts-cycle.c.
68290         (fts_open): Use setup_dir.
68291         (fts_close): Use free_dir.
68292         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68293         This adds a label and some gotos, but the alternatives were messier.
68294         Check for memory allocation failure when entering a dir.
68295         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68296         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68297         (FTS): New member fts_cycle, that is a union that contains the
68298         old active_dir_ht and cycle_state.  All uses changed to mention
68299         fts_cycle.ht and fts_cycle.state.
68300         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68301         fts.c, with the following changes:
68302         (setup_dir, free_dir): New functions.
68303         (enter_dir): Now returns bool.  Return true if successful, false
68304         if memory exhausted.  All callers changed.
68305         Do not bother partly cleaning up on
68306         memory allocation failure; that is free_dir's job.
68307         However, free ad if hash_insert fails, to avoid memory leak.
68308         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68309         fts->fts_options to see which union member to use.
68310
68311 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68312
68313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68314         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68315
68316 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68319
68320 2005-05-20  Jim Meyering  <jim@meyering.net>
68321
68322         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68323         Now a macro, to pacify GCC.
68324
68325 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68326
68327         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68328         of -1.
68329
68330 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68331
68332         * lib/chown.c (rpl_chown): Return -1 on failure.
68333
68334 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68335
68336         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68337         Don't check for stddef.h.
68338         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68339         don't use its results.
68340         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68341         since we include them unconditionally.  Don't require
68342         AM_STDBOOL_H, since stdbool is a prerequisite.
68343         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68344         since we assume C89 or better.
68345         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68346         as we don't use their results.
68347         Don't check for fchdir, memmove, memset, strrchr, as we use
68348         them unconditionally.
68349         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68350         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68351
68352 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68353
68354         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68355         Include <stddef.h> unconditionally, since we assume C89 now.
68356         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68357         * lib/fts.c: Include fts_.h first, to check interface.
68358         Do not include intprops.h; no longer needed.
68359         Include cycle-check.h and hash.h, since fts_.h no longer does.
68360         Remove unnecessary casts of closedir to void.
68361         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68362         decide whether to decrement nlinks.
68363         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68364         (FTS): Use struct hash_table * instead of Hash_table, so that
68365         we no longer need to include hash.h here.
68366
68367 2005-05-18  Jim Meyering  <jim@meyering.net>
68368
68369         * modules/dirfd (License): Change to LGPL.  Most of the code
68370         is already in the public domain.
68371
68372 2005-05-18  Jim Meyering  <jim@meyering.net>
68373
68374         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68375         Reported by Yoann Vandoorselaere.
68376
68377 2005-05-17  Jim Meyering  <jim@meyering.net>
68378
68379         * m4/fts.m4: New file, from coreutils.
68380
68381 2005-05-17  Jim Meyering  <jim@meyering.net>
68382
68383         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68384
68385 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68386
68387         Sync from coreutils.
68388         * m4/unlinkdir.m4: New file.
68389
68390 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68391
68392         Sync from coreutils.
68393         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68394         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68395         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68396         White space changes only.
68397         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68398         special.
68399         * lib/yesno.c: Include getline.h, not ctype.h.
68400         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68401         Use getline to remove arbitrary restriction on response length.
68402
68403 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         * config/srclist-update: Spell out "Street" in FSF postal
68406         mail address; this is the style the FSF seems to prefer.
68407
68408         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68409         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68410         this updates FSF postal mail address.
68411
68412         Sync from coreutils.
68413         * modules/unlinkdir: New file.
68414         * modules/yesno (Depends-on): Add getline.
68415         * MODULES.html.sh (File system functions): Add unlinkdir.
68416
68417 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68418
68419         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68420         lib/strsep.h:
68421         Change the initial comment to refer to GPL, not LGPL.
68422         gnulib-tool will change it to LGPL as needed.
68423
68424         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68425         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68426         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68427         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68428         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68429         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68430         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68431         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68432         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68433         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68434         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68435         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68436         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68437         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68438         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68439         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68440         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68441         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68442         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68443         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68444         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68445         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68446         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68447         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68448         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68449         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68450         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68451         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68452         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68453         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68454         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68455         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68456         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68457         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68458         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68459         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68460         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68461         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68462         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68463         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68464         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68465         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68466         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68467         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68468         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68469         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68470         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68471         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68472         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68473         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68474         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68475         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68476         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68477         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68478         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68479         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68480         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68481         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68482         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68483         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68484         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68485         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68486         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68487         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68488         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68489         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68490         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68491         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68492         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68493         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68494         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68495         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68496         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68497         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68498         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68499         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68500         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68501         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68502         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68503         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68504         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68505         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68506         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68507         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68508         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68509         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68510         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68511         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68512         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68513         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68514         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68515         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68516         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68517         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68518         lib/yesno.c, lib/yesno.h:
68519         Update FSF postal mail address.
68520
68521 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68524         tests/test-memmem.c, tests/test-stpncpy.c:
68525         Update FSF postal mail address.
68526
68527 2005-05-13  Bruno Haible  <bruno@clisp.org>
68528
68529         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68530         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68531         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68532         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68533         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68534         Add support for 64-bit integers in the MSVC compiler.
68535
68536 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68537
68538         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68539
68540 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68541
68542         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68543
68544 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68545
68546         * doc/getdate.texi (General date syntax): Don't say that date
68547         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68548         Problem reported by Nic Ferrier.
68549
68550 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68551
68552         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68553         specified in ai_socktype. Fix invalid ai_protocol
68554         check. ai_protocol is usually set to 0 or depending on
68555         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68556         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68557         ai_socktype / ai_protocol in the returned addrinfo structure.
68558
68559 2005-05-10  Simon Josefsson  <jas@extundo.com>
68560
68561         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68562         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68563
68564 2005-05-10  Karl Berry  <karl@gnu.org>
68565
68566         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68567         (from http://www.gnu.org/licenses).
68568         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68569         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68570         fdl.texi suffices.
68571
68572 2005-05-10  Karl Berry  <karl@gnu.org>
68573
68574         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68575         (COPYING.DOC): remove.
68576
68577         * config/srclist-update: new FSF address.
68578
68579 2005-05-10  Derek Price  <derek@ximbiot.com>
68580
68581         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68582         possible.
68583
68584 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68585             Bruno Haible  <bruno@clisp.org>
68586
68587         * modules/inet_ntop: New file.
68588         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68589         inet_ntop.
68590
68591 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68592             Bruno Haible  <bruno@clisp.org>
68593
68594         * m4/inet_ntop.m4: New file.
68595
68596 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68597             Bruno Haible  <bruno@clisp.org>
68598
68599         * lib/inet_ntop.h: New file.
68600         * lib/inet_ntop.c: New file, from glibc with modifications.
68601
68602 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68603
68604         * modules/time_r (License): Change to LGPL.
68605         * modules/extensions (License): Change to LGPL.  Actually,
68606         the license is more permissive than that, but currently gnulib-tool
68607         doesn't know how to handle more-permissive licenses.
68608
68609         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68610         Problem reported by Dave Love.
68611
68612 2005-05-08  Jim Meyering  <jim@meyering.net>
68613
68614         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68615         blank.
68616
68617 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * modules/argmatch (Depends-on): Add stdbool.
68620         * modules/backupfile (Depends-on): Likewise.
68621         * modules/chdir-long (Depends-on): Likewise.
68622         * modules/closeout (Depends-on): Likewise.
68623         * modules/cycle-check (Depends-on): Likewise.
68624         * modules/dirname (Depends-on): Likewise.
68625         * modules/fnmatch (Depends-on): Likewise.
68626         * modules/fsusage (Depends-on): Likewise.
68627         * modules/fwriteerror (Depends-on): Likewise.
68628         * modules/getcwd (Depends-on): Likewise.
68629         * modules/getloadavg (Depends-on): Likewise.
68630         * modules/hard-locale (Depends-on): Likewise.
68631         * modules/makepath (Depends-on): Likewise.
68632         * modules/mountlist (Depends-on): Likewise.
68633         * modules/nanosleep (Depends-on): Likewise.
68634         * modules/posixtm (Depends-on): Likewise.
68635         * modules/quotearg (Depends-on): Likewise.
68636         * modules/readtokens (Depends-on): Likewise.
68637         * modules/readtokens0 (Depends-on): Likewise.
68638         * modules/readutmp (Depends-on): Likewise.
68639         * modules/save-cwd (Depends-on): Likewise.
68640         * modules/strftime (Depends-on): Likewise.
68641         * modules/userspec (Depends-on): Likewise.
68642         * modules/utimecmp (Depends-on): Likewise.
68643         * modules/xgetcwd (Depends-on): Likewise.
68644         * modules/xnanosleep (Depends-on): Likewise.
68645         * modules/xstrtod (Depends-on): Likewise.
68646         * modules/yesno (Depends-on): Likewise.
68647
68648 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68651         needless checks.
68652
68653 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68654
68655         Merge from coreutils.  Among other things,
68656         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68657         * lib/fd-safer.c: New file.
68658         * lib/fcntl-safer.h, open-safer.c: Remove.
68659         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68660         * lib/dup-safer.c: Include unistd-safer.h first.
68661         Don't include errno.h.
68662         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68663         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68664         * lib/file-type.c: Rely on file-type.h change.
68665         * lib/getloadavg.c: Include unistd-safer.h.
68666         (getloadavg): Use safer open.
68667         * lib/getusershell.c: Include "stdio-safer.h".
68668         (getusershell): Use safer fopen.
68669         * lib/long-options.c (long_options): Use NULL rather than 0.
68670         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68671         'free'.
68672         * lib/modechange.c: Likewise.
68673         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68674         (MODE_DONE): New constant.
68675         (struct mode_change): Remove 'next' member.
68676         (make_node_op_equals): New function; like the old one of the
68677         same name, except it allocates an array.
68678         (mode_compile, mode_create_from_ref): Use it.
68679         (mode_compile): Allocate result as an array, not a linked list.
68680         Parse octal string ourself, so that we catch mistakes like "+0".
68681         (mode_adjust): Arg is an array, not a linked list.
68682         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68683         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68684         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68685         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68686         Remove.  This is now stat-macros.h's job.
68687         (talloc): Remove.  All callers replaced by xalloc, so that
68688         our invokers don't have to worry about reporting memory failures.
68689         (make_node_op_equals): Remove.
68690         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68691         New constants.
68692         (struct mode_change): Moved here from modechange.h.
68693         (mode_append_entry): Remove.
68694         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68695         apps to have incorrect behavior.  Use simpler algorithm for head
68696         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68697         Detect more invalid usages rather than having somewhat-random behavior.
68698         Don't insert an "a=" action, as that leads to incorrect behavior.
68699         (mode_compile, mode_create_from_ref): Return NULL on error instead
68700         of an enum, since now there's only one way to have an error.  All
68701         callers changed.
68702         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68703         at the correct time.  Simplify calculation of "+u" and its ilk.
68704         Don't mishandle "+X".
68705         (mode_free): Remove "register" and localize decls.
68706         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68707         (struct mode_change): Move to modechange.c; callers don't
68708         need to see this stuff.
68709         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68710         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68711         (mode_change, mode_adjust): Reflect the new signatures noted above.
68712         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68713         that might redefine system include files.
68714         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68715         (my_usleep): Use NULL rather than (void *) 0.
68716         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68717         Use siginterrupt to specify that system calls should be interrupted.
68718         (rpl_nanosleep): Move initialization of suspended closer to call of
68719         my_usleep.
68720         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68721         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68722         (desirable_utmp_entry): New function.
68723         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68724         using x2nrealloc, to simplify logic.
68725         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68726         size calculation.  Do not assume utmp file is a regular file.
68727         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68728         (READ_UTMP_CHECK_PIDS): New constant.
68729         * lib/save-cwd.c: Include unistd-safer.h.
68730         (save_cwd): Use fd_safer.
68731         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68732         [!_LIBC] Include "stat-macros.h" instead.
68733         * lib/unistd-safer.h (fd_safer): New decl.
68734
68735 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * modules/getloadavg (Depends-on): Add unistd-safer.
68738         * modules/getusershell (Depends-on): Add stdio-safer.
68739         * modules/lstat (Depends-on): Remove xalloc.
68740         * modules/mkstemp (Depends-on): Add stat-macros.
68741         * modules/modechange (Depends-on): Remove xstrtol.
68742         Add stat-macros, xalloc.
68743         * modules/save-cwd (Depends-on): Add unistd-safer.
68744         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68745         * modules/unistd-safer (Files): Add lib/fd-safer.c
68746         (Makefile.am): Remove lib_SOURCES.
68747
68748         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68749         Remove fcntl-safer; unistd-safer supersedes it.
68750
68751 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68752
68753         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68754         AC_HEADER_STAT.
68755         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68756         (gl_PREREQ_CHOWN): Remove.
68757         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68758         it.  Don't require AC_HEADER_STAT.
68759         (gl_PREREQ_LSTAT): Remove.
68760         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68761         Don't require AC_HEADER_STAT.
68762         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68763         (gl_PREREQ_RMDIR): Remove.
68764         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68765         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68766         the stat-macros module a prerequisite.
68767         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68768         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68769         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68770         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68771         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68772         variable names.
68773         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68774         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68775         variable prefixes.
68776         * m4/fcntl-safer.m4: Remove.
68777         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68778         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68779         Invoke gl_PREREQ_FD_SAFER.
68780         (gl_PREREQ_FD_SAFER): New macro.
68781         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68782         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68783         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68784         Remove duplicate call to AC_LIBOBJ(readutmp).
68785         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68786
68787         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68788         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68789
68790 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68791
68792         * MODULES.html.sh (Misc): Add byteswap.
68793
68794 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68795
68796         * modules/getcwd (Depends-on): Add extensions.
68797         * modules/openat (Depends-on): Likewise.
68798
68799 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68800
68801         * modules/byteswap: New file.
68802
68803 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68804
68805         * m4/byteswap.m4: New file.
68806
68807 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68808
68809         * lib/byteswap_.h: New file.
68810
68811 2005-04-25  Karl Berry  <karl@gnu.org>
68812
68813         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68814
68815 2005-04-25  Albert Chin  <china@thewrittenword.com>
68816
68817         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68818         Toolkit C bug.
68819
68820 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68821
68822         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68823         (func_ln_if_changed): Remove forcibly for no error message
68824         in case file does not exist.
68825
68826 2005-04-19  Simon Josefsson  <jas@extundo.com>
68827
68828         * gnulib-tool (Options): Make --symlink mean --symbolic.
68829
68830 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68831
68832         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68833
68834 2005-04-16  Simon Josefsson  <jas@extundo.com>
68835
68836         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68837
68838 2005-04-15  Simon Josefsson  <jas@extundo.com>
68839
68840         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68841
68842 2005-04-15  Simon Josefsson  <jas@extundo.com>
68843
68844         * gnulib-tool: Rename --symlink to --symbolic.
68845
68846 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68847
68848         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68849         symbolic links to files instead of copying/moving.  Add --aux-dir,
68850         specifying directory relative --dir where auxiliary build tools
68851         are placed.
68852
68853 2005-04-14  Bruno Haible  <bruno@clisp.org>
68854
68855         * modules/allocsa (License): Change to LGPL.
68856         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68857
68858 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68861         that "UTC +1 second" continues to work.  Problem reported
68862         by Dmitry V. Levin.
68863         (relunit_snumber): New rule.
68864         (relunit): Use it.
68865
68866 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68867
68868         * lib/getdate.y (universal_time_zone_table): New constant.
68869         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68870         universal_time_zone_table.
68871         (lookup_zone): Prefer universal_time_zone_table to
68872         local_time_zone_table, so that "GMT" time stamps are allowed in
68873         London during the summer.  Problem reported by Ian Abbott.
68874
68875 2005-04-12  Jim Meyering  <jim@meyering.net>
68876
68877         * lib/human.c (humblock): Set *options even when returning due to
68878         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68879         warning from gcc-4.
68880
68881 2005-04-09  Jim Meyering  <jim@meyering.net>
68882
68883         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68884         -Wuninitialized: initialize tm0.tm_year.
68885
68886 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68887
68888         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68889         count, since there's no maximum.  All uses changed.
68890         Add member dsts_seen.
68891         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68892         not being INT_MAX.
68893         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68894         Use pc_rels_seen to decide whther a date is absolute.
68895
68896         * lib/getdate.y (number): Don't overwrite year.
68897         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68898         check.
68899
68900 2005-04-02  Simon Josefsson  <jas@extundo.com>
68901
68902         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68903         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68904
68905 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68906
68907         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68908         where no absolute path name can be longer than PATH_MAX.
68909
68910 2005-03-27  Jim Meyering  <jim@meyering.net>
68911
68912         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68913
68914 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68915
68916         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68917         "one's complement" -> "ones' complement" in comment, as per Knuth.
68918         "value of type" -> "type or expression" in comment.
68919         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68920
68921 2005-03-26  Jim Meyering  <jim@meyering.net>
68922
68923         Comment nits.
68924         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68925         Correct typos: s/or/of/.
68926
68927 2005-03-26  Jim Meyering  <jim@meyering.net>
68928
68929         * modules/check-include-files: Move to ../ and rename to...
68930         * check-module: ...this.
68931
68932 2005-03-25  Jim Meyering  <jim@meyering.net>
68933
68934         * modules/xvasprintf (Files): Add xalloc.h.
68935
68936 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68937
68938         * modules/gettext (Files): config/config.rpath ->
68939         build-aux/config.rpath
68940         * modules/iconv (Files): Likewise.
68941         Problem reported by Oskar Liljeblad.
68942
68943 2005-03-23  Jim Meyering  <jim@meyering.net>
68944
68945         * modules/check-include-files: New script to check for
68946         missing dependencies, multiple includes, etc.
68947
68948         * modules/c-strtold (Depends-on): Add xalloc.
68949         * modules/c-strtod (Depends-on): Add xalloc.
68950         * modules/hash (Depends-on): Add xalloc.
68951         (Files): Remove lib/xalloc.h.
68952
68953         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68954         * modules/userspec (Files): Add lib/inttostr.h.
68955
68956 2005-03-23  Jim Meyering  <jim@meyering.net>
68957
68958         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68959
68960 2005-03-22  Jim Meyering  <jim@meyering.net>
68961
68962         * modules/stat-macros: New module.
68963         * modules/canonicalize, modules/euidaccess, modules/file-type,
68964         * modules/filemode, modules/lchown, modules/makepath,
68965         * modules/rmdir, modules/stat: Depend on new stat-macros module
68966         rather than listing lib/stat-macros.h manually.
68967         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68968
68969 2005-03-22  Jim Meyering  <jim@meyering.net>
68970
68971         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68972
68973 2005-03-22  Bruno Haible  <bruno@clisp.org>
68974
68975         * config/srclist.txt: Replace target directory 'config' with
68976         'build-aux'.
68977         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68978         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68979         ../build-aux/.
68980
68981 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68982
68983         * modules/chdir-long (Depends-on): Add mempcpy.
68984
68985         * modules/acl, modules/backupfile, modules/c-strtod,
68986         modules/c-strtold, modules/canon-host, modules/canonicalize,
68987         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68988         modules/exclude, modules/exitfail, modules/file-type,
68989         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68990         modules/getdate, modules/getline, modules/getpagesize,
68991         modules/getpass, modules/getugroups, modules/group-member,
68992         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68993         modules/inttostr, modules/long-options, modules/makepath,
68994         modules/md5, modules/memcasecmp, modules/memcoll,
68995         modules/modechange, modules/mountlist, modules/path-concat,
68996         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68997         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68998         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68999         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
69000         modules/strftime, modules/strndup, modules/strverscmp,
69001         modules/timespec, modules/unlocked-io, modules/userspec,
69002         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
69003         modules/yesno:
69004         Remove lib_SOURCES line from Makefile.am section, as this is now
69005         done automatically by the corresponding Autoconf macro.
69006
69007 2005-03-21  Jim Meyering  <jim@meyering.net>
69008
69009         Changes imported from coreutils.
69010
69011         * lib/cycle-check.c: Don't include xalloc.h.
69012
69013         * lib/path-concat.c: Don't include assert.h.
69014         (path_concat): Remove assertion that would have triggered
69015         for ABASE starting with more than one slash.
69016         Reported by Andreas Schwab.
69017
69018         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
69019         properly when ABASE is an absolute file name.
69020         Correct the description of this function.
69021         Include <assert.h>.
69022         Add an assertion and a test driver.
69023         This fixes a bug introduced on 2004-07-02.
69024         Andreas Schwab reported the resulting failure of cp --parents:
69025         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
69026
69027 2005-03-21  Jim Meyering  <jim@meyering.net>
69028
69029         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
69030         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
69031
69032 2005-03-21  Jim Meyering  <jim@meyering.net>
69033         and  Paul Eggert  <eggert@cs.ucla.edu>
69034
69035         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
69036         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
69037         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
69038         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
69039         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
69040         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
69041         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
69042         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
69043         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
69044         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
69045         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
69046         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
69047         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
69048         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
69049         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
69050         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
69051         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
69052         for these modules.
69053
69054 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
69055
69056         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
69057         (which shouldn't happen), generate nothing instead of returning 0
69058         immediately, so that nstrftime (NULL, ...) doesn't return 0.
69059
69060 2005-03-16  Bruno Haible  <bruno@clisp.org>
69061
69062         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
69063         HAVE_LONGLONG_64BIT.
69064
69065 2005-03-16  Bruno Haible  <bruno@clisp.org>
69066
69067         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
69068         HAVE_LONGLONG_64BIT.
69069
69070 2005-03-16  Bruno Haible  <bruno@clisp.org>
69071
69072         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
69073         HAVE_LONGLONG_64BIT.
69074
69075 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * lib/strftime.c (my_strftime): Prepend space to format so that we can
69078         reliably distinguish strftime failure from empty output on POSIX
69079         hosts.
69080
69081 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
69084         (iconv_string): Don't guess a size-zero buffer, as that might cause
69085         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
69086         result would be 'too large', where 'too large' is (heuristically)
69087         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
69088         overflow concerns.  This will prevent some unwanted malloc failures
69089         when the inputs are very large.
69090
69091 2005-03-15  Karl Berry  <karl@gnu.org>
69092
69093         * config/srclist.txt (config.rpath): from gettext.
69094         * config/config.rpath: update.
69095
69096 2005-03-15  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
69099         to 'negate'.
69100
69101         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
69102         variable.
69103
69104         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
69105         results.
69106
69107 2005-03-14  Simon Josefsson  <jas@extundo.com>
69108
69109         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
69110         <fx@gnu.org>.
69111
69112 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
69113
69114         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
69115         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
69116         intprops.h.
69117         * lib/strtol.c: Likewise.
69118
69119 2005-03-14  Jim Meyering  <jim@meyering.net>
69120
69121         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
69122         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
69123         to be nonzero so that we (and caller) can detect the difference
69124         between a valid zero-length expansion and an error return, even
69125         when the underlying strftime fails before writing anything into
69126         that location.
69127
69128 2005-03-14  Bruno Haible  <bruno@clisp.org>
69129
69130         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
69131         Update from GNU gettext 0.14.3.
69132
69133 2005-03-10  Jim Meyering  <jim@meyering.net>
69134
69135         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
69136
69137 2005-03-10  Jim Meyering  <jim@meyering.net>
69138
69139         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
69140         so that this module works on systems without fchdir.
69141
69142 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         Factor int-properties macros into a single file, except for
69145         glibc-related files.
69146         * lib/intprops.h: New file.
69147         * lib/getloadavg.c: Include it instead of limits.h.
69148         (INT_STRLEN_BOUND): Remove.
69149         * lib/human.c: Include intprops.h.
69150         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
69151         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
69152         302/1000.
69153         * lib/inttostr.h: Include intprops.h instead of limits.h.
69154         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
69155         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
69156         for consistency with intprops.h.
69157         (time_t_is_integer, twos_complement_arithmetic): Use them.
69158         * lib/sig2str.h: Include <signal.h>, intprops.h.
69159         (INT_STRLEN_BOUND): Remove.
69160         * lib/strftime.c (TYPE_SIGNED): Remove.
69161         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
69162         * lib/strtol.c: Adjust comments to match intprops.h.
69163         * lib/userspec.c: Include intprops.h.
69164         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
69165         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
69166         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
69167         instead of rolling our own expressions.
69168         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
69169
69170         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
69171         instead of int.
69172         (my_strftime): Do not mishandle years close to INT_MAX, by doing
69173         the right thing even if adding 1900 would overflow.  Similarly
69174         for tm_mon + 1 and tm_yday + 1.
69175         Make %Y always equivalent to %C%y, and similarly for %G and %g.
69176         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
69177         (DO_SIGNED_NUMBER): New macro.
69178         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
69179
69180 2005-03-07  Bruno Haible  <bruno@clisp.org>
69181
69182         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
69183
69184 2005-03-07  Bruno Haible  <bruno@clisp.org>
69185
69186         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
69187
69188 2005-03-04  Derek R. Price  <derek@ximbiot.com>
69189
69190         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
69191         (func_import): Only replace files via --import when they have actually
69192         changed.
69193
69194 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69195
69196         * m4/mmap-anon.m4: New file.
69197         * m4/pagealign_alloc.m4: New file.
69198
69199 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69200             Bruno Haible  <bruno@clisp.org>
69201
69202         * modules/pagealign_alloc: New file.
69203         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
69204
69205 2005-03-03  Derek R. Price  <derek@ximbiot.com>
69206             Bruno Haible  <bruno@clisp.org>
69207
69208         * lib/pagealign_alloc.h: New file.
69209         * lib/pagealign_alloc.c: New file.
69210
69211 2005-03-03  Bruno Haible  <bruno@clisp.org>
69212
69213         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69214         Use an all-permissive copyright notice, recommended by RMS.
69215
69216 2005-03-02  Bruno Haible  <bruno@clisp.org>
69217
69218         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69219         of AIX, the replacement has to be done only after <string.h> is
69220         included, therefore not in config.h. stpncpy.h does the replacement,
69221         and stpncpy.c uses it.
69222
69223 2005-03-02  Bruno Haible  <bruno@clisp.org>
69224
69225         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69226         stpncpy.c uses it.
69227
69228 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69229
69230         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69231         The workaround isn't strictly needed for POSIX conformance, and
69232         it's too much of a pain to configure and maintain.  We'll ask
69233         people to fix their kernels instead.
69234         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69235         (NANOSLEEP_BUG_WORKAROUND): Remove.
69236         (xnanosleep): Remove the workaround.
69237
69238 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69241         Reported by Derek Price.
69242         (Include): Add "timespec.h".
69243
69244         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69245
69246 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69247
69248         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69249         to detect nanosleep bug.
69250
69251 2005-03-01  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69254
69255 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69256
69257         * modules/gethrxtime: New file.
69258         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69259         (Depends-on): Add gethrxtime.
69260         (configure.ac): Add gl_XNANOSLEEP.
69261         (Makefile.am): Remove lib_SOURCES line.
69262
69263 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69266         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69267
69268 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69269
69270         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69271         * lib/timespec.h (gettime): Return void, since it always
69272         succeeds now.  All uses changed.
69273         * lib/gettime.c (gettime): Likewise.
69274         [HAVE_NANOTIME]: Prefer nanotime.
69275         Assume gettimeofday succeeds, as POSIX requires.
69276         Assime time () succeeds, since other code already does.
69277         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69278         (timespec_subtract): Remove.
69279         (NANOSLEEP_BUG_WORKAROUND): New constant.
69280         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69281         things considerably.  Use it only on GNU/Linux hosts, since the
69282         workaround shouldn't be needed elsewhere.
69283
69284 2005-02-24  Bruno Haible  <bruno@clisp.org>
69285
69286         * modules/gettext (Files): Add m4/glibc2.m4.
69287
69288 2005-02-24  Bruno Haible  <bruno@clisp.org>
69289
69290         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69291         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69292         * m4/progtest.m4:
69293         Update from GNU gettext 0.14.2.
69294         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69295
69296 2005-02-24  Bruno Haible  <bruno@clisp.org>
69297
69298         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69299         * lib/config.charset: Update from GNU gettext 0.14.2.
69300
69301 2005-02-24  Bruno Haible  <bruno@clisp.org>
69302
69303         * lib/gettext.h: Update from GNU gettext 0.14.2.
69304
69305 2005-02-23  Simon Josefsson  <jas@extundo.com>
69306
69307         * m4/iconvme.m4: New file.
69308
69309 2005-02-23  Jim Meyering  <jim@meyering.net>
69310
69311         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69312         change.
69313         Thanks to Bruno Haible for catching it.
69314
69315 2005-02-22  Simon Josefsson  <jas@extundo.com>
69316
69317         * modules/iconvme: New file.
69318
69319         * MODULES.html.sh: Add iconvme.
69320
69321 2005-02-22  Simon Josefsson  <jas@extundo.com>
69322
69323         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69324
69325 2005-02-22  Simon Josefsson  <jas@extundo.com>
69326
69327         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69328
69329 2005-02-22  Jim Meyering  <jim@meyering.net>
69330
69331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69332         s/ifndef/ifdef/.
69333
69334 2005-02-20  Neil Conway  <neilc@samurai.com>
69335
69336         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69337         returned by OSX/Darwin if the specified buffer is not large
69338         enough for the hostname.
69339
69340 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69341
69342         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69343         pass it to _help, otherwise the latter coredumps trying to
69344         dereference state.root_argp.
69345
69346 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69347
69348         * modules/chdir-long (Depends-on): Add memrchr.
69349         * modules/memrchr (Files): Add lib/memrchr.h.
69350         (Include): "memrchr.h".
69351
69352 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69355
69356 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * lib/memrchr.h: New file.
69359         * lib/chdir-long.c: Include it.
69360         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69361         Don't bother including stddef.h.
69362
69363 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69364
69365         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69366         inclusion.
69367         Include <sys/types.h>, for dev_t.
69368         (ME_DUMMY, ME_REMOTE): Move from here....
69369         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69370         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69371         Dmitry V. Levin.
69372         Include mountlist.h first, to test the interface.
69373
69374 2005-01-29  Bruno Haible  <bruno@clisp.org>
69375
69376         * lib/progname.c (program_name): Initialize.
69377         Needed when linking statically on MacOS X.
69378
69379 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69380
69381         Sync from coreutils.
69382         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69383         (Depends-on): Add c-strtod.
69384         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69385
69386 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         Sync from coreutils.
69389         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69390
69391         Remove files that are specific to coreutils.
69392         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69393
69394 2005-01-28  Bruno Haible  <bruno@clisp.org>
69395
69396         * modules/javacomp: New file.
69397         * MODULES.html.sh (Java): Add javacomp.
69398
69399 2005-01-28  Bruno Haible  <bruno@clisp.org>
69400
69401         * m4/javacomp.m4: New file, from GNU gettext.
69402
69403 2005-01-28  Bruno Haible  <bruno@clisp.org>
69404
69405         * lib/javacomp.sh.in: New file, from GNU gettext.
69406         * lib/javacomp.h: New file, from GNU gettext.
69407         * lib/javacomp.c: New file, from GNU gettext.
69408
69409 2005-01-26  Simon Josefsson  <jas@extundo.com>
69410
69411         * lib/gai_strerror.c: Use GPL in header.
69412
69413 2005-01-26  Bruno Haible  <bruno@clisp.org>
69414
69415         * modules/javaexec: New file.
69416         * MODULES.html.sh (Java): Add javaexec.
69417
69418 2005-01-26  Bruno Haible  <bruno@clisp.org>
69419
69420         * m4/javaexec.m4: New file, from GNU gettext.
69421
69422 2005-01-26  Bruno Haible  <bruno@clisp.org>
69423
69424         * lib/javaexec.sh.in: New file, from GNU gettext.
69425         * lib/javaexec.h: New file, from GNU gettext.
69426         * lib/javaexec.c: New file, from GNU gettext.
69427
69428 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69429
69430         * modules/lchown (Depends-on): Remove lchown.h
69431
69432 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69433
69434         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69435         must be defined if the header file was not found, in order
69436         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69437
69438 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69439
69440         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69441         initializers for struct pentry_state.
69442         (__argp_error): Check return value of __asprintf
69443         (__argp_failure): Translate error message
69444
69445         * lib/argp-parse.c: Removed braces around the expansion of N_()
69446
69447 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69448
69449         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69450         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69451         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69452         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69453         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69454         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69455         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69456         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69457         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69458         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69459         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69460         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69461         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69462         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69463         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69464         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69465         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69466         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69467         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69468         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69469         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69470         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69471         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69472         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69473         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69474         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69475         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69476         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69477         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69478         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69479         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69480         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69481         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69482         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69483         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69484         Use an all-permissive copyright notice, recommended by RMS.
69485
69486 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         * modules/chdir-long (Depends-on): Remove mempcpy.
69489
69490 2005-01-21  Jim Meyering  <jim@meyering.net>
69491
69492         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69493         same value as for Solaris 9.
69494
69495         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69496         component length.  This included changing the parameter to be
69497         of type `char *' rather than `char const *'.
69498         * lib/chdir-long.h (chdir_long): Update prototype.
69499
69500         * lib/openat.c (fdopendir, fstatat): New functions.
69501         * lib/openat.h: Include headers required for use of DIR and struct
69502         stat.
69503         [AT_SYMLINK_NOFOLLOW]: Define.
69504         (fdopendir, fstatat): Add prototypes.
69505
69506 2005-01-21  Bruno Haible  <bruno@clisp.org>
69507
69508         * modules/classpath: New file.
69509         * MODULES.html.sh (Java): Add classpath.
69510
69511 2005-01-21  Bruno Haible  <bruno@clisp.org>
69512
69513         * lib/classpath.h: New file, from GNU gettext.
69514         * lib/classpath.c: New file, from GNU gettext.
69515
69516 2005-01-20  Simon Josefsson  <jas@extundo.com>
69517
69518         * modules/version-etc-fsf: New file.
69519
69520 2005-01-20  Simon Josefsson  <jas@extundo.com>
69521
69522         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69523         * lib/version-etc.c: Remove version_etc_copyright.
69524         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69525         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69526
69527 2005-01-20  Simon Josefsson  <jas@extundo.com>
69528
69529         * lib/base64.h (isbase64): Add.
69530
69531         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69532         using a unsigned prototype, don't inline.
69533         (base64_decode): Use it.
69534
69535 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69536
69537         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69538         it.
69539
69540 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69541
69542         * lib/save-cwd.c (save_cwd): Remove code to support the case
69543         where fchdir is missing or flaky.
69544
69545 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69546
69547         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69548
69549 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69550
69551         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69552         AC_LIBSOURCES now does this.
69553         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69554         with new ullong_max module.
69555
69556 2005-01-19  Bruno Haible  <bruno@clisp.org>
69557
69558         * modules/sh-quote: New file.
69559         * MODULES.html.sh (Executing programs): Add sh-quote.
69560
69561 2005-01-19  Bruno Haible  <bruno@clisp.org>
69562
69563         * lib/sh-quote.h: New file, from GNU gettext.
69564         * lib/sh-quote.c: New file, from GNU gettext.
69565
69566 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69567
69568         Merge from coreutils.
69569         * m4/ullong_max.m4: New file.
69570         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69571         (gl_MACROS): Assume localeconv exists.
69572
69573 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69574
69575         Merge changes from coreutils, as described below in several
69576         changelogs dated today.
69577
69578         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69579         (O_DIRECTORY): Remove; not needed here, since "." must be
69580         a directory.  All uses removed.
69581         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69582         universal on Suns, and we also need to test for IRIX.
69583         Revamp code to use 'if' rather than '#if'.
69584         Avoid unnecessary comparison of cwd->desc to 0.
69585
69586         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69587         for known valid error numbers rather than observed invalid ones.
69588
69589 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69590
69591         * modules/ullong_max: New file.
69592
69593         * modules/chdir-long, modules/openat: New files.
69594         * modules/save-cwd (Depends-on): Depend on chdir-long.
69595         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69596
69597 2005-01-18  Jim Meyering  <jim@meyering.net>
69598
69599         Merge from coreutils.
69600         * m4/chdir-long.m4, m4/openat.m4: New files.
69601         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69602         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69603         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69604         is sane and DOES follow symlinks.  Besides, testing 20 different
69605         systems found no broken chown implementations.
69606         Prompted by a change in rsync's copy of this macro.
69607         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69608
69609         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69610
69611         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69612         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69613         NULL-means-set-to-current-time semantics.
69614         Remove temporary file immediately, rather than waiting
69615         for configure's at-exit trap code to do it.
69616
69617 2005-01-18  Jim Meyering  <jim@meyering.net>
69618
69619         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69620
69621         * lib/utimens.c (futimens): Account for the fact that futimes
69622         can also fail with errno == ENOSYS or errno == ENOENT.
69623         Patch from Dmitry V. Levin.
69624
69625         Change the name of the robust chdir function from chdir to chdir_long.
69626         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69627         (restore_cwd): Use chdir_long, not chdir.
69628         * lib/chdir-long.c: Renamed from chdir.c.
69629         * lib/chdir-long.h: Renamed from chdir.h.
69630         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69631         Hurd.
69632
69633 2005-01-18  Bruno Haible  <bruno@clisp.org>
69634
69635         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69636         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69637         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69638         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69639         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69640         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69641         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69642         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69643         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69644         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69645         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69646         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69647         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69648         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69649         Use an all-permissive copyright notice, recommended by RMS.
69650
69651 2005-01-18  Bob Proulx  <bob@proulx.com>
69652
69653         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69654         simplify offsetof() macro construct to avoid compile failure with
69655         native HP-UX 11.0 ANSI C compiler.
69656
69657 2005-01-17  Bruno Haible  <bruno@clisp.org>
69658
69659         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69660         redundant because stpncpy.m4 takes care of it.
69661
69662 2005-01-17  Bruno Haible  <bruno@clisp.org>
69663
69664         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69665
69666 2005-01-17  Bruno Haible  <bruno@clisp.org>
69667
69668         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69669         used.
69670
69671 2005-01-17  Bruno Haible  <bruno@clisp.org>
69672
69673         * lib/fwriteerror.h (fwriteerror): Change specification to include
69674         fclose.
69675         * lib/fwriteerror.c: Include <stdbool.h>.
69676         (fwriteerror): At the end, close the file stream. Record whether
69677         stdout was already closed.
69678
69679 2005-01-17  Bruno Haible  <bruno@clisp.org>
69680
69681         * lib/execute.c (environ): Declare if needed.
69682         * lib/pipe.c (environ): Likewise.
69683         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69684
69685 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69686
69687         * modules/argp: Depend on vsnprintf
69688
69689 2005-01-10  Jim Meyering  <jim@meyering.net>
69690
69691         * modules/closeout (Depends-on): Add atexit.
69692
69693 2005-01-06  Bruno Haible  <bruno@clisp.org>
69694
69695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69696
69697 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69700         definitions to be after all include files, to avoid collisions.
69701         Problem reported by Bob Proulx.
69702
69703 2005-01-04  Jim Meyering  <jim@meyering.net>
69704
69705         Changes imported from coreutils.
69706         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69707         as the mkstemp template, use a temporary directory and an
69708         8.3-friendly template to avoid trouble on systems like DJGPP.
69709         Reported by Juan M. Guerrero via Stepan Kasal.
69710         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69711         close. Remove the temporary directory right away, rather than waiting
69712         for configure's at-exit trap code to do it.
69713         Suggestion from Stepan Kasal.
69714
69715 2005-01-01  Simon Josefsson  <jas@extundo.com>
69716
69717         * gnulib-tool: Print #include directives when --import'ing.
69718
69719 2004-12-28  Simon Josefsson  <jas@extundo.com>
69720
69721         * tests/test-base64.c: Include required header files.  Remove
69722         unused variables.
69723
69724 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69725
69726         * modules/error (Depends-on): Remove gettext.
69727
69728 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69731         not needed.  This removes a dependency on the gettext module.
69732         [defined _LIBC]: Do not include <libintl.h>; not needed.
69733
69734 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69737         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69738
69739 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69740
69741         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69742         HAVE_DECL_STRTOLD.
69743
69744 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69745
69746         * modules/getdate (Depends-on): Remove alloca-opt.
69747
69748 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69749
69750         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69751
69752 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/argp-parse.c: Include <stddef.h>.
69755         (alignof, alignto): New macros.
69756         (parser_init): Don't assume that void * is aligned sufficiently
69757         for struct option.
69758
69759         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69760         need to extend the stack.
69761         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69762         large.
69763
69764 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69765
69766         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69767
69768 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69771         (2004-10-24) change.  Apparently this was a false alarm.
69772
69773         * modules/getdate: Depend on alloca-opt, not alloca.
69774
69775 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69778         Remove now-obsolete comment about AIX.
69779         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69780         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69781         (YYMAXDEPTH): New macro.
69782
69783 2004-12-18  Simon Josefsson  <jas@extundo.com>
69784
69785         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69786
69787 2004-12-18  Bruno Haible  <bruno@clisp.org>
69788
69789         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69790
69791 2004-12-18  Bruno Haible  <bruno@clisp.org>
69792
69793         * lib/fatal-signal.c (fatal_signals): Make non-const.
69794         (init_fatal_signals): New function.
69795         (uninstall_handlers, install_handlers): Ignore signals that were set to
69796         SIG_IGN.
69797         (at_fatal_signal): Call init_fatal_signals.
69798         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69799         SIG_IGN.
69800         Reported by Paul Eggert.
69801
69802 2004-12-18  Bruno Haible  <bruno@clisp.org>
69803
69804         * doc/alloca.texi: New file.
69805         * doc/alloca-opt.texi: New file.
69806
69807 2004-12-17  Jim Meyering  <jim@meyering.net>
69808
69809         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69810         Otherwise, install-sh could exit with improper exit status when
69811         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69812
69813 2004-12-16  Simon Josefsson  <jas@extundo.com>
69814
69815         * tests/test-base64.c: Add license.
69816
69817 2004-12-15  Stepan Kasal  <address@hidden>
69818
69819         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69820
69821 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69822
69823         * modules/getcwd (Files): Add m4/d-ino.m4.
69824         Suggested by Mark D. Baushke.
69825
69826 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69827
69828         * lib/getdate.y (textint): New member "negative".
69829         (time_zone_hhmm): New function.
69830         Expect 14 shift-reduce conflicts, not 13.
69831         (o_colon_minutes): New rule.
69832         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69833         (yylex): Set the "negative" member of signed numbers.
69834
69835 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         * doc/getdate.texi (Time of day items, Time zone items):
69838         Describe new formats +00:00, UTC+00:00.
69839
69840 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69841
69842         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69843         spurious "-l"s.  Problem reported by Stepan Kasal.
69844
69845 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69846
69847         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69848         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69849
69850 2004-12-04  Simon Josefsson  <jas@extundo.com>
69851
69852         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69853         Vandoorselaere <yoann@prelude-ids.org>.
69854
69855 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         Changes imported from coreutils.
69858         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69859         exist.
69860         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69861
69862 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         Changes imported from coreutils.
69865         * lib/hard-locale.c: Assume <locale.h> exists.
69866         Include "strdup.h".
69867         (GLIBC_VERSION): New macro.
69868         (hard_locale): Assume setlocale exists.
69869         Rewrite to avoid #ifdef.
69870         Use strdup rather than malloc + strcpy.
69871         * lib/human.c: Assume <locale.h> exists.
69872         (human_readable): Assume localeconv exists.
69873
69874 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         * modules/hard-locale (Depends-on): Add strdup.
69877
69878 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69879
69880         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69881         convert T2, not T.  (Imported from libc.)
69882
69883 2004-11-30  Simon Josefsson  <jas@extundo.com>
69884
69885         * modules/restrict (License): Change to LGPL.
69886
69887 2004-11-30  Simon Josefsson  <jas@extundo.com>
69888
69889         * m4/restrict.m4: Add copyright and copying conditions.
69890
69891 2004-11-30  Simon Josefsson  <jas@extundo.com>
69892
69893         * m4/base64.m4: New file.
69894
69895 2004-11-30  Simon Josefsson  <jas@extundo.com>
69896
69897         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69898         base64.
69899
69900         * tests/test-base64.c: New file.
69901
69902         * modules/base64: New file.
69903
69904 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69905
69906         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69907         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69908
69909         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69910
69911 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69914         (__getcwd.c): Don't restore errno; glibc doesn't.
69915         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69916         first, falling back to our code only if its results look suspicious.
69917         Ensure that the resulting buffer is only as large as necessary.
69918
69919         * lib/readutmp.c: Include readutmp.h first.
69920         Include <errno.h>, since readutmp.h no longer does that.
69921         * lib/readutmp.h: Don't include <errno.h>,
69922         <sys/param.h>, <time.h>; not needed to establish interface.
69923         (errno): Remove decl.
69924         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69925         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69926         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69927
69928 2004-11-28  Simon Josefsson  <jas@extundo.com>
69929
69930         * lib/base64.h, base64.c: New file.
69931
69932 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69933
69934         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69935
69936 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69939         (Depends-on): Remove pathmax, same.  Add mempcpy.
69940         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69941         (Makefile.am): Append getcwd.h to lib_SOURCES.
69942         (Include): Add getcwd.h.
69943         (Maintainer): Change from Jim Meyering to "all, glibc",
69944         since getdate now uses intended-for-glibc code.
69945         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69946         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69947
69948 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69951         HP's ANSI C compiler.
69952         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69953         Declaring int functions causes warnings on some modern systems and
69954         shouldn't be needed to compile on ancient ones.
69955         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69956         defined.
69957
69958         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69959         with the following changes.
69960         (__set_errno): Parenthesize properly.
69961         Include <stdbool.h>.
69962         (MIN, MAX, MATCHING_INO): New macros.
69963         (__getcwd): Define with prototype, not K&R form.
69964         Use heuristics to allocate default buffer on stack if possible.
69965         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69966         behavior, and to avoid the PATH_MAX limit when computing
69967         ../../../../...
69968         Use MATCHING_INO to compare inode number to file.
69969         Check for arithmetic overflow in size calculations.
69970         Fix bug in reallocation of dot array that caused getcwd to fail
69971         on directories nested deeper than 75.
69972         Be more careful about saving errno on error.
69973         Do not use realloc; use only free+malloc, as this is a bit
69974         more flexible and avoids a needless copy operation.
69975         Do not inspect st_dev and st_ino for symbolic links; POSIX
69976         doesn't specify the latter.
69977         Check for closedir errors.
69978         Avoid needless casts.
69979         Use "#ifdef weak_alias" around weak_alias, to be like other
69980         glibc code.
69981         The following changes to getcwd.c have effect only when used in
69982         gnulib; they have no effect inside glibc proper.
69983         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69984         as alloca isn't used.
69985         (alloca, __alloca): Likewise.
69986         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69987         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69988         unconditionally, as gnulib assumes C89 or better.
69989         Do not include <sys/param.h>.
69990         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69991         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69992         better.
69993         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69994         Include <dirent.h> in a way that is compatible with modern Autoconf.
69995         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69996         New macros, if not already defined.
69997         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69998         Use "_LIBC", not "defined _LIBC", for consistency.
69999         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
70000         a mempcpy module.
70001         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
70002         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
70003         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
70004         credit only to Jim Meyering and adjust the copyright dates.
70005         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
70006         <stdlib.h>, <unistd.h>, "pathmax.h".
70007         Instead, include "xgetcwd.h" (first) and "getcwd.h".
70008         (INITIAL_BUFFER_SIZE): Remove.
70009         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
70010
70011 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70012
70013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
70014         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
70015         Use the _ONCE methods, for efficiency.
70016         Check for fcntl.h.  In test program, include <errno.h>
70017         and <fcntl.h> if available.  Remove old K&R cruft from
70018         test program.  Check for common errors in GNU/Linux,
70019         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
70020         don't do AC_LIBOBJ, as that's getcwd.m4's job.
70021         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
70022         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
70023         name accordingly.
70024         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
70025         accommodate new getcwd.c.
70026         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
70027         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
70028         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
70029         that's all we need now.
70030
70031 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70032
70033         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
70034         argp-parse.c depends on getopt internals, that means we should
70035         always use our getopt, to be on the safe side.
70036         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
70037         order not to spoil the result of an eventual previous invocation
70038         of gl_GETOPT_SUBSTITUTE.
70039
70040 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70041
70042         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
70043         redefinition warnings. To avoid them, include the defines
70044         in `#if !defined __need_getopt ... #endif'. The only place
70045         where __getopt_argv_const is used is in definitions
70046         of getopt_long and getopt_long_only below, which are as well
70047         protected by `#ifndef __need_getopt'.
70048         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
70049         __need_getopt after including <stdio.h> and <unistd.h> These
70050         headers might have defined it.
70051
70052 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
70055
70056 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
70059         (futimens): New function, which uses futimes if available.
70060         (futimens, utimens): Support timespec==NULL, with same semantics
70061         as utime and utimens.
70062         * lib/utimens.h (futimens): New decl.
70063
70064 2004-11-23  Jim Meyering  <jim@meyering.net>
70065
70066         * lib/getopt_.h: Remove trailing blanks.
70067
70068 2004-11-23  Jim Meyering  <jim@meyering.net>
70069
70070         * lib/__fpending.c: Add comment.
70071
70072 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
70073
70074         * modules/canonicalize (Depends-on): Add xreadlink.
70075         Problem reported by James Youngman.
70076
70077 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70078
70079         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
70080         New macros.
70081         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
70082         optopt): Use them instead of invoking ## directly; otherwise, the
70083         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
70084
70085 2004-11-19  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/strtok_r.c: Move comments from here...
70088         * lib/strtok_r.h: ... to here.
70089
70090 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
70093         implementations that mishandle size_t overflow.
70094
70095 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
70098         might fail.  Problem reported by Yoann Vandoorselaere.
70099         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
70100         implementations that mishandle size_t overflow.
70101
70102 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70103
70104         * modules/canon-host (Depends-on): Add strdup.
70105
70106 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70107
70108         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
70109
70110 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * lib/canon-host.c: Include "strdup.h".
70113         (canon_host): Use getaddrinfo if available, so that IPv6 works.
70114         Use strdup instead of malloc/strcpy to duplicate strings.
70115
70116         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
70117         (human_space_before_unit): New constant.
70118         * lib/human.c (human_readable): Support it.
70119
70120         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
70121         (xgetcwd): Set errno correctly when failing.
70122         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
70123         the failure is actually due to a PATH_MAX problem.
70124
70125         Further getopt changes to make it more likely that glibc will
70126         buy the changes back.
70127         * lib/getopt.c (POSIXLY_CORRECT): New constant.
70128         (getopt): Use it, so to preserve glibc semantic
70129         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
70130         when compiling for libc.
70131         * lib/getopt_.h (__getopt_argv_const): Bring it back.
70132         (getopt_long, getopt_long_only): Use it.
70133
70134         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70135         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
70136         (getopt): Argv is now char * const *, as per standard.
70137         (_getopt_internal_r, _getopt_internal): Argv is now char **,
70138         not char *__getopt_argv_const *.
70139         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70140         _getopt_long_only_r): Likewise.
70141         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
70142         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70143         _getopt_long_r, _getopt_long_only_r): Likewise.
70144         * lib/getopt_.h (__getopt_argv_const): Remove.
70145         (getopt): Argv is now char * const *, as per standard.
70146
70147         * lib/getdate.y (tORDINAL): New token.
70148         (day, relunit): Allow it for relative times.
70149         (relative_time_table): Use tORDINAL for ordinals.
70150
70151 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70152
70153         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
70154         Document that "second" isn't allowed as an ordinal number.
70155
70156 2004-11-16  Jim Meyering  <jim@meyering.net>
70157
70158         * modules/closeout (Depends-on): Add fpending.
70159
70160 2004-11-15  Jim Meyering  <jim@meyering.net>
70161
70162         * lib/closeout.c: Include "__fpending.h" once again.
70163         Include <stdbool.h>.
70164         (close_stdout): Don't fail just because stdout was closed initially,
70165         since some programs don't write to stdout in the normal course of
70166         operation (other than --version and --help), and we don't want this
70167         function to make e.g. `touch file >&-' fail.
70168         But do fail if it was closed and someone has tried to write to it.
70169         E.g., `printf foo >&-' must fail.
70170
70171 2004-11-13  Jim Meyering  <jim@meyering.net>
70172
70173         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
70174
70175 2004-11-12  Simon Josefsson  <jas@extundo.com>
70176
70177         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
70178         small doc fix is still pending.
70179
70180 2004-11-11  Simon Josefsson  <jas@extundo.com>
70181
70182         * modules/strtok_r: New file.
70183
70184         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70185         strtok_r.
70186
70187 2004-11-11  Simon Josefsson  <jas@extundo.com>
70188
70189         * m4/strtok_r.m4: New file.
70190
70191         * m4/getopt.m4: Replace opterr.
70192
70193 2004-11-11  Simon Josefsson  <jas@extundo.com>
70194
70195         * lib/strtok_r.h, strtok_r.c: New file.
70196
70197 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70198
70199         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
70200         of replacing opterr, getopt, etc.  This should handle the
70201         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
70202
70203 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
70206         we can stop lying to compilers about the constness of argv when we
70207         are compiled outside glibc.
70208         (getopt, getopt_long, getopt_long_only): Use it.
70209         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
70210         _getopt_internal, getopt): Likewise.
70211         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
70212         _getopt_long_only_r): Likewise.
70213         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70214         _getopt_long_r, _getopt_long_only_r): Likewise.
70215
70216         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70217         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70218         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70219         the other external symbols.
70220         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70221         declaration, since the above renaming now works around collisions.
70222
70223 2004-11-11  Jim Meyering  <jim@meyering.net>
70224
70225         * lib/linebreak.c: Remove trailing blanks.
70226         * lib/alloca_.h: Likewise.
70227         * lib/acosl.c: Likewise.
70228         * lib/euidaccess.c: Likewise.
70229         * lib/allocsa.h: Likewise.
70230
70231 2004-11-10  Simon Josefsson  <jas@extundo.com>
70232
70233         * m4/getaddrinfo.m4: New file.
70234
70235 2004-11-10  Simon Josefsson  <jas@extundo.com>
70236
70237         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70238
70239 2004-11-10  Simon Josefsson  <jas@extundo.com>
70240
70241         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70242         getaddrinfo.
70243
70244         * modules/getaddrinfo: New file.
70245
70246 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70249
70250 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70251
70252         * lib/mktime.c (SHR): New macro, which is a portable
70253         substitute for >> that should work even on Crays.
70254         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70255         Problem reported by Mark D. Baushke in
70256         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70257         * lib/getdate.y (SHR): Likewise.
70258         (tm_diff): Use it.
70259         * lib/strftime.c (SHR): Likewise.
70260         (tm_diff): Use it.
70261         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70262         quote_these_too, so that right shifts are well defined.  All uses
70263         changed.
70264
70265 2004-11-10  Jim Meyering  <jim@meyering.net>
70266
70267         Ensure that no close failure goes unreported.
70268         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70269         return early when it seems there's nothing to flush.
70270         Don't include __fpending.h.
70271
70272 2004-11-10  Jim Meyering  <jim@meyering.net>
70273
70274         * modules/closeout (Depends-on): Remove fpending.
70275
70276 2004-11-10  Jim Meyering  <jim@meyering.net>
70277
70278         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70279
70280 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70281
70282         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70283         gl_FUNC_STRFTIME.
70284         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70285         and AC_REQUIRE when possible, to avoid duplicate checks.
70286         Check for <wchar.h>.
70287
70288 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70289
70290         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70291
70292 2004-11-09  Bruno Haible  <bruno@clisp.org>
70293
70294         * m4/sockpfaf.m4: New file.
70295
70296 2004-11-05  Bruno Haible  <bruno@clisp.org>
70297
70298         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70299         Reported by Mark D. Baushke <mdb@cvshome.org>.
70300
70301 2004-11-04  Bruno Haible  <bruno@clisp.org>
70302
70303         2004-09-11  Bruno Haible  <bruno@clisp.org>
70304                 * allocsa.valgrind: New file.
70305         2004-02-06  Bruno Haible  <bruno@clisp.org>
70306                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70307                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70308                 Reported by Christopher Seip <chris.seip@hp.com>.
70309
70310 2004-11-04  Bruno Haible  <bruno@clisp.org>
70311
70312         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70313         (Makefile.am): Distribute it.
70314
70315 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70316
70317         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70318         with errno == ERANGE if the buffer is too small.
70319         Problem reported by Mark D. Baushke.
70320
70321 2004-11-03  Albert Chin  <china@thewrittenword.com>
70322             Paul Eggert  <eggert@cs.ucla.edu>
70323
70324         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70325         equivalent, substitute $ac_type for equivalent type rather than
70326         blindly using uint32_t *always* which won't work if uint32_t is not
70327         available.  Define _UINT32_T to work around typedef of uint32_t if
70328         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70329         2.5.1.
70330
70331 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70332
70333         * m4/jm-macros.m4: Sync from coreutils.
70334         (gl_MACROS): Check for mbrlen, for pathchk.
70335         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70336
70337 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70338
70339         * lib/xreadlink.c (MAXSIZE): New macro.
70340         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70341         size does not exceed MAXSIZE.  Avoid cast.
70342         As suggested by Mark D. Baushke in
70343         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70344         if readlink fails with buffer size just under MAXSIZE, try again
70345         with MAXSIZE.
70346
70347 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70348
70349         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70350
70351 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70352         and  Paul Eggert  <eggert@cs.ucla.edu>
70353
70354         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70355         (get_date): Overparenthesize to avoid GCC warning.
70356
70357 2004-11-02  Bruno Haible  <bruno@clisp.org>
70358
70359         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70360         returns void.
70361
70362 2004-11-02  Bruno Haible  <bruno@clisp.org>
70363
70364         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70365         function returns void.
70366
70367 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70368
70369         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70370         fflush_unlocked, flockfile, funlockfile, funlockfile,
70371         fputs_unlocked, putc_unlocked.
70372
70373 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70376         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70377         already declared.
70378
70379 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70380
70381         * modules/getdate (Files): Add doc/getdate.texi.
70382         (Depends-on): Add setenv, xalloc.
70383
70384 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70385
70386         * lib/getdate.y: Add support for TZ="foo" within a date string.
70387         Fix some bugs near time_t boundaries.  Reject dates with
70388         out-of-range components, e.g., "Sept 31".
70389         Include <stdlib.h>, "setenv.h", "xalloc.h".
70390         (ISDIGIT_LOCALE): Remove; unused.
70391         Note that the TZ and time functions used here are not reentrant.
70392         (mktime_ok, get_tz): New functions.
70393         (TZBUFSIZE): New constant.
70394         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70395         This requires that we sometimes generate our own TZ="XXX..." setting.
70396
70397 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         * doc/getdate.texi: New file, from coreutils with modifications for
70400         the new TZ parsing.
70401
70402 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70403
70404         * lib/mktime.c (not_equal_tm): Remove redundant check.
70405
70406 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70407
70408         * modules/regex (lib_SOURCES): Add regex.c.
70409         Reported by James Youngman in
70410         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70411
70412 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70413
70414         * lib/getdate.y: Use Bison 1.875 features, and some minor
70415         code cleanups.  This change does not affect semantics.
70416         Don't include <stdlib.h>; no longer needed.
70417         Don't include unlocked-io.h; only the "#if TEST" code uses
70418         stdio, and performance isn't crucial there.
70419         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70420         Bison 1.875 features as described below.
70421         All uses of "PC." replaced by "pc->".
70422         (YYSTYPE): Add a forward declaration.
70423         (yylex, yyerror): Use full prototypes in forward decls.
70424         Use "%pure-parser" rather than obsolescent "%pure_parser".
70425         Use %parse-param and %lex-param instead of obsolescent
70426         YYPARSE_PARAM and YYLEX_PARAM.
70427         (meridian_table, month_and_day_table, time_units_table,
70428         relative_time_table, time_zone_table, military_table,
70429         lookup_zone, lookup_word, get_date):
70430         Use NULL instead of 0 where appropriate.
70431         (to_hour): Avoid abort (), to avoid a dependency on
70432         stdlib.h.
70433         (yyerror, yylex): Now accepts parser_control * arg.
70434         (main) [TEST]: Use '\0' rather than 0 for char.
70435
70436 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70437
70438         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70439
70440 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70441
70442         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70443         It's now the caller's responsibility to handle the case where
70444         !HAVE_GETPAGESIZE && !defined getpagesize.
70445
70446         * lib/mktime.c (leapyear): Arg is long int, not int.
70447
70448 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70449
70450         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70451
70452 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70455         missing.  Problem reported by James Youngman.
70456
70457 2004-10-16  Simon Josefsson  <jas@extundo.com>
70458
70459         * gnulib-tool: Fix comments.  Fix parse problem.
70460         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70461
70462 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70463
70464         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70465         implementation of getopt_long.  Problem reported by Alexander Taler in:
70466         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70467
70468 2004-10-15  Bruno Haible  <bruno@clisp.org>
70469
70470         * gnulib-tool: Untabify. Initialize supplied_libname.
70471         (func_usage): More homogenous output.
70472         (func_modules_transitive_closure, func_modules_to_filelist,
70473         func_emit_lib_Makefile_am): New functions.
70474         (func_import): New function, extracted from big case statement. Use
70475         func_get_license, func_modules_transitive_closure,
70476         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70477         opt_lgpl. Don't use test -a, as it's not portable.
70478         (func_create_testdir): Use func_modules_transitive_closure,
70479         func_modules_to_filelist, func_emit_lib_Makefile_am.
70480
70481 2004-10-15  Bruno Haible  <bruno@clisp.org>
70482
70483         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70484
70485 2004-10-15  Bruno Haible  <bruno@clisp.org>
70486
70487         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70488         the portions belonging to each module.
70489         Suggested by Derek Robert Price <derek@ximbiot.com>.
70490
70491 2004-10-12  Simon Josefsson  <jas@extundo.com>
70492
70493         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70494         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70495         to real functions.
70496
70497 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70498
70499         * modules/vsnprintf: New file.
70500
70501 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70502
70503         * m4/vsnprintf.m4: New file.
70504
70505 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70506
70507         * lib/vsnprintf.h: New file.
70508         * lib/vsnprintf.c: New file.
70509
70510 2004-10-11  Bruno Haible  <bruno@clisp.org>
70511
70512         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70513         vsnprintf.
70514
70515 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70516
70517         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70518
70519 2004-10-07  Bruno Haible  <bruno@clisp.org>
70520
70521         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70522         fits into the provided buffer.
70523
70524 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70525
70526         * lib/diacrit.c, diacrit.h: Add GPL notice.
70527
70528         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70529         notice.
70530         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70531         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70532         This avoids a potential constant-folding bug.
70533
70534 2004-10-05  Bruno Haible  <bruno@clisp.org>
70535
70536         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70537         for the declaration of strsep.
70538
70539 2004-10-05  Bruno Haible  <bruno@clisp.org>
70540
70541         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70542
70543 2004-10-04  Simon Josefsson  <jas@extundo.com>
70544
70545         * modules/memmem: New file.
70546         * tests/test-memmem.c: New file.
70547         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70548
70549 2004-10-04  Simon Josefsson  <jas@extundo.com>
70550
70551         * m4/memmem.m4: New file.
70552
70553 2004-10-04  Simon Josefsson  <jas@extundo.com>
70554
70555         * lib/memmem.h: New file.
70556         * lib/memmem.c: New file, taken from glibc.
70557
70558 2004-10-04  Simon Josefsson  <jas@extundo.com>
70559
70560         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70561         '#ifdef USE_UNLOCKED_IO'.
70562
70563 2004-10-04  Simon Josefsson  <jas@extundo.com>
70564
70565         * config/srclist.txt: Add memmem from glibc.
70566
70567 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70568
70569         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70570
70571         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70572         modules/exclude, modules/getdate, modules/getline,
70573         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70574         modules/getusershell, modules/linebuffer, modules/md5,
70575         modules/mountlist, modules/posixtm, modules/readtokens,
70576         modules/readutmp, modules/regex, modules/sha1,
70577         modules/version-etc, modules/yesno:
70578         Remove dependency on unlocked-io.
70579
70580 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70581
70582         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70583
70584         * m4/unlocked-io.m4: Add copyright notice.
70585         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70586
70587 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70588
70589         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70590         * lib/xmalloc.c (xmemdup): Likewise.
70591         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70592         XFREE): Remove these long-obsolescent macros.
70593         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70594         * lib/xstrdup.c: Remove.
70595
70596         * lib/regex.c (re_comp): Cast gettext return value to char *,
70597         Problem reported by Martin Neitzel via Mark D. Baushke.
70598
70599 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70600
70601         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70602         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70603         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70604         regex.c, sha1.c, version-etc.c, yesno.c:
70605         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70606         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70607         the includer's responsibility.
70608
70609         Sync from coreutils.
70610
70611         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70612         points to the start of a string, as the C Standard says the
70613         resulting behavior is undefined.
70614
70615         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70616         simple -> simple_backups, numbered_existing ->
70617         numbered_existing_backups, numbered -> numbered_backups
70618         to avoid shadowing problems.  All uses changed.
70619         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70620         * lib/backupfile.c (check_extension, numbered_backup):
70621         Rename locals to avoid shadowing 'basename'.
70622         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70623         once.
70624
70625         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70626         * lib/.cvsignore: Add getopt.h.
70627
70628 2004-10-04  Bruno Haible  <bruno@clisp.org>
70629
70630         * modules/README: New file.
70631         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70632         not a module.
70633
70634 2004-10-02  Jim Meyering  <jim@meyering.net>
70635
70636         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70637
70638 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70639
70640         * modules/strsep: New file.
70641
70642 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70643
70644         * m4/strsep.m4: New file.
70645
70646 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70647
70648         * lib/strsep.h: New file.
70649         * lib/strsep.c: New file.
70650
70651 2004-10-01  Simon Josefsson  <jas@extundo.com>
70652
70653         * lib/snprintf.c (snprintf): Handle size==0.
70654
70655 2004-10-01  Simon Josefsson  <jas@extundo.com>
70656             Bruno Haible  <bruno@clisp.org>
70657
70658         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70659         (snprintf): Declare 'args'.
70660
70661 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70662
70663         * lib/snprintf.c: Remove comments as to why each header is needed.
70664
70665 2004-10-01  Bruno Haible  <bruno@clisp.org>
70666
70667         * MODULES.html.sh: Add strsep.
70668
70669 2004-09-30  Simon Josefsson  <jas@extundo.com>
70670
70671         * modules/snprintf: New file.
70672
70673 2004-09-30  Simon Josefsson  <jas@extundo.com>
70674
70675         * m4/snprintf.m4: New file.
70676
70677 2004-09-30  Simon Josefsson  <jas@extundo.com>
70678
70679         * lib/snprintf.h, lib/snprintf.c: New files.
70680
70681 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70682
70683         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70684         (hol_entry_help): Never translate an empty string.
70685         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70686         * lib/argp.h (OPTION_NO_TRANS): New option.
70687
70688 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70689
70690         * modules/argp (Maintainer): Replace Simon Josefsson
70691         by Sergey Poznyakoff.
70692
70693 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70694
70695         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70696         changes merged back into glibc.
70697
70698 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70699
70700         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70701
70702 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70703
70704         * lib/xvasprintf.c: Include xalloc.h.
70705         (xvasprintf): Use xalloc_die, not xmalloc_die.
70706
70707 2004-09-29  Bruno Haible  <bruno@clisp.org>
70708
70709         * modules/alloca-opt: New file, derived from modules/alloca.
70710         * modules/allocsa: Depend on alloca-opt instead of alloca.
70711         * modules/setenv: Likewise.
70712         * modules/vasnprintf: Likewise.
70713         * MODULES.html.sh: Add alloca-opt.
70714
70715 2004-09-28  Simon Josefsson  <jas@extundo.com>
70716
70717         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70718         LGPL, and to replace license template from GPL to LGPL.
70719
70720 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * modules/dummy: Change license to LGPL.
70723
70724 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70725
70726         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70727
70728 2004-09-24  Simon Josefsson  <jas@extundo.com>
70729
70730         * modules/minmax (License): Change from GPL to LGPL.
70731
70732 2004-09-23  Simon Josefsson  <jas@extundo.com>
70733
70734         * gnulib-tool (--import): Typo.
70735
70736 2004-09-23  Simon Josefsson  <jas@extundo.com>
70737
70738         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70739
70740 2004-09-22  Bruno Haible  <bruno@clisp.org>
70741
70742         * modules/*: Add 'License' field.
70743         * gnulib-tool: Accept --extract-license option.
70744         (func_get_license): New function.
70745
70746 2004-09-21  Bruno Haible  <bruno@clisp.org>
70747
70748         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70749         Reported by Simon Josefsson.
70750
70751 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70752
70753         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70754         gl_AC_TYPE_LONG_LONG.
70755
70756 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70757
70758         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70759
70760 2004-09-18  Simon Josefsson  <jas@extundo.com>
70761         and  Paul Eggert  <eggert@cs.ucla.edu>
70762
70763         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70764         calls with autoreconf.  Define GL_LIB.
70765
70766 2004-09-14  Karl Berry  <karl@gnu.org>
70767
70768         * config/srclist.txt: unsync setenv.c, sigh.
70769
70770 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70771
70772         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70773         Problem reported by Bruno Haible in:
70774         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70775
70776 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * config/srclist.txt: Comment out argp-pvh.c.
70779
70780 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70783         in case some system header has #define'd it.  Problem reported by
70784         Soeren D. Schulze in
70785         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70786
70787 2004-09-09  Karl Berry  <karl@gnu.org>
70788
70789         * regex.[ch]: delete from the root.  These were supposed to be
70790                 synced with emacs cvs, but this has not happened for about
70791                 a year, and anyway nothing else uses emacs regex.[ch].
70792                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70793                 lib/regex[.ch] is untouched.
70794
70795 2004-09-09  Bruno Haible  <bruno@clisp.org>
70796
70797         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70798
70799 2004-09-09  Bruno Haible  <bruno@clisp.org>
70800
70801         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70802         modifications.
70803         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70804
70805 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70806
70807         * modules/xvasprintf: New file.
70808         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70809
70810 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70811
70812         * lib/xvasprintf.h: New file.
70813         * lib/xvasprintf.c: New file.
70814         * lib/xasprintf.c: New file.
70815
70816 2004-09-08  Bruno Haible  <bruno@clisp.org>
70817
70818         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70819
70820 2004-09-08  Bruno Haible  <bruno@clisp.org>
70821
70822         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70823         length is > INT_MAX.
70824         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70825         more.
70826
70827 2004-09-08  Bruno Haible  <bruno@clisp.org>
70828
70829         * lib/stdint_.h: New file, taken from GNU clisp.
70830
70831 2004-09-08  Bruno Haible  <bruno@clisp.org>
70832             Oskar Liljeblad  <oskar@osk.mine.nu>
70833
70834         * modules/stdint: New file.
70835         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70836
70837 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70838
70839         Import from coreutils.
70840         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70841         strings on unbounded length.  alloca's performance benefits aren't
70842         that important here.
70843         (V_STRDUP): Remove.
70844         (parse_with_separator): New function, with most of the internals
70845         of the old parse_user_spec.  Allow user to omit both user and group,
70846         for compatibility with FreeBSD.
70847         Clone only the user name, not the entire spec.
70848         Do not set *uid, *gid unless entirely successful.
70849         Avoid memory leak in some failing cases.
70850         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70851         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70852         (parse_user_spec): Rewrite to use parse_with_separator.
70853
70854 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70855
70856         * modules/userspec: Don't depend on alloca.
70857
70858 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70859
70860         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70861
70862 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70863
70864         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70865         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70866         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70867
70868 2004-08-16  Simon Josefsson  <jas@extundo.com>
70869
70870         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70871         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70872         Add --dry-run for --import.
70873         Let user provided command line parameters override configure.ac
70874         settings.
70875
70876 2004-08-12  Simon Josefsson  <jas@extundo.com>
70877
70878         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70879         as discussed with Paul Eggert in threads rooted at
70880         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70881         and
70882         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70883         Before, the test was empty, and relied on ELIDE_CODE in source
70884         code.)
70885         (gl_PREREQ_GETOPT): New macro.
70886         (gl_GETOPT): Use them.
70887
70888 2004-08-12  Simon Josefsson  <jas@extundo.com>
70889
70890         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70891         * lib/getopt_.h: Renamed from getopt.h.
70892
70893 2004-08-12  Simon Josefsson  <jas@extundo.com>
70894
70895         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70896         Change default library name from libfoo to libgnu.
70897         Now, if you have a configure.ac that says:
70898                 gl_SOURCE_BASE(gl)
70899                 gl_M4_BASE(gl/m4)
70900                 gl_MODULES(error getopt etcetera)
70901                 gl_INIT
70902         you can import all you need by running:
70903                 ../gnulib/gnulib-tool --import
70904
70905         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70906         (Makefile.am): Rewrite, use logic from argz.
70907         (Include): Use <getopt.h> instead of "getopt.h".
70908
70909 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * modules/argp (Files): Add m4/unlocked-io.m4.
70912         (Depends-on): Add extensions.
70913
70914 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70917         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70918         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70919         Check for program_invocation_name, program_invocation_short_name,
70920         flockfile, funlockfile, features.h, _getopt_long_only_r.
70921
70922 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70923
70924         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70925         its complicated substitute.
70926         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70927         and program_invocation_name.
70928         (__argp_basename) [!_LIBC]: Remove; the only use was
70929         replaced by its body.
70930         (__argp_short_program_name): Change condition from
70931         !defined __argp_short_program_name to
70932         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70933         to match argp-namefrob.h.
70934         (__argp_failure): Don't assume strerror_r returns char *.
70935         * lib/argp-parse.c (N_): Define unconditionally.
70936         (argp_default_options): Fill out initializers with 0 to avoid
70937         gcc warnings.
70938
70939 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70942         getopt1.c.
70943
70944 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         Merge from coreutils.
70947
70948         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70949
70950         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70951         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70952
70953 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         Merge from coreutils.
70956
70957         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70958         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70959         for Reliant Unix 5.43.
70960
70961         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70962         (union fooround): Use uintmax_t, not long int.
70963         The rest is a merge from libc:
70964         [defined _LIBC]: Include <shlib-compat.h>.
70965         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70966
70967         * lib/settime.c (settime): Recode to avoid warning with
70968         Sun Forte C 6U2.
70969
70970         * lib/strverscmp.c: Convert to UTF-8.
70971
70972 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70975         m4/uintmax_t.m4.
70976
70977 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * modules/xalloc-die: New file.
70980         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70981
70982         * modules/md5 (Files): Add m4/uint32_t.m4.
70983         * modules/sha1: Renamed from modules/sha.
70984         (Files):
70985         Rename lib/sha.h to lib/sha1.h.
70986         Rename lib/sha.c to lib/sha1.c.
70987         Rename m4/sha.m4 to m4/sha1.m4.
70988         (lib_SOURCES): Likewise.
70989         (configure.ac): Rename gl_SHA to gl_SHA1.
70990         (Include): sha.h -> sha1.h.
70991
70992 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70993
70994         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70995         * m4/sha1.m4: Renamed from sha.m4.
70996         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70997
70998 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70999
71000         * lib/obstack.h (obstack_empty_p):
71001         Don't assume that chunk->contents is suitably aligned.
71002         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
71003         Likewise. Problem reported by Benno in
71004         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
71005
71006         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
71007         readable.  This could be improved further but it'd take some work.
71008
71009 2004-08-08  Simon Josefsson  <jas@extundo.com>
71010
71011         * modules/xgethostname (Depends-on): Remove exit and error (not
71012         used).
71013
71014         * modules/getpass-gnu: Add getpass.h.
71015         (Depends-on): Add stdbool.
71016         * modules/getpass: Add getpass.h.
71017
71018 2004-08-08  Simon Josefsson  <jas@extundo.com>
71019
71020         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
71021         Check getpass declaration.
71022
71023 2004-08-08  Simon Josefsson  <jas@extundo.com>
71024
71025         * lib/xgethostname.c: Don't include error.h (not used).
71026
71027         * lib/getpass.h: Add.
71028         * lib/getpass.c: Include getpass.h first.
71029
71030 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * lib/xalloc-die.c: New file.
71033         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
71034         All uses removed.
71035         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
71036         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
71037         xalloc-die.c.
71038         (_, N_, xalloc_die): Move to xalloc-die.c.
71039         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
71040         so that we needn't mess with xalloc_msg_memory_exhausted.
71041
71042         * lib/sha1.h: Renamed from sha.h.
71043         (SHA1_H): Renamed from _SHA_H.
71044         (sha1_ctx): Renamed from sha_ctx.
71045         (sha1_init_ctx): Renamed from sha_init_ctx.
71046         (sha1_process_block): Renamed from sha_process_block.
71047         (sha1_process_bytes): Renamed from sha_process_bytes.
71048         (sha1_finish_ctx): Renamed from sha_finish_ctx.
71049         (sha1_read_ctx): Renamed from sha_read_ctx.
71050         (sha1_stream): Renamed from sha_stream.
71051         (sha1_buffer): Renamed from sha_buffer.
71052         * lib/sha1.c: Likewise; renamed from sha.c.
71053         Do not include <sys/types.h>.
71054         Include <stddef.h> rather than <stdlib.h>.
71055
71056 2004-08-08  Bruno Haible  <bruno@clisp.org>
71057
71058         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
71059         FILESYSTEM_PREFIX_LEN.
71060         * lib/progreloc.c: Likewise.
71061         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
71062
71063 2004-08-06  Simon Josefsson  <jas@extundo.com>
71064
71065         * modules/progname (Depends-on): Don't depend on stdbool.
71066
71067 2004-08-06  Simon Josefsson  <jas@extundo.com>
71068
71069         * modules/getsubopt: New file.
71070         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71071         getsubopt.
71072
71073 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71074
71075         More merge from coreutils.
71076
71077         * m4/utimens.m4, m4/utimecmp.m4: New files.
71078         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
71079         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
71080         prereq.m4, sha.m4: Import changes from coreutils.
71081
71082 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         More merge from coreutils.
71085         * modules/raise, modules/readtokens0, modules/utimens:
71086         * modules/utimecmp, module/xnanosleep: New files.
71087         * modules/strftime: Add lib/strftime.h.
71088         Change include from <time.h> to "strftime.h".
71089         * modules/yesno: Add lib/yesno.h.
71090         * modules/backupfile: Remove lib/addext.c.
71091         * modules/euidaccess: Add stat-macros.h.
71092         * modules/canonicalize, modules/euidaccess,
71093         modules/filemode, modules/lchown, modules/makepath,
71094         modules/rmdir, modules/stat: Likewise.
71095
71096 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
71097
71098         Merge from tar.
71099         * lib/argp-help.c (make_hol, hol_append): Don't assume that
71100         SIZE_MAX is a valid preprocessor constant.
71101         (__argp_basename): Change from "#ifndef _LIBC"
71102         to "#ifndef __argp_short_program_name", so that
71103         we don't compile these functions for tar.
71104
71105         More merges from coreutils.
71106         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
71107         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
71108         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
71109         * lib/addext.c: Remove; no longer needed.
71110         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
71111         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
71112         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
71113         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
71114         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
71115         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
71116         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
71117         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
71118         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
71119         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
71120         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
71121         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
71122         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
71123         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
71124         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
71125         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
71126         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
71127         Import changes from coreutils.
71128
71129 2004-08-05  Simon Josefsson  <jas@extundo.com>
71130
71131         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
71132
71133 2004-08-05  Simon Josefsson  <jas@extundo.com>
71134
71135         * m4/getsubopt.m4: New file.
71136
71137 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         Merge from coreutils.
71140
71141         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
71142         * m4/getcwd-path-max.m4: New files.
71143
71144         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
71145         FILESYSTEM_PREFIX_LEN ->
71146         FILE_SYSTEM_PREFIX_LEN.
71147         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
71148         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
71149         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
71150         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
71151
71152         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
71153         prerequisite modules now handle the DOS stuff.
71154         Don't check for unistd.h.
71155
71156 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         Merge from coreutils.
71159
71160         * lib/.gdb-history: Remove; this doesn't belong here.
71161
71162         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
71163         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
71164         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
71165         * lib/getcwd.c: New files.
71166
71167         * lib/dirname.h: Include <stdbool.h>.
71168         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
71169         for consistency with POSIX terminology.  All uses changed.
71170         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
71171         (strip_trailing_slashes): Use bool for booleans.
71172         * lib/stripslash.c (strip_trailing_slashes): Likewise.
71173
71174         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
71175         sometimes returns a positive errno value even when it succeeds.
71176         (print_errno_message) [!LIBC]: Fall back on strerror if
71177         __strerror_r fails.
71178
71179         * lib/path-concat.c (mempcpy): Don't define if a system header defines
71180         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
71181         (longest_relative_suffix): New function.
71182         (path_concat): Use it.  Assume first argument is not NULL.
71183         Port to DOS.  Omit redundant separators.
71184         Report an error instead of returning NULL.
71185         Use mempcpy instead of memcpy.
71186         (xpath_concat): Remove: not declared or used.
71187
71188         * lib/same.h: Include <stdbool.h>
71189         (same_name): Return bool, not int.
71190         * lib/same.c (same_name): Likewise.
71191         (errno): Don't declare; we assume C89 or better now.
71192
71193         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
71194         if not already defined.
71195
71196         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
71197         * lib/dup-safer.c (errno): Likewise.
71198
71199 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
71200
71201         Merge from coreutils.
71202         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
71203         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
71204         * modules/path-concat: Don't depend on strdup.
71205
71206 2004-08-03  Simon Josefsson  <jas@extundo.com>
71207
71208         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
71209         * lib/progname.h: Don't include stdbool.h.
71210
71211 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71212
71213         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71214         * MODULES.html.sh (func_all_modules): Remove fatal.
71215
71216 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71217
71218         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71219
71220 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71223         working.
71224
71225 2004-08-02  Simon Josefsson  <jas@extundo.com>
71226
71227         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71228         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71229         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71230
71231 2004-08-01  Simon Josefsson  <jas@extundo.com>
71232
71233         * lib/xgetdomainname.c: Include stdlib.h, for free().
71234
71235 2004-07-19  Bruno Haible  <bruno@clisp.org>
71236
71237         * MODULES.html.sh (func_all_modules): Add dummy.
71238
71239 2004-07-16  Simon Josefsson  <jas@extundo.com>
71240
71241         * modules/dummy: New file.
71242
71243 2004-07-16  Simon Josefsson  <jas@extundo.com>
71244
71245         * lib/dummy.c: New file.
71246
71247 2004-07-16  Bruno Haible  <bruno@clisp.org>
71248
71249         * lib/backupfile.h: Add extern "C" for C++.
71250         * lib/closeout.h: Likewise.
71251         * lib/copy-file.h: Likewise.
71252         * lib/findprog.h: Likewise.
71253         * lib/full-write.h: Likewise.
71254         * lib/pathname.h: Likewise.
71255         * lib/progname.h: Likewise.
71256         * lib/stpcpy.h: Likewise.
71257         * lib/stpncpy.h: Likewise.
71258         * lib/strcase.h: Likewise.
71259         * lib/strstr.h: Likewise.
71260         * lib/xalloc.h: Likewise.
71261
71262         * lib/mbswidth.h: Add extern "C" for C++.
71263         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71264
71265 2004-07-13  Robert Millan  <robertmh@gnu.org>
71266
71267         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71268
71269 2004-07-09  Simon Josefsson  <jas@extundo.com>
71270
71271         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71272         failed without this.)
71273
71274 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71275
71276         * modules/chown (Files): Add lib/fchown-stub.c, since
71277         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71278
71279 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71280
71281         * lib/fchown-stub.c: New file.
71282
71283 2004-06-24  Jim Meyering  <jim@meyering.net>
71284
71285         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71286
71287 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         * modules/argz: Omit "#include".
71290
71291         * MODULES.html.sh (func_all_modules): Add calloc, to match
71292         2004-06-01 addition of calloc module.
71293
71294 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * m4/argz.m4: New file, which is autoupdated from libtool.
71297
71298 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71299
71300         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71301         libtool.
71302
71303 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71304
71305         * config/srclist-update: Don't insist on "USA." before the
71306         close-comment, as libtool omits the period and puts the */ on a
71307         separate line.
71308         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71309         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71310
71311 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71312
71313         * modules/argz: New file.
71314         * MODULES.html.sh (func_all_modules): Add argz.
71315
71316 2004-06-12  Jim Meyering  <jim@meyering.net>
71317         and  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * modules/hash (Files): Add lib/xalloc.h.
71320         * modules/pipe (Depends-on): Add wait-process.
71321         * modules/stat (Depends-on): Add xalloc.
71322         * modules/userspec (Files): Add lib/userspec.h.
71323         * modules/xstrto
71324
71325         Upgrade from gettext-0.13.
71326         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71327         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71328         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71329
71330 2004-06-10  Jim Meyering  <jim@meyering.net>
71331
71332         * lib/calloc.c: New file.
71333
71334 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71335
71336         * lib/getdate.y (yylex): Allow space between sign and number.
71337         Problem reported by Dan Jacobson.
71338
71339 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71340
71341         Merge from coreutils CVS.
71342
71343         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71344         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71345         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71346         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71347         xstrtol.m4: Fix copyright date and/or serial number.
71348
71349         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71350         See if we need an fchown replacement.
71351         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71352         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71353         and use the replacement function if we detect either defect.
71354
71355         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71356         gl_UTIMECMP.
71357
71358 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71359         and  Jim Meyering  <jim@meyering.net>
71360
71361         Merge from coreutils CVS.
71362
71363         * lib/stat-macros.h: New file, with contents from file-type.h
71364         and coreutils' system.h.
71365         * lib/file-type.c: Include "stat-macros.h".
71366         * lib/file-type.h (file_type): Move all macro definitions to new file,
71367         stat-macros.h.
71368
71369         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71370         Wrap old code with this conditional.
71371         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71372         function that does not dereference symlinks.
71373         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71374
71375         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71376         dependency problems.
71377         (xreadlink): Accept new arg SIZE, for efficiency.
71378         All decls and uses changed.
71379         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71380
71381         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71382         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71383
71384         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71385         sysexits.h.
71386
71387 2004-06-01  Jim Meyering  <jim@meyering.net>
71388
71389         * m4/calloc.m4: New file.
71390
71391 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71392
71393         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71394         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71395         Also, fix a typo in a diagnostic.
71396
71397 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71398
71399         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71400         or AC_FUNC_REALLOC.
71401
71402 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71405         macros to be defined.
71406         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71407         the allocator returns NULL because the requested size is zero.
71408
71409 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71412         var.  Add comment explaining why libc still defines it.  This
71413         merges the following patch from glibc:
71414         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71415
71416 2004-05-20  Andreas Schwab  <schwab@suse.de>
71417
71418         * m4/free.m4: Replace free if it not known to work, not the other
71419         way round.
71420
71421 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71422
71423         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71424         present in glibc since revision 1.1 of this file.
71425         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71426         obstack_alignment_mask, obstack_alloc, obstack_base,
71427         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71428         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71429         obstack_grow0, obstack_init, obstack_int_grow,
71430         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71431         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71432         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71433         nonexistent functions.
71434
71435 2004-05-18  Karl Berry  <karl@gnu.org>
71436
71437         * config/srclist.txt: break link for vasnprintf.c.
71438
71439 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         Port obstack to the AS/400, where pointers are 16 bytes wide and
71442         you cannot cast an integer to a valid pointer.  This patch is
71443         currently waiting to be integrated into glibc; see
71444         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71445
71446         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71447         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71448         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71449         (struct obstack): temp member is now a union of a pointer and
71450         an integer, instead of an integer.  All integer uses changed.
71451         This does not affect the physical layout of struct obstack,
71452         except on hosts (like the AS/400) where the size or alignment of
71453         void * is greater than that of ptrdiff_t.
71454         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71455         __STDC__)]: Store temporary in pointer member of union, not
71456         integer member.
71457         * lib/obstack.c: Include <stddef.h>, for offsetof.
71458         (struct fooalign): Remove; it doesn't need a name.
71459         (union fooround): Change double to long double, and add void *.
71460         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71461         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71462         not a macro.  Hence the values are always int; so remove all
71463         casts-to-int in uses.
71464
71465 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71468         we can get this patch merged into glibc.
71469
71470 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71471             Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * m4/argp: Depend on alloca.
71474
71475 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71476             Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71479         freecoding.
71480
71481 2004-05-17  Bruno Haible  <bruno@clisp.org>
71482
71483         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71484         precision that consists of a '.' followed by an empty digit string.
71485         Patch by Tor Lillqvist <tml@iki.fi>.
71486
71487 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71488
71489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71490         for backward compatibility with older code.  We need our own
71491         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71492         it under some other name, and our alloca.h will define it.
71493
71494 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71495             Derek Price  <derek@ximbiot.com>
71496
71497         * lib/alloca.c: Include <alloca.h>, to get our interface.
71498         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71499         include <alloca.h> first.  Use C89 prototype for alloca; this
71500         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71501         Use #elif for simplicity, since we can assume C89 now.
71502         Don't try to source the system alloca.h since it will not be found
71503         and to prevent recursively including its replacement.
71504         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71505         * lib/regex.c: Likewise.
71506
71507 2004-05-16  Derek Price  <derek@ximbiot.com>
71508             Paul Eggert  <eggert@cs.ucla.edu>
71509
71510         getline cleanup.  This changes the getndelim2 API: both order of
71511         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71512         no delimiter).
71513
71514         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71515         interface does that.
71516         (getline): Always use getdelim, so that we don't have two
71517         copies of this code.
71518         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71519         if available.
71520         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71521         (GETNDELIM2_MAXIMUM): New macro.
71522         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71523         instead of the old practice of delim2==0.  All callers changed.
71524         Return -1 on overflow, instead of returning junk.
71525         Do not set *linesize unless allocation succeeds.
71526         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71527         that we include sys/types.h.
71528         * lib/getnline.h: Likewise.
71529         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71530         (getndelim2): Reorder arguments.
71531         * lib/getnline.c (getnline, getndelim):
71532         Don't discard the NMAX argument.
71533         (getnline): Invoke getndelim, to avoid code duplication.
71534         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71535         of (size_t) -1 by callers of the getnline family.
71536
71537 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71538
71539         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71540         Check for gettimeofday.
71541         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71542         Check for settimeofday, stime.
71543
71544 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71545
71546         * lib/nanosleep.c (suspended): Change its type from int to
71547         sig_atomic_t volatile.
71548         (first_call): Make it private to rpl_nanosleep, and have it
71549         be zero initially as that's a bit faster.
71550         (my_usleep): Round up fractional times instead of truncating them,
71551         as this is the usual meaning for 'sleep'.
71552
71553         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71554         doesn't work.
71555         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71556         (ENOSYS): Define if not defined.
71557         (settime): Fall back on stime if it exists and settimeofday fails.
71558         But don't bother with fallbacks if a method fails with errno == EPERM.
71559
71560 2004-05-11  Jim Meyering  <jim@meyering.net>
71561
71562         Prior to this change, the save_cwd caller required read access to the
71563         current directory on most systems (ones with the fchdir function).
71564
71565         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71566         fails, try write-only, and finally, resort to using xgetcwd.
71567
71568 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * lib/obstack.c, obstack.h: Import changes from libc.
71571
71572 2004-04-28  Bruno Haible  <bruno@clisp.org>
71573
71574         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71575         also implicitly appends .exe to executables.
71576         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71577         accepts Windows pathnames.
71578         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71579         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71580         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71581         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71582         Reported by Derek Robert Price <derek@ximbiot.com>.
71583
71584 2004-04-21  Karl Berry  <karl@gnu.org>
71585
71586         * config/srclist.txt (localcharset.c): break sync.
71587
71588 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71589
71590         * m4/host-os.m4: Add a copyright notice.
71591
71592 2004-04-20  Jim Meyering  <jim@meyering.net>
71593
71594         Change UTILS_ to gl_ in AC_DEFINE'd names.
71595         Change utils_- and jm_-prefixed variables, too.
71596         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71597         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71598         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71599
71600         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71601         Don't emit trailing blanks.
71602         Also rename jm_-prefixed variables to have gl_ prefix.
71603
71604         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71605         Also rename jm_-prefixed variables to have gl_ prefix.
71606
71607         * m4/jm-macros.m4: Reflect the renamings.
71608         * m4/prereq.m4: Likewise.
71609
71610 2004-04-20  Jim Meyering  <jim@meyering.net>
71611
71612         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71613         memory.
71614
71615 2004-04-20  Jim Meyering  <jim@meyering.net>
71616             Bruno Haible  <bruno@clisp.org>
71617
71618         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71619         memory when realloc fails.
71620
71621 2004-04-19  Jim Meyering  <jim@meyering.net>
71622
71623         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71624         now that readutmp.c may call `free (0)'.
71625
71626 2004-04-19  Bruno Haible  <bruno@clisp.org>
71627
71628         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71629         * m4/inttypes_h.m4: Likewise.
71630         * m4/stdint_h.m4: Likewise.
71631         * m4/intmax_t.m4: Likewise.
71632         * m4/uintmax_t.m4: Likewise.
71633
71634 2004-04-18  Jim Meyering  <jim@meyering.net>
71635
71636         * m4/prereq.m4: Don't forbid jm_ prefix.
71637
71638         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71639         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71640         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71641         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71642         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71643         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71644         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71645         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71646         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71647         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71648         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71649         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71650         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71651         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71652         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71653         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71654         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71655         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71656         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71657
71658 2004-04-18  Jim Meyering  <jim@meyering.net>
71659
71660         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71661         failure, don't leak memory and do call END_UTMP_ENT.
71662
71663 2004-04-16  Jim Meyering  <jim@meyering.net>
71664
71665         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71666         coreutils' stat program.
71667         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71668
71669 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71670
71671         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71672         C89.
71673         (CHAR_BIT): Remove, since we assume C89.
71674         Include <stdint.h> if available, as per current Autoconf CVS advice.
71675
71676 2004-03-31  Jim Meyering  <jim@meyering.net>
71677
71678         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71679         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71680         * m4/xalloc.m4: Likewise.
71681
71682 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71683
71684         Merge from coreutils.
71685
71686         * m4/inttostr.m4: New file.
71687         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71688         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71689         Require gl_CLOCK_TIME.
71690         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71691
71692 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71693
71694         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71695         not bool, to be more consistent with Unix conventions.
71696         Suggested by Bruno Haible.
71697
71698         Merge from coreutils.
71699
71700         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71701         * lib/umaxtostr.c: New files.
71702
71703         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71704         the usual <time.h> dance.
71705         (get_date): Change signature to support fractional time stamps.
71706         All callers changed.
71707         * lib/getdate.y: Include "getdate.h" first, as we can now
71708         assume C89 and don't need to worry about 'const'.
71709         Similarly, include "unlocked-io.h" near start, not in middle.
71710         Include <limits.h>.
71711         (textint.value): Use long int rather than int.
71712         (textint.digits): Use size_t rather than int.
71713         (BILLION, LOG10_BILLION): New constants.
71714         (parser_control): New member rel_ns.  Members day_ordinal,
71715         time_zone, month, day, hour, minutes, rel_year, rel_month,
71716         rel_day, rel_hour, rel_minutes, rel_seconds
71717         are now long int, not int.  Member seconds is now struct timespec,
71718         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71719         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71720         not int.
71721         (%union.intval): Now long int, not int.
71722         New member timespec.
71723         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71724         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71725         (spec): Now is a timespec or an item list.
71726         (timespec, items): New nonterminals.
71727         (time, rel, relunit, number, get_date):
71728         Add support for fractional seconds.
71729         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71730         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71731         (to_hour): First arg is now long int, not int.
71732         (to_year): Returns long int, not int.
71733         Don't treat year -70 like 70.
71734         (tm_diff): Returns long int, not int.
71735         (lookup_word): Use bool instead of int when appropriate.
71736         (yylex): Use size_t for count, not int.
71737         Detect overflow when parsing large integer constants.
71738         Add support for fractions.
71739         (get_date): Make pointers 'const' if possible.
71740         Use more-portable code to detect integer overflow.
71741         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71742         Don't use ctime; it's not reliable if the year has >4 digits.
71743
71744         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71745         This is for compatibility with BSD.
71746
71747         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71748         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71749         From coreutils' system.h.
71750
71751         * lib/userspec.c: Don't include "posixver.h".
71752         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71753         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71754         compatible extension.  Simplify code by removing a boolean int
71755         that was always nonzero if a string was nonnull.
71756
71757 2004-03-30  Jim Meyering  <jim@meyering.net>
71758
71759         Merge from coreutils.
71760
71761         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71762         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71763         on some systems one must include <grp.h> before it.
71764         Reported by Christian Krackowizer.
71765
71766 2004-03-30  Jim Meyering  <jim@meyering.net>
71767
71768         Merge from coreutils.
71769
71770         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71771
71772         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71773         an empty input stream.
71774
71775         * lib/readtokens.c: Include <stdbool.h>.
71776         (readtoken): Use `size_t' rather than int/long.
71777         All callers adjusted.
71778         Use `bool' rather than `int' where appropriate.
71779         Use memset rather than an explicit loop.
71780         Use x2nrealloc rather than xrealloc.
71781         Allow the use of `\0' as a delimiter.
71782         (readtokens): Likewise.
71783         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71784
71785 2004-03-30  Jim Meyering  <jim@meyering.net>
71786
71787         * m4/realloc.m4: Remove file, since now it does no more than
71788         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71789         the `configure.ac' section of module/realloc.
71790         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71791
71792 2004-03-30  Bruno Haible  <bruno@clisp.org>
71793
71794         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71795         nonnull.
71796
71797 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71798
71799         Merge changes to getloadavg.c from coreutils and Emacs.
71800
71801         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71802         Define to an expression, not to the empty string.
71803         Include cloexec.h and xalloc.h.
71804         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71805         Use set_cloexec_flag rather than rolling our own.
71806         * lib/cloexec.c, lib/cloexec.h: New files.
71807
71808 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71809
71810         * m4/cloexec.m4: New file.
71811
71812 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71813
71814         * lib/getopt.h: Sync with libc CVS.
71815
71816 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71817             Bruno Haible  <bruno@clisp.org>
71818
71819         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71820         mbswidth.
71821
71822 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71823             Bruno Haible  <bruno@clisp.org>
71824
71825         * lib/mbswidth.h: Include <wchar.h> only if
71826         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71827         <wchar.h>.
71828         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71829
71830 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71831
71832         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71833         Sync with libc CVS.
71834         * lib/getopt_int.h: New file, also synced from libc.
71835
71836 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71837
71838         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71839         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71840         Bring back getopt.c, getopt.h, getopt1.c.
71841
71842 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71843
71844         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71845         All uses changed.  Check for sa_sigaction member; this fixes
71846         a bug first reported by Jason Andrade in
71847         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71848
71849 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71850
71851         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71852         '#if' expressions.  Unlike the code it replaces, it does not
71853         depend on (defined _SC_PAGESIZE).  However, it does depend on
71854         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71855         first reported by Jason Andrade in
71856         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71857
71858 2004-02-25  Simon Josefsson  <jas@extundo.com>
71859
71860         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71861
71862 2004-02-25  Simon Josefsson  <jas@extundo.com>
71863
71864         * lib/strdup.h: New file.
71865         * lib/strdup.c: Include it.
71866         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71867         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71868
71869 2004-02-23  Karl Berry  <karl@gnu.org>
71870
71871         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71872         (from fencepost.gnu.org:/gd/gnuorg).
71873
71874 2004-02-23  Karl Berry  <karl@gnu.org>
71875
71876         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71877         * config/srclist.txt: add maintain/standards documents.
71878
71879 2004-02-18  Bruno Haible  <bruno@clisp.org>
71880
71881         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71882         Reported by Derek Robert Price <derek@ximbiot.com>.
71883
71884 2004-02-16  Karl Berry  <karl@gnu.org>
71885
71886         * config/mkinstalldirs, install-sh: update from automake.
71887
71888 2004-02-06  Karl Berry  <karl@gnu.org>
71889
71890         * m4/po.m4: update from gettext 0.14.1.
71891
71892 2004-02-06  Karl Berry  <karl@gnu.org>
71893
71894         * lib/config.charset: update from gettext 0.14.1.
71895
71896 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71897
71898         Add comments and code, prompted by suggestions from Bruno Haible
71899         for sh-quote.
71900         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71901         describing the enum quoting_style values.
71902         * lib/quotearg.c (quotearg_alloc): New function.
71903         (quotearg_buffer_restyled): Treat lone { and } as special.
71904         Treat = as special.  Work around bug with older shells
71905         that "see" a '\' that is really the 2nd byte of a multibyte char.
71906         Quote empty string with shell_quoting_style.
71907
71908 2004-02-03  Bruno Haible  <bruno@clisp.org>
71909
71910         * m4/pipe.m4: New file, from GNU gettext.
71911
71912 2004-02-03  Bruno Haible  <bruno@clisp.org>
71913
71914         * lib/pipe.h: New file, from GNU gettext.
71915         * lib/pipe.c: New file, from GNU gettext.
71916
71917 2004-01-27  Bruno Haible  <bruno@clisp.org>
71918
71919         * m4/execute.m4: New file, from GNU gettext.
71920
71921 2004-01-27  Bruno Haible  <bruno@clisp.org>
71922
71923         * lib/execute.h: New file, from GNU gettext.
71924         * lib/execute.c: New file, from GNU gettext.
71925         * lib/w32spawn.h: New file, from GNU gettext.
71926
71927 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71928
71929         Merge from diffutils.
71930
71931         * lib/file-type.c (file_type): Add typed memory objects.
71932         * lib/file-type.h (S_TYPEISTMO): New macro.
71933
71934         * lib/c-stack.h (c_stack_action): Remove argv argument.
71935         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71936         (die): Don't calculate message unless segv_action returns.
71937         (get_stack_location, min_address_from_argv, max_address_from_argv,
71938         volatile stack_base, volatile_stack_size): Remove.
71939         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71940         that every segmentation violation is a stack overflow.  (Ouch!)
71941         See Debian bug 136249 (still outstanding) for more info about why
71942         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71943
71944 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71945
71946         Exit-status fix from coreutils.
71947
71948         Use exit_failure consistently in place of EXIT_FAILURE,
71949         so that program exit statuses are consistent on failure.
71950
71951         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71952         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71953         * lib/argmatch.h: Comment fix to match the above.
71954         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71955         Now a macro referring to exit_failure, instead of a separate
71956         variable.  Include "exitfail.h" to get it.
71957         * lib/xstrtol.h: Include "exitfail.h".
71958         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71959
71960         * lib/long-options.c (parse_long_options): Use prototype
71961         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71962         for clarity.
71963
71964 2004-01-21  Jim Meyering  <jim@meyering.net>
71965
71966         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71967         so as not to conflict with a different-sized __mktime_internal
71968         function in GNU libc.
71969         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71970         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71971
71972 2004-01-20  Karl Berry  <karl@gnu.org>
71973
71974         * config/config.guess: update from config.
71975
71976         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71977
71978 2004-01-20  Bruno Haible  <bruno@clisp.org>
71979
71980         Safer stack allocation.
71981         * lib/setenv.c: Include allocsa.h.
71982         (alloca): Remove fallback definition.
71983         (freea): Remove macro.
71984         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71985         instead of freea.
71986
71987 2004-01-20  Bruno Haible  <bruno@clisp.org>
71988
71989         * m4/eealloc.m4: New file, from GNU gettext.
71990
71991 2004-01-20  Bruno Haible  <bruno@clisp.org>
71992
71993         * m4/allocsa.m4: New file, from GNU gettext.
71994
71995 2004-01-20  Bruno Haible  <bruno@clisp.org>
71996
71997         * lib/xallocsa.h: New file, from GNU gettext.
71998         * lib/xallocsa.c: New file, from GNU gettext.
71999
72000 2004-01-20  Bruno Haible  <bruno@clisp.org>
72001
72002         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
72003
72004 2004-01-20  Bruno Haible  <bruno@clisp.org>
72005
72006         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
72007         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
72008         specially.
72009
72010 2004-01-20  Bruno Haible  <bruno@clisp.org>
72011
72012         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
72013         patch.
72014
72015 2004-01-20  Bruno Haible  <bruno@clisp.org>
72016
72017         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
72018
72019 2004-01-20  Bruno Haible  <bruno@clisp.org>
72020
72021         * lib/eealloc.h: New file.
72022
72023 2004-01-20  Bruno Haible  <bruno@clisp.org>
72024
72025         * lib/binary-io.h: Avoid warnings on Cygwin.
72026
72027 2004-01-20  Bruno Haible  <bruno@clisp.org>
72028
72029         * lib/allocsa.h: New file, from GNU gettext.
72030         * lib/allocsa.c: New file, from GNU gettext.
72031
72032 2004-01-18  Karl Berry  <karl@gnu.org>
72033
72034         * doc/gpl.texi, doc/lgpl.texi: new files.
72035
72036 2004-01-18  Karl Berry  <karl@gnu.org>
72037
72038         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
72039         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
72040
72041 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72042
72043         Merge from coreutils.
72044
72045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
72046         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
72047         (gl_DEFAULT_POSIX2_VERSION): Move
72048         the documentation from 'configure' into 'config.hin',
72049         so that 'configure --help' isn't burdened by it and
72050         we don't have to worry about its formatting there.
72051         Reword the documentation so that it's more succinct
72052         and can be run together into a single paragraph.
72053         * m4/same.m4 (gl_SAME): Check for pathconf.
72054
72055 2004-01-15  Paul Eggert  <eggert@twinsun.com>
72056
72057         Merge from coreutils.
72058
72059         * lib/posixver.c: Include posixver.h.
72060
72061         * lib/same.c: Include <stdbool.h>, <limits.h>.
72062         (_POSIX_NAME_MAX): Define if not defined.
72063         (MIN): New macro.
72064         (same_name): If file names are silently truncated, report
72065         that the file names are the same if they are the same after
72066         the silent truncation.
72067
72068         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
72069         conversion function.
72070         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
72071         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
72072         longer needed.
72073
72074 2004-01-15  Jim Meyering  <jim@meyering.net>
72075
72076         Merge from coreutils.
72077
72078         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
72079         if no library is required.
72080         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
72081         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
72082         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
72083         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
72084         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
72085         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
72086         value, $ac_cv_search_crypt, if it's "none required".
72087         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
72088         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
72089         not gl_FUNC_GETLOADAVG.
72090         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
72091         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
72092
72093 2004-01-15  Jim Meyering  <jim@meyering.net>
72094
72095         Merge from coreutils.
72096
72097         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
72098         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
72099         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
72100
72101         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
72102         optional configure-time default.
72103
72104         * lib/version-etc.c (version_etc_copyright): Update copyright date.
72105
72106         * lib/xreadlink.c (xreadlink): Correct outdated comment.
72107
72108 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
72109
72110         Merge from coreutils.
72111
72112         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
72113         value, $ac_cv_search_nanosleep, if it's "none required".
72114
72115 2004-01-14  Paul Eggert  <eggert@twinsun.com>
72116
72117         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
72118         with like-named macro in fnmatch.c.
72119         (EXT): Use an internal constant instead.
72120
72121         Merge fnmatch patches from glibc.
72122         * lib/fnmatch.c (mbsinit): Remove define.
72123         Add libc_hidden_ver (__fnmatch, fnmatch).
72124         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
72125         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
72126
72127 2004-01-14  Karl Berry  <karl@gnu.org>
72128
72129         * config/install-sh: update from automake.
72130
72131 2004-01-13  Karl Berry  <karl@gnu.org>
72132
72133         * config/install-sh: update from automake.
72134
72135 2004-01-09  Karl Berry  <karl@gnu.org>
72136
72137         * config/install-sh: update from automake.
72138
72139 2004-01-05  Karl Berry  <karl@gnu.org>
72140
72141         * config/config.{sub,guess}: update from config.
72142
72143 2003-12-31  Karl Berry  <karl@gnu.org>
72144
72145         * config/depcomp: update from automake.
72146
72147 2003-12-14  Karl Berry  <karl@gnu.org>
72148
72149         * lib/config.charset: update from gettext-runtime.
72150
72151 2003-12-03  Paul Eggert  <eggert@twinsun.com>
72152
72153         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
72154         Bug reported by Alfred M. Szmidt.
72155
72156 2003-12-03  Bruno Haible  <bruno@clisp.org>
72157
72158         * m4/gettext.m4: Upgrade from gettext-0.13.
72159         * m4/po.m4: Upgrade from gettext-0.13.
72160         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
72161         * m4/intmax.m4: New file, from gettext-0.13.
72162         * m4/printf-posix.m4: New file, from gettext-0.13.
72163
72164 2003-11-29  Karl Berry  <karl@gnu.org>
72165
72166         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
72167
72168 2003-11-25  Paul Eggert  <eggert@twinsun.com>
72169             Bruno Haible  <bruno@clisp.org>
72170
72171         * lib/printf-parse.h: Don't include sys/types.h.
72172         (ARG_NONE): New macro.
72173         (char_directive): Change type of *arg_index fields to size_t.
72174         * lib/printf-parse.c: Don't include sys/types.h.
72175         (SSIZE_MAX): Remove macro.
72176         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
72177         Remove unnecessary overflow check.
72178         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
72179         fields.
72180
72181 2003-11-25  Bruno Haible  <bruno@clisp.org>
72182
72183         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
72184
72185 2003-11-25  Bruno Haible  <bruno@clisp.org>
72186
72187         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
72188         gt_TYPE_SSIZE_T.
72189
72190 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72191
72192         * modules/alloca: Remove dependency on xalloc.
72193
72194 2003-11-24  Paul Eggert  <eggert@twinsun.com>
72195
72196         * lib/alloca.c: Remove dependency on xalloc module.
72197         (xalloc_die): Remove.
72198         (memory_full) [!defined emacs]: New macro.
72199         [!defined emacs]: Don't include xalloc.h.
72200         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
72201         address arithmetic overflows.  Change datatypes a bit to avoid
72202         unnecessary casts.
72203
72204 2003-11-22  Jim Meyering  <jim@meyering.net>
72205
72206         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
72207         s/size/size_t/.
72208
72209 2003-11-21  Karl Berry  <karl@gnu.org>
72210
72211         * config/config.{sub,guess}: update from config.
72212
72213 2003-11-18  Karl Berry  <karl@gnu.org>
72214
72215         * config/config.{sub,guess}: update from config.
72216
72217         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72218
72219 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72220
72221         * README: Mention that S+T cannot overflow if S is the size of
72222         an existing object and T is sufficiently small.
72223
72224 2003-11-17  Jim Meyering  <jim@meyering.net>
72225
72226         On systems without utime and without a utimes function capable of
72227         dealing with a NULL struct utimbuf* argument, this utime replacement
72228         could -- in unusual circumstances -- leak a file descriptor.
72229         * lib/utime.c: Include <unistd.h> and <errno.h>.
72230         (utime_null): Be sure to close `fd' and to preserve errno.
72231         Reported by Geoff Collyer via Arnold Robbins.
72232
72233 2003-11-17  Bruno Haible  <bruno@clisp.org>
72234
72235         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72236         (Depends-on): Add xsize.
72237
72238 2003-11-17  Bruno Haible  <bruno@clisp.org>
72239
72240         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72241
72242 2003-11-17  Bruno Haible  <bruno@clisp.org>
72243
72244         * lib/vasnprintf.c (alloca): Remove fallback definition.
72245         (freea): Remove definition.
72246         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72247         Reported by Paul Eggert.
72248
72249 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72250             Bruno Haible  <bruno@clisp.org>
72251
72252         Protect against address arithmetic overflow.
72253         * lib/printf-args.h: Include stddef.h.
72254         (arguments): Change type of field 'count' to size_t.
72255         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72256         'unsigned int' where appropriate.
72257         * lib/printf-parse.h: Include sys/types.h.
72258         (char_directive): Change type of *arg_index fields to ssize_t.
72259         (char_directives): Change type of fields 'count', max_*_length to
72260         size_t.
72261         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72262         (SSIZE_MAX): Define fallback value.
72263         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72264         instead of 'int' where appropriate. Check a_allocated, d_allocated
72265         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72266         * lib/vasnprintf.c: Include xsize.h.
72267         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72268         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72269         overflow. Avoid wraparound when converting a width or precision from
72270         decimal to binary.
72271
72272 2003-11-16  Bruno Haible  <bruno@clisp.org>
72273
72274         Update from GNU gettext.
72275         * lib/printf-parse.c: Generalize to it can be compiled for wide
72276         strings.
72277         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72278         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72279         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72280         SNPRINTF): New macros.
72281         Don't include <alloca.h> if the file is used inside libintl.
72282         (local_wcslen): New function, for Solaris 2.5.1.
72283         (VASNPRINTF): Use it instead of wcslen.
72284
72285 2003-11-16  Bruno Haible  <bruno@clisp.org>
72286
72287         * lib/xsize.h (xmax): New function.
72288         (xsum, xsum3, xsum4): Declare as "pure" functions.
72289
72290 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72291
72292         * modules/xalloc (Files): Undo latest change, since xalloc.h
72293         no longer needs SIZE_MAX or PTRDIFF_MAX.
72294
72295 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72296
72297         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72298         gl_PTRDIFF_MAX.
72299
72300 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72301
72302         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72303         "return", to pacify some unknown compiler.  Problem reported
72304         by Joerg Schilling.
72305
72306 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72307
72308         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72309         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72310         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72311         heuristic is just as accurate as far as we know, and it removes a
72312         dependency on size_max.m4 and ptrdiff_max.m4.
72313
72314 2003-11-11  Bruno Haible  <bruno@clisp.org>
72315
72316         * modules/xsize (Files): Add m4/size_max.m4.
72317         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72318
72319 2003-11-11  Bruno Haible  <bruno@clisp.org>
72320
72321         * m4/size_max.m4: New file.
72322         * m4/ptrdiff_max.m4: New file.
72323         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72324         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72325         (gl_XALLOC): Invoke it.
72326
72327 2003-11-11  Bruno Haible  <bruno@clisp.org>
72328
72329         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72330         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72331         defined.
72332
72333 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72334
72335         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72336         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72337         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72338         From Bruno Haible.
72339         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72340         not (size_t) -1, since it's defined here.
72341
72342 2003-11-09  Karl Berry  <karl@gnu.org>
72343
72344         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72345
72346 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72347
72348         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72349         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72350         Reject sizes of exactly SIZE_MAX bytes.
72351         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72352         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72353
72354 2003-11-05  Bruno Haible  <bruno@clisp.org>
72355
72356         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72357         SIZE_MAX defined in <limits.h> on Solaris.
72358
72359 2003-11-04  Jim Meyering  <jim@meyering.net>
72360
72361         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72362         variable names, rather than @VAR@.
72363         * modules/poll: Likewise.
72364
72365 2003-11-04  Bruno Haible  <bruno@clisp.org>
72366
72367         * modules/xsize: New file.
72368         * modules/linebreak: Depend on xsize.
72369         * MODULES.html.sh (func_all_modules): Add xsize.
72370
72371 2003-11-04  Bruno Haible  <bruno@clisp.org>
72372
72373         * m4/xsize.m4: New file.
72374
72375 2003-11-04  Bruno Haible  <bruno@clisp.org>
72376
72377         * lib/xsize.h: New file.
72378         * lib/linebreak.c: Include xsize.h.
72379         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72380         argument for overflow.
72381         Suggested by Paul Eggert.
72382
72383 2003-11-03  Karl Berry  <karl@gnu.org>
72384
72385         * config/config.{guess,sub}: update from config.
72386
72387 2003-11-03  Jim Meyering  <jim@meyering.net>
72388
72389         * modules/userspec (lib_SOURCES): Add userspec.h.
72390         (Include): Add "userspec.h".
72391         Improve description.
72392
72393 2003-11-03  Jim Meyering  <jim@meyering.net>
72394
72395         * lib/userspec.c: Include "userspec.h".
72396         * lib/userspec.h: New file.
72397
72398 2003-11-03  Bruno Haible  <bruno@clisp.org>
72399
72400         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72401
72402 2003-11-03  Bruno Haible  <bruno@clisp.org>
72403
72404         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72405         available, to avoid (extremely rare) race condition.
72406         Suggested by Paul Eggert.
72407
72408 2003-11-02  Karl Berry  <karl@gnu.org>
72409
72410         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72411
72412 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72413
72414         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72415         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72416         (read_filesystem_list): Set and use me_type_malloced.
72417         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72418         whatever the type happens to be), for brevity and consistency.
72419         Check for size calculation overflow on Alphas running OSF/1.
72420
72421 2003-10-31  Jim Meyering  <jim@meyering.net>
72422
72423         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72424
72425         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72426
72427 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72428             Bruno Haible  <bruno@clisp.org>
72429
72430         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72431         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72432
72433 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72436         netbsd*-gnu*.  Suggested by Robert Millan.
72437
72438 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72439
72440         * modules/group-member: Depend on stdbool.
72441
72442 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72443
72444         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72445
72446 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72447
72448         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72449         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72450         after the 'gnu' in these cases.  This fixes some bugs in the
72451         previous change, and is based on suggestions by Robert Millan.
72452
72453 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72454
72455         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72456         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72457         no longer needed.
72458         * lib/quotearg.c (quotearg_n_options): Use it.
72459         * lib/group-member.c: Include <stdbool.h>.
72460         (free_group_info): Arg is now const *; don't free arg.
72461         (get_group_info): Now returns bool and accepts struct group_info *,
72462         rather than returning a malloc'ed struct group_info *.
72463         All uses changed.  Check for overflow in internal size calculation.
72464
72465         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72466         rather than xmalloc/xrealloc.
72467         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72468         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72469         conformance bug: the old code used a pointer after freeing the
72470         storage that it addressed.
72471         * lib/hash.c (hash_initialize): Simplify the code by using
72472         xalloc_oversized rather than doing it by hand.
72473         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72474         the buffer preserved.  Use free and xmalloc instead.
72475         * lib/quotearg.c (quotearg_n_options): Likewise.
72476         Use a simpler test for size overflow.  Don't use xalloc_oversized
72477         because unsigned int might be wider than size_t (!); this suggests
72478         that we should switch from unsigned int to size_t for slot numbers.
72479
72480 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72481
72482         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72483         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72484         NetBSD kernels.  Requested by Richard Stallman.
72485
72486 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72487
72488         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72489         to allocate the returned structure.  Do not allocate a subarray,
72490         as x2nrealloc will do that.
72491         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72492         instead of xnrealloc.
72493         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72494
72495 2003-10-27  Bruno Haible  <bruno@clisp.org>
72496
72497         * lib/stdbool_.h: Better support for BeOS.
72498
72499 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72500
72501         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72502         now uses inline.
72503
72504 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72505
72506         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72507         callers that want to do their own size-overflow checking.  Include
72508         <stdbool.h>, since xalloc_oversized returns bool.
72509         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72510         to use xalloc_oversized.
72511
72512         Add two functions x2realloc, x2nrealloc, for programs that grow
72513         arrays dynamically by doubling their sizes.
72514         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72515         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72516         New functions.
72517
72518         Port to C99 semantics for 'inline' of external functions.
72519         Bug reported by Bruno Haible.
72520         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72521         with the old contents of xnmalloc.
72522         (xnmalloc, xmalloc): Use it.
72523         (xnrealloc_inline): New static inline function,
72524         with the old contents of xnrealloc.
72525         (xnrealloc, xrealloc): Use it.
72526
72527         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72528         that.
72529
72530 2003-10-26  Karl Berry  <karl@gnu.org>
72531
72532         * config/srclist.txt (COPYING.DOC): no longer available from
72533         /gd/gnuorg; don't know where the ultimate source is.
72534
72535 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72536
72537         Fix several address-calculation bugs in the hash modules,
72538         plus some minor code cleanup.
72539
72540         * lib/hash.h: Include <stdbool.h>, for bool.
72541         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72542         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72543         hash_get_n_entries, hash_get_max_bucket_length,
72544         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72545         hash_rehash): Use size_t rather than unsigned.
72546         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72547         hash_get_n_buckets_used, hash_get_n_entries,
72548         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72549         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72550         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72551         Likewise.
72552         (SIZE_MAX): Define if not defined.
72553         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72554         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72555         hash_print):
72556         Use const * when possible.
72557         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72558         (check_tuning): Fix bug: if tuning parameters were very close to
72559         0 or 1, rounding errors could have caused subscript violations.
72560         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72561         (hash_initialize): Add 'fail:' label
72562         to free table and return NULL, and use it to simplify code.
72563         Use calloc rather than clearing the storage ourself.
72564         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72565         buffer size calculations.
72566         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72567         Include <stddef.h>, for size_t.
72568         * lib/hash-pjw.c (hash_pjw): Likewise.
72569         Switch to method described by Bruno Haible.
72570         Include <limits.h>, for CHAR_BIT.
72571         (SIZE_BITS): New macro.
72572
72573 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72574
72575         * m4/getline.m4 (AM_FUNC_GETLINE):
72576         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72577         hosts.  Problem reported by Derek Robert Price in
72578         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72579         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72580         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72581
72582 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72583
72584         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72585         ceiling the allocation at NMAX bytes rather than silently
72586         discarding input bytes before NMAX is reached.  This makes
72587         a difference only if NMAX exceeds SIZE_MAX / 2.
72588
72589         * lib/obstack.c: Merge from glibc.
72590         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72591         Add libc_hidden_def (_obstack_newchunk).
72592         (_obstack_free) [! defined _LIBC]: Remove.
72593         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72594         a clone of the function body.
72595         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72596         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72597
72598         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72599         glibc.
72600         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72601         arg to memcpy.
72602
72603         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72604         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72605         Don't use lvalue casts, as GCC plans to remove support for them
72606         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72607         was also present in the non-GCC version, indicating that this
72608         code had always been buggy and had never been widely used.
72609         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72610         Use the fast variant of each macro, rather than copying the
72611         definiens of the fast variant; that way, we'll be more likely to
72612         catch future bugs in the fast variants.
72613
72614 2003-10-20  Bruno Haible  <bruno@clisp.org>
72615
72616         * modules/wait-process: New file.
72617         * MODULES.html.sh (func_all_modules): Add wait-process.
72618
72619 2003-10-20  Bruno Haible  <bruno@clisp.org>
72620
72621         * m4/wait-process.m4: New file.
72622
72623 2003-10-20  Bruno Haible  <bruno@clisp.org>
72624
72625         * lib/wait-process.h: New file, from GNU gettext.
72626         * lib/wait-process.c: New file, from GNU gettext.
72627
72628 2003-10-19  Jim Meyering  <jim@meyering.net>
72629
72630         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72631         HPUX 10.20.
72632
72633 2003-10-18  Karl Berry  <karl@gnu.org>
72634
72635         * config/config.guess: update from config.
72636
72637 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72638
72639         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72640         (getgroups): First arg is int, not size_t.
72641         Don't let 'free' mangle errno.
72642
72643 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72644
72645         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72646
72647 2003-10-16  Karl Berry  <karl@gnu.org>
72648
72649         * config/config.{guess,sub}: update from config.
72650
72651 2003-10-16  Jim Meyering  <jim@meyering.net>
72652
72653         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72654         memcpy.
72655
72656 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72657
72658         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72659         (SIZE_MAX): Remove.
72660         (new_exclude, add_exclude_file): Initial size no longer needs to
72661         be a power of 2.
72662         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72663         our own address arithmetic overflow checking.
72664
72665         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72666         (fnmatch): Do not alloca more than 2000 wide characters;
72667         instead, use malloc for large buffers.
72668         Check for address arithmetic overflow, and return -1
72669         with errno set to ENOMEM in that case.
72670         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72671         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72672         instead, return -1.  Check for address arithmetic overflow.
72673
72674 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72675
72676         Handle invalid suffixes and overflow independently, so that
72677         callers can treat them independently as needed.  Fix some bugs in
72678         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72679         suffix for a human-readable blocksize.  The major caller-visible
72680         change is the addition of a new
72681         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72682         that both overflow and suffix chars were found.
72683
72684         * lib/human.c (humblock): Don't check separately for invalid suffix
72685         char; that is xstrtoumax's job (now that its bug is fixed).
72686         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72687         INTMAX_MAX]: New macros.
72688         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72689         TYPE_MAXIMUM): New macros.
72690         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72691         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72692         if overflow occurs, as it's what __strtol does and it's more useful
72693         in practice.
72694         (__xstrtol): If __strtol reports some error other than ERANGE,
72695         reflect it to the caller as LONGINT_INVALID.  If it reports
72696         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72697         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72698         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72699         value.
72700         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72701         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72702         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72703         [defined UINTMAX_MAX]: New macros.
72704
72705 2003-10-14  Bruno Haible  <bruno@clisp.org>
72706
72707         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72708
72709 2003-10-14  Bruno Haible  <bruno@clisp.org>
72710
72711         * m4/sig_atomic_t: New file, from GNU gettext.
72712         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72713
72714 2003-10-14  Bruno Haible  <bruno@clisp.org>
72715
72716         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72717         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72718         Also use volatile where needed.
72719
72720 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72721
72722         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72723         Change maintainer from Bruno Haible to 'all'.
72724
72725 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72726
72727         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72728
72729 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72730
72731         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72732         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72733         and define in terms of the other primitives.
72734         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72735         (SIZE_MAX): Define if not already defined.
72736         (array_size_overflow): New function.
72737         (xalloc_die): Abort instead of exiting if 'error' returns.
72738         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72739         (xmalloc, xrealloc): Use them.
72740         (xcalloc): Check for address arithmetic overflow.
72741         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72742         a bit faster than strcpy.
72743
72744 2003-10-10  Simon Josefsson  <jas@extundo.com>
72745
72746         * modules/argp (Depends-on): Add restrict and strcase.
72747
72748 2003-10-10  Simon Josefsson  <jas@extundo.com>
72749
72750         * m4/argp.m4: Add AC_C_INLINE.
72751
72752 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72753
72754         Merge getpass from libc, plus a few fixes.
72755
72756         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72757         Include <stdbool.h>.
72758         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72759         __fsetlocking to empty.
72760         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72761         do include <bits/libc-lock.h>.
72762         Do not include <fcntl.h>; not needed.
72763         [_LIBC]: Include <wchar.h>.
72764         (NOTCANCEL_MODE): New macro.
72765         (flockfile, funlockfile) [_LIBC]: New macros.
72766         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72767         [!_LIBC]: New macros.
72768         (call_fclose): New function.
72769         (getpass): Use it.  Save tty stream separately; this simplifies the
72770         code and makes it more reliable if stdin happens to equal stdout.
72771         Invoke __fsetlocking on tty.
72772         Handle thread cancellation if needed.
72773         Namespace cleanup (use __tcgetattr, __getline).
72774         Use bool for Booleans.
72775         [USE_IN_LIBIO]: Handle wide streams.
72776         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72777         stream might go where.
72778
72779         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72780         doesn't have to include <stdio.h> before us.
72781         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72782         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72783         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72784         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72785         if not declared, so that we can use getpass.c code from libc without
72786         rewriting it.
72787         (flockfile, ftrylockfile, funlockfile): New macros.
72788
72789 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72790
72791         * modules/getpass: Depend on stdbool.
72792
72793 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72794
72795         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72796
72797 2003-10-07  Karl Berry  <karl@gnu.org>
72798
72799         * config/config.{guess,sub}: update from config.
72800
72801 2003-10-06  Jim Meyering  <jim@meyering.net>
72802             Bruno Haible  <bruno@clisp.org>
72803
72804         This lets translators provide better translations for the
72805         "Written by ..." part of --version output.
72806         * lib/version-etc.h: Include stdarg.h.
72807         (version_etc_copyright): Declare as readonly.
72808         (version_etc): Make this function variadic with a NULL-terminated list
72809         of author name strings.
72810         (version_etc_va): New declaration.
72811         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72812         (version_etc_copyright): Declare as readonly.
72813         (version_etc_va): New function. Provide a different translatable string
72814         for each possible number of authors < 10. Abbreviate when there are 10
72815         authors or more.
72816         (version_etc): Make this function variadic. Call version_etc_va.
72817         Suggestion from Gary V. Vaughan.
72818
72819         * lib/long-options.h (parse_long_options): Change prototype: the
72820         authors string is moved to the end and becomes variadic.
72821         * lib/long-options.c: Include stdarg.h.
72822         (parse_long_options): Make this function variadic, too.
72823         Call version_etc_va, not version_etc.
72824
72825 2003-10-06  Bruno Haible  <bruno@clisp.org>
72826
72827         * modules/version-etc-2: Remove file.
72828         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72829
72830 2003-10-06  Bruno Haible  <bruno@clisp.org>
72831
72832         * modules/fatal-signal: New file.
72833         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72834
72835 2003-10-06  Bruno Haible  <bruno@clisp.org>
72836
72837         * m4/fatal-signal.m4: New file.
72838         * m4/signalblocking.m4: New file, from GNU gettext.
72839
72840 2003-10-06  Bruno Haible  <bruno@clisp.org>
72841
72842         * lib/version-etc-2.h: Remove file.
72843         * lib/version-etc-2.c: Remove file.
72844
72845 2003-10-06  Bruno Haible  <bruno@clisp.org>
72846
72847         * lib/fatal-signal.h: New file, from GNU gettext.
72848         * lib/fatal-signal.c: New file, from GNU gettext.
72849
72850 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72851
72852         * README: Rework advice for preventing empty .o files.
72853         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72854         not <sys/types.h>.
72855
72856 2003-10-04  Karl Berry  <karl@gnu.org>
72857
72858         * lib/argp*: update from libc.
72859
72860 2003-10-04  Karl Berry  <karl@gnu.org>
72861
72862         * config/config.{guess,sub}: update from config.
72863
72864 2003-10-02  Bruno Haible  <bruno@clisp.org>
72865
72866         * modules/lchown (Include): Add lchown.h.
72867         * modules/time_r (Include): Use "..." syntax.
72868         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72869
72870 2003-10-01  Simon Josefsson  <jas@extundo.com>
72871
72872         * MODULES.html.sh (func_all_modules): Move gethostname from section
72873         'based on' to section 'lacking' POSIX:2001.
72874
72875 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72876
72877         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72878         to output mode on the same stream.
72879
72880 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72881
72882         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72883         Fix arg typo in previous patch.
72884
72885 2003-09-28  Jim Meyering  <jim@meyering.net>
72886
72887         * lib/error.c: Correct cpp indentation.
72888
72889 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72890
72891         * modules/free: New file.
72892
72893 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72894
72895         * m4/free.m4: New file.
72896
72897 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72898
72899         * lib/minmax.h (MIN, MAX)
72900         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72901         Omit the special code that used __typeof__, since we worry that
72902         it could be more trouble than it's worth.  See:
72903         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72904         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72905
72906         * lib/free.c: New file.
72907
72908 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72909
72910         Trivial fixes to Makefile.am parts of module listings.
72911         * modules/strstr: Append strstr.h to lib_SOURCES.
72912         * modules/strcase: Likewise, for strcase.h.
72913
72914 2003-09-27  Karl Berry  <karl@gnu.org>
72915
72916         * config/mkinstalldirs: update from automake.
72917
72918 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72919
72920         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72921         (error_tail): Do not loop, reallocating temporary buffer, since
72922         the output cannot contain more wide characters than the input
72923         contains bytes, the size must be big enough already.  This avoids
72924         one potential size overflow calculation.  Check for size overflow
72925         when calculating temporary buffer size.  Free temporary buffer
72926         when done, if it was allocated with malloc; this plugs a memory
72927         leak.  Remove casts from void * to pointers, that are no longer
72928         needed now that we're assuming C89 or better.
72929
72930         Merge error changes from glibc.
72931
72932         * lib/error.c, error.h: Update copyright notice header to match glibc.
72933         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72934         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72935         Disable cancellation while printing error.
72936         * lib/error.h: Prepend __ to parameter names.
72937
72938 2003-09-26  Jim Meyering  <jim@meyering.net>
72939
72940         * lib/error.c (error_tail): Move some declarations
72941         into inner scope where the local variables are used.
72942
72943 2003-09-26  Bruno Haible  <bruno@clisp.org>
72944
72945         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72946         stpncpy().
72947         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72948
72949 2003-09-26  Bruno Haible  <bruno@clisp.org>
72950
72951         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72952         (stpncpy): Define as alias for gnu_stpncpy.
72953         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72954
72955 2003-09-25  Simon Josefsson  <jas@extundo.com>
72956
72957         * lib/xgetdomainname.h: New file.
72958         * lib/xgetdomainname.c: New file.
72959
72960 2003-09-25  Simon Josefsson  <jas@extundo.com>
72961             Bruno Haible  <bruno@clisp.org>
72962
72963         * modules/getdomainname: New file.
72964         * modules/xgetdomainname: New file.
72965         * MODULES.html.sh (func_all_modules): Add getdomainname,
72966         xgetdomainname.
72967
72968 2003-09-25  Simon Josefsson  <jas@extundo.com>
72969             Bruno Haible  <bruno@clisp.org>
72970
72971         * m4/getdomainname.m4: New file.
72972
72973 2003-09-25  Simon Josefsson  <jas@extundo.com>
72974             Bruno Haible  <bruno@clisp.org>
72975
72976         * lib/getdomainname.h: New file.
72977         * lib/getdomainname.c: New file.
72978
72979 2003-09-25  Karl Berry  <karl@gnu.org>
72980
72981         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72982
72983 2003-09-25  Karl Berry  <karl@gnu.org>
72984
72985         * config/install-sh: update from automake.
72986
72987 2003-09-25  Bruno Haible  <bruno@clisp.org>
72988
72989         * modules/version-etc-2: New file, from modules/version-etc with
72990         modifications.
72991         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72992
72993 2003-09-25  Bruno Haible  <bruno@clisp.org>
72994
72995         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72996         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72997
72998 2003-09-24  Simon Josefsson  <jas@extundo.com>
72999
73000         * modules/xgethostname: Add xgethostname.h.
73001
73002 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73003
73004         * lib/linebuffer.c (freebuffer): Don't free the argument, just
73005         the buffer associated with the argument.  Bug reported by
73006         Simon Josefsson.
73007
73008 2003-09-24  Paul Eggert  <eggert@twinsun.com>
73009
73010         * README: Document assumptions that 'int' is at least 32 bits
73011         wide, that integer arithmetic is 2's complement without overflow,
73012         that there are no holes in integer values, that adding sizes of
73013         two nonoverlapping objects can't overflow, and that all-bits-zero
73014         yields scalar zero.  Fix spelling and capitalization typos.
73015
73016 2003-09-19  Karl Berry  <karl@gnu.org>
73017
73018         * lib/argp.h: update from libc.
73019
73020 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73021
73022         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
73023         to avoid spurious warnings like "AC_RUN_IFELSE was called before
73024         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
73025
73026 2003-09-17  Paul Eggert  <eggert@twinsun.com>
73027
73028         * gnulib-tool: Use "test -h", not "test -L", for portability
73029         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
73030         (tags_regexp): Remove, since \| doesn't conform to POSIX.
73031         (sed_extract_prog): Issue s commands one-by-one, rather than
73032         using \| in one s command.
73033
73034 2003-09-16  Paul Eggert  <eggert@twinsun.com>
73035
73036         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
73037         input error, instead of returning NULL the next time we are called
73038         (and therefore losing track of errno).
73039
73040 2003-09-16  Bruno Haible  <bruno@clisp.org>
73041
73042         * gnulib-tool (func_create_testdir): Warn about duplicated
73043         dependencies.
73044
73045 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73046
73047         * modules/argmatch, modules/fatal, modules/obstack,
73048         modules/xalloc, modules/xgethostname: Sort dependencies by
73049         importance, not alphabetically.
73050
73051 2003-09-15  Paul Eggert  <eggert@twinsun.com>
73052
73053         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
73054         fails, so that the caller gets the proper errno.
73055
73056         * lib/readutmp.c (read_utmp): Likewise.
73057         Check for fstat error.  Close stream and free storage
73058         when failing.
73059
73060 2003-09-14  Karl Berry  <karl@gnu.org>
73061
73062         * config/srclist.txt (strdup.c): disable for c89 changes.
73063
73064 2003-09-14  Jim Meyering  <jim@meyering.net>
73065
73066         * lib/getloadavg.c: Correct cpp indentation.
73067         * lib/strdup.c: Likewise.
73068         * lib/vasnprintf.c: Likewise.
73069
73070 2003-09-14  Bruno Haible  <bruno@clisp.org>
73071
73072         * modules/fwriteerror: New file.
73073         * MODULES.html.sh (func_all_modules): Add fwriteerror.
73074
73075 2003-09-14  Bruno Haible  <bruno@clisp.org>
73076
73077         * lib/fwriteerror.h: New file.
73078         * lib/fwriteerror.c: New file.
73079
73080 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73081
73082         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
73083         modules/xgethostname, modules/xalloc: Depend on exit.
73084
73085 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73086
73087         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
73088
73089         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
73090         and AC_MINIX, too, so that their extensions are available.
73091
73092         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
73093         This macro has been superseded by gl_BACKUPFILE.
73094
73095         More patches to assume C89 or better.
73096
73097         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
73098
73099         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
73100         unconditionally.
73101         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
73102         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
73103         Include <string.h>, <stdlib.h> unconditionally.
73104         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
73105         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
73106         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
73107         headers or for string.h.
73108         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
73109         or strtoul.
73110
73111         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
73112         headers.
73113         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
73114         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73115         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
73116         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
73117         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73118         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
73119         memcpy, memset.
73120         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
73121         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
73122         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
73123         strtol.
73124         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
73125         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
73126         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
73127         strtoul.
73128
73129 2003-09-12  Paul Eggert  <eggert@twinsun.com>
73130
73131         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
73132         * lib/obstack.c [!defined _LIBC]: Likewise.
73133         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
73134         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
73135         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
73136
73137         More changes to assume C89 or better.
73138
73139         * lib/error.c (error_tail): Assume vprintf.
73140
73141         * lib/argmatch.c (getenv): Remove decl.
73142         * lib/progreloc.c (get_full_program_name): Define via prototype.
73143         * lib/setenv.c (clearenv): Likewise.
73144         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
73145         needed.
73146         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
73147         (malloc, memcpy): Remove decls.
73148         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
73149         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
73150         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73151         (memcpy): Remove macro.
73152         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
73153         (__P): Remove.  All uses removed.
73154         (PTR): Remove.  All uses changed to void *.
73155         (CHAR_BIT, NULL): Remove.
73156         (spaces, zeros, memset_space, memset_zero)
73157         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
73158         Remove.
73159         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
73160         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
73161         Define with prototype.
73162         Remove now-unnecessary prototype decl.
73163         (extra_args_spec): Assume ANSI C.  All uses changed.
73164         (extra_args_spec_iso): Remove.
73165         (my_strftime, emacs_strftimeu): Define via prototype.
73166         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
73167         unconditionally.
73168         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
73169         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
73170         (strtoul, strtol): Remove decls.
73171         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
73172         LONG_MAX): Remove.
73173         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
73174         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
73175         (LOCALE_PARAM_PROTO): New macro.
73176         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
73177         (INTERNAL (strtol), strtol): Define with a prototype.
73178         (PARAMS): Remove.  All uses removed.
73179         * lib/tempname.c: Include <string.h> unconditionally.
73180         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
73181         * lib/xgethostname.c (main): Define with a prototype.
73182         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
73183         Include <stdlib.h> unconditionally.
73184         (calloc, malloc, realloc, free): Remove decls.
73185         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
73186         Include <stdlib.h> unconditionally.  Sort include file names.
73187         (strtod): Remove.
73188         (xstrtod): Define with a prototype.
73189         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
73190         (strtol, strtoul): Remove decls.
73191
73192 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73193
73194         More patches to assume C89 or better.
73195         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
73196         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
73197         string.h, memchr, STDC_HEADERS.
73198
73199 2003-09-11  Paul Eggert  <eggert@twinsun.com>
73200
73201         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
73202         Include <stdlib.h>, <string.h> unconditionally.
73203         Remove now-unnecessary cast to char *.
73204         * lib/strnlen.c: Include <string.h> unconditionally.
73205         * lib/yesno.c (yesno): Define with a prototype.
73206
73207 2003-09-11  Bruno Haible  <bruno@clisp.org>
73208
73209         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
73210
73211 2003-09-10  Jim Meyering  <jim@meyering.net>
73212
73213         * lib/error.c: Correct indentation of cpp directives.
73214
73215 2003-09-10  Bruno Haible  <bruno@clisp.org>
73216
73217         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73218         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73219         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73220         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73221         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73222         <stdlib.h> and <string.h> checks.
73223         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73224         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73225
73226 2003-09-10  Bruno Haible  <bruno@clisp.org>
73227
73228         * lib/strcspn.c: Include <string.h> unconditionally.
73229         * lib/strpbrk.c: Include <string.h> unconditionally.
73230         * lib/strstr.c: Include <string.h> unconditionally.
73231         * lib/unicodeio.c: Include <string.h> unconditionally.
73232         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73233         * lib/unsetenv.c: Likewise.
73234         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73235         * lib/yesno.c: Include <stdlib.h> unconditionally.
73236         (rpmatch): Add prototype.
73237
73238 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73239
73240         More patches to assume C89 or better.
73241         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73242         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73243         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73244         or for string.h.
73245         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73246         stdlib.h.
73247         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73248         C headers.
73249         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73250         string.h.
73251         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73252         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73253         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73254         or for string.h.
73255         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73256         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73257         C headers.
73258         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73259         memcpy.
73260         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73261         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73262         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73263         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73264         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73265         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73266         string.h, free.
73267         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73268         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73269         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73270         C headers, or for string.h.
73271         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73272         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73273         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73274         headers, memory.h, stdlib.h, string.h, strings.h.
73275         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73276         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73277         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73278         strchr.
73279         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73280         headers, memory.h, string.h.
73281         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73282         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73283         free.
73284         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73285         headers.
73286         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73287         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73288         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73289         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73290         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73291
73292 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73293
73294         More K&R removal.
73295
73296         * lib/acosl.c (main): Use a prototype.
73297         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73298         tanl.c: Likewise.
73299
73300         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73301
73302         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73303         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73304         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73305         with a prototype.
73306         * lib/getopt.c (const): Remove macro.
73307         Include <string.h> unconditionally.
73308         (my_index): Remove; all uses changed to strchr.
73309         (strlen): Remove decl.
73310         (exchange): Remove forward decl; no longer needed.
73311         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73312         Define with prototype.
73313         * lib/getopt1.c (const): Remove macro.
73314         (getopt_long, getopt_long_only, main): Define with prototype.
73315
73316         * lib/getugroups.c: Include <string.h> unconditionally.
73317
73318         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73319         (getusershell, setusershell, endusershell, readname, main):
73320         Define with prototypes.
73321
73322         * lib/group-member.c: Include group-member.h first.
73323         Include <stdlib.h> unconditionally.
73324
73325         * lib/hard-locale.c: Include hard-locale.h first.
73326         Include <stdlib.h>, <string.h> unconditionally.
73327
73328         * lib/hash.c (free, malloc): Remove decls.
73329         Include <stdlib.h> unconditionally.
73330
73331         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73332         (getenv): Do not declare.
73333
73334         * lib/idcache.c: Include <string.h> unconditionally.
73335
73336         * lib/long-options.c: Include long-options.h first, to test interface.
73337         Include <stdlib.h> unconditionally.
73338
73339         * lib/makepath.c: Include makepath.h first, to test interface.
73340         Include <stdlib.h> and <string.h> unconditionally.
73341
73342         * lib/linebuffer.c: Include <stdlib.h>.
73343         (free): Remove decl.
73344
73345         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73346         stddef.h. rpl_malloc returns void *, not char *.
73347         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73348         prototype.
73349
73350         * lib/md5.h: Include <limits.h> unconditionally.
73351         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73352         (__P): Remove; all uses removed.
73353         * lib/md5.c: Include "md5.h" first.
73354         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73355         md5_buffer, md5_process_bytes, md5_process_block):
73356         Define with prototypes.
73357         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73358         * lib/sha.c: Include "sha.h" first.
73359         Include <stdlib.h>, <string.h> unconditionally.
73360
73361         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73362         * lib/memcmp.c (__ptr_t): Likewise.
73363         * lib/memrchr.c (__ptr_t): Likewise.
73364         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73365         Include <string.h> unconditionally.
73366         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73367         * lib/memchr.c: Include <stdlib.h> unconditionally.
73368         * lib/memchr.c (LONG_MAX): Remove.
73369         * lib/memrchr.c (LONG_MAX): Likewise.
73370         * lib/memchr.c (__memchr): Define via a prototype.
73371         * lib/memrchr.c (__memrchr): Likewise.
73372         * lib/memcmp.c (__P): Remove, and remove all uses.
73373         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73374         Remove forward decls; no longer needed.
73375         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73376         Use types required by C89 in prototype.
73377
73378         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73379         * lib/savedir.c: Likewise.
73380         * lib/mkdir.c (free): Remove decl.
73381         * lib/rmdir.c (rmdir): Define with a prototype.
73382         * lib/savedir.c: Include savedir.h first, to test interface.
73383
73384         * lib/mktime.c (STDC_HEADERS): Remove.
73385         Include <stdlib.h>, <string.h> unconditionally.
73386
73387         * lib/modechange.c: Include <stdlib.h> unconditionally.
73388         (malloc): Remove decl.
73389
73390         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73391         (free): Remove decl.
73392
73393         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73394         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73395         (This type really should be intptr_t, but that's a C99ism.)
73396         (_obstack_memcpy): Remove: all uses changed to memcpy.
73397         Include <string.h> unconditionally.
73398         (struct obstack): Assume __STDC__ for types of members
73399         chunkfun, freefun, extra_arg.
73400         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73401         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73402         obstack_begin, obstack_specify_allocation,
73403         obstack_specify_allocation_with_arg, obstack_chunkfun,
73404         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73405         Remove unprototyped decls and the macros that use them.
73406         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73407         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73408         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73409         (defined __STDC__ && __STDC__)]:
73410         Remove nonprototyped code.
73411         Include <stdlib.h> unconditionally.
73412         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73413         _obstack_allocated_p, _obstack_free, obstack_free,
73414         _obstack_memory_used, print_and_abort):
73415         Define using prototypes.
73416         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73417         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73418         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73419         obstack_next_free, obstack_object_size, obstack_room) [0]:
73420         Remove unused, unprototyped code.
73421
73422         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73423
73424         * lib/physmem.c (physmem_total, physmem_available, main): Define
73425         with prototypes.
73426
73427         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73428         (main): Define with a prototype.
73429
73430         * lib/posixver.c (getenv): Remove decl.
73431
73432         * lib/putenv.c (malloc): Returns void *, not char *.
73433         Include <string.h> unconditionally.
73434         (strchr, memcpy, NULL): Do not define.
73435
73436         * lib/readtokens.c: Include readtokens.h first, to test interface.
73437         Include <stdlib.h>, <string.h> unconditionally.
73438         (init_tokenbuffer): Define with a prototype.
73439
73440         * lib/regex.c (PARAMS): Remove.  All uses removed.
73441         All uses of _RE_ARGS removed, too.
73442         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73443         unconditionally.
73444         (bzero): Assume memset exists.
73445         (memcmp, memcpy, NULL): Remove.
73446         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73447         char, or assignments to local vars of type signed char.
73448         (init_syntax_once, PREFIX(extract_number_and_incr),
73449         PREFIX(print_partial_compiled_pattern),
73450         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73451         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73452         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73453         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73454         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73455         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73456         wcs_compile_range, byte_compile_range, truncate_wchar,
73457         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73458         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73459         count_mbs_length, wcs_re_match_2_internal,
73460         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73461         PREFIX(alt_match_null_string_p),
73462         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73463         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73464         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73465         now-unnecessary declaration, if any.
73466         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73467         regcomp, regexec):
73468         Remove now-unnecessary casts among pointer types.
73469         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73470
73471         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73472         (free): Remove decl.
73473
73474         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73475
73476         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73477         (free): Remove decl.
73478
73479         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73480         * lib/xgetcwd.c: Likewise.
73481
73482         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73483         (free): Remove decl.
73484
73485         * lib/strchrnul.c (strchrnul): Define with a prototype.
73486         Fix bug: c_in was not converted to char before searching.
73487
73488         The following changes are not K&R related:
73489
73490         * lib/group-member.h: Include <sys/types.h>, so that this file is
73491         self-contained.
73492         * lib/makepath.h: Likewise.
73493
73494         * lib/getusershell.c (readname, default_index, line_size, readname):
73495         Use size_t, not int, for sizes.
73496         (readname): If the size overflows, report an error instead of
73497         looping forever.
73498
73499 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73500
73501         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73502         libc.
73503
73504 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73505
73506         * README: New section: portability guidelines.
73507
73508 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73509
73510         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73511         C89 spec.
73512
73513 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73514
73515         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73516
73517 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73518
73519         Assume C89 or better; remove K&R cruft.
73520         A few of these changes were first proposed by Derek Robert Price
73521         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73522
73523         * lib/addext.c: Include <string.h> unconditionally.
73524         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73525         Don't declare getenv or malloc.
73526
73527         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73528         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73529         (NULL): Remove.
73530         (find_stack_direction, alloca): Use prototypes.
73531
73532         * lib/atexit.c (atexit): Define using a prototype.
73533
73534         * lib/basename.c, dirname.c, stripslash.c:
73535         Include <string.h> unconditionally.
73536
73537         * lib/bcopy.c: Include <stddef.h>.
73538         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73539
73540         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73541
73542         * lib/error.h (error, error_at_line, error_print_progname)
73543         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73544         * lib/error.c: Include error.h first, to check interface.
73545         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73546         (VA_START): Remove; all uses changeed to va_start.
73547         (exit, strerror): Remove decls.
73548         (error_print_progname): Prototype uncondionally.
73549         Don't include <errno.h>; no longer needed.
73550         (private_strerror): Remove.
73551         (error_tail): Always define.
73552         (error, error_at_line): Assume C89 or better; always use prototypes.
73553         * lib/fatal.c: Include "fatal.h" first, to test interface.
73554         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73555         (VA_START): Remove; all uses changed to va_start.
73556         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73557         this case.
73558         (exit): Remove decl.
73559         (fatal): Prototype unconditionally.  Assume va_start works.
73560         Abort at end, to pacify gcc.
73561
73562         * lib/euidaccess.c (main): Define with a prototype.
73563
73564         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73565
73566         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73567
73568         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73569         prototypes.
73570         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73571         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73572         (getenv): Remove decl.
73573         (fnmatch): Define using a prototype.
73574         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73575         (FCT): Define using a prototype.
73576
73577         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73578
73579         * lib/gethostname.c: Include <stddef.h>.
73580         (gethostname): Define with prototype.  Length is size_t, not int.
73581
73582 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73583
73584         Assume C89 or better; remove K&R cruft.
73585         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73586         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73587         string.h, getenv, malloc.
73588         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73589         headers.
73590         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73591         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73592         do not check for strerror.
73593         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73594         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73595         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73596         do not check for doprnt or vprintf.
73597         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73598         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73599
73600 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73601
73602         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73603         getversion.c should have been removed then, but was accidentally
73604         preserved.
73605
73606         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73607         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73608
73609 2003-09-08  Karl Berry  <karl@gnu.org>
73610
73611         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73612                 config, forget about prep.
73613
73614         * config/depcomp, missing: update from automake.
73615
73616 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73617
73618         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73619         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73620
73621 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73622
73623         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73624         copy_tm_result.  Bug reported by Simon Josefsson in
73625         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73626
73627 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73628
73629         * m4/time_r.m4: New file.
73630         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73631         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73632         is. Check for timegm declaration.
73633         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73634         Do not check for gmtime_r.
73635         Replace mktime if __mktime_internal does not exist and if mktime
73636         hasn't been replaced already.
73637
73638 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73639
73640         * lib/time_r.c, lib/time_r.h: New files.
73641
73642         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73643         __localtime_r.
73644         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73645         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73646
73647         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73648         __gmtime_r.
73649         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73650         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73651         Include <time_r.h>.
73652
73653         * lib/timegm.c: Switch to glibc implementation, with the following
73654         changes:
73655         [defined HAVE_CONFIG_H]: Include <config.h>.
73656         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73657         (__mktime_internal) [!defined _LIBC]: New decl.
73658         (__gmtime_r) [!defined _LIBC]: New macro and function.
73659         (timegm): Use a prototype, since gnulib assumes C89.
73660         Do not bother declaring tmp to be const, as it's not really usefu.
73661         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73662         (timegm): Declare only if HAVE_DECL_TIMEGM.
73663
73664 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73665
73666         * MODULES.html.sh (func_all_modules): Add time_r.
73667         * modules/time_r: New file.
73668         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73669         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73670
73671 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73672
73673         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73674         Bug reported by Lute Kamstra in
73675         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73676
73677         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73678         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73679         course with correspondingly smaller numbers for tomorrow and
73680         yesterday.  From Tadayoshi Funaba.  Originally installed into
73681         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73682         coreutils merge?).
73683
73684 2003-08-31  Simon Josefsson  <jas@extundo.com>
73685
73686         * modules/timegm: New file.
73687         * MODULES.html.sh (func_all_modules): Add timegm.
73688
73689 2003-08-31  Simon Josefsson  <jas@extundo.com>
73690
73691         * m4/timegm.m4: New file.
73692
73693 2003-08-31  Simon Josefsson  <jas@extundo.com>
73694
73695         * lib/timegm.h: New file.
73696         * lib/timegm.c: New file.  Based on
73697         wget-1.8.2/src/http.c:mktime_from_utc.
73698
73699 2003-08-31  Karl Berry  <karl@gnu.org>
73700
73701         * lib/argp.h: update from libc.
73702
73703 2003-08-28  Bruno Haible  <bruno@clisp.org>
73704
73705         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73706         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73707         followed by '#define fnmatch fnmatch_posix' gives an error.
73708
73709 2003-08-28  Bruno Haible  <bruno@clisp.org>
73710
73711         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73712         warning on QNX, which defines O_BINARY to 000000.
73713
73714 2003-08-27  Jim Meyering  <jim@meyering.net>
73715
73716         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73717         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73718         would fail after 32.  Reported by Danny Levinson.  Details here:
73719         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73720
73721 2003-08-24  Bruno Haible  <bruno@clisp.org>
73722
73723         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73724         MSVC7 <stdio.h> is included later.
73725
73726 2003-08-22  Simon Josefsson  <jas@extundo.com>
73727
73728         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73729
73730 2003-08-20  Karl Berry  <karl@gnu.org>
73731
73732         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73733
73734 2003-08-20  Bruno Haible  <bruno@clisp.org>
73735
73736         * modules/progname: New file.
73737         * MODULES.html.sh (func_all_modules): Add progname.
73738
73739 2003-08-20  Bruno Haible  <bruno@clisp.org>
73740
73741         * lib/progname.h: New file, from GNU gettext.
73742         * lib/progname.c: New file, from GNU gettext.
73743         * lib/progreloc.c: New file, from GNU gettext.
73744
73745 2003-08-19  Jim Meyering  <jim@meyering.net>
73746
73747         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73748         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73749
73750 2003-08-19  Bruno Haible  <bruno@clisp.org>
73751
73752         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73753         more.
73754
73755 2003-08-19  Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/xstrdup.c: Assume <string.h> exists.
73758
73759 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73760
73761         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73762         in makefile rules.
73763
73764 2003-08-18  Jim Meyering  <jim@meyering.net>
73765
73766         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73767         * m4/lib-ld.m4: Likewise.
73768
73769 2003-08-18  Jim Meyering  <jim@meyering.net>
73770
73771         * lib/setenv.h: Indent nested cpp directive.
73772         * lib/vasnprintf.c: Remove trailing blanks.
73773
73774 2003-08-17  Simon Josefsson  <jas@extundo.com>
73775
73776         * modules/xstrndup: New file.
73777         * MODULES.html.sh (func_all_modules): Add xstrndup.
73778
73779 2003-08-17  Simon Josefsson  <jas@extundo.com>
73780
73781         * modules/argp: Fix autoconf macro name. Add more dependencies.
73782
73783 2003-08-17  Simon Josefsson  <jas@extundo.com>
73784
73785         * m4/xstrndup.m4: New file.
73786
73787 2003-08-17  Simon Josefsson  <jas@extundo.com>
73788
73789         * m4/argp.m4: New file.
73790
73791 2003-08-17  Simon Josefsson  <jas@extundo.com>
73792             Bruno Haible  <bruno@clisp.org>
73793
73794         * lib/xstrndup.h: New file.
73795         * lib/xstrndup.c: New file.
73796
73797 2003-08-17  Bruno Haible  <bruno@clisp.org>
73798
73799         * modules/strndup (Files, Include): Add lib/strndup.h.
73800
73801 2003-08-17  Bruno Haible  <bruno@clisp.org>
73802
73803         * modules/euidaccess (Files): Add lib/euidaccess.h.
73804
73805 2003-08-17  Bruno Haible  <bruno@clisp.org>
73806
73807         * lib/strndup.h: New file.
73808
73809 2003-08-17  Bruno Haible  <bruno@clisp.org>
73810
73811         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73812         like AC_GNU_SOURCE.
73813         * modules/extensions (configure.ac): Comment out the invocation of
73814         gl_USE_SYSTEM_EXTENSIONS.
73815
73816 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73817
73818         Merges from coreutils, etc.
73819         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73820         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73821         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73822         fixing a typo.
73823         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73824         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73825
73826 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73827
73828         Document merge from coreutils.
73829         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73830         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73831         * modules/utime: Add m4/utimes-null.m4.
73832
73833 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73834
73835         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73836         space, undoing this 2003-08-12 change:
73837         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73838
73839 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73840
73841         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73842         strtoul.c from libc, undoing this 2003-08-12 change:
73843         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73844
73845 2003-08-16  Jim Meyering  <jim@meyering.net>
73846
73847         Merges from coreutils.
73848         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73849         prefix.  Adjust cache variables similarly.  Create 500 rather than
73850         just 300 files, to exercise bug on Darwin6.5, too.
73851         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73852         $missing_dir.
73853         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73854         AM_SYS_POSIX_TERMIOS.
73855         Reported by mkc@mathdogs.com.
73856         Also change use of $am_cv_sys_posix_termios
73857         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73858         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73859         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73860         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73861         in /proc/mounts until it finds one with matching device number.  This
73862         is unnecessary when the FILE argument *is* a mount point.  No stat call
73863         is necessary in that case.  So, disable the statvfs-testing code on
73864         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73865         as RedHat bug# 84846.
73866         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73867         to 1MB, so as not to render systems with no stack size limit (e.g.,
73868         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73869         Include <unistd.h>.  On some systems,
73870         it is required for the definition of _SC_PAGESIZE.
73871
73872 2003-08-16  Jim Meyering  <jim@meyering.net>
73873
73874         Merge from coreutils.
73875         * lib/xstrtoimax.c: #else #if -> #elif.
73876         * lib/xstrtoumax.c: Likewise.
73877
73878 2003-08-16  Jim Meyering  <jim@meyering.net>
73879
73880         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73881         * m4/utimes.m4: Removed.
73882         * m4/utimes-null.m4: Renamed from utimes.m4.
73883
73884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73885         to 1MB, so as not to render systems with no stack size limit (e.g.,
73886         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73887         Include <unistd.h>.  On some systems,
73888         it is required for the definition of _SC_PAGESIZE.
73889
73890 2003-08-16  Jim Meyering  <jim@meyering.net>
73891         and Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         Merges from coreutils, etc.
73894
73895         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73896         using the latest version from cvs.  This avoids problems with #line
73897         directives using a vendor (Sun) compiler.
73898         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73899         Don't set GETGROUPS_LIB here; now it's
73900         done via getgroups.m4's wrapper function.
73901         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73902         rather than just in sh-util/configure.in, so that the
73903         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73904         same.
73905         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73906         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73907         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73908         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73909         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73910         Remove code that is now done by the newly-required macros.
73911         Append $(EXEEXT) to DF_PROG.
73912         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73913         Do not invoke or require the following here,
73914         since prereq.m4 or some gnulib .m4 now does this for us:
73915         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73916         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73917         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73918         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73919         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73920         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73921         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73922         AC_FUNC_OBSTACK.
73923         Do not replace the following functions, as this is now the job
73924         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73925         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73926         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73927         atexit getpass, strdup, getpagesize.
73928         Replace 'raise'.
73929         Do not check for the following functions, as this is now the job
73930         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73931         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73932         setregid.
73933         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73934         Check for sys/sysctl.h.
73935         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73936         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73937         of checking for ssize_t ourselves.
73938
73939         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73940         Require every macro that gnulib/modules/* suggests for us.
73941         (jm_PREREQ_ADDEXT): New macro.
73942         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73943         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73944
73945         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73946         (gl_PHYSMEM): Use it.
73947         Also check for `table' function.
73948         Check for new headers and functions.
73949         Add check for sys/sysmp.h.
73950         With suggestions from Kaveh Ghazi.
73951         Ignore headers that are present but cannot be compiled.  This
73952         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73953         C 5.4.
73954
73955 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73956
73957         Document merge from coreutils.
73958         * modules/userspec: Depend on posixver.
73959         * modules/strftime: Depend on tzset.
73960
73961 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73962
73963         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73964         rather than tab, after '#' in shell-script copyright notices.
73965         Suggested by Bruno Haible.
73966
73967 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73968
73969         * config/srclist-update: Use three spaces, rather than tab, after '#'
73970         in shell-script copyright notices.  Suggested by Bruno Haible.
73971         Remove unnecessary parenthesization in regular expression.
73972
73973 2003-08-15  Jim Meyering  <jim@meyering.net>
73974
73975         Merge from coreutils.
73976         * lib/xgethostname.c: Include <stdlib.h>.
73977         (xghostname): Don't exit for anything other than memory-related
73978         failure; just return NULL.
73979         * lib/userspec.c: Include "posixver.h".
73980         (parse_user_spec): Accept `.' as a separator only
73981         in pre-POSIX-200112 mode.
73982         * lib/strtoimax.c: Use #elif rather than #else #if.
73983         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73984         Remove function, now that we can rely on a working tzset function.
73985         [!_LIBC]: Ensure that the required autoconf test has been run.
73986         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73987         Use underlying_strftime for %r.
73988         * lib/sha.c: Merge in some clean-up and optimization changes from
73989         glibc.
73990         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73991         Ensure that it is a multiple of 64.
73992         Rearrange loop exit tests so as to avoid performing an
73993         additional fread after encountering an error or EOF.
73994         * lib/realloc.c: Update copyright date.
73995
73996 2003-08-15  Jim Meyering  <jim@meyering.net>
73997         and Paul Eggert  <eggert@twinsun.com>
73998
73999         Merge from coreutils.
74000         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
74001         member but strut utmpx does not.  Needed for AIX 4.3.3.
74002         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
74003
74004 2003-08-15  Jim Meyering  <jim@meyering.net>
74005         and Paul Eggert  <eggert@cs.ucla.edu>
74006
74007         Merges from coreutils, etc.
74008         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
74009         Require gl_FUNC_TZSET_CLOBBER.
74010         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
74011         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
74012         members.
74013
74014 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74015
74016         Help the merge from coreutils.
74017         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
74018         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
74019         * m4/tzset.m4: Use it too.
74020
74021 2003-08-14  Paul Eggert  <eggert@twinsun.com>
74022
74023         * modules/tzset: New file.
74024
74025 2003-08-14  Jim Meyering  <jim@meyering.net>
74026
74027         Merges from coreutils.
74028         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
74029         variable names, rather than @FNMATCH_H@.
74030         * modules/alloca: Likewise for $(ALLOCA_H).
74031
74032         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
74033         the three copies of the literal target, `fnmatch.h'.
74034         * modules/alloca (alloca.h): Likewise.
74035
74036 2003-08-14  Jim Meyering  <jim@meyering.net>
74037
74038         Merge from coreutils.
74039         * m4/tzset.m4: New file.
74040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
74041         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
74042         otherwise, AIX 5.1 systems would end up using the latter.
74043         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
74044         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
74045         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
74046         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
74047
74048 2003-08-14  Jim Meyering  <jim@meyering.net>
74049
74050         Merge from coreutils.
74051         * lib/obstack.h: Whitespace changes.
74052         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
74053         and xcalloc return values.
74054         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
74055         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
74056         hang on OSF/1 5.1 for DIR on both local and remote file systems.
74057         Reported by (and fix confirmed by) Nelson H. F. Beebe.
74058         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74059         error from mntctl.
74060         Use mntctl's return value to drive the entry-processing loop, since
74061         we can't rely on the value of the vmt_length member in the last
74062         entry.  On some systems doing so could result in exhausting
74063         virtual memory.  Based in part on a patch from Mike Jetzer.
74064
74065 2003-08-14  Jim Meyering  <jim@meyering.net>
74066         and Paul Eggert  <eggert@twinsun.com>
74067
74068         Merges from coreutils, plus other fixes.
74069         * lib/physmem.c: Merge in portability changes from gcc/libiberty
74070         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
74071         for credits and details.  Thanks to Kaveh Ghazi for helping
74072         to keep these files in sync.
74073         (ARRAY_SIZE): Define it.
74074         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
74075         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
74076         (memcasecmp): Don't assume size_t fits in unsigned int.
74077         Remove casts and duplicate code.
74078         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
74079         (memcpy): Remove definition.
74080         Merge in some clean-up and optimization changes from glibc.
74081         [BLOCKSIZE]: Move definition to top of file.
74082         Ensure that it is a multiple of 64.
74083         Rearrange loop exit tests so as to avoid performing an
74084         additional fread after encountering an error or EOF.
74085         * lib/md5.h (md5_uintptr): Define.
74086         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
74087         return to the initial working directory.  Preserve errno
74088         for caller.
74089         * lib/idcache.c: Include "xalloc.h".
74090         (xmalloc, xrealloc): Remove decls.
74091         (getuser): Remove casts no longer required in C89.
74092         * lib/human.c: Include stdio.h, for sprintf.
74093         * lib/group-member.c: Include "xalloc.h".
74094         (xmalloc, xrealloc): Remove decls.
74095         (get_group_info): Remove casts no longer required in C89.
74096         * lib/getusershell.c (readname): Remove casts no longer required in
74097         C89.
74098         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
74099         * lib/getline.c: Whitespace fix, from coreutils.
74100
74101 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74102
74103         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
74104         Check for isascii.
74105
74106         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74107         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74108         Undo previous (whitespace-only) change.
74109
74110 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74111
74112         * lib/exclude.c: Include <ctype.h>
74113         (IN_CTYPE_DOMAIN): New macro.
74114         (is_space): New fn.
74115         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
74116         and empty lines.
74117
74118         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74119         Undo previous (whitespace-only) change.
74120
74121 2003-08-13  Paul Eggert  <eggert@twinsun.com>
74122
74123         * config/srclist-update: Change update back to the old behavior,
74124         leaving whitespace alone.  Use one 'sed' command rather than a
74125         pipeline.
74126         (fixlicense): Now a variable, not a function.
74127         (remove_trailing_blanks): Remove.
74128         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
74129         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74130         Undo previous (whitespace-only) change.
74131
74132 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74133
74134         Merge from coreutils.
74135         * modules/euidaccess: Add lib_SOURCES, include for new
74136         file euidaccess.h
74137
74138 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74139
74140         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
74141         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
74142         Normalize leading white space and remove trailing white space.
74143
74144         Merge from coreutils
74145         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
74146
74147         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
74148         0.12.1.  These files are now being upgraded automatically by
74149         ../config/srclist-update.
74150
74151 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74152
74153         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
74154         Normalize leading white space and remove trailing white space.
74155         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
74156         notice, as per ../config/srclist-update.
74157
74158         Merge from coreutils.
74159         * lib/euidaccess.h: New file.
74160         * lib/euidaccess.c: Include it.
74161         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
74162         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
74163         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
74164
74165 2003-08-12  Paul Eggert  <eggert@twinsun.com>
74166
74167         * config/srclist-update: Add copyright notice.
74168         (remove_id_lines, remove_trailing_blanks): New constants.
74169         (fixfile): Use them to normalize spacing a bit in copied files.
74170         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
74171         Normalize leading white space and remove trailing white space.
74172
74173         * config/texinfo.tex: Sync with texinfo.
74174
74175         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
74176         strtoul.c from libc, to merge coreutils whitespace changes.
74177
74178         * config/srclist.txt: Get the following m4 files from gettext:
74179         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
74180         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
74181         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
74182         wint_t.m4.
74183
74184 2003-08-12  Karl Berry  <karl@gnu.org>
74185
74186         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
74187         been made.
74188
74189 2003-08-11  Paul Eggert  <eggert@twinsun.com>
74190
74191         * modules/gnu-source, m4/gnu-source.m4:
74192         Remove; we're assuming Autoconf 2.54 or later now.
74193         Suggested by Bruno Haible.
74194         * MODULES.html.sh (func_all_modules): Remove gnu-source.
74195
74196 2003-08-11  Bruno Haible  <bruno@clisp.org>
74197
74198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
74199
74200 2003-08-11  Bruno Haible  <bruno@clisp.org>
74201
74202         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
74203         (vasnprintf): Use it instead of wcslen.
74204
74205 2003-08-11  Bruno Haible  <bruno@clisp.org>
74206
74207         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
74208         value to ensure that _Bool promotes to int. Use #define for _Bool when
74209         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
74210
74211 2003-08-10  Karl Berry  <karl@gnu.org>
74212
74213         * lib/regex.h: update from libc (whitespace fix).
74214
74215 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74216
74217         Merge some files from coreutils.  These changes were
74218         originally made by Jim Meyering.
74219         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74220         many older Unixes require this.
74221         * lib/alloca.c (alloca): Remove cast to argument of free;
74222         no longer needed in C89.
74223         * lib/alloca_.h, regex.h: Fix white space to match
74224         what GNU indent does.
74225
74226 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74227
74228         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74229         apparently Emacs's Unicode mode got confused before my 2003-08-05
74230         checkin.
74231
74232 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74233
74234         * m4/extensions.m4: New file.
74235         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74236         Require gl_USE_SYSTEM_EXTENSIONS.
74237         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74238         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74239
74240 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74241
74242         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74243         * modules/extensions, modules/gnu-source: New files.
74244         * modules/timespec, modules/unlocked-io: Depend on extensions.
74245
74246 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74247
74248         * modules/restrict: New file.
74249         * MODULES.html.sh (func_all_modules): Add restrict.
74250         * modules/regex: Depend on restrict.
74251
74252 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74253
74254         * m4/restrict.m4: New file.
74255         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74256
74257 2003-08-07  Bruno Haible  <bruno@clisp.org>
74258
74259         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74260         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74261
74262 2003-08-07  Bruno Haible  <bruno@clisp.org>
74263
74264         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74265         makes the module 'getndelim2' compatible with the module 'getline'.
74266
74267 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74268
74269         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74270         byte with "\201" to avoid glitches when editing that source file
74271         with multi-gnome-terminal.
74272
74273 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74274
74275         * lib/bumpalloc.h: Remove.
74276
74277 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74278
74279         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74280         * modules/bumpalloc: Remove.
74281
74282 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74283
74284         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74285         GNU coding style.
74286
74287         Merge from coreutils.
74288         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74289         1. From glibc.
74290         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74291         from Karl Berry, implemented by Jim Meyering.
74292         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74293         from Dmitry V. Levin.
74294         Remove anachronistic cast of xrealloc.
74295         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74296         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74297         type. Otherwise, it wouldn't compile with at least /bin/cc on
74298         ymp-cray-unicos9.0.2.X.
74299         Combine two mostly-identical uses of alloca into one.
74300         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74301
74302 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74303
74304         [From Emacs.]
74305
74306         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74307         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74308         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74309         obsolete NLIST_NAME_UNION.
74310         [__GNU__]: Undef BSD and FSCALE.
74311         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74312
74313 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74314
74315         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74316         an enum type, so that it's guaranteed to promote to int.  See:
74317         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74318
74319 2003-08-03  Karl Berry  <karl@gnu.org>
74320
74321         * config/depcomp: update from automake.
74322
74323 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74324
74325         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74326         (strerror): Don't assume that a printable int fits in 14 bytes.
74327
74328 2003-07-31  Bruno Haible  <bruno@clisp.org>
74329
74330         * modules/getpass-gnu: New file.
74331         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74332
74333 2003-07-31  Bruno Haible  <bruno@clisp.org>
74334
74335         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74336
74337 2003-07-24  Karl Berry  <karl@gnu.org>
74338
74339         * config/missing: update from automake.
74340
74341 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74342             Bruno Haible  <bruno@clisp.org>
74343
74344         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74345         * lib/getline.c (getline, getdelim): Likewise.
74346         Remove _GNU_SOURCE define; now it's defined in config.h through
74347         m4/getline.m4.
74348
74349 2003-07-23  Karl Berry  <karl@gnu.org>
74350
74351         * config/config.sub: update from prep.
74352
74353 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74354
74355         * modules/xalloc (Depends-on): Add exitfail.
74356         * modules/xmemcoll: Likewise.
74357
74358 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74359
74360         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74361         over-parenthesization in macros.
74362
74363         Sync with coreutils.
74364
74365         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74366         required by C99.
74367
74368         Use `exit_failure' for xalloc and xmemcoll instead of their own
74369         private exit-failure variables.
74370         * lib/xalloc.h (xalloc_exit_failure): Remove.
74371         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74372         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74373         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74374         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74375         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74376
74377 2003-07-20  Jim Meyering  <jim@meyering.net>
74378
74379         * modules/closeout (Depends-on): Add exitfail.
74380         Suggestion from Bruno Haible.
74381
74382 2003-07-19  Karl Berry  <karl@gnu.org>
74383
74384         * config/config.sub: update from prep.
74385
74386 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74387
74388         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74389         Remove.
74390         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74391         to test that it can stand by itself.  Include "exitfail.h".
74392         Clients should set exit_failure instead.
74393         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74394
74395 2003-07-18  Bruno Haible  <bruno@clisp.org>
74396
74397         * modules/getndelim2: New file.
74398         * modules/getline: Share files with module getndelim2.
74399         * modules/getnline: Depend on getndelim2 instead of sharing files with
74400         it. Add getnline.c to lib_SOURCES.
74401         * MODULES.html.sh (func_all_modules): Add getndelim2.
74402
74403 2003-07-18  Bruno Haible  <bruno@clisp.org>
74404
74405         * m4/getndelim2.m4: New file.
74406         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74407         invoke gl_PREREQ_GETNDELIM2.
74408         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74409         gl_PREREQ_GETNDELIM2.
74410         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74411         gl_GETNDELIM2.
74412
74413 2003-07-18  Bruno Haible  <bruno@clisp.org>
74414
74415         * lib/getndelim2.h: New file.
74416         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74417         getndelim2.h.
74418         (getndelim2): Make non-static. Change return type to ssize_t.
74419         * lib/getline.h: Change argument names.
74420         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74421         * lib/getnline.c: Include getndelim2.h.
74422
74423 2003-07-18  Andreas Schwab  <schwab@suse.de>
74424
74425         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74426
74427 2003-07-17  Karl Berry  <karl@gnu.org>
74428
74429         * config/config.sub: update from prep.
74430
74431 2003-07-17  Bruno Haible  <bruno@clisp.org>
74432
74433         * modules/getnline: New file.
74434         * modules/getline: Add lib/getndelim2.c to source file list.
74435         * MODULES.html.sh (func_all_modules): Add getnline.
74436
74437 2003-07-17  Bruno Haible  <bruno@clisp.org>
74438
74439         * m4/getnline.m4: New file.
74440
74441 2003-07-17  Bruno Haible  <bruno@clisp.org>
74442
74443         * m4/Makefile.am.in: Remove file.
74444         * m4/Makefile.am: Remove file.
74445         * m4/Makefile.in: Remove file.
74446
74447 2003-07-17  Bruno Haible  <bruno@clisp.org>
74448
74449         * lib/getnline.h: New file.
74450         * lib/getnline.c: New file.
74451         * lib/getndelim2.c: New file, extracted from getline.c.
74452         (getndelim2): Renamed from getdelim2, with added nmax argument.
74453         * lib/getline.c: Include getndelim2.c.
74454         (getdelim2): Moved out to getndelim2.c.
74455         (getline, getdelim): Update.
74456
74457 2003-07-17  Bruno Haible  <bruno@clisp.org>
74458
74459         * lib/Makefile.am: Remove file.
74460         * lib/Makefile.in: Remove file.
74461
74462 2003-07-17  Bruno Haible  <bruno@clisp.org>
74463
74464         * configure.in: Remove file.
74465         * Makefile.in: Remove file.
74466
74467 2003-07-17  Bruno Haible  <bruno@clisp.org>
74468
74469         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74470
74471 2003-07-16  Karl Berry  <karl@gnu.org>
74472
74473         * config/srclist-update: was running fixlicense twice, which caused
74474                 texinfo.tex to be nullified for some reason.  Simplify,
74475                 $gplsrc is no longer needed as far as I can see?
74476
74477 2003-07-16  Jim Meyering  <jim@meyering.net>
74478
74479         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74480
74481 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74482
74483         * config/srclist.txt: Get the following files from gettext-runtime/intl
74484         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74485         ref-del.sin.  From Bruno Haible.
74486         * config/srclist-update (fixfile): Change grep pattern again, since the
74487         previous fix didn't work (there was another trailing $).  Use
74488         '[$]' to escape the $s.
74489
74490 2003-07-15  Karl Berry  <karl@gnu.org>
74491
74492         * lib/vasnprintf.c: update from gettext.
74493
74494 2003-07-15  Karl Berry  <karl@gnu.org>
74495
74496         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74497         gets expanded when surrounded by '$'.
74498
74499 2003-07-15  Jim Meyering  <jim@meyering.net>
74500
74501         * modules/save-cwd: Don't depend on error.  From Derek Price.
74502
74503 2003-07-15  Jim Meyering  <jim@meyering.net>
74504
74505         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74506
74507 2003-07-14  Simon Josefsson  <jas@extundo.com>
74508
74509         * modules/mempcpy: New file.
74510         * MODULES.html.sh (func_all_modules): Add mempcpy.
74511
74512 2003-07-14  Simon Josefsson  <jas@extundo.com>
74513
74514         * m4/mempcpy.m4: New file.
74515
74516 2003-07-14  Simon Josefsson  <jas@extundo.com>
74517
74518         * lib/mempcpy.h: New file.
74519         * lib/mempcpy.c: New file.
74520
74521 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74522
74523         * modules/getdate, modules/posixtm: Depend on mktime.
74524
74525 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74526
74527         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74528         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74529         unicodeio.c, unicodeio.h, unlocked-io.h:
74530         Switch from LGPL to GPL.
74531
74532 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74533
74534         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74535         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74536         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74537         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74538         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74539         updated automatically by ../config/srclist-update.  This changes
74540         their license from LPGL to GPL.
74541
74542 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74543
74544         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74545         assumed to refer to the root of the most recent stable gettext version.
74546         * config/srclistvars.sh: Add defaults for eggert.
74547         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74548         Match "This program" as well as "The program".  This is needed
74549         for gettext.
74550
74551 2003-07-14  Jim Meyering  <jim@meyering.net>
74552
74553         Don't emit diagnostics.  Let callers do that.
74554         * lib/save-cwd.c: Don't include "error.h".
74555         (save_cwd): Don't call error.  Ensure that errno is valid
74556         when returning nonzero.
74557
74558         * lib/save-cwd.h (restore_cwd): Update prototype.
74559         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74560         Simplify.  Don't call error upon failure.  Let callers do that.
74561         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74562         when auditing is enabled.  But don't bother updating the #if.
74563
74564 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74565
74566         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74567         it breaks C++ compilation.
74568         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74569
74570 2003-07-10  Simon Josefsson  <jas@extundo.com>
74571
74572         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74573
74574 2003-07-10  Jim Meyering  <jim@meyering.net>
74575
74576         * m4/clock_time.m4: Remove trailing blank.
74577         * m4/intmax_t.m4: Likewise.
74578
74579 2003-07-10  Jim Meyering  <jim@meyering.net>
74580
74581         * lib/vasnprintf.c: Remove trailing blanks.
74582         Make cpp indentation consistent.
74583
74584 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74585
74586         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74587         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74588         Switch from LGPL to GPL.
74589
74590 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74591
74592         * config/srclist.txt: Sort sublists.  Add
74593         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74594         that differ from gnulib for one reason or another; we'd like this list
74595         to be smaller but for now let's document what we have.
74596
74597 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74598
74599         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74600         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74601         and sweeter "eval x=$x".
74602         * config/srclist.txt: Get lib/argp* from glibc.
74603
74604 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74605
74606         * lib/mktime.c: Fix some boundary cases and remove need for floating
74607         point.
74608
74609         Issue a compile-time diagnostic if time_t is floating point, or if
74610         two's complement arithmetic is not in effect, or if arithmetic
74611         right shift does not propagate the sign.  These assumptions were
74612         all in the original code but they weren't checked.
74613
74614         (TIME_T_MIDPOINT, verify): New macros.
74615         (__isleap): Remove; it has integer overflow problems.
74616         (leapyear): New function, without those problems.
74617         (ydhms_tm_diff): Remove; splitting into two parts.
74618         (ydhms_diff): New function, containing the arithmetic part of
74619         the old ydhms_tm_diff function.  Issue a compile-time
74620         diagnostic if we are not using C99 integer division.
74621         Avoid casts when possible.
74622         (guess_time_tm): New function, containing the checking part of
74623         the old ydhms_tm_diff function.  Return the new value, rather than
74624         the difference between it and the old.  Accept a new argument T
74625         so that *T specifies the old value.  Check for overflow in the result.
74626
74627         (__mktime_internal): Use a time_t offset, not a long int offset.
74628         This undoes the 2003-06-04 change, which is no longer needed now
74629         that we have better overflow checking.
74630         (localtime_offset): Likewise.
74631
74632         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74633         and long are 64-bit but int is only 32-bit.
74634         (ydhms_diff): Use long int to store year1 and yday1.
74635         Issue a compile-time diagnostic if long int is not wide enough.
74636
74637         (__mktime_internal): Use long int to store adjusted year and yday.
74638         Use plain C rather than preprocessor commands, if that doesn't
74639         affect efficiency.
74640         Check for overflow (and try to repair) after each probe
74641         rather than checking only at the very end.  This avoids some bugs
74642         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74643         does not equal GMT offset at maximum time).
74644         Use integer to check for overflow rather than floating point; this
74645         is more portable to non-IEEE hosts, and is a tad faster.
74646         When we detect that we are oscillating between two values,
74647         don't check whether tm_isdst has the requested value, since
74648         we already know the answer.  When tm_isdst has the wrong value,
74649         use a different heuristic to find the right one, based on the
74650         extreme values actually observed in practice in tz2003a,
74651         rather than the (overly optimistic) "previous 3 calendar quarters".
74652
74653         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74654         "T const" to accommodate glibc style.
74655         (check_result): Use less-confusing report format.  "long" -> "long int.
74656         (main): Likewise.
74657         Don't loop if the iteration overflows time_t.
74658         Allow a negative step in the iteration.
74659
74660 2003-07-06  Karl Berry  <karl@gnu.org>
74661
74662         * config/depcomp: update from automake.
74663         * config/config.sub: update from prep.
74664
74665 2003-07-03  Karl Berry  <karl@gnu.org>
74666
74667         * config/config.guess: update from prep.
74668
74669 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74670
74671         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74672         xreadlink.c now includes it unconditionally.
74673
74674 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74675
74676         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74677         having it depend on HAVE_SYS_TYPES_H.
74678
74679 2003-07-01  Bruno Haible  <bruno@clisp.org>
74680
74681         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74682         <sys/types.h> should be sufficient.
74683         Reported by Paul Eggert.
74684
74685 2003-06-26  Karl Berry  <karl@gnu.org>
74686
74687         * config/depcomp: update from automake.
74688
74689 2003-06-26  Bruno Haible  <bruno@clisp.org>
74690
74691         * modules/human: Depend on module stdbool.
74692
74693 2003-06-25  Bruno Haible  <bruno@clisp.org>
74694
74695         * modules/readlink: New file.
74696         * modules/xreadlink: Depend on it.
74697         * MODULES.html.sh (func_all_modules): Add readlink.
74698
74699 2003-06-25  Bruno Haible  <bruno@clisp.org>
74700
74701         * m4/readlink.m4: New file.
74702
74703 2003-06-25  Bruno Haible  <bruno@clisp.org>
74704
74705         * lib/readlink.c: New file.
74706
74707 2003-06-22  Karl Berry  <karl@gnu.org>
74708
74709         * config/srclist.txt: update mkinstalldirs from automake.
74710         * config/mkinstalldirs: update.
74711
74712 2003-06-22  Bruno Haible  <bruno@clisp.org>
74713
74714         Portability to mingw32.
74715         * m4/ssize_t.m4: New file, from GNU gettext.
74716         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74717         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74718
74719 2003-06-22  Bruno Haible  <bruno@clisp.org>
74720
74721         * modules/safe-read: Add m4/ssize_t.m4.
74722         * modules/xreadlink: Add m4/ssize_t.m4.
74723
74724 2003-06-20  Bruno Haible  <bruno@clisp.org>
74725
74726         Assume C89, so PARAMS isn't needed.
74727         * lib/unicodeio.h (PARAMS): Remove.
74728         * lib/unicodeio.c: Don't use PARAMS.
74729
74730 2003-06-18  Karl Berry  <karl@gnu.org>
74731
74732         * config/config.{guess,sub}: update from prep.
74733
74734 2003-06-18  Jim Meyering  <jim@meyering.net>
74735
74736         Merge changes from coreutils.
74737         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74738         Remove explicit declarations of xmalloc and realloc.
74739         Include xalloc.h.
74740         (read_utmp): Remove anachronistic cast of xmalloc.
74741
74742 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74743
74744         Assume C89, so PARAMS isn't needed.
74745         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74746         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74747         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74748         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74749         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74750         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74751         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74752         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74753         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74754         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74755         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74756         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74757         no longer needed. Anyway, config.h should always be included before any
74758         other file.
74759
74760 2003-06-11  Simon Josefsson  <jas@extundo.com>
74761
74762         * modules/sysexits: New file.
74763         * MODULES.html.sh (func_all_modules): Add sysexits.
74764
74765 2003-06-11  Simon Josefsson  <jas@extundo.com>
74766
74767         * lib/sysexit_.h: New file.
74768
74769 2003-06-11  Derek Price  <derek@ximbiot.com>
74770
74771         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74772         necessary.
74773
74774 2003-06-11  Bruno Haible  <bruno@clisp.org>
74775
74776         * m4/sysexits.m4: New file.
74777
74778 2003-06-10  Simon Josefsson  <jas@extundo.com>
74779
74780         * lib/argp.h: New file, from glibc.
74781         * lib/argp-ba.c: New file, from glibc.
74782         * lib/argp-eexst.c: New file, from glibc.
74783         * lib/argp-fmtstream.c: New file, from glibc.
74784         * lib/argp-fmtstream.h: New file, from glibc.
74785         * lib/argp-fs-xinl.c: New file, from glibc.
74786         * lib/argp-help.c: New file, from glibc.
74787         * lib/argp-namefrob.h: New file, from glibc.
74788         * lib/argp-parse.c: New file, from glibc.
74789         * lib/argp-pv.c: New file, from glibc.
74790         * lib/argp-pvh.c: New file, from glibc.
74791         * lib/argp-xinl.c: New file, from glibc.
74792
74793 2003-06-10  Simon Josefsson  <jas@extundo.com>
74794
74795         * modules/strchrnul: New file.
74796
74797 2003-06-10  Simon Josefsson  <jas@extundo.com>
74798
74799         * modules/argp: New file.
74800
74801 2003-06-10  Simon Josefsson  <jas@extundo.com>
74802
74803         * m4/strchrnul.m4: New file.
74804
74805 2003-06-10  Simon Josefsson  <jas@extundo.com>
74806
74807         * lib/strchrnul.h: New file.
74808         * lib/strchrnul.c: New file.
74809
74810 2003-06-10  Bruno Haible  <bruno@clisp.org>
74811
74812         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74813
74814 2003-06-07  Karl Berry  <karl@gnu.org>
74815
74816         * config/config.{guess,sub}: update from prep.
74817
74818 2003-06-07  Jim Meyering  <jim@meyering.net>
74819
74820         * modules/strtod: Use $(...) notation, not @...@ for
74821         AC_REPLACE'd variables.
74822         * modules/localcharset: Likewise.
74823
74824 2003-06-07  Jim Meyering  <jim@meyering.net>
74825
74826         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74827         in place of my name in the copyright comment.
74828         Remove definition and uses of __P.
74829
74830         From coreutils.
74831         * lib/stat.c: Don't declare xmalloc explicitly.
74832         Instead, include "xalloc.h".
74833         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74834         xrealloc, and xcalloc return values.
74835         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74836         Improve comment.
74837         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74838
74839 2003-06-07  Bruno Haible  <bruno@clisp.org>
74840
74841         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74842         avoid AC_CONFIG_LINKS.
74843         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74844         fnmatch.h, to avoid AC_CONFIG_LINKS.
74845         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74846
74847 2003-06-07  Bruno Haible  <bruno@clisp.org>
74848
74849         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74850         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74851         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74852         directory.
74853         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74854         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74855         directory.
74856
74857 2003-06-06  Jim Meyering  <jim@meyering.net>
74858
74859         Merge from coreutils.
74860         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74861         Consolidate declarations and initializations of *_base* locals.
74862
74863         Merge from coreutils.
74864         This avoids a core dump on systems without GNU putenv,
74865         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74866         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74867         (unsetenv): New static function, from GNU libc.
74868         (rpl_putenv): Use it.
74869
74870         * lib/modechange.c: Remove trailing blanks.
74871
74872         Merge from coreutils.
74873         * lib/fsusage.c: Remove declaration of statfs.
74874         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74875
74876         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74877
74878 2003-06-06  Jim Meyering  <jim@meyering.net>
74879
74880         * lib/stdbool_.h: Renamed from stdbool.h.in.
74881
74882 2003-06-06  Jim Meyering  <jim@meyering.net>
74883             Bruno Haible  <bruno@clisp.org>
74884
74885         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74886         Adjust Makefile.am snippet not to redirect directly to target.
74887         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74888
74889 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74890
74891         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74892         mismatch, look in future quarters as well as past.  This fixes a
74893         bug when processing fall-backwards gaps immediately after a long
74894         period of daylight-saving time.
74895
74896         * lib/mktime.c: Assume freestanding C89 or better.
74897         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74898         (__P): Remove; not used.
74899         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74900         (mktime, not_equal_tm, print_tm, check_result,
74901         main): Use prototypes.  Use const * where appropriate.
74902         (main): Fix typo in testing code that uncovered by above changes.
74903         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74904
74905 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74906
74907         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74908         locale.h, localeconv.  This merges changes from coreutils.
74909
74910         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74911         It can be removed after the next Autoconf is released.
74912         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74913         needed.
74914
74915 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74916
74917         * lib/mktime.c: Fix Debian bug 177940
74918         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74919         (localtime_offset): Now long int, not time_t, because we want it
74920         to be guaranteed to be signed.  All uses changed.
74921         (__mktime_internal): If overflow would occur when adding offset,
74922         don't add it.
74923
74924         Merge 'human' changes from coreutils.  Rewrite to support
74925         locale-specific notations like thousands separators.
74926         * lib/human.c: Simplify authorship notice.
74927         Include human.h immediately after config.h.
74928         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74929         <limits.h>: Do not include, since human.h does.
74930         (SIZE_MAX, UINTMAX_MAX): New macros.
74931         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74932         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74933         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74934         (power_letter): Renamed from suffixes.
74935         (generate_suffix_backwards): Remove.
74936         (adjust_value): Now takes int style (because of human.h changes)
74937         and long double value (for greater precision on some platforms).
74938         (group_number): New function.
74939         (human_readable): Use it.  Use integer options, not enum.
74940         Put the options before the sizes in the arg list.
74941         Support all the new options.
74942         The old human_readable function has been removed;
74943         use inttostr.h instead.
74944         (human_readable, default_block_size, humblock):
74945         Use uintmax_t, not int, for block sizes.
74946         (human_readable_inexact, block_size_types): Remove.
74947         (block_size_opts): New constant.
74948         (human_options): Renamed from human_block_size, with new signature
74949         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74950         * lib/human.h: Add copyright and authorship notice.
74951         Include <limits.h> and <stdbool.h> unconditionally.
74952         (PARAMS): Remove.  All uses removed.
74953         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74954         (enum human_inexact_style): Remove tag; now a nameless enum.
74955         (human_floor, human_ceiling, human_round_to_even): Now have
74956         values 2, 0, 1 rather than -1, 1, 0.
74957         (human_group_digits, human_suppress_point_zero, human_autoscale,
74958         human_base_1024, human_SI, human_B): New constants.
74959         (human_readable_inexact, human_block_size): Remove.
74960         (human_readable): Size args are now uintmax_t, not int.
74961         (human_options): New decl.
74962
74963         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74964         unnecessary now that we assume C89 or better.  This change
74965         imported from coreutils.
74966
74967         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74968         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74969         in the 2003-05-30 sync from glibc.
74970
74971         .h files should stand alone, but we shouldn't include <sys/types.h>
74972         if we can get away with just <stddef.h>.
74973
74974         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74975         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74976         rather than <sys/types.h>, as we merely need size_t.
74977         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74978         to get size_t.
74979         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74980         Include <stdio.h>, to get FILE.
74981         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74982         memcasecmp.h has included <stddef.h> and all we need is size_t.
74983         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74984         our interface, instead of including <sys/types.h>
74985
74986 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74987
74988         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74989         now, as glibc mktime is buggy on non-glibc systems.
74990
74991 2003-06-03  Karl Berry  <karl@gnu.org>
74992
74993         * config/config.sub: update from prep.
74994
74995 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74996
74997         [from coreutils]
74998         Fix some minor time-related bugs with POSIX time arguments.
74999         Some valid time stamps were being rejected (notably -1, and
75000         time stamps before 1900 on 64-bit hosts).  And some invalid
75001         time stamps were being accepted, e.g. September 31.
75002
75003         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
75004         that we can return (time_t) -1 successfully.
75005         * lib/posixtm.c: Likewise.
75006         [HAVE_STDBOOL_H]: Include <stdbool.h>.
75007         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
75008         (t): Remove static var.
75009         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
75010         of static var.  All uses changed.
75011         (year): Do not reject years before 1900; they can occur with
75012         64-bit time_t.
75013         (posix_time_parse): Do not check for out-of-range components;
75014         that is now the caller's responsibility, since our checks were
75015         only approximations.
75016         (posixtime): Use mktime to check for out-of-range components,
75017         since it knows them exactly.
75018         If mktime returns (time_t) -1, check whether an error actually occurred
75019         by invoking localtime on -1.
75020         (main) [TEST_POSIXTIME]: Check for input data errors, and report
75021         posixtime failures better.
75022         Improve the test data (in comments only).
75023
75024 2003-06-02  Karl Berry  <karl@gnu.org>
75025
75026         * config/mkinstalldirs (version): new variable.
75027         (--version): new option.
75028         (usage): improve message.
75029
75030 2003-05-30  Karl Berry  <karl@gnu.org>
75031
75032         * lib/mktime.c: update from libc.
75033
75034 2003-05-30  Bruno Haible  <bruno@clisp.org>
75035
75036         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
75037         * config/config.rpath: Upgrade to gettext-0.12.1.
75038
75039 2003-05-30  Bruno Haible  <bruno@clisp.org>
75040
75041         * m4/gettext.m4: Upgrade to gettext-0.12.1.
75042         * m4/nls.m4: New file, from gettext-0.12.1.
75043         * m4/po.m4: New file, from gettext-0.12.1.
75044         * m4/progtest.m4: Upgrade to gettext-0.12.1.
75045
75046 2003-05-30  Bruno Haible  <bruno@clisp.org>
75047
75048         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
75049         * lib/localcharset.h: Likewise.
75050         * lib/localcharset.c: Likewise.
75051
75052 2003-05-29  Karl Berry  <karl@gnu.org>
75053
75054         * config/config.rpath: update from gettext.
75055
75056 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75057
75058         Assume the headers required for C89 freestanding compilers.
75059         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
75060         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
75061         * m4/human.m4 (gl_HUMAN): Likewise.
75062         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
75063         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
75064         * m4/userspec.m4 (gl_USERSPEC): Likewise.
75065         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
75066         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75067         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
75068
75069 2003-05-28  Paul Eggert  <eggert@twinsun.com>
75070
75071         Assume the headers required for C89 freestanding compilers.
75072         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
75073         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
75074         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
75075         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
75076         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
75077         define, since <limits.h> is guaranteed to do that.
75078         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
75079         * lib/exclude.c: Include <stdbool.h> unconditionally.
75080         * lib/tempname.c: Include <stddef.h> unconditionally.
75081         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
75082         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
75083         <stddef.h> does that.
75084         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
75085         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
75086         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
75087         needed.
75088         * lib/xstrtol.c: Likewise.
75089         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
75090         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
75091
75092         * lib/addext.c (addext): Use assignment rather than cast, to avoid
75093         warnings on some platforms.
75094
75095         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
75096         arbitrarily.
75097
75098 2003-05-26  Jim Meyering  <jim@meyering.net>
75099
75100         Merge in a change from coreutils:
75101         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
75102         that is guaranteed to be `no'.  Use `no_such_member' to indicate
75103         that condition, rather than `-1' which is slightly misleading.
75104         Change the name of the cache variable to have the gl_ prefix.
75105         Prompted by a patch from Richard Dawe for DJGPP.
75106
75107 2003-05-24  Karl Berry  <karl@gnu.org>
75108
75109         * config/config.guess: update from prep.
75110
75111 2003-05-22  Karl Berry  <karl@gnu.org>
75112
75113         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
75114
75115 2003-05-20  Karl Berry  <karl@gnu.org>
75116
75117         * config/config.guess: update from prep.
75118
75119 2003-05-18  Karl Berry  <karl@gnu.org>
75120
75121         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
75122         might actually be set by the user.
75123
75124         * config/depcomp, install-sh, mdate-sh: update from automake.
75125
75126 2003-05-17  Bruno Haible  <bruno@clisp.org>
75127
75128         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
75129         invalid expansion for AC_EGREP_CPP.
75130         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
75131         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
75132         Suggested by Akim Demaille <akim@epita.fr> in
75133         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
75134
75135 2003-05-12  Jim Meyering  <jim@meyering.net>
75136
75137         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
75138         the space-padded-by-default conversion specifiers, %e, %k, %l.
75139
75140 2003-05-12  Bruno Haible  <bruno@clisp.org>
75141
75142         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
75143         the string is longer than 4 KB.
75144
75145 2003-05-11  Karl Berry  <karl@gnu.org>
75146
75147         * config/config.{guess,sub}: update from prep.
75148
75149 2003-05-09  Bruno Haible  <bruno@clisp.org>
75150
75151         * modules/error: Add m4/strerror_r.m4 to file list.
75152
75153 2003-05-03  Bruno Haible  <bruno@clisp.org>
75154
75155         Upgrade to Unicode-4.0.
75156         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
75157         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
75158         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
75159         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
75160         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
75161         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
75162         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
75163         Change width of U+E0100..U+E01EF from 1 to 0.
75164
75165 2003-04-25  Jim Meyering  <jim@meyering.net>
75166
75167         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
75168         of type size_t, not int.
75169
75170 2003-04-25  Bruno Haible  <bruno@clisp.org>
75171
75172         * lib/copy-file.c: Include <stddef.h>, for size_t.
75173
75174 2003-04-21  Paul Eggert  <eggert@twinsun.com>
75175
75176         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
75177         code which expansion is under static control.  Patch imported from
75178         Akim Demaille's patch to Bison; see
75179         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
75180
75181 2003-04-14  Bruno Haible  <bruno@clisp.org>
75182
75183         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
75184
75185 2003-04-11  Jim Meyering  <jim@meyering.net>
75186
75187         Merge changes from Coreutils.
75188
75189         2003-03-22  Jim Meyering  <jim@meyering.net>
75190
75191         * lib/strftime.c (widen): Cast alloca return value to proper type.
75192
75193         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
75194
75195         From GNU libc.
75196         * lib/strftime.c (my_strftime): Handle very large width
75197         specifications for numeric values correctly.  Improve checks for
75198         overflow.
75199
75200         2003-01-19  Jim Meyering  <jim@meyering.net>
75201
75202         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
75203         definitions.
75204         (nl_get_alt_digit) [! defined my_strftime]: Define.
75205         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
75206         _nl_get_alt_digit and _nl_get_walt_digit.
75207
75208         * lib/strftime.c (my_strftime): Merge in locale-related changes from
75209         libc. These changes have no effect outside of _LIBC.
75210
75211 2003-04-10  Bruno Haible  <bruno@clisp.org>
75212
75213         * modules/findprog: New file.
75214         * MODULES.html.sh (func_all_modules): Add it.
75215
75216 2003-04-10  Bruno Haible  <bruno@clisp.org>
75217
75218         * m4/findprog.m4: New file.
75219         * m4/eaccess.m4: New file.
75220
75221 2003-04-10  Bruno Haible  <bruno@clisp.org>
75222
75223         * lib/findprog.h: New file, from GNU gettext.
75224         * lib/findprog.c: New file, from GNU gettext.
75225
75226 2003-04-05  Jim Meyering  <jim@meyering.net>
75227
75228         Merge changes from Coreutils.
75229
75230         * lib/exclude.h (PARAMS): Remove definition and uses.
75231         * lib/exclude.c: Remove uses of `PARAMS'.
75232
75233         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75234         Add test-cases for DOS filenames. Declare program_name.
75235         (main): Set up program_name.  Patch by Rich Dawe.
75236
75237         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75238         error from mntctl.
75239         Use mntctl's return value to drive the entry-processing loop, since
75240         we can't rely on the value of the vmt_length member in the last
75241         entry.  On some systems doing so could result in exhausting
75242         virtual memory.  Based in part on a patch from Mike Jetzer.
75243
75244 2003-04-04  Bruno Haible  <bruno@clisp.org>
75245
75246         * modules/linebreak: New file.
75247         * MODULES.html.sh (func_all_modules): Add it.
75248
75249 2003-04-04  Bruno Haible  <bruno@clisp.org>
75250
75251         * m4/linebreak.m4: New file.
75252
75253 2003-04-04  Bruno Haible  <bruno@clisp.org>
75254
75255         * lib/linebreak.h: New file, from GNU gettext.
75256         * lib/linebreak.c: New file, from GNU gettext with slight
75257         modifications.
75258         * lib/lbrkprop.h: New file, from GNU gettext.
75259
75260 2003-04-03  Bruno Haible  <bruno@clisp.org>
75261
75262         * modules/utf8-ucs4: New file.
75263         * modules/utf16-ucs4: New file.
75264         * modules/ucs4-utf8: New file.
75265         * modules/ucs4-utf16: New file.
75266         * MODULES.html.sh (func_all_modules): Add them.
75267
75268 2003-04-03  Bruno Haible  <bruno@clisp.org>
75269
75270         * m4/utf-ucs4.m4: New file.
75271         * m4/ucs4-utf.m4: New file.
75272
75273 2003-04-03  Bruno Haible  <bruno@clisp.org>
75274
75275         * lib/utf8-ucs4.h: New file, from GNU gettext.
75276         * lib/utf16-ucs4.h: New file, from GNU gettext.
75277         * lib/ucs4-utf8.h: New file, from GNU gettext.
75278         * lib/ucs4-utf16.h: New file, from GNU gettext.
75279
75280 2003-04-02  Bruno Haible  <bruno@clisp.org>
75281
75282         * modules/binary-io: New file.
75283         * MODULES.html.sh (func_all_modules): Add it.
75284
75285 2003-04-02  Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/binary-io.h: New file, from GNU gettext.
75288
75289 2003-04-01  Bruno Haible  <bruno@clisp.org>
75290
75291         * modules/pathname: New file.
75292         * MODULES.html.sh (func_all_modules): Add it.
75293
75294 2003-04-01  Bruno Haible  <bruno@clisp.org>
75295
75296         * lib/pathname.h: New file, from GNU gettext.
75297         * lib/concatpath.c: New file, from GNU gettext.
75298
75299 2003-03-30  Bruno Haible  <bruno@clisp.org>
75300
75301         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75302
75303 2003-03-30  Bruno Haible  <bruno@clisp.org>
75304
75305         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75306         function chown() doesn't exist.
75307
75308 2003-03-28  Bruno Haible  <bruno@clisp.org>
75309
75310         * modules/copy-file: New file.
75311         * MODULES.html.sh (func_all_modules): Add it.
75312
75313 2003-03-28  Bruno Haible  <bruno@clisp.org>
75314
75315         * m4/copy-file.m4: New file.
75316
75317 2003-03-28  Bruno Haible  <bruno@clisp.org>
75318
75319         * lib/copy-file.h: New file, from GNU gettext.
75320         * lib/copy-file.c: New file, from GNU gettext.
75321
75322 2003-03-18  Jim Meyering  <jim@meyering.net>
75323
75324         * lib/quote.c (quote_n): Fix typo in comment.
75325
75326 2003-03-18  Bruno Haible  <bruno@clisp.org>
75327
75328         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75329         checking.
75330         * m4/onceonly_2_57.m4: Likewise.
75331
75332 2003-03-17  Bruno Haible  <bruno@clisp.org>
75333
75334         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75335         (m4_quote): Remove macro.
75336         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75337
75338 2003-03-14  Jim Meyering  <jim@meyering.net>
75339
75340         Merge changes from Coreutils.
75341         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75342         to be const, in order to avoid warnings.
75343         (obstack_room): Likewise.
75344         (obstack_empty_p): Likewise.
75345
75346 2003-03-14  Bruno Haible  <bruno@clisp.org>
75347
75348         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75349         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75350
75351 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75352
75353         Merge changes from Bison.
75354         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75355         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75356         when compiling Bison 1.875's `bitset bset = obstack_alloc
75357         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75358         * lib/hash.c: Include <stdbool.h> unconditionally.
75359
75360 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75361
75362         * m4/onceonly.m4 (m4_quote): New macro.
75363         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75364         Quote AC_FOREACH variable-expansions properly.
75365
75366 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75367
75368         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75369
75370 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75371
75372         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75373         Reported by Bruce Becker; see:
75374         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75375
75376 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75377             Bruno Haible  <bruno@clisp.org>
75378
75379         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75380         Reported by John Hughes, see
75381         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75382
75383 2003-02-20  Bruno Haible  <bruno@clisp.org>
75384
75385         * MODULES.html.sh (func_all_modules): Add poll.
75386
75387 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75388
75389         * modules/poll: New file.
75390
75391 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75392
75393         * lib/poll_.h: New file.
75394         * lib/poll.c: New file.
75395
75396 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75397
75398         * m4/poll.m4: New file.
75399
75400 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75401
75402         * modules/mathl: New file.
75403
75404 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75405
75406         * lib/mathl.h: New file.
75407         * lib/acosl.c: New file.
75408         * lib/asinl.c: New file.
75409         * lib/atanl.c: New file.
75410         * lib/ceill.c: New file.
75411         * lib/cosl.c: New file.
75412         * lib/expl.c: New file.
75413         * lib/floorl.c: New file.
75414         * lib/frexpl.c: New file.
75415         * lib/ldexpl.c: New file.
75416         * lib/logl.c: New file.
75417         * lib/sincosl.c: New file.
75418         * lib/sinl.c: New file.
75419         * lib/sqrtl.c: New file.
75420         * lib/tanl.c: New file.
75421         * lib/trigl.c: New file.
75422         * lib/trigl.h: New file.
75423
75424 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75425
75426         * m4/mathl.m4: New file.
75427
75428 2003-02-18  Bruno Haible  <bruno@clisp.org>
75429
75430         * MODULES.html.sh (func_all_modules): Add mathl.
75431
75432 2003-02-17  Bruno Haible  <bruno@clisp.org>
75433
75434         * modules/mkdtemp: New module.
75435         * MODULES.html.sh (func_all_modules): Add it.
75436
75437 2003-02-17  Bruno Haible  <bruno@clisp.org>
75438
75439         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75440
75441 2003-02-17  Bruno Haible  <bruno@clisp.org>
75442
75443         * lib/mkdtemp.h: New file, from GNU gettext.
75444         * lib/mkdtemp.c: New file, from GNU gettext.
75445
75446 2003-02-02  Jim Meyering  <jim@meyering.net>
75447
75448         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75449         e.g. glibc-2.2.93.
75450
75451 2003-01-31  Bruno Haible  <bruno@clisp.org>
75452
75453         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75454         'rpl_rename'.
75455         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75456         'rpl_strnlen'.
75457         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75458         'rpl_strtod'.
75459         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75460         'rpl_utime'.
75461
75462 2003-01-31  Bruno Haible  <bruno@clisp.org>
75463
75464         * lib/rename.c: #undef rename before defining rpl_rename.
75465         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75466
75467 2003-01-30  Bruno Haible  <bruno@clisp.org>
75468
75469         * modules/vasnprintf, modules/vasprintf: New modules.
75470         * MODULES.html.sh (func_all_modules): Add them.
75471
75472 2003-01-30  Bruno Haible  <bruno@clisp.org>
75473
75474         * m4/signed.m4: New file, from GNU gettext.
75475         * m4/longdouble.m4: New file, from GNU gettext.
75476         * m4/wchar_t.m4: New file, from GNU gettext.
75477         * m4/wint_t.m4: New file, from GNU gettext.
75478         * m4/vasnprintf.m4: New file.
75479         * m4/vasprintf.m4: New file.
75480
75481 2003-01-30  Bruno Haible  <bruno@clisp.org>
75482
75483         * lib/printf-args.h: New file, from GNU gettext.
75484         * lib/printf-args.c: New file, from GNU gettext.
75485         * lib/printf-parse.h: New file, from GNU gettext.
75486         * lib/printf-parse.c: New file, from GNU gettext.
75487         * lib/vasnprintf.h: New file, from GNU gettext.
75488         * lib/vasnprintf.c: New file, from GNU gettext.
75489         * lib/asnprintf.c: New file, from GNU gettext.
75490         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75491         * lib/vasprintf.c: New file, from GNU gettext.
75492         * lib/asprintf.c: New file, from GNU gettext.
75493
75494 2003-01-29  Bruno Haible  <bruno@clisp.org>
75495
75496         * modules/stpncpy: New module.
75497         * MODULES.html.sh (func_all_modules): Add it.
75498
75499 2003-01-29  Bruno Haible  <bruno@clisp.org>
75500
75501         * m4/stpncpy.m4: New file.
75502
75503 2003-01-29  Bruno Haible  <bruno@clisp.org>
75504
75505         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75506         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75507
75508 2003-01-28  Bruno Haible  <bruno@clisp.org>
75509
75510         * modules/c-ctype: New module.
75511         * MODULES.html.sh (func_all_modules): Add it.
75512
75513 2003-01-28  Bruno Haible  <bruno@clisp.org>
75514
75515         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75516         Paul Eggert.
75517         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75518         Paul Eggert.
75519
75520 2003-01-27  Bruno Haible  <bruno@clisp.org>
75521
75522         * modules/xsetenv: New module.
75523         * MODULES.html.sh (func_all_modules): Add it.
75524
75525 2003-01-27  Bruno Haible  <bruno@clisp.org>
75526
75527         * lib/xsetenv.h: New file, from GNU gettext.
75528         * lib/xsetenv.c: New file, from GNU gettext.
75529
75530 2003-01-23  Jim Meyering  <jim@meyering.net>
75531
75532         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75533         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75534
75535 2003-01-23  Bruno Haible  <bruno@clisp.org>
75536
75537         * modules/minmax: New module.
75538         * MODULES.html.sh (func_all_modules): Add it.
75539
75540 2003-01-23  Bruno Haible  <bruno@clisp.org>
75541
75542         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75543         Eggert.
75544
75545 2003-01-22  Bruno Haible  <bruno@clisp.org>
75546
75547         * modules/exit: New module.
75548         * MODULES.html.sh (func_all_modules): Add it.
75549
75550 2003-01-22  Bruno Haible  <bruno@clisp.org>
75551
75552         * lib/exit.h: New file, from GNU gettext.
75553
75554 2003-01-19  Bruno Haible  <bruno@clisp.org>
75555
75556         * gnulib-tool: Recognize option --extract-maintainer.
75557         (func_get_maintainer): New function.
75558         * modules/*: Add Maintainer entry.
75559
75560 2003-01-16  Jim Meyering  <jim@meyering.net>
75561
75562         * m4/regex.m4: The `regex' struct is both input and output.
75563         Initialize it before each use.  Patch by Tim Waugh.
75564
75565 2003-01-16  Bruno Haible  <bruno@clisp.org>
75566
75567         * MODULES.html.sh: Add a table of contents. Add the module name as
75568         leftmost column. Add hyperlinks.
75569
75570 2003-01-15  Bruno Haible  <bruno@clisp.org>
75571
75572         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75573
75574 2003-01-15  Bruno Haible  <bruno@clisp.org>
75575
75576         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75577         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75578         suffix.
75579
75580 2003-01-15  Bruno Haible  <bruno@clisp.org>
75581
75582         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75583
75584 2003-01-15  Bruno Haible  <bruno@clisp.org>
75585
75586         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75587         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75588
75589 2003-01-14  Jim Meyering  <jim@meyering.net>
75590
75591         * lib/same.c (same_name): Tweak a comment.
75592
75593 2003-01-14  Bruno Haible  <bruno@clisp.org>
75594
75595         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75596         when a string comparison is sufficient.
75597
75598 2003-01-14  Bruno Haible  <bruno@clisp.org>
75599
75600         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75601         'unsigned int'.
75602
75603 2003-01-14  Bruno Haible  <bruno@clisp.org>
75604
75605         * lib/hash-pjw.c: Add comment about low quality of this function.
75606
75607 2003-01-13  Bruno Haible  <bruno@clisp.org>
75608
75609         * modules/stpcpy: Distribute lib/stpcpy.h.
75610         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75611
75612 2003-01-13  Bruno Haible  <bruno@clisp.org>
75613
75614         * modules/*: Add a description.
75615         * modules/strpbrk: Fix Makefile.am snippet.
75616         * modules/strtoimax: Fix dependencies.
75617         * modules/strtoumax: Likewise.
75618
75619 2003-01-13  Bruno Haible  <bruno@clisp.org>
75620
75621         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75622         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75623         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75624
75625 2003-01-13  Bruno Haible  <bruno@clisp.org>
75626
75627         * gnulib-tool (func_create_testdir): Store config/* files in the main
75628         directory.
75629         * config.rpath: Move to ...
75630         * config/config.rpath: ... here.
75631         * modules/gettext: Contains config/config.rpath, not config.rpath.
75632         * modules/iconv: Likewise.
75633
75634 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75635
75636         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75637         to avoid collisions with libcurses and libreadline.
75638
75639         * m4/getstr.m4: Remove.
75640         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75641
75642 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75643
75644         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75645         to avoid collisions with libcurses and libreadline.
75646
75647         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75648         * lib/getstr.h, getstr.c: Remove.
75649         * lib/getline.c: Include "getline.h", to check interface.
75650         Move body of old getstr.c here: this defines MIN_CHUNK and
75651         declares getdelim2, which is renamed from getstr.
75652         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75653
75654         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75655         All uses changed.
75656         * lib/linebuffer.h: Likewise.
75657         (readline): Remove backward-compatibility macro.
75658
75659 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75660
75661         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75662         to avoid collisions with libcurses and libreadline.
75663         * getstr: Remove.
75664         * MODULES.html.sh: Remove getstr.
75665         * modules/getline: Depend on unlocked-io, not getstr.
75666
75667 2003-01-12  Jim Meyering  <jim@meyering.net>
75668
75669         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75670
75671 2003-01-10  Bruno Haible  <bruno@clisp.org>
75672
75673         * modules/alloca: Change Makefile.am requirements. Simplify Include
75674         requirements. Add lib/alloca_.h to file list.
75675
75676 2003-01-10  Bruno Haible  <bruno@clisp.org>
75677
75678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75679
75680 2003-01-10  Bruno Haible  <bruno@clisp.org>
75681
75682         * lib/alloca_.h: New file.
75683         * lib/getdate.y: Unconditionally include alloca.h.
75684         * lib/makepath.c: Likewise.
75685         * lib/setenv.c: Likewise.
75686         * lib/userspec.c: Likewise.
75687
75688 2003-01-09  Karl Berry  <karl@gnu.org>
75689
75690         * MODULES.html.sh: include `dirname $0` in PATH, to find
75691         gnulib-tool.
75692
75693 2003-01-09  Bruno Haible  <bruno@clisp.org>
75694
75695         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75696         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75697
75698 2003-01-09  Bruno Haible  <bruno@clisp.org>
75699
75700         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75701
75702 2003-01-09  Bruno Haible  <bruno@clisp.org>
75703
75704         * lib/stdbool.h.in: New file.
75705
75706 2003-01-09  Bruno Haible  <bruno@clisp.org>
75707
75708         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75709         * MODULES.html.sh: Likewise.
75710
75711 2003-01-08  Jim Meyering  <jim@meyering.net>
75712
75713         * lib/full-write.c: Undefine and define-away `const' after inclusion
75714         of errno.h, not before.  Suggestion from Bruno Haible.
75715
75716 2003-01-08  Bruno Haible  <bruno@clisp.org>
75717
75718         * modules/full-read: Depend on full-write.
75719
75720 2003-01-08  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/safe-read.c: Include specification header first, to ensure its
75723         selfcontainedness.
75724         * lib/full-write.c: Likewise.
75725
75726 2003-01-07  Jim Meyering  <jim@meyering.net>
75727
75728         * lib/full-write.c: Rework so that it may serve to define full_read,
75729         too.
75730         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75731
75732 2003-01-07  Bruno Haible  <bruno@clisp.org>
75733
75734         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75735         <inttypes.h>.
75736         * lib/xstrtol.h: Likewise.
75737         * lib/xstrtoimax.c: Likewise.
75738         * lib/xstrtoumax.c: Likewise.
75739         * lib/human.h: Likewise.
75740
75741         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75742         on systems that have <inttypes.h> but not <stdint.h>.
75743
75744 2003-01-07  Bruno Haible  <bruno@clisp.org>
75745
75746         * MODULES.html.sh: Add copyright notice.
75747         (missed_files): Omit CVS directory entries.
75748         (func_module): Make it work with sed-3.02.
75749         * MODULES.txt: Remove file.
75750
75751 2003-01-06  Jim Meyering  <jim@meyering.net>
75752
75753         * lib/version-etc.c: Update year in translatable copyright string.
75754
75755 2003-01-03  Karl Berry  <karl@gnu.org>
75756
75757         * config/config.{guess,sub}: update from prep.
75758
75759 2003-01-02  Karl Berry  <karl@gnu.org>
75760
75761         * doc/COPYING.DOC: belatedly updated to 1.2.
75762
75763 2003-01-01  Karl Berry  <karl@gnu.org>
75764
75765         * gnulib-tool (func_verify_module): report module name $module in
75766         error message, not $1.
75767         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75768         be created, only if it doesn't exist.
75769         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75770
75771 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75772
75773         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75774
75775 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75776
75777         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75778         memcmp if strcoll doesn't work.
75779
75780 2002-12-31  Bruno Haible  <bruno@clisp.org>
75781
75782         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75783         nonempty.
75784
75785 2002-12-31  Bruno Haible  <bruno@clisp.org>
75786
75787         * lib/memcoll.c (STRCOLL): New macro.
75788         (memcoll): Use it.
75789
75790 2002-12-31  Bruno Haible  <bruno@clisp.org>
75791
75792         * lib/localcharset.h: New file.
75793         * lib/localcharset.c: Include it.
75794         * lib/unicodeio.c: Likewise.
75795
75796 2002-12-31  Bruno Haible  <bruno@clisp.org>
75797
75798         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75799         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75800
75801 2002-12-31  Bruno Haible  <bruno@clisp.org>
75802
75803         * lib/getline.h: Include <stddef.h>, for size_t.
75804
75805         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75806         * lib/unicodeio.c: Don't include <stddef.h>.
75807
75808 2002-12-31  Bruno Haible  <bruno@clisp.org>
75809
75810         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75811         HAVE_TM_ZONE.
75812
75813 2002-12-24  Karl Berry  <karl@gnu.org>
75814
75815         * config/config.guess: update from prep.
75816
75817 2002-12-24  Bruno Haible  <bruno@clisp.org>
75818
75819         General infrasructure.
75820         * m4/README: Rewritten.
75821         * m4/onceonly.m4: New file.
75822         * m4/onceonly_2_57.m4: New file.
75823
75824         Module atexit.
75825         * m4/atexit.m4: New file.
75826
75827         Module strtod.
75828         * m4/strtod.m4: New file.
75829
75830         Module strtol.
75831         * m4/strtol.m4: New file.
75832
75833         Module strtoul.
75834         * m4/strtoul.m4: New file.
75835
75836         Module memchr.
75837         * m4/memchr.m4: New file.
75838
75839         Module memcmp.
75840         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75841         (jm_FUNC_MEMCMP): Invoke it.
75842
75843         Module memcpy.
75844         * m4/memcpy.m4: New file.
75845
75846         Module memmove.
75847         * m4/memmove.m4: New file.
75848
75849         Module memset.
75850         * m4/memset.m4: New file.
75851
75852         Module strcspn.
75853         * m4/strcspn.m4: New file.
75854
75855         Module strpbrk.
75856         * m4/strpbrk.m4: New file.
75857
75858         Module strstr.
75859         * m4/strstr.m4: New file.
75860
75861         Module strerror.
75862         * m4/strerror.m4: New file.
75863
75864         Module mktime.
75865         * m4/mktime.m4: Renamed from jm-mktime.m4.
75866         (gl_PREREQ_MKTIME): New macro.
75867         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75868
75869         Module malloc.
75870         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75871         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75872         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75873
75874         Module realloc.
75875         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75876         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75877         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75878
75879         Module strftime.
75880         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75881         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75882         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75883         gl_TM_GMTOFF.
75884         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75885
75886         Module xalloc.
75887         * m4/xalloc.m4: New file.
75888
75889         Module alloca.
75890         * m4/alloca.m4: New file.
75891
75892         Module putenv.
75893         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75894         (jm_FUNC_PUTENV): Invoke it.
75895
75896         Module setenv.
75897         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75898         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75899         when invoked twice.
75900         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75901         gt_FUNC_SETENV.
75902
75903         Module memrchr.
75904         * m4/memrchr.m4: New file.
75905
75906         Module stpcpy.
75907         * m4/stpcpy.m4: New file.
75908
75909         Module strcase.
75910         * m4/strcase.m4: New file.
75911
75912         Module strdup.
75913         * m4/strdup.m4: New file.
75914
75915         Module strnlen.
75916         * m4/strnlen.m4: New file.
75917
75918         Module strndup.
75919         * m4/strndup.m4: New file.
75920
75921         Module xstrtod.
75922         * m4/xstrtod.m4: New file.
75923
75924         Module xstrtol.
75925         * m4/xstrtol.m4: New file.
75926
75927         Module getdate.
75928         * m4/getdate.m4: New file.
75929
75930         Module unlocked-io.
75931         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75932         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75933         * m4/jm-glibc-io.m4n: Remove file.
75934
75935         Module long-options.
75936         * m4/long-options.m4: New file.
75937
75938         Module md5.
75939         * m4/md5.m4: New file.
75940
75941         Module sha.
75942         * m4/sha.m4: New file.
75943
75944         Module getstr.
75945         * m4/getstr.m4: New file.
75946
75947         Module getline.
75948         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75949         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75950         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75951         simply getline. Infoke gl_PREREQ_GETLINE.
75952
75953         Module obstack.
75954         * m4/obstack.m4: New file.
75955
75956         Module hash.
75957         * m4/hash.m4: New file.
75958
75959         Module readtokens.
75960         * m4/readtokens.m4: New file.
75961
75962         Module strverscmp.
75963         * m4/strverscmp.m4: New file.
75964
75965         Module stdbool.
75966         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75967         OSF/1.
75968
75969         Module strtoll.
75970         * m4/strtoll.m4: New file.
75971
75972         Module strtoull.
75973         * m4/strtoull.m4: New file.
75974
75975         Module strtoimax.
75976         * m4/strtoimax.m4: New file.
75977
75978         Module strtoumax.
75979         * m4/strtoumax.m4: New file.
75980
75981         Module xstrtoimax.
75982         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75983         jm_AC_PREREQ_XSTRTOIMAX.
75984         Moved the strtol prerequisites to strtol.m4.
75985         Moved the strtoll prerequisites to strtoll.m4.
75986         Moved the strtoimax prerequisites to strtoimax.m4.
75987
75988         Module xstrtoumax.
75989         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75990         jm_AC_PREREQ_XSTRTOUMAX.
75991         Moved the strtoul prerequisites to strtoul.m4.
75992         Moved the strtoull prerequisites to strtoull.m4.
75993         Moved the strtoumax prerequisites to strtoumax.m4.
75994
75995         Module chown.
75996         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75997         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75998
75999         Module dup2.
76000         * m4/dup2.m4: New file.
76001
76002         Module ftruncate.
76003         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
76004         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
76005
76006         Module getgroups.
76007         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
76008         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
76009
76010         Module gettimeofday.
76011         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
76012         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
76013         gl_PREREQ_GETTIMEOFDAY.
76014
76015         Module mkdir.
76016         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
76017         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
76018
76019         Module mkstemp.
76020         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
76021         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
76022         jm_AC_TYPE_UINTMAX_T.
76023         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
76024
76025         Module stat.
76026         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
76027         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
76028
76029         Module lstat.
76030         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
76031         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
76032
76033         Module timespec.
76034         * m4/timespec.m4 (gl_TIMESPEC): New macro.
76035         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
76036         * m4/st_mtim.m4: Indentation.
76037
76038         Module nanosleep.
76039         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
76040         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
76041         gl_PREREQ_NANOSLEEP.
76042
76043         Module regex.
76044         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
76045         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
76046         (gl_REGEX): New macro.
76047
76048         Module rename.
76049         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
76050         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
76051
76052         Module rmdir.
76053         * m4/rmdir.m4: New file.
76054
76055         Module utime.
76056         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
76057         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
76058         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
76059
76060         Module dirname.
76061         * m4/dirname.m4: New file.
76062
76063         Module getopt.
76064         * m4/getopt.m4: New file.
76065
76066         Module unistd-safer.
76067         * m4/unistd-safer.m4: New file.
76068
76069         Module fnmatch.
76070         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
76071         declaration.
76072         (gl_PREREQ_FNMATCH_EXTRA): New macro.
76073         (gl_FUNC_FNMATCH_POSIX): New macro.
76074         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
76075         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
76076         simply fnmatch.
76077
76078         Module exclude.
76079         * m4/exclude.m4: New file.
76080
76081         Module human.
76082         * m4/human.m4: New file.
76083
76084         Module acl.
76085         * m4/acl.m4: Nop.
76086
76087         Module backupfile.
76088         * m4/backupfile.m4: New file.
76089         * m4/d-ino.m4: Indentation.
76090
76091         Module fsusage.
76092         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
76093         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
76094         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
76095
76096         Module dirfd.
76097         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
76098         requirements.
76099
76100         Module euidaccess.
76101         * m4/euidaccess.m4: New file.
76102
76103         Module file-type.
76104         * m4/file-type.m4: New file.
76105
76106         Module fileblocks.
76107         * m4/fileblocks.m4: New file.
76108
76109         Module filemode.
76110         * m4/filemode.m4: New file.
76111
76112         Module isdir.
76113         * m4/isdir.m4: New file.
76114
76115         Module lchown.
76116         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
76117         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
76118
76119         Module makepath.
76120         * m4/makepath.m4: New file.
76121
76122         Module modechange.
76123         * m4/modechange.m4: New file.
76124
76125         Module mountlist.
76126         * m4/mountlist.m4: New file.
76127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
76128         Indentation.
76129
76130         Module path-concat.
76131         * m4/path-concat.m4: New file.
76132
76133         Module pathmax.
76134         * m4/pathmax.m4: New file.
76135
76136         Module same.
76137         * m4/same.m4: New file.
76138
76139         Module save-cwd.
76140         * m4/save-cwd.m4: New file.
76141
76142         Module savedir.
76143         * m4/savedir.m4: New file.
76144
76145         Module xgetcwd.
76146         * m4/xgetcwd.m4: New file.
76147         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
76148
76149         Module xreadlink.
76150         * m4/xreadlink.m4: New file.
76151
76152         Module safe-read.
76153         * m4/safe-read.m4: New file.
76154
76155         Module safe-write.
76156         * m4/safe-write.m4: New file.
76157
76158         Module closeout.
76159         * m4/closeout.m4: New file.
76160
76161         Module stdio-safer.
76162         * m4/stdio-safer.m4: New file.
76163
76164         Module getpass.
76165         * m4/getpass.m4: New file.
76166
76167         Module getugroups.
76168         * m4/getugroups.m4: New file.
76169
76170         Module group-member.
76171         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
76172         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
76173
76174         Module idcache.
76175         * m4/idcache.m4: New file.
76176
76177         Module userspec.
76178         * m4/userspec.m4: New file.
76179
76180         Module gettime.
76181         * m4/clock_time.m4: New file.
76182         * m4/gettime.m4: New file.
76183
76184         Module settime.
76185         * m4/settime.m4: New file.
76186
76187         Module posixtm.
76188         * m4/posixtm.m4: New file.
76189
76190         Module gethostname.
76191         * m4/gethostname.m4: New file.
76192
76193         Module canon-host.
76194         * m4/canon-host.m4: New file.
76195
76196         Module gettext.
76197         * m4/codeset.m4: New file, from gettext-0.11.5.
76198         * m4/gettext.m4: New file, from gettext-0.11.5.
76199         * m4/glibc21.m4: New file, from gettext-0.11.5.
76200         * m4/iconv.m4: New file, from gettext-0.11.5.
76201         * m4/intdiv0.m4: New file, from gettext-0.11.5.
76202         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
76203         * m4/inttypes.m4: New file, from gettext-0.11.5.
76204         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
76205         * m4/isc-posix.m4: New file, from gettext-0.11.5.
76206         * m4/lcmessage.m4: New file, from gettext-0.11.5.
76207         * m4/lib-ld.m4: New file, from gettext-0.11.5.
76208         * m4/lib-link.m4: New file, from gettext-0.11.5.
76209         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
76210         * m4/progtest.m4: New file, from gettext-0.11.5.
76211         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
76212         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
76213         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76214
76215         Module localcharset.
76216         * m4/localcharset.m4: New file.
76217
76218         Module hard-locale.
76219         * m4/hard-locale.m4: New file.
76220
76221         Module mbswidth.
76222         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76223         onceonly macros.
76224         * m4/mbrtowc.m4: Add comment.
76225
76226         Module memcasecmp.
76227         * m4/memcasecmp.m4: New file.
76228
76229         Module memcoll.
76230         * m4/memcoll.m4: New file.
76231
76232         Module unicodeio.
76233         * m4/unicodeio.m4: New file.
76234
76235         Module rpmatch.
76236         * m4/rpmatch.m4: New file.
76237
76238         Module yesno.
76239         * m4/yesno.m4: New file.
76240
76241         Module exitfail.
76242         * m4/exitfail.m4: New file.
76243
76244         Module c-stack.
76245         * m4/c-stack.m4 (gl_C_STACK): New macro.
76246         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76247
76248         Module error.
76249         * m4/error.m4 (gl_ERROR): New macro.
76250         (jm_PREREQ_ERROR): Use onceonly macros.
76251
76252         Module fatal.
76253         * m4/fatal.m4: New file.
76254
76255         Module getloadavg.
76256         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76257         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76258
76259         Module getpagesize.
76260         * m4/getpagesize.m4: New file.
76261
76262         Module getusershell.
76263         * m4/getusershell.m4: New file.
76264
76265         Module physmem.
76266         * m4/physmem.m4: New file.
76267
76268         Module posixver.
76269         * m4/posixver.m4: New file.
76270
76271         Module quotearg.
76272         * m4/quotearg.m4: New file.
76273
76274         Module quote.
76275         * m4/quote.m4: New file.
76276
76277         Module readutmp.
76278         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76279
76280         Module sig2str.
76281         * m4/sig2str.m4: New file.
76282
76283         Other.
76284         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76285         ulonglong.m4.
76286         * m4/intmax_t.m4: New file.
76287         * m4/d-type.m4: Indentation.
76288         * m4/jm-macros.m4: Update.
76289         * m4/prereq.m4 (jm_PREREQ): Update.
76290         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76291         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76292         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76293         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76294         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76295         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76296         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76297         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76298         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76299         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76300         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76301         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76302         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76303         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76304         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76305         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76306         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76307         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76308         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76309
76310 2002-12-24  Bruno Haible  <bruno@clisp.org>
76311
76312         * MODULES.txt: Update according to m4/ changes.
76313
76314         Module gettext.
76315         * config.rpath: New file, from gettext-0.11.5.
76316
76317         * modules/*: New module descriptions.
76318         * gnulib-tool: New file.
76319         * MODULES.html.sh: New file.
76320
76321 2002-12-21  Karl Berry  <karl@gnu.org>
76322
76323         * doc/fdl.texi: update to version 1.2.
76324
76325 2002-12-19  Karl Berry  <karl@gnu.org>
76326
76327         * config/config.guess: update from prep.
76328
76329 2002-12-18  Bruno Haible  <bruno@clisp.org>
76330
76331         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76332         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76333
76334 2002-12-17  Bruno Haible  <bruno@clisp.org>
76335
76336         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76337         stdlib.h, string.h.
76338
76339 2002-12-17  Bruno Haible  <bruno@clisp.org>
76340
76341         * lib/canon-host.c (strdup): Remove unused declaration.
76342
76343         * lib/fsusage.c: Include full_read.h.
76344         (get_fs_usage): Use full_read instead of safe_read.
76345
76346         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76347
76348 2002-12-12  Karl Berry  <karl@gnu.org>
76349
76350         * config/config.guess: update from prep.
76351
76352 2002-12-11  Bruno Haible  <bruno@clisp.org>
76353
76354         * m4/setenv.m4: New file, from gettext-0.11.5.
76355
76356 2002-12-11  Bruno Haible  <bruno@clisp.org>
76357
76358         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76359         not unsetenv().
76360         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76361         modifications:
76362
76363         2002-12-11  Bruno Haible  <bruno@clisp.org>
76364
76365                 * setenv.c (alloca): Fall back to malloc.
76366                 (freea): New macro.
76367                 (setenv): Use freea() to free memory allocated with alloca().
76368
76369         2002-11-13  Bruno Haible  <bruno@clisp.org>
76370
76371                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76372                 function declarations.
76373                 * unsetenv.c (unsetenv): Likewise.
76374
76375         2002-03-04  Bruno Haible  <bruno@clisp.org>
76376
76377                 Portability to AIX 4.3.3.
76378                 * unsetenv.c: New file, extracted from setenv.c.
76379                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76380
76381         2001-12-20  Bruno Haible  <bruno@clisp.org>
76382
76383                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76384                 use malloc instead. For SunOS 4.
76385
76386         2001-12-11  Bruno Haible  <bruno@clisp.org>
76387
76388                 * setenv.c: Declare alloca.
76389                 (compar_fn_t): New typedef.
76390                 (KNOWN_VALUE, STORE_VALUE): Use it.
76391
76392         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76393         setenv.h.
76394
76395 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76396
76397         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76398         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76399         Choose values that are less likely to collide with system fnmatch
76400         options.
76401         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76402         defined (e.g., a pure POSIX system).
76403         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76404         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76405
76406 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76407
76408         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76409         a pain in practice to deal with generated m4 files.  This change
76410         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76411
76412         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76413         and jm-glibc-io.m4, as they are no longer a special case.
76414         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76415         kludge and the auto-generation stuff.  Check only whether the
76416         functions are declared, not whether they exist, since older hosts
76417         that don't declare the functions can't use the optimization anyway.
76418
76419 2002-12-06  Jim Meyering  <jim@meyering.net>
76420
76421         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76422
76423         Merge in changes from libc's misc/error.c, in preparation
76424         for the merge of gnulib's changes back into libc.
76425
76426         * lib/error.c (_): Define only if not already defined.
76427         Move definition to follow all #include directives.
76428         Include unlocked-io.h only if !_LIBC.
76429         [_LIBC]: Include <libio/libioP.h>.
76430         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76431         (fflush): Tweak definition to use INTUSE.
76432         (putc): Define.
76433
76434 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76435
76436         * lib/alloca.c [defined emacs]: Include "lisp.h".
76437         (xalloc_die) [defined emacs]: New macro.
76438         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76439         [! defined emacs]: Include <xalloc.h>.
76440         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76441         (pointer): Typedef to POINTER_TYPE *.
76442         (malloc): Remove decl; we now always use xmalloc.
76443         (alloca): Use old-style definition, since Emacs needs this.
76444         Check for arithmetic overflow when computing combined size.
76445
76446 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76447
76448         Do not generate unlocked-io.h automatically, since it's easier to
76449         maintain it by hand.
76450
76451         * lib/unlocked-io.h: New file, from GNU diffutils,
76452         but with proper copyright notice and attribution.
76453         * lib/gen-uio: Remove.
76454         * lib/Makefile.am: Add copyright notice.
76455         (libfetish_a_SOURCES): Add unlocked-io.h.
76456         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76457         (DISTCLEANFILES, io_functions): Remove macros.
76458         (EXTRA_DIST): Remove gen_uio.
76459         (unlocked-io.h): Remove rule.
76460
76461 2002-12-04  Jim Meyering  <jim@meyering.net>
76462
76463         Reflect the fact that stat.c and lstat.c are no longer generated.
76464         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76465         (DISTCLEANFILES): Likewise.
76466         (EXTRA_DIST): Likewise.
76467         (all_local): Don't depend on stat.c or lstat.c.
76468         (stat.c, lstat.c): Remove rules.
76469         (EXTRA_DIST): Remove xstat.in.
76470
76471         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76472         * lib/stat.c: New file.  Contents mostly from xstat.in.
76473         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76474         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76475
76476         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76477         too.
76478         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76479
76480 2002-12-03  Jim Meyering  <jim@meyering.net>
76481
76482         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76483         but not semantics, to minimize the differences between these two files.
76484         (safe_read): Change comment to mention SAFE_READ_ERROR.
76485
76486         * lib/safe-read.c (IS_EINTR): Define.
76487         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76488
76489 2002-12-02  Jim Meyering  <jim@meyering.net>
76490
76491         * lib/safe-read.c (EINTR): Define.
76492         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76493         (INT_MAX): Provide fallback.
76494         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76495
76496         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76497
76498 2002-12-02  Bruno Haible  <bruno@clisp.org>
76499
76500         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76501         Define, taken from safe-read.c.
76502         (INT_MAX): Provide fallback.
76503         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76504         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76505
76506         * lib/safe-read.c (EINTR): Remove definition.
76507         (safe_read): Don't use EINTR if it is absent.
76508
76509 2002-12-01  Jim Meyering  <jim@meyering.net>
76510
76511         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76512         zero.
76513         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76514
76515 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76516
76517         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76518         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76519         with `if (! (value < limit)) abort ();', for readability.
76520
76521 2002-11-26  Karl Berry  <karl@gnu.org>
76522
76523         * lib/strdup.c: copy from libc again, with jim's ok.
76524         * lib/.cppi-disable: re-add strdup.c
76525
76526 2002-11-25  Karl Berry  <karl@gnu.org>
76527
76528         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76529         instead of "strtol.c".
76530
76531 2002-11-25  Karl Berry  <karl@gnu.org>
76532
76533         * config/install-sh: update from automake for variable quoting, $0 in
76534         error msgs, etc.
76535
76536         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76537         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76538         entry.
76539
76540 2002-11-25  Jim Meyering  <jim@meyering.net>
76541
76542         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76543
76544 2002-11-24  Karl Berry  <karl@gnu.org>
76545
76546         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76547         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76548
76549 2002-11-24  Jim Meyering  <jim@meyering.net>
76550
76551         Update from coreutils:
76552
76553         * lib/mktime.c: Merge in changes from libc.
76554
76555         Avoid a link-time failure on some Linux systems.
76556         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76557         (otherwise).
76558         (__mon_yday): Declare with the STATIC attribute.
76559         (__mktime_internal): Likewise.
76560         Based on a report from Greg Schafer.
76561
76562 2002-11-23  Jim Meyering  <jim@meyering.net>
76563
76564         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76565         Use `unsigned', not `int', as type of index.
76566
76567         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76568
76569         * lib/fsusage.c: Remove unneeded parentheses around operands of
76570         `defined'.
76571
76572 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76573
76574         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76575         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76576         so that we can be included first.
76577         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76578         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76579         No need to include stddef.h or sys/types.h any more.
76580         Surround local include files with "", not "<>".
76581         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76582         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76583         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76584         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76585         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76586         (ISPRINT): Remove; no longer needed now that we assume C89.
76587
76588         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76589         Preserve errno.
76590
76591         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76592         quotearg_char): Use SIZE_MAX rather than
76593         (size_t) -1 when we are talking about "infinity".
76594
76595         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76596
76597 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76598
76599         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76600         hint that one should use `if (! x) abort ();' rather than `assert
76601         (x);', and anyway it's one less thing to worry about configuring.
76602         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76603         hash_rehash, hash_insert): Use abort rather than assert.
76604
76605 2002-11-22  Bruno Haible  <bruno@clisp.org>
76606
76607         * lib/safe-read.h: Assume C89. Add comments.
76608         (safe_read): Change return type to size_t.
76609         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76610         byte counts > SSIZE_MAX correctly.
76611         * lib/safe-write.h: New file.
76612         * lib/safe-write.c: New file.
76613         * lib/full-read.h: New file.
76614         * lib/full-read.c: New file.
76615         * lib/full-write.h: Assume C89. Add comments.
76616         * lib/full-write.c: Include safe-write.h.
76617         (full_write): Rewritten to use safe_write.
76618         Suggested by Jim Meyering and Paul Eggert.
76619
76620 2002-11-21  Jim Meyering  <jim@meyering.net>
76621
76622         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76623
76624         Merge in changes from the coreutils.
76625
76626         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76627         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76628         <stdint.h>.
76629         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76630         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76631         int.  Work more efficiently if X is the same width as uintmax_t.
76632         Do not compare X to -1, to avoid bogus compiler warning.
76633         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76634         Don't assume that f_frsize and f_bsize are the same type.
76635
76636         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76637         warning on FreeBSD.
76638
76639         * lib/makepath.c (make_path): Restore umask *before* creating the final
76640         component.
76641         (make_path): Minor reformatting.
76642
76643         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76644         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76645         HAVE_MALLOC/HAVE_REALLOC.
76646
76647         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76648         dummy ones.  At least on GNU/Linux systems, `auto' means something
76649         else.
76650         From Michael Stone.
76651
76652 2002-11-21  Bruno Haible  <bruno@clisp.org>
76653
76654         Remove case insensitive option matching.
76655         * lib/argmatch.h (argcasematch): Remove declaration.
76656         (ARGCASEMATCH): Remove macro.
76657         (__xargmatch_internal): Remove case_sensitive argument.
76658         (XARGMATCH): Update.
76659         (XARGCASEMATCH): Remove macro.
76660         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76661         case_sensitive argument.
76662         (argcasematch): Remove function.
76663         (__xargmatch_internal): Remove case_sensitive argument.
76664         (main): Use XARGMATCH instead of XARGCASEMATCH.
76665
76666         * lib/xmalloc.c: Change compile-time error message. Add comment about
76667         required autoconf version.
76668
76669 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76670
76671         Merge argmatch cleanups from Bison.  Assume C89.
76672
76673         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76674         Include stdlib.h, for EXIT_FAILURE.
76675         Always include <string.h>, since we assume C89.
76676         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76677         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76678         Include <stddef.h> instead, since it's all we need for size_t.
76679         (PARAMS): Remove.  All uses removed.
76680         (ARRAY_CARDINALITY): Do not bother to #undef.
76681         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76682         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76683         Remove unnecessary parentheses.
76684         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76685         Insert necessary parentheses.
76686         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76687         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76688
76689 2002-11-19  Bruno Haible  <bruno@clisp.org>
76690
76691         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76692         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76693
76694         * lib/mbswidth.h (PARAMS): Remove macro.
76695         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76696         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76697
76698         * lib/gcd.h (PARAMS): Remove macro.
76699         (gcd): Use ANSI C function declarations.
76700         * lib/gcd.c (gcd): Likewise.
76701
76702 2002-11-15  Bruno Haible  <bruno@clisp.org>
76703
76704         * lib/strcspn.c: Include <stddef.h>.
76705         (strcspn): Use ANSI C function declaration. Change return type to
76706         size_t. Use NULL.
76707         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76708         (strpbrk): Use NULL.
76709         * lib/strpbrk.h (PARAMS): Remove macro.
76710         (strpbrk): Use ANSI C function declaration.
76711         * lib/strstr.c: Don't include <sys/types.h>.
76712         * lib/strstr.h (PARAMS): Remove macro.
76713         (strstr): Use ANSI C function declarations.
76714
76715 2002-11-14  Karl Berry  <karl@gnu.org>
76716
76717         * config/mkinstalldirs: `do' on separate line, instead of
76718         `for var; do'.
76719
76720 2002-11-06  Bruno Haible  <bruno@clisp.org>
76721
76722         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76723         * lib/gcd.c (gcd): Likewise.
76724
76725 2002-11-05  Bruno Haible  <bruno@clisp.org>
76726
76727         * lib/gcd.h: New file, from gettext-0.11.5.
76728         * lib/gcd.c: New file, from gettext-0.11.5.
76729
76730 2002-11-05  Bruno Haible  <bruno@clisp.org>
76731
76732         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76733         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76734         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76735         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76736
76737         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76738         <libintl.h>.
76739         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76740         <libintl.h>.
76741
76742         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76743         * lib/human.c: Include gettext.h instead of <libintl.h>.
76744         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76745         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76746         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76747         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76748         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76749         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76750         (textdomain): Remove definition.
76751         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76752
76753         * lib/long-options.c: Remove include of <libintl.h> and definition of
76754         _.
76755         * lib/same.c: Remove include of <libintl.h> and definition of _.
76756
76757 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76758
76759         * lib/config.charset: A few additions for Solaris.
76760
76761 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76762
76763         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76764         * lib/localcharset.c (locale_charset): Declare as extern "C".
76765
76766 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76767
76768         * lib/config.charset: msdos in uk_UA uses CP1125.
76769
76770 2002-11-04  Bruno Haible  <bruno@clisp.org>
76771
76772         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76773         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76774         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76775         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76776         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76777
76778 2002-11-04  Bruno Haible  <bruno@clisp.org>
76779
76780         * lib/localcharset.c (locale_charset): Don't return an empty string.
76781
76782 2002-11-04  Bruno Haible  <bruno@clisp.org>
76783
76784         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76785         aliases.
76786
76787 2002-11-04  Bruno Haible  <bruno@clisp.org>
76788
76789         * lib/config.charset: Update for newest glibc. Add canonical names
76790         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76791
76792 2002-11-04  Bruno Haible  <bruno@clisp.org>
76793
76794         * lib/config.charset: Add support for NetBSD.
76795
76796 2002-11-04  Bruno Haible  <bruno@clisp.org>
76797
76798         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76799
76800 2002-11-01  Bruno Haible  <bruno@clisp.org>
76801
76802         * configure.in: Add AC_CONFIG_AUX_DIR call.
76803         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76804         test/Makefile.
76805         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76806
76807 2002-09-28  Karl Berry  <karl@gnu.org>
76808
76809         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76810         installed automake until the next release, since changes have been
76811         made.
76812
76813 2002-09-25  Karl Berry  <karl@gnu.org>
76814
76815         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76816         * lib/getopt*: copy from libc/posix.
76817         * lib/gettext.h: copy from gettext.
76818         * lib/.cppi-disable: add strdup.c, gettext.h.
76819
76820 2002-09-25  Karl Berry  <karl@gnu.org>
76821
76822         * config/srclist.txt: enable gettext.h check.
76823         * config/config.{guess,sub}: update from prep.
76824         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76825                 from automake 1.6.3.
76826         See srclist*.
76827
76828 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76829
76830         * regex.c (PATFETCH): Remove the translating fetch.
76831         (PATFETCH_RAW): Rename to PATFETCH.
76832         (set_image_of_range): New fun.
76833         (SET_RANGE_TABLE_WORK_AREA): Use it.
76834         (regex_compile): Don't translate the pattern chars so eagerly.
76835         Only do it when inserting an `exactn' bytecode or when handling
76836         a char-range.
76837         (mutually_exclusive_p): Avoid empty statement.
76838
76839 2002-07-06  Jim Meyering  <meyering@lucent.com>
76840
76841         * m4/README: Don't mention Makefile.am.in.
76842         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76843
76844 2002-07-01  Jim Meyering  <meyering@lucent.com>
76845
76846         * lib/c-stack.c: Include sys/time.h.
76847         From Volker Borchert.
76848
76849 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76850
76851         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76852
76853 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76854
76855         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76856         New macro.  Use it uniformly instead of
76857         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76858         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76859         reported by Vin Shelton.
76860
76861 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76862
76863         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76864         Do not assume SA_SIGINFO behavior.
76865         Bug reported by Jim Meyering on NetBSD 1.5.2.
76866
76867 2002-06-22  Jim Meyering  <meyering@lucent.com>
76868
76869         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76871
76872         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76873         now that configure.ac uses AC_GNU_SOURCE.
76874         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76875         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76876
76877         Update to latest tools.  Suggestions from Paul Eggert.
76878         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76879         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76880         * m4/fnmatch.m4: Likewise.
76881         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76882         to AC_HEADER_STDBOOL
76883
76884 2002-06-22  Jim Meyering  <meyering@lucent.com>
76885
76886         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76887         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76888
76889 2002-06-22  Jim Meyering  <meyering@lucent.com>
76890
76891         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76892
76893         * lib/exitfail.c, exitfail.h: Likewise.
76894         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76895
76896         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76897         of fnmatch.h.
76898         (EXTRA_DIST): Add fnmatch_loop.c.
76899         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76900
76901         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76902         * lib/fnmatch.c: Update from diffutils-2.8.2.
76903         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76904         * lib/fnmatch.h: Remove file.
76905
76906 2002-06-21  Jim Meyering  <meyering@lucent.com>
76907
76908         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76909         * m4/mbrtowc.m4: Likewise.
76910
76911         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76912         * m4/mbswidth.m4: Reflect name change:
76913         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76914         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76915
76916         * m4/lib-link.m4: Update from gettext-0.11.2.
76917         * m4/gettext.m4: Likewise.
76918
76919         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76920         From Alfred M. Szmidt.
76921
76922 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76923
76924         * lib/file-type.h: Report an error if neither S_ISREG nor
76925         S_IFREG is defined, instead of using a test specific to glibc
76926         2.2.  This should be safe, since POSIX requires S_ISREG and
76927         Unix Version 7 had S_IFREG.  We don't need to check for
76928         <sys/types.h> since we don't use any symbols that it defines.
76929
76930 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76931
76932         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76933         $@-t, so that each temporary file name is unique and valid in the first
76934         8 characters, for operation under DOS.
76935
76936 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76937
76938         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76939
76940 2002-06-15  Jim Meyering  <meyering@lucent.com>
76941
76942         Work even with DJGPP 2.03, which lacks support for symlinks.
76943         From Richard Dawe.
76944         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76945         is defined.
76946         * lib/lchown.c (S_ISLNK): Likewise.
76947
76948 2002-06-15  Jim Meyering  <meyering@lucent.com>
76949
76950         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76951         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76952         have been included before this file.
76953
76954 2002-06-14  Jim Meyering  <meyering@lucent.com>
76955
76956         * lib/file-type.h: Use the version from diffutils-2.8.2.
76957         * lib/file-type.c: Likewise.
76958
76959 2002-06-07  Jim Meyering  <meyering@lucent.com>
76960
76961         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76962         They're needed at least for NetBSD 1.5.2.
76963         ($statxfs_includes): Include those same headers.
76964         ($statxfs_includes): Include sys/vfs.h if available.
76965         ($statxfs_includes): Likewise for sys/statvfs.h.
76966         Check for the following members in both structs statfs and statvfs:
76967         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76968
76969 2002-06-01  Jim Meyering  <meyering@lucent.com>
76970
76971         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76972         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76973
76974 2002-05-28  Jim Meyering  <meyering@lucent.com>
76975
76976         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76977         Reported by Volker Borchert.
76978
76979 2002-05-27  Jim Meyering  <meyering@lucent.com>
76980
76981         Fix a problem seen only on nonconforming systems whereby ls.c's
76982         use of localtime, and then of gettimeofday would cause trouble:
76983         the localtime call used to initialize rpl_gettimeofday's save
76984         mechanism would clobber ls's current local time information so
76985         that in any long listing the first file would always be listed
76986         with date 1970-01-01.  Analysis by Volker Borchert.
76987
76988         * lib/gettimeofday.c (localtime): Undefine.
76989         (rpl_localtime): New function.
76990
76991 2002-05-27  Jim Meyering  <meyering@lucent.com>
76992
76993         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76994         localtime.
76995
76996         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76997         use the replacement function; it wouldn't resolve at link time.
76998         Reported by Volker Borchert.
76999
77000 2002-05-22  Jim Meyering  <meyering@lucent.com>
77001
77002         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
77003         file-type.h.
77004         * lib/file-type.h: New file.
77005         * lib/file-type.c (file_type): New file/function.  Extracted from
77006         diffutils.
77007
77008 2002-04-30  Jim Meyering  <meyering@lucent.com>
77009
77010         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
77011
77012 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77013
77014         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
77015
77016 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77017
77018         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
77019         Do not check for alloca.h (no longer used) or stdbool.h (was never
77020         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
77021
77022 2002-04-29  Paul Eggert  <eggert@twinsun.com>
77023
77024         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
77025
77026 2002-04-29  Jim Meyering  <meyering@lucent.com>
77027
77028         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
77029         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
77030         Use AC_FUNC_STRNLEN here instead.
77031
77032         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
77033         With autoconf-2.53a, it's part of AC_PROG_CC.
77034
77035 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77036
77037         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
77038         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
77039
77040 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77041
77042         * lib/sig2str.h, lib/sig2str.c: New files.
77043         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
77044
77045 2002-04-28  Paul Eggert  <eggert@twinsun.com>
77046
77047         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
77048         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
77049         of 127, since 64 is the largest conceivable number for ancient
77050         nonstandard hosts.
77051         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
77052
77053 2002-04-28  Jim Meyering  <meyering@lucent.com>
77054
77055         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
77056
77057 2002-04-24  Jim Meyering  <meyering@lucent.com>
77058
77059         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
77060         (jm_PREREQ): Use it.
77061
77062         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
77063         mach/mach.h fcntl.h.
77064         Check for this function: setlocale.
77065
77066 2002-04-24  Jim Meyering  <meyering@lucent.com>
77067
77068         * lib/gettext.h: New file, from Gettext.
77069         * lib/Makefile.am (INCLUDES): Remove -I../intl.
77070         (libfetish_a_SOURCES): Add gettext.h.
77071
77072 2002-04-16  Jim Meyering  <meyering@lucent.com>
77073
77074         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
77075         ut_pid, ut_id, ut_exit.
77076
77077 2002-04-16  Jim Meyering  <meyering@lucent.com>
77078
77079         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
77080         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
77081         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
77082
77083 2002-04-12  Jim Meyering  <meyering@lucent.com>
77084
77085         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
77086         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
77087         existence of the getmntinfo function.  Needed for Darwin 5.3.
77088
77089         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
77090         This is necessary at least on Darwin 5.3.
77091
77092         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
77093         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
77094         strnlen.o in the library, and that makes some versions of ranlib
77095         object.
77096
77097 2002-04-12  Jim Meyering  <meyering@lucent.com>
77098
77099         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
77100
77101 2002-04-09  Jim Meyering  <meyering@lucent.com>
77102
77103         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
77104         to be more precise.  Rather than saying we're checking whether the
77105         function `works', say what we're testing.
77106         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
77107         Reported by Bruno Haible.
77108
77109 2002-03-10  Jim Meyering  <meyering@lucent.com>
77110
77111         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
77112         Suggestion from Santiago Vila.
77113
77114 2002-03-08  Jim Meyering  <meyering@lucent.com>
77115
77116         * lib/rename.c: Mention that this wrapper is needed also on
77117         mips-dec-ultrix4.4 systems.
77118
77119 2002-03-02  Jim Meyering  <meyering@lucent.com>
77120
77121         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
77122         not HAVE_CLOCK_SETTIME.
77123
77124 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77125
77126         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
77127         Check for clock_settime.
77128
77129 2002-02-27  Paul Eggert  <eggert@twinsun.com>
77130
77131         * lib/nanosleep.h: Rename to....
77132         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
77133
77134         * lib/gettime.c: New file.
77135         * lib/settime.c: New file.
77136         * lib/stime.c: Remove.
77137
77138         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
77139         timespec.h.  Remove nanosleep.h.
77140
77141 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77142
77143         * m4/acl.m4: New file.
77144         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
77145         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
77146
77147 2002-02-25  Paul Eggert  <eggert@twinsun.com>
77148
77149         * lib/acl.c, lib/acl.h: New files.
77150         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
77151
77152 2002-02-24  Jim Meyering  <meyering@lucent.com>
77153
77154         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
77155         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
77156         cause trouble.  Reported by Nelson Beebe.
77157
77158 2002-02-23  Paul Eggert  <eggert@twinsun.com>
77159
77160         * lib/path-concat.c (xpath_concat): Reorder code to pacify
77161         compilers that don't know that xalloc_die never returns.
77162
77163 2002-02-20  Jim Meyering  <meyering@lucent.com>
77164
77165         * lib/getdate.c: Regenerate using bison-1.33.
77166
77167 2002-02-17  Jim Meyering  <meyering@lucent.com>
77168
77169         * config/config.guess (main): Don't use `head -1'; it's no longer
77170         portable. Use `sed 1q' instead.
77171
77172 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
77173
77174         * m4/codeset.m4: Upgrade to gettext-0.11.
77175         * m4/gettext.m4: Upgrade to gettext-0.11.
77176         * m4/glibc21.m4: Upgrade to gettext-0.11.
77177         * m4/iconv.m4: Upgrade to gettext-0.11.
77178         * m4/isc-posix.m4: Upgrade to gettext-0.11.
77179         * m4/lcmessage.m4: Upgrade to gettext-0.11.
77180         * m4/lib-ld.m4: New file, from gettext-0.11.
77181         * m4/lib-link.m4: New file, from gettext-0.11.
77182         * m4/lib-prefix.m4: New file, from gettext-0.11.
77183         * m4/progtest.m4: Upgrade to gettext-0.11.
77184
77185 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77186
77187         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
77188         (jm_PREREQ): Use it.
77189
77190 2002-02-15  Paul Eggert  <eggert@twinsun.com>
77191
77192         * lib/posixver.c, lib/posixver.h: New files.
77193         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77194
77195 2002-02-02  Paul Eggert  <eggert@twinsun.com>
77196             Bruno Haible  <bruno@clisp.org>
77197
77198         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
77199         (fwrite_success_callback): New declaration.
77200         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
77201         print_unicode_char. Call failure callback instead of error.
77202         (fwrite_success_callback): New function.
77203         (exit_failure_callback): New function.
77204         (fallback_failure_callback): New function.
77205         (print_unicode_char): Call unicode_to_mb.
77206
77207 2002-01-26  Jim Meyering  <meyering@lucent.com>
77208
77209         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
77210         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
77211
77212 2002-01-26  Jim Meyering  <meyering@lucent.com>
77213
77214         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77215
77216 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77217
77218         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77219
77220 2002-01-22  Jim Meyering  <meyering@lucent.com>
77221
77222         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77223         Otherwise, some versions of automake would omit the rule that makes
77224         Makefile from Makefile.in.
77225
77226 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77227
77228         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77229         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77230         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77231         (memcoll): Set errno to zero if there is no error.
77232
77233         * lib/quotearg.c (quotearg_buffer_restyled):
77234         Fix bug with quoting buffers containing NUL when backslashing escapes.
77235         This bug was exposed by the other changes in this patch.
77236         (quotearg_n_options): New arg ARGSIZE.
77237         All callers changed.
77238         (quoting_options_from_style): New function.
77239         (quotearg_n_style): Use it.
77240         (quotearg_n_style_mem): New function.
77241
77242         * lib/quotearg.h (quotearg_n_style_mem): New function.
77243
77244 2002-01-19  Jim Meyering  <meyering@lucent.com>
77245
77246         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77247         Remove useless quotes: DF_PROG="df".
77248         * m4/strnlen.m4: New file.
77249
77250 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77251
77252         * lib/backupfile.c (ISDIGIT): Comment fix.
77253         * lib/getdate.y (ISDIGIT): Likewise.
77254         * lib/posixtm.c (ISDIGIT, year): Likewise.
77255         * lib/strverscmp.c (ISDIGIT): Likewise.
77256         * lib/userspec.c (ISDIGIT): Likewise.
77257
77258 2002-01-16  Jim Meyering  <meyering@lucent.com>
77259
77260         * lib/getdate.y: Add three semicolons, each just before a closing
77261         brace. Bison (as of version 1.31) no longer papers over that mistake.
77262
77263 2002-01-05  Jim Meyering  <meyering@lucent.com>
77264
77265         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77266
77267 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77268
77269         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77270         not silently exit merely because the output buffer happens to
77271         have nothing pending.
77272
77273 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77274
77275         See the big note in ../ChangeLog.
77276         * lib/human.c (suffixes): Prefer K to k for 1024.
77277         (generate_suffix_backwards): New function.
77278         (human_readable_inexact): Use it.
77279         * lib/xstrtol.c (__xstrtol): If there is no number but there
77280         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77281         Accept 'K' as well as 'k'.
77282
77283 2001-12-15  Jim Meyering  <meyering@lucent.com>
77284
77285         * lib/regex.h (__restrict_arr): Update from libc.
77286
77287         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77288         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77289         (STREQ): Define.
77290
77291 2001-12-14  Jim Meyering  <meyering@lucent.com>
77292
77293         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77294         Suggestion from Bruno Haible.
77295
77296 2001-12-10  Jim Meyering  <meyering@lucent.com>
77297
77298         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77299         xrealloc, Instead, include "xalloc.h".
77300         (initbuffer): Don't cast xmalloc return value to char*.
77301         (readline): Reword comment.
77302         Don't cast xrealloc return value to char*
77303         Return NULL, not 0.
77304
77305 2001-12-09  Jim Meyering  <meyering@lucent.com>
77306
77307         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77308         about `signed and unsigned type in conditional expression'.
77309         * lib/posixtm.c (posix_time_parse): Likewise.
77310
77311         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77312
77313         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77314         to avoid a pedantic warning.
77315
77316         * lib/getstr.c: Don't include assert.h.
77317         (getstr): Remove warning-evoking assertions.
77318         Return -1 if offset parameter is out of bounds.
77319         Change the type of a local from int to size_t.
77320
77321         * lib/strftime.c (my_strftime_localtime_r): Include this function
77322         definition in the `#if ! HAVE_TM_GMTOFF' block.
77323
77324         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77325         Include xalloc.h instead.
77326
77327 2001-12-02  Jim Meyering  <meyering@lucent.com>
77328
77329         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77330         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77331         included.
77332
77333         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77334         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77335
77336 2001-11-30  Akim Demaille  <akim@epita.fr>
77337
77338         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77339         before being defined.
77340
77341 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77342
77343         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77344         First arg is int, not unsigned.
77345         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77346         (SIZE_MAX, UINT_MAX): New macros.
77347         (quotearg_n_options): Abort if N is negative.
77348         Avoid overflow check on hosts where size_t is 64 bits and int
77349         is 32 bits, as overflow is impossible there.
77350         Fix off-by-one typo that caused unnecessary reallocation.
77351
77352 2001-11-27  Jim Meyering  <meyering@lucent.com>
77353
77354         * lib/tempname.c: Merge with version from libc.
77355         * lib/regex.c: Likewise.
77356
77357         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77358         systems for which STDC_HEADERS is 0, it was not included, resulting in
77359         a warning about an integer-to-pointer conversion problem with getenv.
77360         Reported by Volker Borchert.
77361
77362 2001-11-26  Jim Meyering  <meyering@lucent.com>
77363
77364         * lib/gtod.h: Remove file.
77365         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77366         * lib/gettimeofday.c: Don't include gtod.h.
77367         (GTOD_init): Remove function.
77368         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77369         Suggestion from Volker Borchert.
77370
77371 2001-11-23  Jim Meyering  <meyering@lucent.com>
77372
77373         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77374         it.
77375         * lib/hash.c (struct hash_table): Define it here instead.
77376
77377 2001-11-22  Jim Meyering  <meyering@lucent.com>
77378
77379         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77380
77381 2001-11-20  Jim Meyering  <meyering@lucent.com>
77382
77383         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77384         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77385
77386 2001-11-19  Jim Meyering  <meyering@lucent.com>
77387
77388         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77389         directory.  Use "conftestXXXXXX" as the template.
77390         Suggestion from Paul Eggert.
77391
77392         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77393         immediately, so the test doesn't mistakenly hit the max-open-files
77394         limit.
77395
77396 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77397
77398         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77399         (TEMPORARIES): New macro.
77400         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77401         removes an artificial limitation (e.g. HP-UX 10.20, where
77402         TMP_MAX is 17576).
77403
77404 2001-11-18  Jim Meyering  <meyering@lucent.com>
77405
77406         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77407
77408 2001-11-18  Jim Meyering  <meyering@lucent.com>
77409
77410         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77411         on SunOS 4.
77412
77413         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77414         files will be created before anything else.
77415
77416 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77417
77418         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77419         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77420
77421 2001-11-17  Jim Meyering  <meyering@lucent.com>
77422
77423         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77424         Prompted by a report from Bob Proulx.
77425
77426         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77427         Instead, require UTILS_FUNC_MKSTEMP.
77428
77429 2001-11-17  Jim Meyering  <meyering@lucent.com>
77430
77431         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77432         Now, that's done as part of AC_FUNC_STRTOD.
77433
77434 2001-11-17  Jim Meyering  <meyering@lucent.com>
77435
77436         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77437         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77438         rather than group writable.  Patch by Juan F. Codagnone.
77439
77440         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77441         xrealloc, Instead, include "xalloc.h".
77442
77443         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77444         Remove explicit declarations of xmalloc, xrealloc,
77445         and xstrdup.  Instead, include "xalloc.h".
77446
77447         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77448         unlocked-io.h.
77449         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77450         Likewise.
77451         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77452
77453         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77454         Reported by Padraig Brady.
77455
77456         * lib/mkstemp.c: #undef mkstemp.
77457         Include config.h.
77458         (rpl_mkstemp): Rename from mkstemp.
77459         Protoize.
77460
77461 2001-11-16  Jim Meyering  <meyering@lucent.com>
77462
77463         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77464         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77465         determine the amount of total physical memory, use pstat_getstatic.
77466         HPUX-11 doesn't define _SC_PHYS_PAGES.
77467         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77468         If sysconf couldn't be used to determine the amount of available
77469         physical memory, use both pstat_getstatic and pstat_getdynamic.
77470         Based on a patch from Bob Proulx.
77471
77472 2001-11-10  Jim Meyering  <meyering@lucent.com>
77473
77474         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77475         (jm_PREREQ): Use it.
77476
77477 2001-11-09  Jim Meyering  <meyering@lucent.com>
77478
77479         * m4/jm-macros.m4: Require autoconf-2.52f.
77480         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77481         Use these AC_-prefixed names, not the AM_-prefixed ones.
77482
77483         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77484
77485 2001-11-05  Jim Meyering  <meyering@lucent.com>
77486
77487         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77488
77489 2001-11-04  Jim Meyering  <meyering@lucent.com>
77490
77491         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77492         $DEFS.
77493
77494 2001-11-03  Jim Meyering  <meyering@lucent.com>
77495
77496         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77497         of AC_DEFUN.
77498
77499         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77500         know the name of the variable in the macro definition.
77501
77502 2001-11-03  Jim Meyering  <meyering@lucent.com>
77503
77504         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77505         in argmatch_to_argument call.
77506
77507         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77508         argument.
77509
77510         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77511         e.g., a fault due to an attempt to free a NULL pointer.
77512
77513 2001-11-01  Jim Meyering  <meyering@lucent.com>
77514
77515         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77516         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77517
77518 2001-11-01  Jim Meyering  <meyering@lucent.com>
77519
77520         * lib/dirfd.c, lib/dirfd.h: New files.
77521         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77522
77523         * lib/hash.c (hash_print) [TESTING]: Clean up.
77524
77525 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77526
77527         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77528         to avoid a warning if -Wall.
77529
77530 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77531
77532         * README: New file
77533         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77534         (per RMS's instructions, this is now the canonical source)
77535         * lgpl/, gpl/: New directories.
77536
77537 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77538
77539         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77540
77541 2001-10-21  Jim Meyering  <meyering@lucent.com>
77542
77543         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77544         this code would end up calling gettext even in packages built
77545         with --disable-nls.
77546         * lib/getopt.c (_): Likewise.
77547         * lib/regex.c (_): Likewise.
77548
77549 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77550
77551         * m4/error.m4 (jm_PREREQ_ERROR):
77552         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77553         AC_FUNC_STRERROR_R does that.
77554         Check for strerror declaration.
77555
77556         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77557         are supposed to have them these days.
77558         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77559         Merge changes from latest Autoconf CVS.
77560         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77561         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77562         POSIX decided to standardize on the int flavor of strerror_r.
77563
77564 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77565
77566         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77567         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77568         Use strerror_r that is only a macro, even if it is not a function.
77569         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77570         (private_strerror): Use prototypes, not old-style function definition.
77571         (print_errno_message): New function.
77572         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77573         char*-flavored one.
77574         (error_tail, error, error_at_line): Use it.
77575
77576 2001-10-11  Jim Meyering  <meyering@lucent.com>
77577
77578         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77579         and quote_n (1, ... to avoid clobbering a buffer.
77580
77581 2001-10-05  Jim Meyering  <meyering@lucent.com>
77582
77583         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77584         hash-pjw.h.
77585         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77586         * lib/hash-pjw.h: New file.
77587
77588 2001-09-30  Jim Meyering  <meyering@lucent.com>
77589
77590         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77591         `struct fsstat' has the `f_fstypename' member.
77592         Use that to define FS_TYPE, which is now used to make
77593         the getfsstat link test tighter.
77594
77595 2001-09-30  Jim Meyering  <meyering@lucent.com>
77596
77597         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77598         Include <sys/ucred.h>, for Apple Darwin.
77599         Include sys/mount.h and sys/fs_types.h only if available.
77600         (FS_TYPE): Define.
77601         (read_filesystem_list): Use FS_TYPE.
77602
77603 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77604
77605         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77606         a boolean context.
77607
77608 2001-09-29  Jim Meyering  <meyering@lucent.com>
77609
77610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77611         [one-argument getmntent function]): Include stdio.h before mntent.h.
77612         SunOS 4.1.x needs it for the declaration of `FILE'.
77613         Patch by Volker Borchert.
77614
77615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77616         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77617         sys/fs_types.h, and make the link-test for getfsstat guard #include
77618         directives with appropriate #if HAVE_*_H tests so that we can
77619         detect getfsstat on Apple Darwin1.3.7 systems.
77620         Reported by Nelson Beebe.
77621         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77622
77623 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77624
77625         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77626         #defines strtoimax.  Also treat the other strto* functions
77627         like strtoimax.
77628
77629         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77630         Check for strtoul and strtoumax,
77631         as those declarations are made even in the signed case.
77632         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77633         Likewise, for strtol and strtoimax.
77634
77635 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77636
77637         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77638         #defines strtoimax.  Also treat the other strto* functions
77639         like strtoimax.
77640
77641         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77642         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77643         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77644
77645 2001-09-26  Jim Meyering  <meyering@lucent.com>
77646
77647         Most macros in unlocked-io.h had the wrong number of arguments.
77648         * lib/gen-uio: New script.
77649         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77650         * lib/unlocked-io.hin: Remove file.
77651         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77652         rather than trying to embed it here.
77653         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77654         Reported by Padraig Brady.
77655
77656 2001-09-25  Volker Borchert  <bt@teknon.de>
77657
77658         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77659         `result'.
77660
77661 2001-09-24  Jim Meyering  <meyering@lucent.com>
77662
77663         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77664
77665 2001-09-23  Jim Meyering  <meyering@lucent.com>
77666
77667         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77668         instead of the mere test for existence of mntent.h.  The latter
77669         would get a false-positive on AIX 3.4 systems.
77670         In the outer getmntent if-block, don't die if neither of the getmntent
77671         tests succeeds.  Instead, just fall through and continue with the
77672         remaining tests.
77673
77674 2001-09-23  Jim Meyering  <meyering@lucent.com>
77675
77676         * lib/mountlist.c: Remove useless parentheses in #if directives.
77677         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77678         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77679
77680 2001-09-22  Jim Meyering  <meyering@lucent.com>
77681
77682         * m4/gettext.m4: New file.  From gettext.
77683         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77684         * m4/progtest.m4: Likewise
77685         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77686         * m4/glibc21.m4: Likewise.
77687
77688         * m4/libintl.m4: Remove.  No longer used.
77689
77690 2001-09-22  Jim Meyering  <meyering@lucent.com>
77691
77692         * lib/localcharset.c: Update from latest gettext.
77693         * lib/config.charset: Likewise.
77694
77695 2001-09-20  Jim Meyering  <meyering@lucent.com>
77696
77697         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77698         strtoimax.
77699         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77700         strtoumax.
77701
77702 2001-09-20  Jim Meyering  <meyering@lucent.com>
77703
77704         * lib/xstrtol.c (strtoimax): Guard declaration with
77705         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77706         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77707         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77708         (strtoumax): Likewise, for completeness (it wasn't necessary).
77709
77710 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77711
77712         * lib/strtoimax.c (HAVE_LONG_LONG):
77713         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77714         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77715         to work around bug in IBM C compiler.
77716
77717 2001-09-17  Jim Meyering  <meyering@lucent.com>
77718
77719         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77720         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77721         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77722         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77723         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77724         whenever the right hand side need not be expanded by the shell.
77725
77726 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77727
77728         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77729         library.  It's not correct, as some older glibcs are buggy.
77730         fnmatch wasn't fixed until glibc 2.2.
77731
77732         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77733         special shell magic here.
77734
77735 2001-09-16  Jim Meyering  <meyering@lucent.com>
77736
77737         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77738         * m4/jm-macros.m4: Require it.
77739
77740 2001-09-16  Jim Meyering  <meyering@lucent.com>
77741
77742         * lib/mkdir.c: New file.
77743
77744 2001-09-15  Jim Meyering  <meyering@lucent.com>
77745
77746         * m4/jm-macros.m4: Check for help2man.
77747
77748 2001-09-11  Jim Meyering  <meyering@lucent.com>
77749
77750         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77751         The body, by Paul Eggert, was moved here from configure.in.
77752         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77753
77754 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77755
77756         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77757         (jm_PREREQ): Use it.
77758
77759 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77760
77761         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77762         Use ssize_t, not int, to store result of readlink.
77763         Check for ssize_t overflow as well as size_t overflow,
77764         as POSIX says the result of readlink is implementation-defined
77765         when ssize_t overflows.
77766         Remove unnecessary cast to char*.
77767         Use free+malloc instead of realloc, as the storage doesn't need
77768         to be preserved and it's clearer and can be more efficient that way.
77769         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77770         * lib/xreadlink.h (xreadlink): Update prototype.
77771
77772 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77773
77774         * lib/xgetcwd.c: Revert some of the previous change; intead,
77775         fix the HAVE_GETCWD_NULL code to behave more like the
77776         !HAVE_GETCWD_NULL code used to.
77777
77778         Include "xalloc.h".
77779         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77780         invoke xalloc_die.
77781
77782 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77783
77784         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77785         sys/param.h, as pathmax.h includes them.
77786
77787 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77788
77789         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77790         (jm_PREREQ_XGETCWD): New macro.
77791
77792         * m4/getcwd.m4: New file.
77793
77794 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77795
77796         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77797         like the HAVE_GETCWD_NULL code.
77798         Include pathmax.h if not HAVE_GETCWD.
77799         Do not include xalloc.h.
77800         (INITIAL_BUFFER_SIZE): New symbol.
77801         Do not use xmalloc / xrealloc, since the caller is responsible for
77802         handling errors.  Preserve errno around `free' during failure.
77803         Do not overrun buffer when using getwd.
77804
77805 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77806
77807         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77808         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77809         getcwd (NULL, 0).
77810
77811 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77812
77813         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77814         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77815         spotted by Jim Meyering.
77816
77817 2001-09-03  Jim Meyering  <meyering@lucent.com>
77818
77819         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77820         failure.
77821
77822 2001-09-02  Jim Meyering  <meyering@lucent.com>
77823
77824         * lib/error.c: Update from GNU libc.
77825
77826 2001-09-01  Jim Meyering  <meyering@lucent.com>
77827
77828         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77829         Used by df.
77830
77831 2001-09-01  Jim Meyering  <meyering@lucent.com>
77832
77833         * lib/xreadlink.c: New file.
77834         * lib/xreadlink.h: New file.
77835         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77836         xreadlink.h.
77837
77838         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77839         doesn't conflict with sparc Solaris 7's definition in
77840         /usr/include/sys/int_types.h.
77841
77842         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77843         files.
77844         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77845         and strncasecmp as r-values.  Unixware didn't have declarations.
77846
77847 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77848
77849         * lib/xstrtol.h: Add copyright notice.
77850         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77851         LONGINT_INVALID_SUFFIX_CHAR.
77852
77853 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77854
77855         * lib/xstrtol.c (strtoimax): New decl.
77856
77857 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77858
77859         * lib/xgetcwd.c: Don't include pathmax.h.
77860         Include stdlib.h and unistd.h if available.
77861         Include xalloc.h.
77862         (xmalloc, xstrdup, free): Remove decls.
77863         (xgetcwd): Don't assume sizes fit in unsigned.
77864         Check for overflow when computing sizes.
77865         Simplify reallocation code.
77866
77867 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77868
77869         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77870         a directory's st_size can have an arbitrary value, so the old
77871         usage could waste an arbitrary amount of memory.  All uses
77872         changed.
77873         * lib/savedir.h: Update prototype.
77874
77875 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77876
77877         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77878
77879         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77880         old strtoimax.c.
77881
77882         Also, make the following further changes to make this file's
77883         configuration more similar to that of strtol.c:
77884         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77885         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77886         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77887         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77888         changed to signed values.
77889
77890         And make the following changes as well:
77891         Fix copyright notice, as 1999 was missing.
77892         (verify): New macro.
77893         (strtoimax): Check sizes at compile-time, not run-time.
77894         Prefer strtol to strtoll if both work.
77895         (main): Remove; it was not that useful and was a pain to maintain.
77896
77897         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77898
77899 2001-08-31  Jim Meyering  <meyering@lucent.com>
77900
77901         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77902         Use an initial, malloc'd, buffer of length 128 rather than
77903         a statically allocated one of length 1024.
77904
77905 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77906
77907         Simplify code, partly by assuming autoconf 2.52 semantics.
77908
77909         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77910
77911         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77912         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77913         All uses removed.
77914         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77915         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77916         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77917         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77918         jm_AC_HEADER_INTTYPES_H.
77919         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77920
77921         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77922
77923         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77924         Quote first arg of AC_DEFUN.
77925         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77926         since they are needed to parse the include file even if we need
77927         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77928         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77929         but with opposite signedness.
77930
77931 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77932
77933         Merge 'exclude' changes from tar 1.13.22.
77934         This fixes one or two unlikely storage allocation overflow bugs,
77935         but doesn't change user-visible behavior otherwise.
77936
77937 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77938
77939         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77940         (jm_PREREQ_EXCLUDE): New macro.
77941
77942 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77943
77944         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77945         tm to be declared.
77946
77947 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77948
77949         * lib/hash.c: Remove '2001' from copyright notice.
77950
77951 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77952
77953         * lib/full-write.h: New file.
77954         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77955         * lib/full-write.c: Correct credits, as cccp.c no longer
77956         exists and anyway it was so heavily changed from the old cccp
77957         code as to be unrecognizable.  Include full-write.h.
77958         (full_write): Return size_t, with short writes meaning failure.
77959         All callers changed.  This fixes a bug with large buffers
77960         on 64-bit hosts.
77961         * lib/utime.c: Include full-write.h.
77962
77963 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77964
77965         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77966         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77967         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77968         Include if available.
77969         (<xalloc.h>): Include
77970         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77971         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77972         collide with FNM macros.
77973         (struct patopts): New struct.
77974         (struct exclude): Use it, as exclude patterns now come with options.
77975         (new_exclude): Support above changes.
77976         (new_exclude, add_exclude_file):
77977         Initial size must now be a power of two to simplify overflow checking.
77978         (free_exclude, fnmatch_no_wildcards): New function.
77979         (excluded_filename): No longer requires options arg, as the options
77980         are determined by add_exclude.  Now returns bool, not int.
77981         (excluded_filename, add_exclude):
77982         Add support for the fancy new exclusion options.
77983         (add_exclude, add_exclude_file): Now takes int options arg.
77984         Check for arithmetic overflow when computing sizes.
77985         (add_exclude_file): xrealloc might modify errno, so don't
77986         realloc until after errno might be used.
77987
77988         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77989         New macros.
77990         (free_exclude): New decl.
77991         (add_exclude, add_exclude_file): Now takes int options arg.
77992         (excluded_filename): No longer requires options arg, as the options
77993         are determined by add_exclude.  Now returns bool, not int.
77994
77995 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77996
77997         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77998
77999 2001-08-27  Jim Meyering  <meyering@lucent.com>
78000
78001         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
78002
78003         * lib/version-etc.c (N_): Remove definition.
78004         Revert most of last change.
78005         Instead, simply don't mark the `Copyright...' string for translation.
78006         Based on advice from Paul Eggert.
78007
78008         * lib/strtoxmax.c: Tweak comment.
78009
78010 2001-08-26  Jim Meyering  <meyering@lucent.com>
78011
78012         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
78013
78014         * m4/xstrtoimax.m4: New file.
78015         * m4/xstrtoumax.m4: Add comments explaining why we
78016         AC_REPLACE_FUNCS(strtol).
78017
78018 2001-08-26  Jim Meyering  <meyering@lucent.com>
78019
78020         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
78021         of copyright with `%s' so translators don't get an untranslated
78022         message in 2002.
78023         (COPYRIGHT_YEAR): Define.
78024         (version_etc): Use fprintf rather than fputs.
78025         Suggestion from Ulrich Drepper.
78026
78027         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
78028
78029         * lib/strtoll.c: New file, from GNU libc.
78030         * lib/xstrtoimax.c: New file.
78031
78032         * lib/xstrtol.h: Add xstrtoimax.
78033         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
78034         * lib/strtoimax.c: New file.  Likewise, but first define
78035         STRTOUXMAX_SIGNED.
78036
78037         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
78038         ...
78039         * lib/strtoxmax.c: ... then renamed to this.
78040
78041 2001-08-18  Paul Eggert  <eggert@twinsun.com>
78042
78043         * m4/inttypes.m4: Add AC_PREREQ(2.13).
78044         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
78045         (jm_AC_TYPE_INTMAX_T): New macro.
78046         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
78047
78048         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
78049
78050         * m4/longlong.m4: Renamed from ulonglong.m4.
78051         * m4/inttypes.m4: Renamed from inttypes_h.m4.
78052         * m4/uintmax_t.m4: Removed.
78053
78054 2001-08-13  Paul Eggert  <eggert@twinsun.com>
78055
78056         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
78057         Port to Solaris 8, where 'sed' requires a space after the 'r'
78058         command, and where sh dislikes "$/".  Clean up the spacing a bit.
78059         Redirect output to $tmp just once.
78060
78061 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
78062
78063         * lib/addext.c (<errno.h>): Include.
78064         (errno): Declare if not defined.
78065         (addext): Work correctly when pathconf returns -1 and leaves
78066         errno alone because there is no limit.  Also, work even if
78067         pathconf returns a value greater than SIZE_MAX.
78068
78069 2001-08-12  Jim Meyering  <meyering@lucent.com>
78070
78071         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
78072         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
78073         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
78074         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
78075         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
78076         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
78077         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
78078         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
78079         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
78080         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
78081         utime.m4, utimes.m4, xstrtoumax.m4:
78082         Quote the first argument in each use of AC_DEFUN.
78083
78084 2001-08-12  Jim Meyering  <meyering@lucent.com>
78085
78086         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
78087         Simply `return getcwd (NULL, 0);'.
78088         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
78089         Use 1300 as initial value for length, not PATH_MAX.
78090
78091         * lib/pathmax.h: Clean up cpp syntax.
78092
78093 2001-08-12  Jim Meyering  <meyering@lucent.com>
78094
78095         * lib/gettimeofday.c: New file.
78096         * lib/gtod.h: New file.
78097         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
78098
78099 2001-08-05  Jim Meyering  <meyering@lucent.com>
78100
78101         * m4/jm-macros.m4: Require autoconf-2.52.
78102
78103 2001-08-04  Jim Meyering  <meyering@lucent.com>
78104
78105         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
78106         stmt, to get in sync with glibc.
78107
78108 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78109
78110         The following changes are from gettext 0.10.39 as maintained by
78111         Bruno Haible.
78112
78113         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
78114         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
78115         with inverted sense.  All uses changed.
78116
78117         * lib/mbswidth.c: Don't include <limits.h>.
78118         Include <stdlib.h> and <string.h> unconditionally.
78119         (iswcntrl, mbsinit, ISCNTRL): New macros.
78120         (mbsnwidth): Use K&R style function declarations.
78121         Don't bother checking for MB_LEN_MAX == 1, since the compiler
78122         can optimize it when MB_CUR_MAX == 1.
78123         The width of control characters is zero, not 1.
78124
78125 2001-08-03  Paul Eggert  <eggert@twinsun.com>
78126
78127         The following changes are from gettext 0.10.39 as maintained by
78128         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
78129
78130         * m4/codeset.m4: Upgrade to serial AM1.
78131         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
78132         all uses changed.  Quote first arg of AC_DEFUN.
78133         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
78134
78135         * m4/iconv.m4: Upgrade to serial AM2.
78136         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
78137         Add --with-libconv-prefix.
78138         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
78139         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
78140         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
78141         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
78142         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
78143
78144         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
78145         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
78146         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
78147         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
78148         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
78149         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
78150         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
78151         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
78152         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78153
78154         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
78155         string.h any more.
78156
78157         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
78158         not the default value.
78159
78160         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
78161         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
78162         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
78163         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
78164         Also check for iswcntrl, used for wcwidth fallback.
78165         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
78166         to Autoconf 2.13.
78167
78168 2001-08-03  Jim Meyering  <meyering@lucent.com>
78169
78170         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
78171         as it was in the original.  Reported by Paul Eggert.
78172
78173 2001-07-16  Jim Meyering  <meyering@lucent.com>
78174
78175         * m4/gettimeofday.m4: New file.
78176         Prompted by a report from Bernhard Baehr.
78177
78178 2001-07-15  Jim Meyering  <meyering@lucent.com>
78179
78180         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
78181         stuff. Now it's in ../Makefile.cfg.
78182
78183 2001-07-15  Jim Meyering  <meyering@lucent.com>
78184
78185         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
78186         (BUILT_SOURCES): Add unlocked-io.h.
78187         (io_functions): Define.
78188         (unlocked-io.h): New rule.
78189         (DISTCLEANFILES): Add unlocked-io.h.
78190         (all-local): Depend on unlocked-io.h, to ensure it is created.
78191
78192         * lib/unlocked-io.hin: New file
78193
78194         * lib/regex.c: Update from glibc.
78195
78196 2001-07-05  Jim Meyering  <meyering@lucent.com>
78197
78198         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
78199         recommendation.
78200         (libfetish_a_SOURCES): Put all .h files here instead.
78201         Remove a thus-exposed (better checks in automake) duplicate and
78202         two unnecessary .h files.
78203
78204 2001-07-04  Jim Meyering  <meyering@lucent.com>
78205
78206         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
78207         that generates jm-glibc-io.m4 so that it doesn't trigger any make
78208         distcheck failure.
78209
78210 2001-07-02  Jim Meyering  <meyering@lucent.com>
78211
78212         The following changes were prompted by suggestions from Bruno Haible.
78213
78214         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78215         is now generated.
78216         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78217         definition of EXTRA_DIST.
78218         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78219         ensure that the generated file is created/updated whenever the list
78220         of $(unlocked_functions) is changed.
78221         (jm-glibc-io.m4): New rule.
78222         (unlocked-io.h): New rule -- currently unused.
78223
78224 2001-06-24  Jim Meyering  <meyering@lucent.com>
78225
78226         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78227         unmatched right bracket, rather than kludging it with an extra,
78228         falsely-matching quote in a comment.  Patch by Akim Demaille.
78229
78230 2001-06-11  Jim Meyering  <meyering@lucent.com>
78231
78232         * lib/regex.c: Update from GNU libc.
78233
78234 2001-05-27  Jim Meyering  <meyering@lucent.com>
78235
78236         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78237         Check for ut_type in struct utmp.
78238
78239 2001-05-27  Jim Meyering  <meyering@lucent.com>
78240
78241         * lib/readutmp.h (UT_TYPE): Define.
78242
78243 2001-05-24  Jim Meyering  <meyering@lucent.com>
78244
78245         * lib/argmatch.c: Include "quote.h".
78246         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78247         quote function.  Reported by Göran Uddeborg.
78248
78249 2001-05-22  Jim Meyering  <meyering@lucent.com>
78250
78251         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78252         now that we use the package-supplied version unconditionally.
78253         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78254
78255 2001-05-21  Jim Meyering  <meyering@lucent.com>
78256
78257         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78258         shell syntax errors.
78259
78260 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78261
78262         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78263
78264 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78265
78266         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78267         Don't bother to check library strftime, since
78268         we'll be using our own my_strftime function anyway.
78269         Define my_strftime instead of strftime.
78270
78271 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78272
78273         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78274         which is not yet declared.
78275
78276 2001-05-15  Jim Meyering  <meyering@lucent.com>
78277
78278         * m4/regex.m4: Use proper quoting so brackets appear in the test
78279         program.
78280         Reported by, and with help from, Bruno Haible.
78281
78282 2001-05-13  Jim Meyering  <meyering@lucent.com>
78283
78284         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78285         undefined.
78286
78287 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78288
78289         dirname code cleanup.  base_name now behaves more compatibly
78290         with POSIX basename when given file names that have trailing
78291         slashes, and similarly for dir_name.  Add new primitives
78292         base_len and dir_len.  Put the directory-name-related decls
78293         into dirname.h.
78294
78295         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78296         * lib/backupfile.c (base_name): Likewise.
78297         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78298         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78299         * lib/makepath.c (strip_trailing_slashes): Likewise.
78300         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78301         ISSLASH): Likewise.
78302         * lib/rename.c (strip_trailing_slashes): Likewise.
78303         * lib/same.c (base_name): Likewise.
78304         * lib/stripslash.c (ISSLASH): Likewise.
78305
78306         * lib/addext.c: Include <dirname.h> after size_t is defined.
78307         * lib/backupfile.c: Likewise.
78308
78309         * lib/addext.c (addext): Use base_len to trim redundant
78310         trailing slashes instead of doing it ourselves.
78311         But do not trim the last slash if it is not redundant.
78312
78313         * lib/backupfile.c (find_backup_file_name,
78314         max_backup_version): Use base_len instead of rolling it ourselves.
78315         Handle the case of "" and (on DOS) "C:" correctly.
78316
78317         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78318         needed. Include <string.h>, <dirname.h>.
78319         (base_name): Allow file names ending in slashes, other than names
78320         that are all slashes.  In this case, return the basename followed
78321         by the slashes.  This is more general, and can be used in places
78322         where the original base_name purposely had an assertion failure.
78323         (base_len): New function.
78324
78325         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78326         Do not include <assert.h>; no longer needed.
78327         Include xalloc.h.
78328         (memrchr): Remove decl.
78329         (dir_name_r): Remove.
78330         (dir_len): Renamed from dirlen.  All callers changed.
78331         Rewrite in terms of base_name, for simplicity and consistency.
78332         (dir_name): Never return NULL.  All callers changed.
78333         Do not include <stdlib.h> in test program; no longer needed.
78334         return 0; is fine for test program.
78335
78336         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78337         New macros.
78338         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78339
78340         * lib/path-concat.c (path_concat): Use base_len to compute
78341         base length, not strlen; this means we cannot rely on memcpy
78342         to null-terminate.
78343
78344         * lib/same.c (STREQ): Remove.
78345         (same_name): Handle the case where the basename ends in trailing '/'.
78346
78347         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78348         a slash was stripped.  Do not strip the last slash after a
78349         file system prefix.
78350
78351 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78352
78353         * lib/Makefile.am (libfetish_a_SOURCES):
78354         Add strftime.c, since we now compile it on all hosts.
78355
78356         * lib/strftime.c (my_strftime):
78357         Define to nstrftime if emacs, but only if my_strftime is not defined.
78358         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78359         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78360         Add one more extra argument: a nanoseconds value.
78361         All uses changed.
78362         (ns): New macro.
78363         (my_strftime function): Add %N format.
78364         (emacs_strftimeu): Renamed from emacs_strftime,
78365         with extra ut argument.
78366
78367 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78368
78369         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78370
78371 2001-04-21  Jim Meyering  <meyering@lucent.com>
78372
78373         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78374         doesn't interfere.
78375
78376 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78377
78378         * m4/ftruncate.m4: Check for chsize.
78379         Link with ftruncate.o unconditionally if ftruncate is missing.
78380         This was required when cross-compiling to i586-mingw32msvc.
78381
78382 2001-04-08  Jim Meyering  <meyering@lucent.com>
78383
78384         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78385         recomputed; that's necessary when the offset spans a DST transition.
78386         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78387
78388 2001-04-02  Jim Meyering  <meyering@lucent.com>
78389
78390         * lib/regex.h, regex.c: Update from GNU libc.
78391
78392 2001-03-24  Jim Meyering  <meyering@lucent.com>
78393
78394         * m4/jm-macros.m4: Require autoconf-2.49d.
78395
78396 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78397
78398         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78399
78400 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78401
78402         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78403
78404 2001-03-17  Jim Meyering  <meyering@lucent.com>
78405
78406         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78407         now that the version in autoconf is equivalent.
78408         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78409
78410         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78411         Suggestion from Akim Demaille.
78412
78413         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78414         (jm_PREREQ_TEMPNAME): New function.
78415
78416 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78417
78418         * lib/tempname.c (uint64_t): Define to uintmax_t if
78419         not defined, and if UINT64_MAX is not defined.
78420         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78421         Reported by John David Anglin.
78422
78423 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78424
78425         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78426         resolve alias if codeset is empty.
78427         * lib/config.charset (BeOS): Use wildcard syntax.
78428
78429 2001-03-13  Jim Meyering  <meyering@lucent.com>
78430
78431         * lib/path-concat.c (path_concat)
78432         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78433         concatenating e.g., `C:' and `foo'.
78434         From Bruno Haible.
78435
78436 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78437
78438         * lib/localcharset.c (locale_charset): Don't use
78439         setlocale(LC_CTYPE,NULL). Don't return NULL.
78440         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78441
78442 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78443
78444         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78445         support for DOS/DJGPP.
78446
78447 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78448
78449         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78450         lacks mkstemp.  Compile our own tempname.c if we compile our own
78451         mkstemp.c, as mkstemp relies on tempname.
78452
78453 2001-03-01  Jim Meyering  <meyering@lucent.com>
78454
78455         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78456         AH_VERBATIM really does output its argument verbatim.
78457
78458 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78459
78460         * lib/Makefile.am (libfetish_a_SOURCES):
78461         Add dup-safer.c, fopen-safer.c.
78462         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78463
78464         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78465         * lib/unistd-safer.h: New files.
78466
78467 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78468
78469         The mkstemp replacement is taken from glibc 2.2.2, with some
78470         portability fixes for use outside glibc, as follows:
78471
78472         * lib/tempname.c (struct_stat64): New macro.
78473         (direxists, __gen_tempname): Use it.
78474         This avoids a portability problem with Solaris 8.
78475
78476         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78477         (<stddef.h>, <stdint.h>, <string.h>):
78478         Include only if STDC_HEADERS || _LIBC.
78479         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78480         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78481         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78482         (__set_errno): Define this macro if <errno.h> doesn't.
78483         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78484         Define these macros if <stdio.h> doesn't.
78485         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78486         Define these macros if <sys/stat.h>
78487         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78488         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78489         __xstat64): Define if not _LIBC.
78490         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78491         (__gen_tempname): Invoke gettimeofday only if
78492         HAVE_GETTIMEOFDAY || _LIBC;
78493         otherwise, fall back on plain "time".
78494         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78495
78496         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78497
78498         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78499
78500 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78501
78502         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78503
78504 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78505
78506         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78507         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78508         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78509         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78510
78511 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78512
78513         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78514         Remove workaround macros for hosts that have mbrtowc but not
78515         mbstate_t, as we now insist on proper declarations for both
78516         before using mbrtowc.
78517
78518 2001-02-17  Jim Meyering  <meyering@lucent.com>
78519
78520         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78521         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78522         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78523         UnixWare 7.1.1.
78524
78525         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78526         rather than AC_CACHE_VAL.
78527
78528 2001-02-17  Jim Meyering  <meyering@lucent.com>
78529
78530         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78531         around included file name.
78532
78533         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78534
78535         * lib/strftime.c: Update from GNU libc (the only changes were to
78536         comments).
78537
78538 2001-02-17  Jim Meyering  <meyering@lucent.com>
78539
78540         * lib/regex.c: Update from libc.
78541
78542 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78543
78544         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78545         clash.
78546
78547 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78548
78549         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78550         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78551         Reported by Mark Hounschell via Paul Eggert.
78552
78553 2001-02-07  Jim Meyering  <meyering@lucent.com>
78554
78555         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78556
78557 2001-02-05  Jim Meyering  <meyering@lucent.com>
78558
78559         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78560         it includes the patch required for `large file' support with at least
78561         HP-UX's 10.20 /bin/cc.
78562
78563 2001-02-03  Jim Meyering  <meyering@lucent.com>
78564
78565         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78566         AS_IF, now that it works once again (mysteriously).
78567         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78568
78569 2001-01-30  Jim Meyering  <meyering@lucent.com>
78570
78571         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78572         * m4/chown.m4: Rename conftestchown to conftest.chown.
78573         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78574         s/conftestdir2/conftest.d2/.
78575         * m4/utimes.m4: s/conftestdata/conftest.data/
78576         Inspired by Pavel Roskin's change in autoconf.
78577
78578 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78579
78580         * lib/config.charset: Update for FreeBSD 4.2.
78581
78582 2001-01-27  Jim Meyering  <meyering@lucent.com>
78583
78584         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78585         a use of AS_IF.
78586         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78587
78588 2001-01-26  Jim Meyering  <meyering@lucent.com>
78589
78590         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78591         quotearg.c includes it.
78592
78593 2001-01-26  Jim Meyering  <meyering@lucent.com>
78594
78595         * lib/quotearg.c: Include stddef.h.
78596         * lib/quote.c: Include stddef.h.
78597         Reported by Axel Kittenberger.
78598
78599         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78600         line in double quotes so that it evokes a better diagnostic.
78601         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78602         Reported by Axel Kittenberger.
78603
78604 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78605
78606         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78607         as if it was a `charset'.
78608
78609 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78610
78611         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78612         has const.
78613
78614 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78615
78616         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78617         to avoid a warning.  Add back 'const' to inptr.
78618
78619 2001-01-20  Jim Meyering  <meyering@lucent.com>
78620
78621         Be sure that headers are checked before used in code compiled
78622         for the type checks.
78623         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78624         In place of that, invoke jm_CHECK_ALL_TYPES.
78625         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78626         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78627         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78628         The check for ssize_t was mistakenly run before the test for unistd.h.
78629
78630         The configure-time check for stdbool.h was missing.
78631         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78632         (jm_PREREQ_HASH): New function.
78633
78634 2001-01-17  Jim Meyering  <meyering@lucent.com>
78635
78636         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78637         for autoconf-2.49c.
78638         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78639
78640 2001-01-16  Jim Meyering  <meyering@lucent.com>
78641
78642         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78643         From Bruno Haible.
78644
78645 2001-01-14  Jim Meyering  <meyering@lucent.com>
78646
78647         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78648         foo and bar.  Create conftestdir/ in the script, not in the C code.
78649         Remove directories in the script, not in the C code.
78650         Remove conftestdir{,2} before trying to create the directory.
78651         Make the entire configure script fail if the mkdir fails.
78652
78653 2001-01-14  Jim Meyering  <meyering@lucent.com>
78654
78655         * lib/rename.c: New file.  From Volker Borchert.
78656         Include stdlib.h, string.h or strings.h, and xalloc.h.
78657         Use strip_trailing_slashes rather than open-coding it.
78658
78659 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78660
78661         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78662
78663 2001-01-03  Jim Meyering  <meyering@lucent.com>
78664
78665         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78666         of local `inptr' to avoid warning with some system declarations of
78667         iconv.
78668
78669 2001-01-02  Volker Borchert  <bt@teknon.de>
78670
78671         * m4/rename.m4: New file.
78672         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78673
78674 2001-01-01  Jim Meyering  <meyering@lucent.com>
78675
78676         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78677         even on systems with utmpx.h.  It's necessary for the declaration of
78678         utmp's ut_user member.  Reported by Andreas Jaeger.
78679
78680         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78681         available. They are required for the declarations of getgrgid and
78682         getpwuid resp.
78683         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78684         Reported by Andreas Jaeger.
78685
78686 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78687
78688         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78689         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78690         so `make install' also works in VPATH builds.
78691
78692 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78693
78694         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78695         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78696         can be used in subdirectories.
78697
78698 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78699
78700         * lib/modechange.c: Do not assume that mode_t uses the
78701         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78702         the other-execute bit of FOO even if S_IXOTH != 1.
78703
78704         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78705         WOTH, XOTH, ALLM): New macros.
78706         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78707          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78708         Use them.
78709         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78710         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78711         (mode_compile):
78712         No need to use uintmax_t; unsigned long is long enough.
78713         Don't bother to get suffix since we don't use it.
78714
78715 2000-12-26  Jim Meyering  <meyering@lucent.com>
78716
78717         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78718         better with autoheader.
78719
78720 2000-12-24  Jim Meyering  <meyering@lucent.com>
78721
78722         * lib/hash.c (is_prime): Return explicit boolean values.
78723         (hash_get_first): Return NULL to appease Irix5.6's 89.
78724         Reported by Nelson Beebe.
78725
78726 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78727
78728         * lib/localcharset.c (locale_charset): Add support for Win32.
78729
78730 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78731
78732         * lib/physmem.h, lib/physmem.c: New files.
78733
78734         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78735         (noinst_HEADERS): Add physmem.h.
78736
78737         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78738         't' for compatibility with Solaris 8 sort.
78739
78740 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78741
78742         * lib/config.charset: Add support for BeOS.
78743
78744 2000-12-17  Jim Meyering  <meyering@lucent.com>
78745
78746         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78747         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78748
78749 2000-12-16  Jim Meyering  <meyering@lucent.com>
78750
78751         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78752         N and M) would have treated it like `chown N:N FILE'.
78753
78754         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78755
78756 2000-12-16  Jim Meyering  <meyering@lucent.com>
78757
78758         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78759         SHELLS_FILE to a file name that's useful on djgpp systems.
78760         Include stdlib.h.
78761         (ADDITIONAL_DEFAULT_SHELLS): Define.
78762         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78763         Based mostly on a patch from Prashant TR.
78764
78765 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78766
78767         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78768         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78769         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78770
78771 2000-12-08  Andreas Schwab  <schwab@suse.de>
78772
78773         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78774         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78775
78776 2000-12-07  Jim Meyering  <meyering@lucent.com>
78777
78778         * lib/stripslash.c (ISSLASH): Define.
78779         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78780         `/'.
78781         From Prashant TR.
78782
78783         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78784         (dir_name_r): Declare this function as static.
78785         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78786         manifest itself on a name containing a mix of slashes and
78787         backslashes.
78788         Make this function work with names starting with a DOS-style
78789         drive letter and colon prefix.
78790         (dir_name): Append `.' if necessary.
78791         Based mostly on patches from Prashant TR and Eli Zaretskii.
78792
78793         * lib/dirname.h (dir_name_r): Remove prototype.
78794
78795 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78796
78797         * m4/off_t-format.m4: Remove this file.
78798         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78799
78800 2000-12-06  Jim Meyering  <meyering@lucent.com>
78801
78802         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78803         replacement strtoull, we may well need the replacement strtoul, too.
78804         Check for declarations of strtoul and strtoull.
78805         Check for strtol.  Mainly as a cue to cause automake to include
78806         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78807         Check for limits.h -- strtol.c needs it.
78808
78809 2000-12-05  Jim Meyering  <meyering@lucent.com>
78810
78811         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78812
78813 2000-12-04  Jim Meyering  <meyering@lucent.com>
78814
78815         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78816         Also include memory.h, stdlib.h, unistd.h if appropriate.
78817         Reported by Andreas Jaeger (conflicting declaration of malloc).
78818
78819 2000-12-02  Jim Meyering  <meyering@lucent.com>
78820
78821         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78822         * m4/jm-macros.m4 (jm_MACROS): require it.
78823
78824 2000-12-02  Jim Meyering  <meyering@lucent.com>
78825
78826         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78827
78828 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78829
78830         * lib/memrchr.c: Include <config.h> before any system include file.
78831
78832 2000-11-30  Jim Meyering  <meyering@lucent.com>
78833
78834         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78835
78836 2000-11-30  Jim Meyering  <meyering@lucent.com>
78837
78838         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78839
78840 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78841
78842         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78843
78844 2000-11-26  Jim Meyering  <meyering@lucent.com>
78845
78846         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78847
78848 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78849
78850         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78851         size of (size_t) -1; it's not portable.
78852
78853 2000-11-17  Jim Meyering  <meyering@lucent.com>
78854
78855         * lib/strstr.c: Update from GNU libc.
78856
78857 2000-11-17  Akim Demaille  <akim@epita.fr>
78858
78859         * lib/obstack.h: Formatting changes.
78860         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78861         prevent type checking.
78862         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78863         cast the value to (void *): assigning a `foo *' to a `void *'
78864         variable is valid.
78865         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78866
78867 2000-11-16  Jim Meyering  <meyering@lucent.com>
78868
78869         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78870
78871 2000-11-11  Jim Meyering  <meyering@lucent.com>
78872
78873         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78874
78875 2000-11-10  Jim Meyering  <meyering@lucent.com>
78876
78877         * lib/obstack.h: Update from GNU libc.
78878         * lib/obstack.c: Likewise.
78879
78880 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78881
78882         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78883
78884 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78885
78886         * lib/getusershell.c (setusershell): Use rewind rather than
78887         fseek/fseeko, to avoid configuration hassles with fseeko.
78888         Don't bother opening SHELLS_FILE if shellstream is NULL;
78889         it's not necessary.
78890
78891 2000-11-05  Jim Meyering  <meyering@lucent.com>
78892
78893         * lib/makepath.h (make_dir): Declare.
78894         * lib/makepath.c (make_dir): Remove `static' attribute.
78895         Tweak a comment.
78896
78897 2000-11-04  Jim Meyering  <meyering@lucent.com>
78898
78899         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78900
78901 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78902
78903         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78904         last one in a bucket, advance to the next bucket.
78905
78906 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78907
78908         * lib/fnmatch.c: Do not comment out all the code if we are using
78909         the GNU C library, because in some cases we are replacing buggy
78910         code in the GNU C library itself.
78911
78912 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78913
78914         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78915         (regex_compile): Catch bogus \(\1\).
78916
78917 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78918
78919         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78920         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78921         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78922
78923 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78924
78925         * lib/error.h, getline.h, modechange.h:
78926         Remove "2000" from Copyright line, as the file hasn't been
78927         changed this year other than in the copyright notice.
78928
78929         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78930         was changed this year.
78931
78932 2000-10-29  Jim Meyering  <meyering@lucent.com>
78933
78934         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78935         renaming.
78936         * m4/ls-mntd-fs.m4: Likewise
78937
78938 2000-10-29  Jim Meyering  <meyering@lucent.com>
78939
78940         * lib/xstat.in: Fix grammar in comment.
78941
78942 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78943
78944         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78945         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78946         doesn't define __restrict_arr.
78947
78948 2000-10-28  Jim Meyering  <meyering@lucent.com>
78949
78950         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78951         (jm_PREREQ_MEMCHR): New function.
78952
78953 2000-10-28  Jim Meyering  <meyering@lucent.com>
78954
78955         * lib/memchr.c: Update from libc.
78956         Adjust for portability:
78957         [HAVE_STDLIB_H]: Include stdlib.h.
78958         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78959         Undef __memchr, too.
78960         [!weak_alias]: Define __memchr to memchr.
78961
78962         * lib/regex.c: Update from libc.
78963         * lib/regex.h: Likewise.
78964         * lib/getopt1.c: Likewise.
78965         * lib/memcmp.c: Likewise.
78966
78967         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78968         Avoid using fseek, when possible -- it's broken by design.
78969         Patch by Ulrich Drepper.
78970
78971 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78972
78973         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78974         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78975         Giving in to popular pressure to shut up the compiler with casts.
78976
78977 2000-10-26  Jim Meyering  <meyering@lucent.com>
78978
78979         * lib/strftime.c: Update from libc.
78980
78981 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78982
78983         * regex.c: More `unsigned char' -> `re_char' changes.
78984         Also change several `int' into `re_wchar_t'.
78985         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78986         (PUSH_FAILURE_POINTER): Don't cast any more.
78987         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78988         We want GCC to complain, since this piece of code makes
78989         re_match non-reentrant, which *should* be fixed.
78990         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78991         (EXTEND_BUFFER): Use RETALLOC.
78992         (SET_LIST_BIT): Don't cast.
78993         (re_wchar_t): New type.
78994         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78995         that those two functions will always properly return.
78996         (IMMEDIATE_QUIT_CHECK): Cast to void.
78997         (analyse_first): Use recursion rather than an explicit stack.
78998         (re_compile_fastmap): Can't fail anymore.
78999         (re_search_2): Don't check re_compile_fastmap for failure.
79000         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
79001         Now also sets the new value (passed in a new argument).
79002         (re_match_2_internal): Use it.
79003         Also, use a new var `reg' of type size_t when looping through regs
79004         rather than reuse the inappropriate `mcnt'.
79005
79006 2000-10-25  Jim Meyering  <meyering@lucent.com>
79007
79008         * lib/obstack.c: Update from libc.
79009
79010 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
79011
79012         * regex.c (regex_compile): Change the way of handling a range from
79013         a char less than 256 to a char not less than 256.
79014
79015 2000-10-24  Andrew Innes  <andrewi@gnu.org>
79016
79017         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
79018         NT-Emacs only.
79019         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
79020         so that re_search functions only quit when callers expect them to.
79021
79022 2000-10-23  Jim Meyering  <meyering@lucent.com>
79023
79024         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
79025         wrong.  That set_locale call must not have any side effects.
79026         From Paul Eggert.
79027
79028 2000-10-22  Jim Meyering  <meyering@lucent.com>
79029
79030         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
79031         [CYCLIC]: Remove now-unused definition.
79032
79033         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
79034         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
79035         Suggestion from Ulrich Drepper.
79036
79037 2000-10-21  Jim Meyering  <meyering@lucent.com>
79038
79039         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
79040         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
79041         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
79042
79043 2000-10-21  Jim Meyering  <meyering@lucent.com>
79044
79045         * lib/dirname.c (memrchr): Declare if necessary.
79046         (dir_name): Remove the restriction that there be no
79047         trailing slashes.  Now, this code skips past them, effectively
79048         ignoring them.
79049         [TEST_DIRNAME] (main): New unit tests.
79050
79051         * lib/memrchr.c: New file from GNU libc.
79052         Undef __memrchr, too.
79053         [!weak_alias]: Define __memrchr to memrchr.
79054         Guard weak_alias use with `#ifdef weak_alias'.
79055
79056 2000-10-21  Jim Meyering  <meyering@lucent.com>
79057
79058         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
79059         (dir_name): Use dir_name_r.
79060         * lib/dirname.h (dir_name_r): Declare it.
79061
79062 2000-10-17  Jim Meyering  <meyering@lucent.com>
79063
79064         * lib/quote.h (PARAMS): Define and use.
79065         Reported by Akim Demaille.
79066
79067         * lib/getopt.c: Update from libc.
79068
79069 2000-10-16  Jim Meyering  <meyering@lucent.com>
79070
79071         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
79072         setlocale.
79073         From Jan Fedak.
79074
79075 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
79076
79077         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
79078
79079 2000-09-25  Jim Meyering  <meyering@lucent.com>
79080
79081         * lib/md5.h (rol): Define (from GnuPG).
79082
79083         * lib/sha.c: Give credit (GnuPG) where due.
79084         (M): Use rol rather than open-coding it.
79085         Add a FIXME comment.
79086
79087 2000-09-21  Jim Meyering  <meyering@lucent.com>
79088
79089         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
79090         Reported by Michael Stone.
79091
79092 2000-09-20  Jim Meyering  <meyering@lucent.com>
79093
79094         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
79095         (noinst_HEADERS): Add sha.h.
79096         Based on code from Scott G. Miller and from GnuPG.
79097
79098 2000-09-18  Jim Meyering  <meyering@lucent.com>
79099
79100         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
79101         LIBS. Otherwise, everyone ends up linking with -lelf for some
79102         configurations.
79103         Reported by Mike Stone.
79104
79105 2000-09-15  Jim Meyering  <meyering@lucent.com>
79106
79107         * lib/regex.c: Update from libc.
79108
79109 2000-09-10  Jim Meyering  <meyering@lucent.com>
79110
79111         * lib/getopt.c (_getopt_internal): Update from glibc.
79112
79113 2000-09-09  Jim Meyering  <meyering@lucent.com>
79114
79115         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
79116         think it should be used as a general replacement for isascii.
79117         * lib/fnmatch.c: Likewise.
79118         * lib/mbswidth.c: Likewise
79119         * lib/regex.c: Likewise.
79120
79121         Don't use atoi.
79122         * lib/userspec.c: Include sys/param.h and limits.h.
79123         Include xstrtol.h.
79124         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
79125         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
79126         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
79127         UID, GID.  Check range.
79128
79129 2000-09-06  Jim Meyering  <meyering@lucent.com>
79130
79131         * lib/getopt.c (_getopt_internal): Update from glibc.
79132
79133 2000-08-30  Jim Meyering  <meyering@lucent.com>
79134
79135         * lib/strftime.c: Merge in changes from GNU libc.
79136
79137 2000-08-26  Jim Meyering  <meyering@lucent.com>
79138
79139         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
79140         * m4/fpending.m4: New file.
79141
79142 2000-08-26  Jim Meyering  <meyering@lucent.com>
79143
79144         * lib/closeout.c: Include "__fpending.h".
79145         (close_stdout_status): Return right away if there's nothing to flush.
79146
79147         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
79148         * lib/__fpending.c: New file.
79149         * lib/__fpending.h: New file.
79150
79151 2000-08-20  Jim Meyering  <meyering@lucent.com>
79152
79153         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
79154         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
79155         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
79156
79157 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
79158
79159         Improve fileutils installation on systems where running
79160         programs (like install) can't be unlinked.
79161         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
79162         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
79163
79164 2000-08-07  Paul Eggert  <eggert@twinsun.com>
79165
79166         Standardize on "memory exhausted" instead of "Memory exhausted"
79167         or "virtual memory exhausted".
79168         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
79169         "virtual memory exhausted".
79170         * lib/same.c (same_name): Invoke xalloc_die instead of printing
79171         our own message.
79172         * lib/userspec.c (parse_user_spec): Likewise.
79173         * lib/bumpalloc.h: comment fix
79174         * lib/same.c, userspec.c: Include xalloc.h.
79175
79176         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
79177         not char *const and pointing to a constant array.
79178         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
79179         (xrealloc): Comment fix.
79180
79181         * lib/userspec.c (parse_user_spec):
79182         Don't translate a message until just before returning,
79183         to avoid unnecessary translation.
79184
79185 2000-08-07  Jim Meyering  <meyering@lucent.com>
79186
79187         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
79188         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
79189         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
79190         getgroups.c, gethostname.c, getopt.h, group-member.c,
79191         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
79192         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
79193         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
79194         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
79195         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
79196         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
79197         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
79198         yesno.c: Back out Copyright date changes for each file with no change
79199         this year.  This eases coordination with other programs using the same
79200         source code modules.  From Paul Eggert.
79201
79202 2000-08-06  Paul Eggert  <eggert@twinsun.com>
79203
79204         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
79205         not char, for compatibility with glibc 2.1.3 strftime.c.
79206
79207 2000-08-03  Greg McGary  <greg@mcgary.org>
79208
79209         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
79210         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
79211         (EXTEND_BUFFER): Use them.
79212
79213 2000-08-01  Jim Meyering  <meyering@lucent.com>
79214
79215         * lib/dirname.c (ISSLASH): Define.
79216         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79217         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79218         both `\' and `/' may be use as path separators.
79219         Based on a patch from Prashant TR.
79220
79221 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79222
79223         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79224         slot vector a constant, since it might get modified.
79225
79226 2000-07-31  Jim Meyering  <meyering@lucent.com>
79227
79228         * lib/xmalloc.c: Use `virtual memory exhausted', not
79229         `Memory exhausted'.
79230         * lib/obstack.c (print_and_abort): Likewise.
79231
79232 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79233
79234         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79235         buffer, so that the caller can always quote one small
79236         component of a "memory exhausted" message in slot 0.
79237         From a suggestion by Jim Meyering.
79238
79239 2000-07-30  Jim Meyering  <meyering@lucent.com>
79240
79241         * lib/makepath.c (make_path): Quote the other instance, too.
79242
79243         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79244         (STATIC_BUF_SIZE): Define.
79245         (quotearg_n_options): Use only statically allocated storage when
79246         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79247         than STATIC_BUF_SIZE.
79248
79249 2000-07-29  Jim Meyering  <meyering@lucent.com>
79250
79251         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79252         * lib/dirname.c (dir_name): Likewise.
79253
79254         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79255         `/'.
79256
79257         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79258         (dir_name): Assert that there are no trailing slashes.
79259
79260 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79261
79262         * lib/mbswidth.h (mbswidth): Add a flags argument.
79263         (mbswidth): New declaration.
79264         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79265         * lib/mbswidth.c (mbswidth): Add a flags argument.
79266         (mbsnwidth): New function.
79267
79268 2000-07-24  Jim Meyering  <meyering@lucent.com>
79269
79270         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79271
79272 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79273
79274         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79275
79276 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79277
79278         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79279         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79280         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79281         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79282         invoke multibyte primitives.
79283
79284 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79285
79286         * lib/quotearg.c:
79287         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79288         so that mbstate_t is always defined.
79289
79290         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79291         be 1 in at least one GCC installation, and this configuration
79292         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79293         performance on hosts that have mbrtowc but have only unibyte
79294         locales, but I assume these hosts are rare.
79295
79296 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79297
79298         * lib/mbswidth.c (_XOPEN_SOURCE):
79299         Don't define; this causes problems on Solaris 7.
79300         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79301
79302 2000-07-23  Jim Meyering  <meyering@lucent.com>
79303
79304         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79305         too: getgrgid, getpwuid, getuid.
79306
79307 2000-07-23  Jim Meyering  <meyering@lucent.com>
79308
79309         * lib/basename.c (base_name): Add an assertion.
79310
79311 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79312
79313         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79314         shadow its mbsinit function.
79315
79316 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79317
79318         * lib/mbswidth.h: New file.
79319         * lib/mbswidth.c: New file.
79320         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79321         (noinst_HEADERS): Add mbswidth.h.
79322
79323 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79324
79325         * lib/config.charset: Add support for FreeBSD. Improve support for
79326         HP-UX and IRIX 6.
79327
79328 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79329
79330         * m4/mbswidth.m4: New file.
79331         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79332
79333 2000-07-15  Jim Meyering  <meyering@lucent.com>
79334
79335         * lib/makepath.c: Include quote.h.
79336         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79337         corresponding argument in a `quote (...)' call.
79338         Give better diagnostics.
79339
79340         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79341         (noinst_HEADERS): Add quote.h.
79342
79343         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79344         from tar's src/misc.c.
79345         * lib/quote.h: New file.  Prototypes for same.
79346
79347 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79348
79349         From a suggestion by Bruno Haible.
79350         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79351         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79352         to decide whether to define the BeOS workaround macro;
79353         this adjusts to the change to AC_MBSTATE_T.
79354
79355 2000-07-14  Jim Meyering  <meyering@lucent.com>
79356
79357         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79358         jm_AC_TYPE_UINTMAX_T.
79359
79360 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79361
79362         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79363
79364         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79365         quotearg_buffer_restyled): Add support for
79366         clocale_quoting_style.  Undo previous change to
79367         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79368         and "{RIGHT QUOTATION MARK}" msgids.
79369
79370 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79371
79372         From a suggestion by Bruno Haible.
79373         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79374         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79375         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79376         and mbstate_t, to a single-part test that simply defines mbstate_t.
79377         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79378         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79379
79380 2000-07-10  Jim Meyering  <meyering@lucent.com>
79381
79382         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79383
79384         * m4/gnu-source.m4: Output to confdefs.h directly.
79385         Suggestion from Akim Demaille.
79386
79387 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79388
79389         The old behavior of quoting `like this' doesn't look good with
79390         newer, ISO-style fonts.  See:
79391         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79392
79393         Instead, quote "like this" by default.  Let the translator
79394         tailor the locale-specific quoting behavior by providing
79395         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79396
79397         * lib/quotearg.c (N_): New macro.
79398         (gettext_default): New function.
79399         (quotearg_buffer_restyled): Use
79400         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79401         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79402
79403 2000-07-09  Jim Meyering  <meyering@lucent.com>
79404
79405         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79406         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79407
79408         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79409         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79410
79411 2000-07-09  Jim Meyering  <meyering@lucent.com>
79412
79413         * lib/Most files: Update copyright dates to include 2000.
79414
79415 2000-07-08  Jim Meyering  <meyering@lucent.com>
79416
79417         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79418         if not defined.
79419         (xgethostname): Remove now-unnecessary #ifdef.
79420         Move declaration of `err' into loop where it's used.
79421
79422 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79423         and Bruno Haible  <haible@clisp.cons.org>
79424
79425         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79426         only if the test for an object-type mbstate_t fails.  This
79427         prevents us from mistakenly reporting that mbstate_t is a
79428         system object type after we "#define mbstate_t int" to work
79429         around its lack.
79430
79431 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79432         and Bruno Haible  <haible@clisp.cons.org>
79433
79434         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79435
79436 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79437
79438         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79439         to strerror_r.
79440         Include <ctype.h> for use of isalpha.
79441
79442 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79443
79444         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79445         by allocating a larger buffer. Test the gethostname return value for
79446         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79447         returns an error and ENAMETOOLONG isn't defined.
79448
79449 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79450
79451         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79452         dimension.
79453
79454 2000-07-04  Jim Meyering  <meyering@lucent.com>
79455
79456         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79457         of the deprecated AC_CHECKING.
79458
79459 2000-07-04  Jim Meyering  <meyering@lucent.com>
79460
79461         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79462         Reported by Bruno Haible.
79463
79464 2000-07-04  Jim Meyering  <meyering@lucent.com>
79465
79466         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79467         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79468         lacks mbrtowc.
79469
79470 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79471
79472         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79473         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79474
79475 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79476         and Bruno Haible  <haible@clisp.cons.org>
79477
79478         * lib/quotearg.c (mbrtowc):
79479         Assign to *pwc, and return 1 only if result is nonzero.
79480         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79481
79482 2000-07-03  Jim Meyering  <meyering@lucent.com>
79483
79484         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79485
79486 2000-07-03  Jim Meyering  <meyering@lucent.com>
79487
79488         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79489         This is necessary to get a definition of e.g., UTMP_FILE on
79490         HP-UX 10.20.
79491         From Bob Proulx.
79492
79493 2000-07-02  Jim Meyering  <meyering@lucent.com>
79494
79495         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79496
79497         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79498         AC_LIBOBJ(function_name).
79499         * m4/chown.m4: Likewise.
79500         * m4/fnmatch.m4: Likewise.
79501         * m4/ftruncate.m4: Likewise.
79502         * m4/getgroups.m4: Likewise.
79503         * m4/getline.m4: Likewise.
79504         * m4/group-member.m4: Likewise.
79505         * m4/jm-macros.m4: Likewise.
79506         * m4/lstat.m4: Likewise.
79507         * m4/malloc.m4: Likewise.
79508         * m4/memcmp.m4: Likewise.
79509         * m4/nanosleep.m4: Likewise.
79510         * m4/putenv.m4: Likewise.
79511         * m4/realloc.m4: Likewise.
79512         * m4/regex.m4: Likewise.
79513         * m4/stat.m4: Likewise.
79514         * m4/strftime.m4: Likewise.
79515
79516 2000-07-02  Jim Meyering  <meyering@lucent.com>
79517
79518         * lib/quotearg.c (mbstate_t): Don't define here.
79519
79520 2000-07-02  Jim Meyering  <meyering@lucent.com>
79521
79522         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79523
79524 2000-07-01  Jim Meyering  <meyering@lucent.com>
79525
79526         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79527
79528 2000-07-01  Jim Meyering  <meyering@lucent.com>
79529
79530         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79531         problem.
79532
79533 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79534
79535         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79536         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79537
79538 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79539
79540         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79541         per change in ../m4/ls-mntd-fs.m4.
79542         (read_filesystem_list): Ignore symbolic links.
79543
79544 2000-06-29  Jim Meyering  <meyering@lucent.com>
79545
79546         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79547         for declaration of strcmp.
79548
79549         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79550
79551         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79552         Avoid warning by casting result to `char *' to remove `const'.
79553
79554 2000-06-28  Jim Meyering  <meyering@lucent.com>
79555
79556         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79557         included by quotearg.c, for which we perform this test.  From
79558         Bruno Haible.
79559
79560 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79561
79562         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79563         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79564         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79565
79566 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79567
79568         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79569
79570 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79571
79572         savedir now sets errno on failure and invokes xmalloc to get memory.
79573         Fix a couple of other minor bugs while we're at it.
79574
79575         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79576         (NAMLEN): Remove macro.
79577         (malloc, realloc): Remove decls.
79578         (stpcpy): Likewise.
79579         ("xalloc.h"): Include.
79580         (NAME_SIZE_DEFAULT): New macro.
79581         (savedir): Use xmalloc / xrealloc to allocate memory.
79582         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79583         Skip "" directory entries.
79584         Use strlen to calculate directory entry length, since the old method
79585         is rarely used these days and isn't worth supporting.
79586         Don't use a pointer after freeing it.
79587         Check for integer overflow when calculating allocation size.
79588         Use memcpy to copy entries, instead of stpcpy.
79589         Set errno properly when returning NULL.
79590         Check for readdir error.
79591
79592 2000-06-26  Jim Meyering  <meyering@lucent.com>
79593
79594         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79595
79596 2000-06-25  Jim Meyering  <meyering@lucent.com>
79597
79598         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79599         Linux header bug when _XOPEN_SOURCE is defined to 500.
79600
79601 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79602
79603         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79604         deficiency.
79605
79606 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79607
79608         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79609         Include xalloc.h.
79610         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79611
79612 2000-06-24  Jim Meyering  <meyering@lucent.com>
79613
79614         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79615         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79616         for which strerror does return char*, but which lacks a conveniently
79617         accessible declaration of the function.  If the compile-test says
79618         strerror_r doesn't work, then resort to a `run'-test that works on
79619         BeOS and segfaults on DEC Unix.
79620
79621 2000-06-24  Jim Meyering  <meyering@lucent.com>
79622
79623         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79624
79625 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79626
79627         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79628         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79629
79630 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79631
79632         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79633         (mbrtowc, mbstate_t): Define substitutes if
79634         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79635         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79636         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79637
79638 2000-06-23  Jim Meyering  <meyering@lucent.com>
79639
79640         * m4/afs.m4: Add missing AC_MSG_RESULT.
79641         Reported by Bruno Haible.
79642
79643         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79644         Suggestion from Bruno Haible.
79645
79646 2000-06-23  Jim Meyering  <meyering@lucent.com>
79647
79648         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79649
79650 2000-06-21  Jim Meyering  <meyering@lucent.com>
79651
79652         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79653
79654 2000-06-21  Jim Meyering  <meyering@lucent.com>
79655
79656         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79657         (noinst_HEADERS): Add getstr.h.
79658
79659         * lib/getline.c (getstr): Move into a separate file.
79660         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79661         the following changes: new parameter, delim2; both delim[12]
79662         parameters have type `int', not `char'.  The latter would lose
79663         with 8-bit delimiters.
79664         * lib/getstr.h: New file.
79665
79666 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79667
79668         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79669         than 1024, return a memory chunk of least possible size, instead
79670         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79671         Use free/xmalloc instead of xrealloc to avoid copying for very long
79672         paths.
79673
79674 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79675
79676         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79677         the empty string.
79678
79679 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79680
79681         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79682         address, not strdup.  Include <stdlib.h> and don't declare free().
79683
79684 2000-06-19  Jim Meyering  <meyering@lucent.com>
79685
79686         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79687
79688 2000-06-18  Jim Meyering  <meyering@lucent.com>
79689
79690         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79691
79692         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79693         `checking whether...' message to be consistent with that of the
79694         lstat test.
79695
79696 2000-06-18  Jim Meyering  <meyering@lucent.com>
79697
79698         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79699         Besides, these days every porting target provides a mkdir function.
79700
79701         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79702         needed. (this snippet comes from src/system.h).
79703
79704 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79705
79706         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79707
79708 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79709
79710         * lib/human.c (adjust_value): New function.
79711         (human_readable_inexact): Apply rounding style even when
79712         printing approximate values.
79713
79714 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79715
79716         * lib/human.c (human_readable_inexact): Allow an input block
79717         size that is not a multiple of the output block size, and vice versa.
79718         Reported by Piergiorgio Sartor.
79719
79720 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79721
79722         * lib/getdate.y (get_date): Apply relative times after time
79723         zone indicator, not before.  Reported by Todd A. Jacobs.
79724
79725 2000-06-13  Jim Meyering  <meyering@lucent.com>
79726
79727         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79728
79729         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79730
79731 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79732
79733         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79734
79735 2000-06-12  Jim Meyering  <meyering@lucent.com>
79736
79737         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79738         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79739         optional argument.
79740         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79741         the optional argument, `lib'.
79742
79743 2000-06-08  Jim Meyering  <meyering@lucent.com>
79744
79745         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79746
79747 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79748
79749         Rewrite largefile configuration so that we don't need to run
79750         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79751         AC_CANONICAL_HOST in configure.in -- jmm]
79752
79753         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79754         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79755         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79756         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79757         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79758         All uses changed.
79759         Instead of inspecting the output of getconf, try to compile the
79760         test program without and with the macro definition.
79761         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79762         for getconf.  Instead, check for the needed flags by compiling
79763         test programs.
79764
79765 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79766
79767         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79768
79769 2000-06-04  Jim Meyering  <meyering@lucent.com>
79770
79771         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79772         SunOS 4.1.4 for which gid_t is an unsigned type.
79773
79774 2000-06-03  Jim Meyering  <meyering@lucent.com>
79775
79776         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79777         now that autoconf requires that.
79778
79779         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79780         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79781         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79782
79783 2000-06-03  Jim Meyering  <meyering@lucent.com>
79784
79785         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79786
79787 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79788
79789         * m4/glibc21.m4: New file.
79790         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79791
79792 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79793
79794         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79795         newer, don't install charset.alias.
79796         * lib/config.charset: Change the Linux/glibc rules so they become empty
79797         on glibc-2.1 or newer.
79798
79799 2000-06-02  Jim Meyering  <meyering@lucent.com>
79800
79801         * lib/mountlist.c: Back out last change.  Instead, do this...
79802         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79803         me_dummy member using the same `ignore'-testing code.
79804         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79805         fs_type strings.
79806         From Mark D. Roth.
79807
79808 2000-05-29  Jim Meyering  <meyering@lucent.com>
79809
79810         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79811         mounts with the `ignore' attribute.  Based on a patch from
79812         Mark D. Roth.
79813
79814 2000-05-28  Jim Meyering  <meyering@lucent.com>
79815
79816         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79817         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79818         * m4/stat.m4: Likewise.
79819         * m4/lstat.m4: Likewise.
79820         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79821
79822         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79823         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79824
79825 2000-05-26  Jim Meyering  <meyering@lucent.com>
79826
79827         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79828
79829 2000-05-24  Jim Meyering  <meyering@lucent.com>
79830
79831         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79832         autoconf requires that.
79833         * m4/lib-check.m4: Likewise.
79834         * m4/jm-macros.m4: Likewise.
79835         * m4/strftime.m4: Likewise.
79836
79837         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79838         AC_CHECK_DECLS, now that autoconf requires that.
79839
79840 2000-05-22  Jim Meyering  <meyering@lucent.com>
79841
79842         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79843         * m4/lstat.m4: Likewise.
79844
79845 2000-05-22  Jim Meyering  <meyering@lucent.com>
79846
79847         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79848
79849 2000-05-20  Jim Meyering  <meyering@lucent.com>
79850
79851         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79852         (jm_PREREQ): Use it.
79853
79854 2000-05-18  Jim Meyering  <meyering@lucent.com>
79855
79856         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79857         back, too, since it may have been modified by allocate_entry.
79858         (hash_delete): Rewrite to use neither the assignment operator
79859         nor the comma operator in an if-expression.
79860
79861 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79862
79863         * lib/closeout.c:
79864         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79865         Remove; no longer needed.
79866         "quotearg.h": Add include.
79867         (file_name): Do not bother to explicitly initialize to NULL; it's less
79868         efficient on some hosts.
79869         (close_stdout_status): Remove test as to whether stdout was already
79870         closed; it breaks for the case "echo x | sort >&-".
79871         Quote file name colons.
79872         Do not assume that _("write error") lacks format strings.
79873
79874 2000-05-15  Jim Meyering  <meyering@lucent.com>
79875
79876         * lib/version-etc.c (version_etc_copyright): Update the copyright
79877         string used in all --version output.
79878
79879 2000-05-14  Jim Meyering  <meyering@lucent.com>
79880
79881         * lib/closeout.c (close_stdout_set_file_name): New function.
79882         (close_stdout_status): Use new file-scoped global.
79883         Return right away if fstat says the stdout file descriptor is invalid.
79884         * lib/closeout.h (close_stdout_set_file_name): Declare.
79885
79886 2000-05-10  Jim Meyering  <meyering@lucent.com>
79887
79888         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79889         (close_stdout_set_status): New function.
79890         * lib/closeout.h (close_stdout_set_status): Declare.
79891
79892 2000-05-09  Jim Meyering  <meyering@lucent.com>
79893
79894         * m4/gettext.m4: Rename this...
79895         * m4/libintl.m4: ...to this.
79896
79897 2000-05-08  Jim Meyering  <meyering@lucent.com>
79898
79899         * lib/long-options.c: Don't include closeout.h.
79900         (parse_long_options): Don't call close_stdout for --version.
79901
79902 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79903
79904         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79905         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79906         2.1.3 bug.  This avoids a clash when files like regex.c define
79907         _GNU_SOURCE.
79908
79909 2000-05-06  Jim Meyering  <meyering@lucent.com>
79910
79911         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79912         (AC_REPLACE_FUNCS): Add strnlen.
79913
79914         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79915         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79916
79917         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79918         AC_SEARCH_LIBS call for nanosleep.
79919         (LIB_NANOSLEEP): Set and AC_SUBST.
79920
79921 2000-05-06  Jim Meyering  <meyering@lucent.com>
79922
79923         * lib/strnlen.c: Undefine __strnlen and strnlen.
79924         [!weak_alias]: Define __strnlen to strnlen.
79925
79926         * lib/atexit.c: New file, from libiberty.
79927
79928 2000-05-06  Jim Meyering  <meyering@lucent.com>
79929
79930         * lib/closeout.c (close_stdout_status): Also check for errors on the
79931         stderr stream.
79932
79933 2000-05-05  Jim Meyering  <meyering@lucent.com>
79934
79935         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79936         AC_SEARCH_LIBS call for clock_gettime.
79937         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79938
79939         * m4/search-libs.m4: Update from autoconf.
79940
79941         su doesn't work on Solaris 2.6.
79942         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79943         <shadow.h>.  Reported by Dragos Harabor.
79944
79945 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79946
79947         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79948         memcpy instead of xmalloc, xrealloc, path_concat.
79949         (locale_charset): Treat empty environment variables as absent.
79950         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79951
79952 2000-05-04  Jim Meyering  <meyering@lucent.com>
79953
79954         * lib/getopt.c: Update from glibc.
79955         * lib/obstack.c: Likewise.
79956         * lib/obstack.h: Likewise.
79957         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79958         file
79959
79960         * lib/regex.h: Likewise.
79961         * lib/strndup.c: Likewise.
79962         * lib/strnlen.c: New file, from glibc.
79963
79964 2000-05-03  Jim Meyering  <meyering@lucent.com>
79965
79966         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79967
79968 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79969
79970         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79971         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79972         compile-time test, rather than inspecting host and OS, to
79973         decide whether to define _LARGEFILE_SOURCE.
79974
79975 2000-05-01  Jim Meyering  <meyering@lucent.com>
79976
79977         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79978
79979         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79980         Based on a patch from Bruno Haible.
79981
79982 2000-05-01  Jim Meyering  <meyering@lucent.com>
79983
79984         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79985
79986 2000-04-29  Jim Meyering  <meyering@lucent.com>
79987
79988         * lib/path-concat.c: Declare strdup only if it's not defined.
79989         * lib/canon-host.c: Likewise.
79990
79991 2000-04-28  Jim Meyering  <meyering@lucent.com>
79992
79993         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79994         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79995         is included first, then limits.h is included by locale.h by libintl.h.
79996         From John David Anglin.
79997
79998 2000-04-25  Jim Meyering  <meyering@lucent.com>
79999
80000         * lib/makepath.c (S_IRWXUGO): Define.
80001         (make_path): Always perform explicit chmod if MODE specifies any
80002         of the `special' permission bits.  Prompted by a bug report against
80003         install from Mate Wierdl and Joost van Baal.
80004
80005 2000-04-18  Jim Meyering  <meyering@lucent.com>
80006
80007         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
80008         (jm_PREREQ): Use it.
80009
80010 2000-04-18  Jim Meyering  <meyering@lucent.com>
80011
80012         * lib/README: New file.
80013
80014         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
80015         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
80016
80017 2000-04-17  Jim Meyering  <meyering@lucent.com>
80018
80019         Get it right :-)
80020         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
80021         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
80022         Suggestion from Akim Demaille.
80023
80024 2000-04-17  Jim Meyering  <meyering@lucent.com>
80025
80026         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
80027         the definition of it to rpl_strftime also defined-away the system's
80028         declaration.
80029
80030 2000-04-15  Jim Meyering  <meyering@lucent.com>
80031
80032         Use `C' to denote so-called `contiguous' files, the same way
80033         that tar does.
80034         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
80035         (ftypelet): Use S_ISCTG.
80036         From Michael Deutschmann.
80037
80038 2000-04-14  Jim Meyering  <meyering@lucent.com>
80039
80040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
80041         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
80042         clobbered.
80043
80044 2000-04-14  Jim Meyering  <meyering@lucent.com>
80045
80046         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
80047
80048 2000-04-13  Jim Meyering  <meyering@lucent.com>
80049
80050         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
80051         AH_VERBATIM to insert required #ifndef into config.h.in.
80052         Suggestion from Akim Demaille.
80053
80054 2000-04-12  Jim Meyering  <meyering@lucent.com>
80055
80056         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
80057         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
80058         Christian Krackowizer.
80059
80060         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
80061         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
80062         (AC_SYS_LARGEFILE): Require.
80063         (AM_C_PROTOTYPES): Require.
80064
80065 2000-04-08  Jim Meyering  <meyering@lucent.com>
80066
80067         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
80068         names don't conflict.  Reported by Eli Zaretskii.
80069
80070 2000-04-07  Jim Meyering  <meyering@lucent.com>
80071
80072         * lib/putenv.c: Move inclusion of errno.h so it follows that of
80073         sys/types.h, to work around system header problems on AIX 3.2.5.
80074         From Bruno Haible.
80075
80076 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
80077
80078         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
80079         bug.  Deal with the different error behavior of Irix iconv.
80080
80081 2000-04-05  Paul Eggert  <eggert@twinsun.com>
80082
80083         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
80084         IRIX if the installer said otherwise.
80085
80086 2000-04-05  Jim Meyering  <meyering@lucent.com>
80087
80088         Portability tweaks required for ultrix4.3.
80089         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
80090         (jm_CHECK_DECLS): Add getutent to the list of functions.
80091         (_jm_DECL_HEADERS): Add utmpx.h.
80092         From John David Anglin.
80093
80094         * m4/strftime.m4: Back out the 2000-04-02 change.
80095         Instead of that change, simply undefine putenv in the test program.
80096
80097 2000-04-05  Jim Meyering  <meyering@lucent.com>
80098
80099         Portability tweaks required for ultrix4.3.
80100         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
80101         getutent.
80102         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
80103         * lib/canon-host.c: Declare strdup.
80104         * lib/path-concat.c: Likewise.
80105         From John David Anglin.
80106
80107 2000-04-04  Jim Meyering  <meyering@lucent.com>
80108
80109         Be more DOS 8.3-friendly.
80110         * lib/ref-add.sin: Renamed from ref-add.sed.in.
80111         * lib/ref-del.sin: Renamed from ref-del.sed.in.
80112         * lib/Makefile.am: Reflect renaming.
80113         Reported by Eli Zaretskii.
80114
80115         Use a temporary file name that won't clash with `charset.alias'
80116         in the DOS 8.3 name space.
80117         * lib/Makefile.am (charset_tmp): Define.
80118         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
80119         (uninstall-local): Likewise.
80120         Reported by Eli Zaretskii.
80121
80122 2000-04-03  Jim Meyering  <meyering@lucent.com>
80123
80124         * m4/gettext.m4: Fix typo in comment.
80125
80126         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
80127         textutils/configure.in).  Suggestion from Paul Eggert.
80128         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
80129
80130 2000-04-02  Paul Eggert  <eggert@twinsun.com>
80131
80132         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
80133         variable in the shell rather than using putenv, which isn't
80134         portable.  This avoids the configure-time inter-test dependency
80135         on the potentially-renamed putenv function.
80136
80137 2000-03-30  Paul Eggert  <eggert@twinsun.com>
80138
80139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
80140         before checking struct stat.st_blksize, so that
80141         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
80142
80143 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80144
80145         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
80146         since strftime.c uses HAVE_STRFTIME to decide whether to use
80147         the underlying strftime.
80148
80149 2000-03-29  Paul Eggert  <eggert@twinsun.com>
80150
80151         * lib/time/strftime.c (my_strftime): Make sure we call the system
80152         strftime, not ourselves, when invoking the underlying strftime.
80153
80154 2000-03-24  Jim Meyering  <meyering@lucent.com>
80155
80156         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
80157         (charset_alias): Define.
80158         (install-exec-local): Factor out common code.
80159         (uninstall-local): Split lines longer than 80.
80160         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
80161         (SUFFIXES): Define.
80162         (.sed.in.sed): New rule.  Don't redirect directly to $@.
80163         (CLEANFILES): Add ref-add.sed and ref-del.sed.
80164
80165 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
80166
80167         * lib/config.charset: Output a line containing "Packages using this
80168         file".
80169         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
80170         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
80171         ref-del.sed): New rules.
80172
80173 2000-03-17  Jim Meyering  <meyering@lucent.com>
80174
80175         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
80176         Otherwise, include <strings.h>
80177
80178 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
80179
80180         * lib/unicodeio.c (utf8_wctomb): New function.
80181         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
80182         format instead of in UCS-4 with platform dependent endianness.
80183
80184 2000-03-10  Jim Meyering  <meyering@lucent.com>
80185
80186         * m4/lib-check.m4: Look for getspnam in -lgen, too.
80187         From Marco Franzen.
80188
80189 2000-03-07  Paul Eggert  <eggert@twinsun.com>
80190
80191         * lib/savedir.c (savedir): Work even if directory size is
80192         negative; this can happen with some screwy NFS configurations.
80193
80194 2000-03-06  Jim Meyering  <meyering@lucent.com>
80195
80196         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
80197         if it's NULL (because we ran out of memory).  From Bruno Haible.
80198
80199 2000-03-05  Jim Meyering  <meyering@lucent.com>
80200
80201         * lib/localcharset.c ("path-concat.h"): Include.
80202         (get_charset_aliases): Use path_concat instead of ANSI string
80203         concatenation.
80204
80205         * lib/unicodeio.h (PARAMS): Define.
80206         Use it to guard prototype.
80207
80208 2000-03-04  Jim Meyering  <meyering@lucent.com>
80209
80210         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
80211         for lib/localcharset.c.
80212
80213 2000-03-04  Jim Meyering  <meyering@lucent.com>
80214
80215         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80216         installing into it.
80217         (uninstall-local): Uncomment this rule so `make distcheck' works
80218         once again.
80219
80220         * lib/unicodeio.c (<errno.h>): Include it.
80221         (errno): Declare if not defined.
80222
80223         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80224
80225         * lib/config.charset: New version, incorporating remarks from a linux
80226         i18n mailing list.  From Bruno Haible.
80227
80228 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80229
80230         * m4/codeset.m4: New file.
80231         * m4/iconv.m4: New file.
80232         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80233
80234 2000-03-03  Jim Meyering  <meyering@lucent.com>
80235
80236         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80237
80238 2000-03-02  Jim Meyering  <meyering@lucent.com>
80239
80240         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80241         the messages come out on separate lines.
80242
80243         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80244         rather than jm_CHECK_DECLARATIONS.
80245         * m4/decl.m4: Remove now-unused file.
80246
80247         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80248         geteuid.
80249
80250 2000-03-02  Jim Meyering  <meyering@lucent.com>
80251
80252         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80253
80254 2000-03-01  Jim Meyering  <meyering@lucent.com>
80255
80256         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80257         * lib/unicodeio.c: Likewise.
80258
80259 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80260
80261         * lib/config.charset: New file.
80262         * lib/localcharset.c: New file.
80263         * lib/unicodeio.h, lib/unicodeio.c: New files.
80264         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80265         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80266         (noinst_HEADERS): Add unicodeio.h.
80267         (all-local, install-exec-local, charset.alias): New targets.
80268
80269 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80270
80271         * lib/quotearg.c (ALERT_CHAR): New macro.
80272         (quotearg_buffer_restyled): Use it.
80273
80274 2000-02-27  Jim Meyering  <meyering@lucent.com>
80275
80276         * m4/check-decl.m4: Add getenv to the list.
80277
80278 2000-02-27  Jim Meyering  <meyering@lucent.com>
80279
80280         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80281         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80282
80283         * lib/backupfile.c: Guard inclusion of stdlib.h with
80284         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80285         Declare malloc if needed.
80286
80287         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80288         `#ifndef HAVE_DECL..'
80289         now that autoconf always defines the HAVE_DECL_ symbols.
80290         * lib/human.c: Likewise.
80291         * lib/same.c: Likewise.
80292         * lib/strtoumax.c: Likewise.
80293
80294         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80295         declaration check was not run.
80296         * lib/hash.c: Likewise.
80297         * lib/human.c: Likewise.
80298         * lib/same.c: Likewise.
80299         * lib/strtoumax.c: Likewise.
80300
80301         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80302         `.', then first look up the entire `.'-containing string as a login
80303         name.
80304
80305 2000-02-23  Jim Meyering  <meyering@lucent.com>
80306
80307         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80308         in place of my hack.
80309
80310 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80311
80312         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80313         (textint): New typedef.
80314         (parser_control): Member year changed from int to textint.
80315         All uses changed.
80316         (YYSTYPE): Removed; replaced by %union with int and textint members.
80317         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80318         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80319         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80320         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80321         (date, number, to_year): Use width of number in digits, not its value,
80322         to determine whether it's a 2-digit year, or a 2-digit time.
80323         (yylex): Store number of digits of numeric tokens.
80324         Reported by John Kendall.
80325
80326         (parser_control): Changed from struct parser_control to typedef (for
80327         consistency).  All uses changed.
80328
80329         (tID): Removed; not used.
80330         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80331
80332 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80333
80334         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80335         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80336
80337 2000-02-12  Jim Meyering  <meyering@lucent.com>
80338
80339         * lib/userspec.c (ISDIGIT): Define it.
80340         (isdigit): Remove definition.
80341         (is_number): Use ISDIGIT, not isdigit.
80342         <libintl.h>: Include.
80343         (_ and N_): Define.
80344         (parse_user_spec): Mark translatable strings.
80345
80346 2000-02-10  Jim Meyering  <meyering@lucent.com>
80347
80348         With these changes, nanosleep.[ch] are finally enough like the other
80349         lib/* replacement files to compile on a few more losing systems.
80350
80351         * lib/nanosleep.h: Don't include config.h.
80352         Remove prototype from declaration of nanosleep.
80353         (PARAMS): Remove now-unneeded definition.
80354         * lib/nanosleep.c: #undef nanosleep.
80355         (rpl_nanosleep): Rename from nanosleep.
80356
80357 2000-02-10  Jim Meyering  <meyering@lucent.com>
80358
80359         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80360         gnu_nanosleep to rpl_nanosleep.
80361
80362 2000-02-09  Jim Meyering  <meyering@lucent.com>
80363
80364         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80365         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80366
80367 2000-02-08  Akim Demaille  <akim@epita.fr>
80368
80369         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80370         `[' and `]' and remove uses of `changequote'.
80371         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80372         (AC_SYS_LARGEFILE): Likewise.
80373         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80374         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80375         of changequote.
80376         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80377         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80378         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80379         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80380
80381 2000-02-05  Jim Meyering  <meyering@lucent.com>
80382
80383         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80384         Remove explicit use of AC_HEADER_TIME.  It is required by
80385         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80386         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80387         in autoconf whereby the expansion of the latter ended up preceding
80388         the expansion of its prerequisite, AC_HEADER_TIME.
80389         Reported by Volker Borchert.
80390
80391 2000-02-03  Jim Meyering  <meyering@lucent.com>
80392
80393         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80394
80395 2000-02-03  Jim Meyering  <meyering@lucent.com>
80396
80397         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80398         rather than with `#if HAVE_UTMPNAME'.
80399
80400 2000-02-02  Jim Meyering  <meyering@lucent.com>
80401
80402         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80403         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80404         Reported by Eli Zaretskii.
80405
80406 2000-02-01  Jim Meyering  <meyering@lucent.com>
80407
80408         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80409
80410 2000-01-31  Jim Meyering  <meyering@lucent.com>
80411
80412         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80413         functions.  Add the time.h and sys/time.h headers along with the
80414         AC_REQUIRE'ment of AC_HEADER_TIME.
80415
80416 2000-01-31  Jim Meyering  <meyering@lucent.com>
80417
80418         * lib/nanosleep.h (nanosleep): Guard declaration with
80419         `#if ! HAVE_DECL_NANOSLEEP'.
80420         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80421         the declaration in that vendor's sys/timers.h.
80422         Reported by Christian Krackowizer.
80423
80424         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80425         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80426         (ISPRINT): Likewise.
80427         Reported by Tom Tromey.
80428
80429 2000-01-30  Jim Meyering  <meyering@lucent.com>
80430
80431         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80432
80433         * m4/prereq.m4 (utmp_includes): Define.
80434         Check for ut_user and ut_name members in both struct utmpx
80435         and struct utmp.
80436
80437 2000-01-30  Jim Meyering  <meyering@lucent.com>
80438
80439         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80440         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80441         header files where only utmpx.ut_user is declared.
80442
80443         * lib/readutmp.h (UT_USER): Define.
80444
80445 2000-01-29  Jim Meyering  <meyering@lucent.com>
80446
80447         * m4/lib-check.m4: New file containing library-related checks from
80448         fileutils and sh-utils (textutils had none).
80449
80450 2000-01-28  Jim Meyering  <meyering@lucent.com>
80451
80452         * m4/perl.m4: Change format of warning message to look more like that
80453         from the missing script.  Suggestion from François Pinard.
80454
80455 2000-01-25  Jim Meyering  <meyering@lucent.com>
80456
80457         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80458         well as time.h in the compile check.
80459         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80460         Fix typo in cross-compiling case: s/yes/no/.
80461
80462 2000-01-23  Jim Meyering  <meyering@lucent.com>
80463
80464         * m4/jm-macros.m4: Move df-related tests here from
80465         fileutils/configure.in
80466
80467         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80468         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80469
80470         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80471         s/space/ac_fsusage_space/.
80472         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80473
80474         * m4/ftruncate.m4: New file (derived from part of
80475         fileutils/configure.in).
80476         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80477         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80478
80479         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80480         AC_SUBST these here, rather than just in sh-util/configure.in, so
80481         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80482         all the same.
80483         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80484         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80485         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80486         (AC_SUBST(POW_LIBM)): Likewise.
80487         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80488
80489 2000-01-23  Jim Meyering  <meyering@lucent.com>
80490
80491         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80492         obstack.c.
80493
80494 2000-01-22  Jim Meyering  <meyering@lucent.com>
80495
80496         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80497
80498         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80499
80500         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80501         configure.in
80502         (AC_CHECK_HEADERS): Likewise for sh-utils.
80503         (AC_CHECK_HEADERS): Likewise for textutils.
80504         Merge the three lists of headers.
80505
80506         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80507         from fileutils' configure.in.
80508
80509         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80510         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80511         check-decl.m4.
80512
80513         * m4/check-decl.m4: Use #if rather than #ifdef.
80514         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80515         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80516         (_jm_DECL_HEADERS): Define new function.
80517         (jm_CHECK_DECLARATIONS): Require it.
80518
80519 2000-01-22  Jim Meyering  <meyering@lucent.com>
80520
80521         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80522         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80523         Required for some AIX systems.  Reported by Christian Krackowizer.
80524         [TESTING] (main): New function.
80525
80526         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80527         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80528         letters.
80529
80530         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80531         iswprint.
80532
80533         * lib/strverscmp.c (ISDIGIT): Define.
80534         (strverscmp): Use ISDIGIT, not isdigit.
80535
80536 2000-01-19  Jim Meyering  <meyering@lucent.com>
80537
80538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80539         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80540         defines `struct timespec' in <sys/time.h>
80541
80542         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80543         Thanks to Akim for explaining.
80544
80545 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80546
80547         * lib/nanosleep.c (nanosleep):
80548         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80549         POSIX.1 doesn't require SA_INTERRUPT and some systems
80550         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80551         it's been part of POSIX.1 since day 1 (in 1988).
80552
80553 2000-01-17  Jim Meyering  <meyering@lucent.com>
80554
80555         * lib/interlock: Remove unused file.  Reported by François Pinard.
80556
80557 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80558
80559         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80560         alert, backslash, formfeed, and vertical tab unnecessarily in
80561         shell quoting style.
80562
80563 2000-01-16  Jim Meyering  <meyering@lucent.com>
80564
80565         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80566         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80567         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80568         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80569
80570 2000-01-16  Jim Meyering  <meyering@lucent.com>
80571
80572         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80573         because the latter didn't work.
80574
80575 2000-01-15  Jim Meyering  <meyering@lucent.com>
80576
80577         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80578         (AC_REPLACE_FUNCS): Add memcpy and memset.
80579         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80580         Add strpbrk.
80581         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80582
80583 2000-01-12  Jim Meyering  <meyering@lucent.com>
80584
80585         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80586         (jm_PREREQ): Use it.
80587         (jm_PREREQ_READUTMP): New macro.
80588         (jm_PREREQ): Use it.
80589
80590 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80591
80592         Quote multibyte characters correctly.
80593         * m4/c-bs-a.m4: New file.
80594         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80595         (jm_PREREQ): Use it.
80596
80597 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80598
80599         * m4/uintmax_t.m4: Port to autoconf 2.13.
80600
80601 2000-01-08  Jim Meyering  <meyering@ascend.com>
80602
80603         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80604         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80605
80606 2000-01-04  Jim Meyering  <meyering@ascend.com>
80607
80608         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80609         jm_STRUCT_DIRENT_D_TYPE.
80610         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80611         jm_STRUCT_DIRENT_D_INO.
80612         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80613         jm_STRUCT_UTIMBUF.
80614         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80615         renamings.
80616         * m4/utime.m4: Likewise.
80617
80618         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80619         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80620
80621 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80622
80623         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80624         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80625
80626 2000-01-02  Jim Meyering  <meyering@ascend.com>
80627
80628         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80629         remember if this is necessary.
80630
80631 1999-12-26  Jim Meyering  <meyering@ascend.com>
80632
80633         * m4/jm-macros.m4: Use it here.
80634         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80635
80636 1999-12-23  Jim Meyering  <meyering@ascend.com>
80637
80638         * m4/jm-macros.m4: Check for clock_gettime (moved from
80639         fileutils/configure.in)
80640         Check for gettimeofday.
80641
80642 1999-12-20  Jim Meyering  <meyering@ascend.com>
80643
80644         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80645         autoconf-2.14a-1999-12-20.
80646
80647 1999-12-19  Jim Meyering  <meyering@ascend.com>
80648
80649         * m4/lstat-slash.m4: New file.
80650         * m4/jm-macros.m4: Use the new macro:
80651         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80652
80653 1999-12-07  Jim Meyering  <meyering@ascend.com>
80654
80655         * m4/perl.m4: Require that File::Compare be available, too.
80656         Too many systems seem to lack it.
80657
80658         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80659         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80660
80661 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80662
80663         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80664         problem with the QNX 4.25 shell, which doesn't propagate exit
80665         status of failed commands inside shell assignments.
80666
80667 1999-11-17  Jim Meyering  <meyering@ascend.com>
80668
80669         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80670
80671 1999-11-07  Jim Meyering  <meyering@ascend.com>
80672
80673         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80674
80675 1999-11-06  Jim Meyering  <meyering@ascend.com>
80676
80677         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80678         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80679
80680 1999-11-05  Jim Meyering  <meyering@ascend.com>
80681
80682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80683         configure.in of textutils, fileutils, and sh-utils into this one
80684         (shared between those packages) file.
80685         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80686         AC_STRUCT_ST_BLKSIZE.
80687
80688 1999-11-03  Jim Meyering  <meyering@ascend.com>
80689
80690         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80691         of AC_CHECK_TYPE checks includes unistd.h.
80692         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80693         Suggestion from Akim Demaille.
80694
80695 1999-10-30  Jim Meyering  <meyering@ascend.com>
80696
80697         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80698         m4-quoted string.
80699         * m4/ls-mntd-fs.m4: Likewise.
80700         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80701         * m4/jm-winsz1.m4: Likewise.
80702
80703         * m4/const.m4: Remove file, since the fix made it into the experimental
80704         version of autoconf.
80705         * m4/mktime.m4: Likewise.
80706
80707         * m4/check-type.m4: Remove file, now that the latest version of
80708         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80709
80710         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80711         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80712         AC_CHECK_TYPE.
80713
80714 1999-10-04  Jim Meyering  <meyering@ascend.com>
80715
80716         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80717
80718 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80719
80720         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80721         2.95.1 bug with HP-UX 10.20.
80722
80723 1999-09-17  Jim Meyering  <meyering@ascend.com>
80724
80725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80726         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80727         due to missing strdup (against sh-utils-2.0).
80728
80729 1999-08-29  Jim Meyering  <meyering@ascend.com>
80730
80731         * m4/jm-macros.m4: Require jm_BISON.
80732         * m4/bison.m4: New file.
80733
80734 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80735
80736         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80737         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80738
80739 1999-08-05  Jim Meyering  <meyering@ascend.com>
80740
80741         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80742         to avoid conflicts with `conftest' on 8+3 filesystems.
80743         Suggestion from Eli Zaretskii.
80744
80745 1999-08-04  Jim Meyering  <meyering@ascend.com>
80746
80747         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80748         fileutils and sh-utils (textutils's getline test was inadequate).
80749         (AM_FUNC_GETLINE): Run this test.
80750         (AC_CHECK_FUNCS): Check for getdelim.
80751         Reported by Bob Proulx.
80752
80753 1999-08-02  Jim Meyering  <meyering@ascend.com>
80754
80755         * m4/jm-macros.m4: Add a comment.
80756
80757 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80758
80759         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80760         <inttypes.h> defines strtoumax as a macro (and not as a
80761         function).
80762
80763 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80764
80765         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80766         that we can shift, multiply and divide unsigned long long
80767         values; Ultrix cc can't do it.
80768
80769 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80770
80771         * m4/mktime.m4: New file, which is a preview of what should appear
80772         in the next public autoconf release.
80773
80774 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80775
80776         * m4/lfs.m4: Remove this file.
80777         * m4/largefile.m4: New file.  It contains the old contents of
80778         lfs.m4, except that all names with prefix AC_LFS have been
80779         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80780         compatible with future autoconf versions.  Also, some minor m4
80781         quoting problems have been fixed.
80782
80783 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80784
80785         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80786         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80787         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80788         and simplify the shell code.
80789
80790 1999-08-01  Jim Meyering  <meyering@ascend.com>
80791
80792         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80793         m4.
80794
80795 1999-07-20  Jim Meyering  <meyering@ascend.com>
80796
80797         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80798
80799 1999-07-15  Jim Meyering  <meyering@ascend.com>
80800
80801         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80802
80803 1999-05-22  Jim Meyering  <meyering@ascend.com>
80804
80805         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80806
80807 1999-05-20  Jim Meyering  <meyering@ascend.com>
80808
80809         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80810         Add a colon after each `then' in case $4 is empty.
80811
80812 1999-05-16  Jim Meyering  <meyering@ascend.com>
80813
80814         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80815
80816 1999-05-10  Jim Meyering  <meyering@ascend.com>
80817
80818         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80819
80820         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80821         AC_FUNC_MKTIME.
80822
80823 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80824
80825         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80826
80827 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80828
80829         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80830         not CPPFLAGS, so that linking works correctly in IRIX.
80831
80832 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80833
80834         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80835
80836 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80837
80838         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80839         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80841         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80842         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80843
80844         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80845
80846 1999-04-20  Jim Meyering  <meyering@ascend.com>
80847
80848         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80849         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80850         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80851
80852 1999-04-18  Jim Meyering  <meyering@ascend.com>
80853
80854         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80855         * m4/jm-macros.m4: Use it.
80856
80857 1999-04-06  Jim Meyering  <meyering@ascend.com>
80858
80859         * m4/strftime.m4: Remove test for %f.
80860
80861 1999-03-29  Jim Meyering  <meyering@ascend.com>
80862
80863         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80864         superset of the AC_TYPE_* checks in the textutils, fileutils,
80865         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80866         AC_TYPE_PID_T.
80867
80868 1999-03-28  Jim Meyering  <meyering@ascend.com>
80869
80870         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80871         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80872         replaced e.g., in the *.sh files of the sh-utils.
80873
80874 1999-03-20  Jim Meyering  <meyering@ascend.com>
80875
80876         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80877         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80878         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80879
80880 1999-03-19  Jim Meyering  <meyering@ascend.com>
80881
80882         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80883
80884 1999-03-12  Jim Meyering  <meyering@ascend.com>
80885
80886         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80887
80888 1999-03-07  Jim Meyering  <meyering@ascend.com>
80889
80890         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80891         declared.
80892
80893 1999-02-17  Jim Meyering  <meyering@ascend.com>
80894
80895         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80896         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80897
80898 1999-02-07  Jim Meyering  <meyering@ascend.com>
80899
80900         * m4/group-member.m4: New file -- extracted from sh-utils'
80901         configure.in.
80902
80903         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80904         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80905
80906 1999-02-06  Jim Meyering  <meyering@ascend.com>
80907
80908         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80909         * m4/fnmatch.m4: Likewise.
80910         * m4/getgroups.m4: Likewise.
80911         * m4/lstat.m4: Likewise.
80912         * m4/malloc.m4: Likewise.
80913         * m4/putenv.m4: Likewise.
80914         * m4/realloc.m4: Likewise.
80915         * m4/regex.m4: Likewise.
80916         * m4/stat.m4: Likewise.
80917         * m4/strftime.m4: Likewise.
80918         Suggestion from Alain Magloire.
80919
80920         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80921         * m4/fnmatch.m4: Likewise.
80922         * m4/getgroups.m4: Likewise.
80923         * m4/getline.m4: Likewise.
80924         * m4/lstat.m4: Likewise.
80925         * m4/malloc.m4: Likewise.
80926         * m4/memcmp.m4: Likewise.
80927         * m4/putenv.m4: Likewise.
80928         * m4/realloc.m4: Likewise.
80929         * m4/regex.m4: Likewise.
80930         * m4/stat.m4: Likewise.
80931         * m4/strftime.m4: Likewise.
80932         Suggestion from Alain Magloire.
80933
80934         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80935         an argument.
80936
80937         * m4/regex.m4: Add a run-time Test for proper operation of
80938         re_compile_pattern.
80939
80940 1999-01-31  Jim Meyering  <meyering@ascend.com>
80941
80942         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80943
80944 1999-01-30  Jim Meyering  <meyering@ascend.com>
80945
80946         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80947
80948         * m4/jm-mktime.m4: Make this a wrapper around the official
80949         AM_FUNC_MKTIME rather than my private copy, now that the official one
80950         is up to date.
80951         * m4/mktime.m4: Remove file.
80952
80953         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80954         * m4/uptime.m4: Likewise.
80955         * m4/uintmax_t.m4: Likewise.
80956
80957 1999-01-28  Jim Meyering  <meyering@ascend.com>
80958
80959         * m4/jm-macros.m4: Use jm_AFS.
80960         * m4/afs.m4: New file (from fileutils' configure.in).
80961
80962         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80963         * m4/chown.m4: Likewise.
80964         * m4/d-ino.m4: Likewise.
80965         * m4/d-type.m4: Likewise.
80966         * m4/fnmatch.m4: Likewise.
80967         * m4/getgroups.m4: Likewise.
80968         * m4/gettext.m4: Likewise.
80969         * m4/jm-mktime.m4: Likewise.
80970         * m4/jm-winsz2.m4: Likewise.
80971         * m4/lcmessage.m4: Likewise.
80972         * m4/ls-mntd-fs.m4: Likewise.
80973         * m4/malloc.m4: Likewise.
80974         * m4/memcmp.m4: Likewise.
80975         * m4/putenv.m4: Likewise.
80976         * m4/realloc.m4: Likewise.
80977         * m4/st_mtim.m4: Likewise.
80978         * m4/strftime.m4: Likewise.
80979
80980 1999-01-16  Jim Meyering  <meyering@ascend.com>
80981
80982         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80983         (ARGMATCH_DIE_DECL): Define.
80984
80985 1999-01-12  Jim Meyering  <meyering@ascend.com>
80986
80987         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80988         Reported by Lars Hecking.
80989
80990 1999-01-10  Jim Meyering  <meyering@ascend.com>
80991
80992         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80993         gross kludge.
80994         * m4/inttypes_h.m4: Likewise.
80995         * m4/lstat.m4: Likewise.
80996         * m4/malloc.m4: Likewise.
80997         * m4/readdir.m4: Likewise.
80998         * m4/realloc.m4: Likewise.
80999         * m4/st_dm_mode.m4: Likewise.
81000         * m4/stat.m4: Likewise.
81001         * m4/utimbuf.m4: Likewise.
81002         * m4/utimes.m4: Likewise.
81003
81004         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
81005         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
81006         comments in config.h.in are meaningful.
81007
81008         * m4/jm-macros.m4: Require autoconf-2.13 here.
81009
81010         * m4/regex.m4: By default, don't use the included regex.c on systems
81011         with glibc 2.  Suggestion from Uli Drepper.
81012
81013 1999-01-02  Jim Meyering  <meyering@ascend.com>
81014
81015         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
81016
81017 1998-12-18  Jim Meyering  <meyering@ascend.com>
81018
81019         * m4/Makefile.am.in (Makefile.am): Simplify rule.
81020         Based on a suggestion from Lars Hecking.
81021
81022 1998-11-16  Paul Eggert  <eggert@twinsun.com>
81023
81024         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
81025
81026 1998-11-16  Jim Meyering  <meyering@ascend.com>
81027
81028         * m4/lfs.m4: Double-quote the `uname...` expression.
81029
81030 1998-11-14  Jim Meyering  <meyering@ascend.com>
81031
81032         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
81033         * m4/stat.m4: Likewise.
81034
81035 1998-11-03  Jim Meyering  <meyering@ascend.com>
81036
81037         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
81038         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
81039
81040 1998-10-18  Jim Meyering  <meyering@ascend.com>
81041
81042         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
81043
81044 1998-10-17  Jim Meyering  <meyering@ascend.com>
81045
81046         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
81047         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
81048         calls for those previously hard-coded headers.  Instead, take a new
81049         parameter.
81050         (jm_CHECK_DECLARATIONS): Reflect interface change.
81051         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
81052         (jm_CHECK_DECL_LOCALTIME_R): New macro.
81053
81054         * m4/mktime.m4: Test for spring-forward gap before long-running test.
81055
81056 1998-10-14  Jim Meyering  <meyering@ascend.com>
81057
81058         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
81059         instead of "TZ=America/Vancouver".  From Paul Eggert.
81060
81061 1998-10-11  Jim Meyering  <meyering@ascend.com>
81062
81063         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
81064         This adds a test for a recently added compatibility fix for mktime.c.
81065         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
81066
81067 1998-09-27  Jim Meyering  <meyering@ascend.com>
81068
81069         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
81070
81071         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
81072         ../configure.in, including a change from Gordon Matzigkeit to allow
81073         cross-compiling for the Hurd.
81074
81075         * m4/glibc.m4: New file/macro to test for the GNU C Library
81076         versions 1 and 2.  From Gordon Matzigkeit.
81077         Indent.
81078
81079 1998-09-21  Jim Meyering  <meyering@ascend.com>
81080
81081         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
81082
81083 1998-08-18  Paul Eggert  <eggert@twinsun.com>
81084
81085         Port nanosecond-resolution times to UnixWare 2.1.2 and
81086         pedantic Solaris 2.6.
81087
81088         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
81089         AC_STRUCT_ST_MTIM.
81090         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
81091         Generate name of ns member, instead of just 1 or undef.
81092         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
81093
81094 1998-08-15  Jim Meyering  <meyering@ascend.com>
81095
81096         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
81097         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
81098         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
81099         instead of jm_TYPE_SSIZE_T.
81100
81101 1998-08-12  Jim Meyering  <meyering@ascend.com>
81102
81103         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
81104
81105 1998-08-02  Jim Meyering  <meyering@ascend.com>
81106
81107         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
81108         in acconfig.h manually.
81109
81110 1998-07-31  Paul Eggert  <eggert@twinsun.com>
81111
81112         * m4/st_mtim.m4: New file.
81113
81114 1998-07-28  Jim Meyering  <meyering@ascend.com>
81115
81116         * m4/utimes.m4: Undef stat.
81117
81118 1998-07-25  Jim Meyering  <meyering@ascend.com>
81119
81120         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
81121         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
81122
81123 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
81124
81125         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
81126         uid and gid actually remain unchanged.
81127
81128 1998-07-07  Jim Meyering  <meyering@ascend.com>
81129
81130         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
81131
81132 1998-07-04  Jim Meyering  <meyering@ascend.com>
81133
81134         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
81135         to prove that this macro can be used in packages without regex.c.
81136
81137 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
81138
81139         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
81140         is to be used.
81141
81142 1998-07-03  Jim Meyering  <meyering@ascend.com>
81143
81144         * m4/gettext.m4: Add -lintl if it's found to be necessary.
81145
81146         * m4/gettext.m4: New file -- from gettext-0.10.35.
81147         * m4/lcmessage.m4: Likewise.
81148         * m4/progtest.m4: Likewise.
81149
81150         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
81151         * m4/jm-macros.m4: Require the new macro.
81152
81153 1998-06-29  Jim Meyering  <meyering@ascend.com>
81154
81155         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
81156         for the definition of NGROUPS (used in a system header included
81157         by sys/mount.h).
81158
81159 1998-06-28  Jim Meyering  <meyering@ascend.com>
81160
81161         * m4/ls-mntd-fs.m4: New file.
81162         * m4/fstypename.m4: New file.
81163
81164         * m4/jm-macros.m4: Require the new macro.
81165         * m4/jm-glibc-io.m4: New file.
81166
81167 1998-05-19  Jim Meyering  <meyering@ascend.com>
81168
81169         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
81170         * m4/lchown.m4: New file.
81171
81172         * m4/Makefile.am.in: New file.
81173         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
81174
81175 1998-05-14  Jim Meyering  <meyering@ascend.com>
81176
81177         * m4/Makefile.am (EXTRA_DIST): Add them.
81178         * m4/jm-macros.m4: New file.
81179         * m4/utimbuf.m4: New file.
81180
81181 1998-05-12  Jim Meyering  <meyering@ascend.com>
81182
81183         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
81184
81185 1998-05-11  Jim Meyering  <meyering@ascend.com>
81186
81187         * m4/isc-posix.m4: New file.
81188
81189 1998-05-10  Jim Meyering  <meyering@ascend.com>
81190
81191         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
81192
81193 1998-05-09  Jim Meyering  <meyering@ascend.com>
81194
81195         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
81196         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
81197         with automake.
81198
81199         * m4/ssize_t.m4: New file.
81200         * m4/mktime.m4: Remove file -- the new automake has this now.
81201
81202 1998-04-26  Jim Meyering  <meyering@ascend.com>
81203
81204         * m4/assert.m4: New file.
81205         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
81206
81207 1998-04-05  Jim Meyering  <meyering@ascend.com>
81208
81209         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
81210         (jm_PREREQ): Use it here.
81211
81212 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
81213
81214         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81215         in acconfig.h.
81216
81217 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81218
81219         * m4/prereq.m4: New file.
81220         * m4/error.m4: New file.
81221         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81222
81223 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81224
81225         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81226         cache-check for the same variable -- that defeated the purpose of
81227         the test; the test program was never run.  This was a problem only
81228         on systems with losing getline functions -- HP-UX 10.20 is one.
81229         Reported by Bjorn Helgaas.
81230
81231 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81232
81233         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81234
81235 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81236
81237         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81238
81239         * m4/const.m4: New file.  Use an initializer in this declaration
81240         typedef int charset[2]; const charset x;
81241         Reported by Bob Glickstein.
81242
81243 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81244
81245         * m4/chown.m4: Fix reversed types on -1 args to chown.
81246         From Kaveh Ghazi.
81247
81248 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81249
81250         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81251         Add lseek and memchr.
81252
81253         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81254         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81255         have a 20-character limit on names.
81256
81257 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81258
81259         * m4/inttypes_h.m4: New file.
81260         * m4/uintmax_t.m4: New file.
81261         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81262
81263
81264         -----
81265
81266         Local Variables:
81267         coding: utf-8
81268         End:
81269
81270         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81271
81272         Copying and distribution of this file, with or without
81273         modification, are permitted provided the copyright notice
81274         and this notice are preserved.